diff --git "a/test_tbl.json" "b/test_tbl.json" new file mode 100644--- /dev/null +++ "b/test_tbl.json" @@ -0,0 +1,83622 @@ +[ + { + "question": "show #name# , #country# , ag #e for all singers o# rdered by #age# from the oldest to the youngest.", + "db_id": "concert_singer", + "orig_query": "select name, country, age from singer order by age desc", + "schema_with_content": "stadium : name (\"Somerset Park\", \"Hampden Park\", \"Forthbank Stadium\"), stadium_id (7, 6, 2), capacity (3100, 4125, 3960), average (615, 552, 638), highest (780, 921, 837), lowest (404, 533, 331), location (\"Alloa Athletic\", \"Queen's Park\", \"East Fife\") | singer_in_concert : concert_id (3, 6, 4), singer_id (\"4\", \"4\", \"4\") | artist : is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2014\", \"2003\"), song_name (\"Sun\", \"Hey Oh\", \"Sun\"), name (\"John Nizinik\", \"Rose White\", \"Rose White\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (5, 3, 4), age (32, 43, 52) | performer : is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2014\", \"2003\"), song_name (\"Sun\", \"Hey Oh\", \"Sun\"), name (\"John Nizinik\", \"Rose White\", \"Rose White\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (5, 3, 4), age (32, 43, 52) | concert : theme (\"Free choice\", \"Free choice 2\", \"Free choice\"), year (\"2014\", \"2015\"), stadium_id (\"2\", \"1\", \"9\"), concert_name (\"Super bootcamp\", \"Week 1\", \"Auditions\"), concert_id (6, 5, 3)", + "schema_without_content": "stadium : name , stadium_id , capacity , average , highest , lowest , location | singer_in_concert : concert_id , singer_id | artist : is_male , song_release_year , song_name , name , country , singer_id , age | performer : is_male , song_release_year , song_name , name , country , singer_id , age | concert : theme , year , stadium_id , concert_name , concert_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "singer.Name", + "country": "singer.Country", + "e for all singers o": "singer", + "age": "singer.Age" + } + }, + { + "question": "what are the #names# , #countries# , and #ages# for every #singer# in descending order of age?", + "db_id": "concert_singer", + "orig_query": "select name, country, age from singer order by age desc", + "schema_with_content": "singer_in_concert : concert_id (2, 5, 3), singer_id (\"5\", \"3\", \"2\") | performer : country (\"Netherlands\", \"United States\", \"France\"), name (\"Justin Brown\", \"Justin Brown\", \"Rose White\"), singer_id (3, 3, 1), is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2008\", \"2003\"), song_name (\"Gentleman\", \"Dangerous\", \"Gentleman\"), age (41, 52, 43) | artist : country (\"Netherlands\", \"United States\", \"France\"), name (\"Justin Brown\", \"Justin Brown\", \"Rose White\"), singer_id (3, 3, 1), is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2008\", \"2003\"), song_name (\"Gentleman\", \"Dangerous\", \"Gentleman\"), age (41, 52, 43) | concert : concert_id (5, 6, 2), stadium_id (\"10\", \"7\", \"9\"), year (\"2014\", \"2015\"), concert_name (\"Super bootcamp\", \"Week 1\", \"Week 2\"), theme (\"Free choice\", \"Free choice 2\", \"Bleeding Love\") | stadium : capacity (11998, 3100, 11998), lowest (1294, 315, 1294), stadium_id (7, 1, 1), highest (1980, 1057, 780), location (\"Raith Rovers\", \"Alloa Athletic\", \"Raith Rovers\"), average (638, 615, 638), name (\"Recreation Park\", \"Somerset Park\", \"Recreation Park\")", + "schema_without_content": "singer_in_concert : concert_id , singer_id | performer : country , name , singer_id , is_male , song_release_year , song_name , age | artist : country , name , singer_id , is_male , song_release_year , song_name , age | concert : concert_id , stadium_id , year , concert_name , theme | stadium : capacity , lowest , stadium_id , highest , location , average , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "singer.Name", + "countries": "singer.Country", + "ages": "singer.Age", + "singer": "singer" + } + }, + { + "question": "what is #the average, minimum, and maximum age of all singers f# rom #france# ?", + "db_id": "concert_singer", + "orig_query": "select avg(age), min(age), max(age) from singer where country = 'France'", + "schema_with_content": "performer : singer_id (2, 1, 3), name (\"Joe Sharp\", \"Timbaland\", \"Justin Brown\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), song_name (\"Love\", \"Hey Oh\", \"You\"), song_release_year (\"2003\", \"2016\", \"2013\"), age (41, 32, 32) | artist : singer_id (2, 1, 3), name (\"Joe Sharp\", \"Timbaland\", \"Justin Brown\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), song_name (\"Love\", \"Hey Oh\", \"You\"), song_release_year (\"2003\", \"2016\", \"2013\"), age (41, 32, 32) | singer_in_concert : singer_id (\"3\", \"3\", \"5\"), concert_id (4, 2, 5) | stadium : highest (1057, 780, 4812), name (\"Glebe Park\", \"Hampden Park\", \"Balmoor\"), location (\"Brechin City\", \"Raith Rovers\", \"Queen's Park\"), stadium_id (4, 6, 7), lowest (400, 315, 404), capacity (4125, 4125, 3808), average (1477, 637, 552) | concert : concert_id (5, 4, 2), year (\"2014\", \"2015\"), concert_name (\"Week 2\", \"Super bootcamp\", \"Home Visits\"), theme (\"Wide Awake\", \"Bleeding Love\", \"Free choice 2\"), stadium_id (\"2\", \"10\", \"10\")", + "schema_without_content": "performer : singer_id , name , country , is_male , song_name , song_release_year , age | artist : singer_id , name , country , is_male , song_name , song_release_year , age | singer_in_concert : singer_id , concert_id | stadium : highest , name , location , stadium_id , lowest , capacity , average | concert : concert_id , year , concert_name , theme , stadium_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "the average, minimum, and maximum age of all singers f": "singer.Age", + "France": "singer.Country" + } + }, + { + "question": "what is the #average, minimum, and maximum age for all french singers?# ?", + "db_id": "concert_singer", + "orig_query": "select avg(age), min(age), max(age) from singer where country = 'France'", + "schema_with_content": "concert : theme (\"Party All Night\", \"Wide Awake\", \"Free choice 2\"), stadium_id (\"10\", \"10\", \"10\"), concert_id (2, 4, 4), concert_name (\"Home Visits\", \"Super bootcamp\", \"Super bootcamp\"), year (\"2014\", \"2015\") | performer : singer_id (2, 5, 2), song_release_year (\"2016\", \"2008\", \"2003\"), age (52, 52, 29), name (\"Joe Sharp\", \"Timbaland\", \"John Nizinik\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Sun\", \"Hey Oh\", \"Gentleman\") | stadium : stadium_id (3, 7, 3), location (\"Stirling Albion\", \"Peterhead\", \"Raith Rovers\"), capacity (3100, 3100, 52500), lowest (331, 315, 533), highest (837, 837, 837), average (552, 642, 2106), name (\"Somerset Park\", \"Stark's Park\", \"Recreation Park\") | singer_in_concert : singer_id (\"6\", \"6\", \"2\"), concert_id (3, 5, 4) | artist : singer_id (2, 5, 2), song_release_year (\"2016\", \"2008\", \"2003\"), age (52, 52, 29), name (\"Joe Sharp\", \"Timbaland\", \"John Nizinik\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Sun\", \"Hey Oh\", \"Gentleman\")", + "schema_without_content": "concert : theme , stadium_id , concert_id , concert_name , year | performer : singer_id , song_release_year , age , name , is_male , country , song_name | stadium : stadium_id , location , capacity , lowest , highest , average , name | singer_in_concert : singer_id , concert_id | artist : singer_id , song_release_year , age , name , is_male , country , song_name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "average, minimum, and maximum age for all French singers?": "singer.Age" + } + }, + { + "question": "show the #name# and the #release year of the song by the youngest singer# .", + "db_id": "concert_singer", + "orig_query": "select song_name, song_release_year from singer order by age limit 1", + "schema_with_content": "stadium : highest (837, 837, 1057), capacity (4125, 3100, 3100), stadium_id (9, 5, 3), average (642, 2106, 615), location (\"East Fife\", \"Raith Rovers\", \"East Fife\"), name (\"Forthbank Stadium\", \"Hampden Park\", \"Glebe Park\"), lowest (400, 411, 1294) | singer_in_concert : singer_id (\"3\", \"5\", \"5\"), concert_id (3, 5, 3) | performer : song_name (\"Sun\", \"Hey Oh\", \"Gentleman\"), singer_id (1, 1, 6), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), song_release_year (\"1992\", \"2016\", \"2008\"), age (29, 25, 41), name (\"John Nizinik\", \"Justin Brown\", \"Justin Brown\") | concert : stadium_id (\"9\", \"2\", \"7\"), concert_name (\"Super bootcamp\", \"Home Visits\", \"Week 2\"), concert_id (4, 6, 1), theme (\"Happy Tonight\", \"Free choice 2\", \"Free choice\"), year (\"2014\", \"2015\") | artist : song_name (\"Sun\", \"Hey Oh\", \"Gentleman\"), singer_id (1, 1, 6), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), song_release_year (\"1992\", \"2016\", \"2008\"), age (29, 25, 41), name (\"John Nizinik\", \"Justin Brown\", \"Justin Brown\")", + "schema_without_content": "stadium : highest , capacity , stadium_id , average , location , name , lowest | singer_in_concert : singer_id , concert_id | performer : song_name , singer_id , country , is_male , song_release_year , age , name | concert : stadium_id , concert_name , concert_id , theme , year | artist : song_name , singer_id , country , is_male , song_release_year , age , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "singer.Name", + "release year of the song by the youngest singer": "singer.Song_release_year" + } + }, + { + "question": "what are the #names# and #release years for all the songs of the youngest singer# ?", + "db_id": "concert_singer", + "orig_query": "select song_name, song_release_year from singer order by age limit 1", + "schema_with_content": "performer : age (29, 29, 43), country (\"Netherlands\", \"United States\", \"France\"), name (\"Timbaland\", \"Rose White\", \"John Nizinik\"), singer_id (2, 5, 4), song_name (\"Dangerous\", \"Dangerous\", \"You\"), is_male (\"F\", \"T\"), song_release_year (\"2014\", \"2003\", \"2016\") | stadium : lowest (400, 1057, 315), name (\"Bayview Stadium\", \"Gayfield Park\", \"Somerset Park\"), location (\"Arbroath\", \"Arbroath\", \"Raith Rovers\"), highest (1980, 1980, 1980), average (642, 642, 864), capacity (10104, 4125, 3960), stadium_id (7, 6, 4) | artist : age (29, 29, 43), country (\"Netherlands\", \"United States\", \"France\"), name (\"Timbaland\", \"Rose White\", \"John Nizinik\"), singer_id (2, 5, 4), song_name (\"Dangerous\", \"Dangerous\", \"You\"), is_male (\"F\", \"T\"), song_release_year (\"2014\", \"2003\", \"2016\") | singer_in_concert : concert_id (2, 2, 4), singer_id (\"4\", \"3\", \"4\") | concert : concert_id (6, 2, 6), stadium_id (\"1\", \"2\", \"9\"), theme (\"Party All Night\", \"Free choice\", \"Bleeding Love\"), year (\"2014\", \"2015\"), concert_name (\"Home Visits\", \"Auditions\", \"Week 1\")", + "schema_without_content": "performer : age , country , name , singer_id , song_name , is_male , song_release_year | stadium : lowest , name , location , highest , average , capacity , stadium_id | artist : age , country , name , singer_id , song_name , is_male , song_release_year | singer_in_concert : concert_id , singer_id | concert : concert_id , stadium_id , theme , year , concert_name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "singer.Song_Name", + "release years for all the songs of the youngest singer": "singer.Song_release_year" + } + }, + { + "question": "what are all distinct #countries# where #singers# above #age# 20 are from?", + "db_id": "concert_singer", + "orig_query": "select distinct country from singer where age > 20", + "schema_with_content": "performer : name (\"Timbaland\", \"Joe Sharp\", \"John Nizinik\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (3, 3, 1), is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2014\", \"1992\"), song_name (\"Gentleman\", \"Dangerous\", \"Love\"), age (29, 43, 25) | stadium : location (\"Stirling Albion\", \"Arbroath\", \"Stirling Albion\"), stadium_id (9, 6, 6), lowest (331, 533, 404), highest (1125, 1057, 1057), capacity (2000, 2000, 3808), average (552, 638, 615), name (\"Bayview Stadium\", \"Balmoor\", \"Somerset Park\") | concert : theme (\"Free choice\", \"Happy Tonight\", \"Happy Tonight\"), concert_name (\"Auditions\", \"Home Visits\", \"Home Visits\"), year (\"2014\", \"2015\"), stadium_id (\"1\", \"10\", \"1\"), concert_id (4, 4, 2) | artist : name (\"Timbaland\", \"Joe Sharp\", \"John Nizinik\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (3, 3, 1), is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2014\", \"1992\"), song_name (\"Gentleman\", \"Dangerous\", \"Love\"), age (29, 43, 25) | singer_in_concert : concert_id (4, 3, 6), singer_id (\"5\", \"4\", \"6\")", + "schema_without_content": "performer : name , country , singer_id , is_male , song_release_year , song_name , age | stadium : location , stadium_id , lowest , highest , capacity , average , name | concert : theme , concert_name , year , stadium_id , concert_id | artist : name , country , singer_id , is_male , song_release_year , song_name , age | singer_in_concert : concert_id , singer_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "singer.Country", + "singers": "singer", + "age": "singer.Age" + } + }, + { + "question": "what are the different #countries with singer# s above #age# 20?", + "db_id": "concert_singer", + "orig_query": "select distinct country from singer where age > 20", + "schema_with_content": "performer : is_male (\"F\", \"T\"), name (\"Tribal King\", \"Rose White\", \"Tribal King\"), age (25, 32, 29), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"You\", \"Love\", \"Sun\"), singer_id (4, 3, 6), song_release_year (\"2003\", \"2008\", \"2008\") | artist : is_male (\"F\", \"T\"), name (\"Tribal King\", \"Rose White\", \"Tribal King\"), age (25, 32, 29), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"You\", \"Love\", \"Sun\"), singer_id (4, 3, 6), song_release_year (\"2003\", \"2008\", \"2008\") | singer_in_concert : singer_id (\"4\", \"4\", \"5\"), concert_id (3, 5, 4) | stadium : capacity (10104, 2000, 10104), stadium_id (1, 1, 3), name (\"Balmoor\", \"Stark's Park\", \"Gayfield Park\"), lowest (411, 1057, 411), average (1477, 637, 637), highest (1125, 2363, 2363), location (\"Raith Rovers\", \"East Fife\", \"Ayr United\") | concert : concert_id (4, 3, 4), theme (\"Free choice 2\", \"Free choice\", \"Wide Awake\"), concert_name (\"Auditions\", \"Week 2\", \"Week 2\"), stadium_id (\"2\", \"1\", \"2\"), year (\"2014\", \"2015\")", + "schema_without_content": "performer : is_male , name , age , country , song_name , singer_id , song_release_year | artist : is_male , name , age , country , song_name , singer_id , song_release_year | singer_in_concert : singer_id , concert_id | stadium : capacity , stadium_id , name , lowest , average , highest , location | concert : concert_id , theme , concert_name , stadium_id , year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "countries with singer": "singer.Country", + "age": "singer.Age", + "singers": "singer" + } + }, + { + "question": "show all #countries# and the #number of singers# in each country.", + "db_id": "concert_singer", + "orig_query": "select country, count(*) from singer group by country", + "schema_with_content": "concert : theme (\"Happy Tonight\", \"Bleeding Love\", \"Wide Awake\"), concert_id (4, 4, 6), concert_name (\"Auditions\", \"Week 1\", \"Super bootcamp\"), year (\"2014\", \"2015\"), stadium_id (\"1\", \"1\", \"2\") | stadium : average (637, 730, 615), name (\"Forthbank Stadium\", \"Glebe Park\", \"Gayfield Park\"), stadium_id (2, 9, 4), lowest (315, 404, 400), location (\"East Fife\", \"Alloa Athletic\", \"Peterhead\"), capacity (2000, 4000, 4000), highest (780, 1763, 2363) | singer_in_concert : concert_id (5, 4, 5), singer_id (\"2\", \"4\", \"2\") | artist : country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Rose White\", \"John Nizinik\", \"Timbaland\"), age (32, 29, 29), singer_id (1, 3, 6), song_release_year (\"2016\", \"1992\", \"1992\"), song_name (\"Dangerous\", \"Hey Oh\", \"Hey Oh\") | performer : country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Rose White\", \"John Nizinik\", \"Timbaland\"), age (32, 29, 29), singer_id (1, 3, 6), song_release_year (\"2016\", \"1992\", \"1992\"), song_name (\"Dangerous\", \"Hey Oh\", \"Hey Oh\")", + "schema_without_content": "concert : theme , concert_id , concert_name , year , stadium_id | stadium : average , name , stadium_id , lowest , location , capacity , highest | singer_in_concert : concert_id , singer_id | artist : country , is_male , name , age , singer_id , song_release_year , song_name | performer : country , is_male , name , age , singer_id , song_release_year , song_name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "singer.Country", + "number of singers": "singer" + } + }, + { + "question": "how many #singers# are from each #country# ?", + "db_id": "concert_singer", + "orig_query": "select country, count(*) from singer group by country", + "schema_with_content": "concert : theme (\"Happy Tonight\", \"Wide Awake\", \"Party All Night\"), year (\"2014\", \"2015\"), concert_name (\"Week 1\", \"Home Visits\", \"Week 2\"), concert_id (2, 4, 1), stadium_id (\"9\", \"7\", \"1\") | performer : singer_id (6, 3, 5), name (\"John Nizinik\", \"Justin Brown\", \"Justin Brown\"), song_release_year (\"1992\", \"2013\", \"2014\"), country (\"Netherlands\", \"United States\", \"France\"), age (52, 25, 32), song_name (\"You\", \"You\", \"Hey Oh\"), is_male (\"F\", \"T\") | singer_in_concert : concert_id (4, 3, 2), singer_id (\"6\", \"5\", \"5\") | artist : singer_id (6, 3, 5), name (\"John Nizinik\", \"Justin Brown\", \"Justin Brown\"), song_release_year (\"1992\", \"2013\", \"2014\"), country (\"Netherlands\", \"United States\", \"France\"), age (52, 25, 32), song_name (\"You\", \"You\", \"Hey Oh\"), is_male (\"F\", \"T\") | stadium : stadium_id (9, 10, 9), name (\"Stark's Park\", \"Recreation Park\", \"Hampden Park\"), highest (4812, 1980, 2363), average (615, 637, 730), lowest (466, 400, 1057), location (\"Raith Rovers\", \"Peterhead\", \"Brechin City\"), capacity (3960, 2000, 4125)", + "schema_without_content": "concert : theme , year , concert_name , concert_id , stadium_id | performer : singer_id , name , song_release_year , country , age , song_name , is_male | singer_in_concert : concert_id , singer_id | artist : singer_id , name , song_release_year , country , age , song_name , is_male | stadium : stadium_id , name , highest , average , lowest , location , capacity", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "singers": "singer", + "country": "singer.Country" + } + }, + { + "question": "list all #song names by singers# above the #average age# .", + "db_id": "concert_singer", + "orig_query": "select song_name from singer where age > (select avg(age) from singer)", + "schema_with_content": "singer_in_concert : concert_id (4, 5, 6), singer_id (\"4\", \"3\", \"2\") | stadium : average (730, 864, 552), lowest (466, 533, 533), capacity (4000, 11998, 52500), stadium_id (6, 1, 5), location (\"Alloa Athletic\", \"East Fife\", \"Arbroath\"), name (\"Somerset Park\", \"Somerset Park\", \"Recreation Park\"), highest (921, 921, 2363) | performer : country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2016\", \"1992\", \"2008\"), name (\"Rose White\", \"John Nizinik\", \"Timbaland\"), is_male (\"F\", \"T\"), song_name (\"Love\", \"You\", \"Hey Oh\"), age (41, 29, 43), singer_id (2, 6, 3) | concert : concert_id (2, 4, 3), year (\"2014\", \"2015\"), stadium_id (\"7\", \"2\", \"10\"), theme (\"Happy Tonight\", \"Free choice 2\", \"Bleeding Love\"), concert_name (\"Home Visits\", \"Home Visits\", \"Auditions\") | artist : country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2016\", \"1992\", \"2008\"), name (\"Rose White\", \"John Nizinik\", \"Timbaland\"), is_male (\"F\", \"T\"), song_name (\"Love\", \"You\", \"Hey Oh\"), age (41, 29, 43), singer_id (2, 6, 3)", + "schema_without_content": "singer_in_concert : concert_id , singer_id | stadium : average , lowest , capacity , stadium_id , location , name , highest | performer : country , song_release_year , name , is_male , song_name , age , singer_id | concert : concert_id , year , stadium_id , theme , concert_name | artist : country , song_release_year , name , is_male , song_name , age , singer_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "song names by singers": "singer.Song_Name", + "average age": "singer.Age" + } + }, + { + "question": "what are all the #song names by singers# who are #older than average# ?", + "db_id": "concert_singer", + "orig_query": "select song_name from singer where age > (select avg(age) from singer)", + "schema_with_content": "performer : is_male (\"F\", \"T\"), song_release_year (\"2003\", \"2003\", \"2016\"), song_name (\"Sun\", \"Dangerous\", \"Love\"), name (\"Joe Sharp\", \"Rose White\", \"John Nizinik\"), country (\"Netherlands\", \"United States\", \"France\"), age (43, 29, 25), singer_id (5, 2, 6) | stadium : highest (1763, 1125, 1980), average (615, 638, 552), stadium_id (1, 4, 10), lowest (533, 400, 400), name (\"Bayview Stadium\", \"Gayfield Park\", \"Bayview Stadium\"), capacity (3100, 3100, 52500), location (\"Brechin City\", \"Ayr United\", \"Stirling Albion\") | singer_in_concert : concert_id (3, 5, 4), singer_id (\"6\", \"2\", \"6\") | artist : is_male (\"F\", \"T\"), song_release_year (\"2003\", \"2003\", \"2016\"), song_name (\"Sun\", \"Dangerous\", \"Love\"), name (\"Joe Sharp\", \"Rose White\", \"John Nizinik\"), country (\"Netherlands\", \"United States\", \"France\"), age (43, 29, 25), singer_id (5, 2, 6) | concert : year (\"2014\", \"2015\"), concert_name (\"Home Visits\", \"Home Visits\", \"Week 1\"), concert_id (2, 1, 2), theme (\"Bleeding Love\", \"Free choice 2\", \"Party All Night\"), stadium_id (\"7\", \"9\", \"1\")", + "schema_without_content": "performer : is_male , song_release_year , song_name , name , country , age , singer_id | stadium : highest , average , stadium_id , lowest , name , capacity , location | singer_in_concert : concert_id , singer_id | artist : is_male , song_release_year , song_name , name , country , age , singer_id | concert : year , concert_name , concert_id , theme , stadium_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "song names by singers": "singer.Song_Name", + "older than average": "singer.Age" + } + }, + { + "question": "show #location# and #name for all stadiums with a capacity# between 5000 and 10000.", + "db_id": "concert_singer", + "orig_query": "select location, name from stadium where capacity between 5000 and 10000", + "schema_with_content": "singer_in_concert : singer_id (\"2\", \"2\", \"2\"), concert_id (6, 2, 1) | arena : highest (780, 921, 837), average (2106, 552, 637), lowest (411, 315, 400), stadium_id (9, 1, 9), capacity (11998, 52500, 11998), location (\"Stirling Albion\", \"Queen's Park\", \"East Fife\"), name (\"Forthbank Stadium\", \"Forthbank Stadium\", \"Somerset Park\") | concert : concert_id (5, 5, 4), stadium_id (\"9\", \"9\", \"9\"), theme (\"Free choice\", \"Free choice\", \"Happy Tonight\"), concert_name (\"Home Visits\", \"Week 2\", \"Home Visits\"), year (\"2014\", \"2015\") | venue : highest (780, 921, 837), average (2106, 552, 637), lowest (411, 315, 400), stadium_id (9, 1, 9), capacity (11998, 52500, 11998), location (\"Stirling Albion\", \"Queen's Park\", \"East Fife\"), name (\"Forthbank Stadium\", \"Forthbank Stadium\", \"Somerset Park\") | singer : song_release_year (\"2013\", \"2008\", \"1992\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Timbaland\", \"Rose White\", \"Timbaland\"), age (43, 41, 29), singer_id (5, 4, 2), song_name (\"Hey Oh\", \"Love\", \"Dangerous\"), is_male (\"F\", \"T\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | arena : highest , average , lowest , stadium_id , capacity , location , name | concert : concert_id , stadium_id , theme , concert_name , year | venue : highest , average , lowest , stadium_id , capacity , location , name | singer : song_release_year , country , name , age , singer_id , song_name , is_male", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "location": "stadium.Location", + "name for all stadiums with a capacity": "stadium.Name" + } + }, + { + "question": "what are the #locations# and #names# of all stations with #capacity# between 5000 and 10000?", + "db_id": "concert_singer", + "orig_query": "select location, name from stadium where capacity between 5000 and 10000", + "schema_with_content": "concert : theme (\"Wide Awake\", \"Free choice 2\", \"Party All Night\"), concert_name (\"Week 2\", \"Auditions\", \"Week 2\"), concert_id (5, 6, 5), stadium_id (\"10\", \"1\", \"10\"), year (\"2014\", \"2015\") | venue : name (\"Stark's Park\", \"Gayfield Park\", \"Hampden Park\"), average (642, 638, 2106), capacity (10104, 3100, 4125), location (\"Alloa Athletic\", \"Brechin City\", \"Stirling Albion\"), stadium_id (2, 1, 3), highest (921, 1125, 780), lowest (533, 404, 1057) | arena : name (\"Stark's Park\", \"Gayfield Park\", \"Hampden Park\"), average (642, 638, 2106), capacity (10104, 3100, 4125), location (\"Alloa Athletic\", \"Brechin City\", \"Stirling Albion\"), stadium_id (2, 1, 3), highest (921, 1125, 780), lowest (533, 404, 1057) | singer : singer_id (2, 2, 2), country (\"Netherlands\", \"United States\", \"France\"), age (52, 29, 29), song_name (\"Gentleman\", \"Love\", \"Gentleman\"), name (\"Timbaland\", \"Tribal King\", \"Rose White\"), is_male (\"F\", \"T\"), song_release_year (\"2013\", \"1992\", \"2003\") | singer_in_concert : concert_id (1, 3, 4), singer_id (\"4\", \"6\", \"2\")", + "schema_without_content": "concert : theme , concert_name , concert_id , stadium_id , year | venue : name , average , capacity , location , stadium_id , highest , lowest | arena : name , average , capacity , location , stadium_id , highest , lowest | singer : singer_id , country , age , song_name , name , is_male , song_release_year | singer_in_concert : concert_id , singer_id", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "locations": "stadium.Location", + "names": "stadium.Name", + "capacity": "stadium.Capacity" + } + }, + { + "question": "what is the #name# and #capacity for the stadium with highest average attendance# ?", + "db_id": "concert_singer", + "orig_query": "select name, capacity from stadium order by average desc limit 1", + "schema_with_content": "singer : song_release_year (\"2014\", \"2003\", \"2016\"), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Hey Oh\", \"Sun\", \"Sun\"), singer_id (1, 6, 3), is_male (\"F\", \"T\"), age (32, 41, 32), name (\"Justin Brown\", \"Joe Sharp\", \"Timbaland\") | singer_in_concert : concert_id (1, 4, 6), singer_id (\"4\", \"3\", \"2\") | concert : stadium_id (\"7\", \"10\", \"9\"), year (\"2014\", \"2015\"), concert_id (1, 1, 2), theme (\"Wide Awake\", \"Wide Awake\", \"Party All Night\"), concert_name (\"Home Visits\", \"Super bootcamp\", \"Super bootcamp\") | venue : stadium_id (3, 1, 4), name (\"Bayview Stadium\", \"Stark's Park\", \"Bayview Stadium\"), location (\"East Fife\", \"Brechin City\", \"Raith Rovers\"), highest (4812, 921, 1763), average (642, 552, 642), capacity (3100, 2000, 4000), lowest (1057, 1057, 400) | arena : stadium_id (3, 1, 4), name (\"Bayview Stadium\", \"Stark's Park\", \"Bayview Stadium\"), location (\"East Fife\", \"Brechin City\", \"Raith Rovers\"), highest (4812, 921, 1763), average (642, 552, 642), capacity (3100, 2000, 4000), lowest (1057, 1057, 400)", + "schema_without_content": "singer : song_release_year , country , song_name , singer_id , is_male , age , name | singer_in_concert : concert_id , singer_id | concert : stadium_id , year , concert_id , theme , concert_name | venue : stadium_id , name , location , highest , average , capacity , lowest | arena : stadium_id , name , location , highest , average , capacity , lowest", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "stadium.Name", + "capacity for the stadium with highest average attendance": "stadium.Capacity" + } + }, + { + "question": "what is the #name# and #capacity for the stadium with the highest average attendance# ?", + "db_id": "concert_singer", + "orig_query": "select name, capacity from stadium order by average desc limit 1", + "schema_with_content": "singer : is_male (\"F\", \"T\"), song_name (\"Dangerous\", \"Hey Oh\", \"Love\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"John Nizinik\", \"Tribal King\", \"Joe Sharp\"), song_release_year (\"2014\", \"2016\", \"2008\"), age (29, 32, 32), singer_id (6, 5, 2) | concert : theme (\"Party All Night\", \"Free choice\", \"Free choice 2\"), concert_name (\"Super bootcamp\", \"Super bootcamp\", \"Home Visits\"), year (\"2014\", \"2015\"), stadium_id (\"10\", \"10\", \"2\"), concert_id (1, 1, 4) | arena : stadium_id (5, 1, 1), capacity (11998, 52500, 52500), average (1477, 730, 1477), name (\"Hampden Park\", \"Forthbank Stadium\", \"Gayfield Park\"), lowest (400, 1294, 411), location (\"Alloa Athletic\", \"Stirling Albion\", \"Brechin City\"), highest (2363, 1980, 1057) | venue : stadium_id (5, 1, 1), capacity (11998, 52500, 52500), average (1477, 730, 1477), name (\"Hampden Park\", \"Forthbank Stadium\", \"Gayfield Park\"), lowest (400, 1294, 411), location (\"Alloa Athletic\", \"Stirling Albion\", \"Brechin City\"), highest (2363, 1980, 1057) | singer_in_concert : concert_id (6, 5, 5), singer_id (\"4\", \"5\", \"5\")", + "schema_without_content": "singer : is_male , song_name , country , name , song_release_year , age , singer_id | concert : theme , concert_name , year , stadium_id , concert_id | arena : stadium_id , capacity , average , name , lowest , location , highest | venue : stadium_id , capacity , average , name , lowest , location , highest | singer_in_concert : concert_id , singer_id", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "stadium.Name", + "capacity for the stadium with the highest average attendance": "stadium.Capacity" + } + }, + { + "question": "how many #concerts# are there in #year# 2014 or 2015?", + "db_id": "concert_singer", + "orig_query": "select count(*) from concert where year = 2014 or year = 2015", + "schema_with_content": "singer_in_concert : concert_id (6, 6, 3), singer_id (\"2\", \"3\", \"3\") | singer : is_male (\"F\", \"T\"), song_name (\"Sun\", \"Dangerous\", \"Gentleman\"), singer_id (4, 5, 4), song_release_year (\"2014\", \"2013\", \"2016\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Timbaland\", \"Joe Sharp\", \"Justin Brown\"), age (25, 52, 29) | stadium : highest (4812, 780, 1980), name (\"Stark's Park\", \"Balmoor\", \"Bayview Stadium\"), location (\"Ayr United\", \"East Fife\", \"Queen's Park\"), lowest (400, 1294, 315), stadium_id (1, 3, 4), average (864, 2106, 2106), capacity (3960, 2000, 3808) | gig : year (\"2014\", \"2015\"), stadium_id (\"1\", \"7\", \"9\"), concert_id (4, 6, 1), theme (\"Party All Night\", \"Bleeding Love\", \"Free choice 2\"), concert_name (\"Week 2\", \"Week 2\", \"Home Visits\") | performance : year (\"2014\", \"2015\"), stadium_id (\"1\", \"7\", \"9\"), concert_id (4, 6, 1), theme (\"Party All Night\", \"Bleeding Love\", \"Free choice 2\"), concert_name (\"Week 2\", \"Week 2\", \"Home Visits\")", + "schema_without_content": "singer_in_concert : concert_id , singer_id | singer : is_male , song_name , singer_id , song_release_year , country , name , age | stadium : highest , name , location , lowest , stadium_id , average , capacity | gig : year , stadium_id , concert_id , theme , concert_name | performance : year , stadium_id , concert_id , theme , concert_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "concerts": "concert", + "year": "concert.Year" + } + }, + { + "question": "how many #concerts occurred in 2014 or 2015# ?", + "db_id": "concert_singer", + "orig_query": "select count(*) from concert where year = 2014 or year = 2015", + "schema_with_content": "singer : name (\"Rose White\", \"John Nizinik\", \"Rose White\"), is_male (\"F\", \"T\"), song_name (\"Hey Oh\", \"Gentleman\", \"Love\"), country (\"Netherlands\", \"United States\", \"France\"), age (43, 25, 43), singer_id (3, 2, 6), song_release_year (\"2013\", \"2014\", \"2014\") | singer_in_concert : concert_id (2, 6, 4), singer_id (\"4\", \"2\", \"2\") | performance : concert_name (\"Super bootcamp\", \"Home Visits\", \"Week 1\"), year (\"2014\", \"2015\"), theme (\"Wide Awake\", \"Bleeding Love\", \"Free choice\"), concert_id (6, 1, 2), stadium_id (\"2\", \"1\", \"1\") | gig : concert_name (\"Super bootcamp\", \"Home Visits\", \"Week 1\"), year (\"2014\", \"2015\"), theme (\"Wide Awake\", \"Bleeding Love\", \"Free choice\"), concert_id (6, 1, 2), stadium_id (\"2\", \"1\", \"1\") | stadium : capacity (3960, 4125, 11998), highest (837, 1763, 921), stadium_id (5, 6, 7), lowest (1294, 1057, 411), location (\"Alloa Athletic\", \"Ayr United\", \"Queen's Park\"), average (552, 637, 730), name (\"Balmoor\", \"Bayview Stadium\", \"Glebe Park\")", + "schema_without_content": "singer : name , is_male , song_name , country , age , singer_id , song_release_year | singer_in_concert : concert_id , singer_id | performance : concert_name , year , theme , concert_id , stadium_id | gig : concert_name , year , theme , concert_id , stadium_id | stadium : capacity , highest , stadium_id , lowest , location , average , name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "concerts occurred in 2014 or 2015": "concert.Year" + } + }, + { + "question": "show the #stadium name# and the #number of concerts# in each stadium.", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t1.stadium_id", + "schema_with_content": "arena : capacity (52500, 52500, 3960), highest (1980, 1125, 1125), stadium_id (5, 1, 4), lowest (1057, 1294, 404), location (\"Brechin City\", \"Brechin City\", \"Arbroath\"), name (\"Recreation Park\", \"Forthbank Stadium\", \"Balmoor\"), average (730, 1477, 638) | singer_in_concert : singer_id (\"5\", \"3\", \"5\"), concert_id (1, 6, 2) | venue : capacity (52500, 52500, 3960), highest (1980, 1125, 1125), stadium_id (5, 1, 4), lowest (1057, 1294, 404), location (\"Brechin City\", \"Brechin City\", \"Arbroath\"), name (\"Recreation Park\", \"Forthbank Stadium\", \"Balmoor\"), average (730, 1477, 638) | concert : year (\"2014\", \"2015\"), concert_name (\"Week 1\", \"Week 2\", \"Super bootcamp\"), concert_id (3, 1, 1), theme (\"Free choice\", \"Free choice 2\", \"Party All Night\"), stadium_id (\"2\", \"10\", \"1\") | singer : singer_id (1, 2, 2), country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2016\", \"1992\", \"1992\"), age (41, 29, 29), song_name (\"Dangerous\", \"You\", \"Love\"), is_male (\"F\", \"T\"), name (\"Rose White\", \"Justin Brown\", \"Rose White\")", + "schema_without_content": "arena : capacity , highest , stadium_id , lowest , location , name , average | singer_in_concert : singer_id , concert_id | venue : capacity , highest , stadium_id , lowest , location , name , average | concert : year , concert_name , concert_id , theme , stadium_id | singer : singer_id , country , song_release_year , age , song_name , is_male , name", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "stadium name": "stadium.Name", + "number of concerts": "concert" + } + }, + { + "question": "show the #stadium name# and the #number of concerts# in each stadium.", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t1.stadium_id", + "schema_with_content": "performance : concert_id (4, 3, 6), theme (\"Bleeding Love\", \"Party All Night\", \"Party All Night\"), year (\"2014\", \"2015\"), concert_name (\"Home Visits\", \"Week 1\", \"Week 2\"), stadium_id (\"10\", \"2\", \"2\") | singer_in_concert : singer_id (\"5\", \"5\", \"3\"), concert_id (2, 1, 6) | singer : country (\"Netherlands\", \"United States\", \"France\"), name (\"Joe Sharp\", \"Rose White\", \"Tribal King\"), singer_id (1, 5, 5), song_release_year (\"2008\", \"2013\", \"2014\"), is_male (\"F\", \"T\"), song_name (\"Gentleman\", \"Gentleman\", \"You\"), age (25, 25, 52) | stadium : capacity (4125, 2000, 4125), name (\"Forthbank Stadium\", \"Stark's Park\", \"Hampden Park\"), location (\"Ayr United\", \"Queen's Park\", \"Queen's Park\"), average (730, 730, 637), stadium_id (9, 3, 5), lowest (1294, 331, 533), highest (837, 1125, 1980) | gig : concert_id (4, 3, 6), theme (\"Bleeding Love\", \"Party All Night\", \"Party All Night\"), year (\"2014\", \"2015\"), concert_name (\"Home Visits\", \"Week 1\", \"Week 2\"), stadium_id (\"10\", \"2\", \"2\")", + "schema_without_content": "performance : concert_id , theme , year , concert_name , stadium_id | singer_in_concert : singer_id , concert_id | singer : country , name , singer_id , song_release_year , is_male , song_name , age | stadium : capacity , name , location , average , stadium_id , lowest , highest | gig : concert_id , theme , year , concert_name , stadium_id", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "stadium name": "stadium.Name", + "number of concerts": "concert" + } + }, + { + "question": "for each #stadium# , how many #concerts# play there?", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t1.stadium_id", + "schema_with_content": "singer_in_concert : singer_id (\"5\", \"5\", \"4\"), concert_id (3, 4, 1) | concert : concert_name (\"Week 1\", \"Auditions\", \"Home Visits\"), year (\"2014\", \"2015\"), stadium_id (\"2\", \"9\", \"10\"), concert_id (1, 2, 2), theme (\"Bleeding Love\", \"Free choice 2\", \"Party All Night\") | venue : lowest (315, 404, 1294), stadium_id (6, 4, 5), average (1477, 637, 2106), location (\"Stirling Albion\", \"Queen's Park\", \"Brechin City\"), name (\"Recreation Park\", \"Gayfield Park\", \"Gayfield Park\"), highest (1125, 921, 837), capacity (10104, 52500, 4000) | arena : lowest (315, 404, 1294), stadium_id (6, 4, 5), average (1477, 637, 2106), location (\"Stirling Albion\", \"Queen's Park\", \"Brechin City\"), name (\"Recreation Park\", \"Gayfield Park\", \"Gayfield Park\"), highest (1125, 921, 837), capacity (10104, 52500, 4000) | singer : singer_id (4, 2, 4), is_male (\"F\", \"T\"), age (32, 32, 29), song_release_year (\"2013\", \"2016\", \"2008\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Justin Brown\", \"Joe Sharp\", \"Joe Sharp\"), song_name (\"Gentleman\", \"You\", \"Dangerous\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | concert : concert_name , year , stadium_id , concert_id , theme | venue : lowest , stadium_id , average , location , name , highest , capacity | arena : lowest , stadium_id , average , location , name , highest , capacity | singer : singer_id , is_male , age , song_release_year , country , name , song_name", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "stadium": "stadium", + "concerts": "concert", + "name": "stadium.Name" + } + }, + { + "question": "for each #stadium# , how many #concerts# play there?", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t1.stadium_id", + "schema_with_content": "gig : concert_id (1, 1, 5), stadium_id (\"1\", \"9\", \"7\"), theme (\"Wide Awake\", \"Free choice 2\", \"Happy Tonight\"), year (\"2014\", \"2015\"), concert_name (\"Week 1\", \"Week 1\", \"Super bootcamp\") | singer_in_concert : concert_id (1, 6, 6), singer_id (\"2\", \"3\", \"4\") | singer : singer_id (5, 4, 3), age (29, 32, 32), song_name (\"Gentleman\", \"Sun\", \"Love\"), song_release_year (\"2016\", \"2003\", \"2014\"), name (\"Joe Sharp\", \"Tribal King\", \"Tribal King\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\") | stadium : location (\"Brechin City\", \"Ayr United\", \"Peterhead\"), stadium_id (9, 10, 3), highest (1763, 2363, 1980), capacity (10104, 3808, 4000), name (\"Gayfield Park\", \"Stark's Park\", \"Forthbank Stadium\"), lowest (411, 1294, 533), average (642, 1477, 637) | performance : concert_id (1, 1, 5), stadium_id (\"1\", \"9\", \"7\"), theme (\"Wide Awake\", \"Free choice 2\", \"Happy Tonight\"), year (\"2014\", \"2015\"), concert_name (\"Week 1\", \"Week 1\", \"Super bootcamp\")", + "schema_without_content": "gig : concert_id , stadium_id , theme , year , concert_name | singer_in_concert : concert_id , singer_id | singer : singer_id , age , song_name , song_release_year , name , is_male , country | stadium : location , stadium_id , highest , capacity , name , lowest , average | performance : concert_id , stadium_id , theme , year , concert_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "stadium": "stadium", + "concerts": "concert", + "name": "stadium.Name" + } + }, + { + "question": "show the #stadium name# and #capacity# with most number of #concerts in year# 2014 or after.", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year >= 2014 group by t2.stadium_id order by count(*) desc limit 1", + "schema_with_content": "singer_in_concert : concert_id (4, 1, 3), singer_id (\"6\", \"6\", \"2\") | arena : capacity (52500, 11998, 3100), stadium_id (5, 7, 7), average (730, 2106, 864), name (\"Glebe Park\", \"Balmoor\", \"Bayview Stadium\"), highest (921, 1057, 1763), location (\"East Fife\", \"Arbroath\", \"Alloa Athletic\"), lowest (1294, 1294, 466) | venue : capacity (52500, 11998, 3100), stadium_id (5, 7, 7), average (730, 2106, 864), name (\"Glebe Park\", \"Balmoor\", \"Bayview Stadium\"), highest (921, 1057, 1763), location (\"East Fife\", \"Arbroath\", \"Alloa Athletic\"), lowest (1294, 1294, 466) | singer : country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Dangerous\", \"Dangerous\", \"Dangerous\"), is_male (\"F\", \"T\"), song_release_year (\"2014\", \"2014\", \"1992\"), age (43, 29, 29), singer_id (2, 5, 1), name (\"Timbaland\", \"Rose White\", \"Joe Sharp\") | concert : concert_id (1, 4, 4), concert_name (\"Week 2\", \"Home Visits\", \"Auditions\"), stadium_id (\"7\", \"7\", \"10\"), year (\"2014\", \"2015\"), theme (\"Free choice\", \"Bleeding Love\", \"Free choice\")", + "schema_without_content": "singer_in_concert : concert_id , singer_id | arena : capacity , stadium_id , average , name , highest , location , lowest | venue : capacity , stadium_id , average , name , highest , location , lowest | singer : country , song_name , is_male , song_release_year , age , singer_id , name | concert : concert_id , concert_name , stadium_id , year , theme", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "stadium name": "stadium.Name", + "capacity": "stadium.Capacity", + "concerts in year": "concert.Year" + } + }, + { + "question": "show the #stadium name# and #capacity# with most number of #concerts in year# 2014 or after.", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year >= 2014 group by t2.stadium_id order by count(*) desc limit 1", + "schema_with_content": "gig : concert_id (4, 3, 3), theme (\"Party All Night\", \"Free choice\", \"Bleeding Love\"), year (\"2014\", \"2015\"), stadium_id (\"9\", \"1\", \"1\"), concert_name (\"Week 1\", \"Auditions\", \"Home Visits\") | performance : concert_id (4, 3, 3), theme (\"Party All Night\", \"Free choice\", \"Bleeding Love\"), year (\"2014\", \"2015\"), stadium_id (\"9\", \"1\", \"1\"), concert_name (\"Week 1\", \"Auditions\", \"Home Visits\") | singer_in_concert : singer_id (\"5\", \"3\", \"3\"), concert_id (1, 6, 2) | stadium : name (\"Stark's Park\", \"Stark's Park\", \"Glebe Park\"), stadium_id (1, 5, 7), capacity (4000, 3960, 11998), lowest (404, 1057, 400), location (\"Ayr United\", \"Queen's Park\", \"Queen's Park\"), average (642, 642, 615), highest (1125, 1057, 4812) | singer : country (\"Netherlands\", \"United States\", \"France\"), name (\"Rose White\", \"Timbaland\", \"Rose White\"), song_release_year (\"2014\", \"2013\", \"2016\"), is_male (\"F\", \"T\"), singer_id (5, 1, 2), age (52, 29, 41), song_name (\"Hey Oh\", \"Gentleman\", \"Sun\")", + "schema_without_content": "gig : concert_id , theme , year , stadium_id , concert_name | performance : concert_id , theme , year , stadium_id , concert_name | singer_in_concert : singer_id , concert_id | stadium : name , stadium_id , capacity , lowest , location , average , highest | singer : country , name , song_release_year , is_male , singer_id , age , song_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "stadium name": "stadium.Name", + "capacity": "stadium.Capacity", + "concerts in year": "concert.Year" + } + }, + { + "question": "which #year# has most number of #concerts# ?", + "db_id": "concert_singer", + "orig_query": "select year from concert group by year order by count(*) desc limit 1", + "schema_with_content": "singer : singer_id (6, 3, 2), country (\"Netherlands\", \"United States\", \"France\"), age (32, 43, 25), song_name (\"Love\", \"Dangerous\", \"You\"), name (\"Joe Sharp\", \"Justin Brown\", \"Timbaland\"), is_male (\"F\", \"T\"), song_release_year (\"2014\", \"2016\", \"2016\") | singer_in_concert : singer_id (\"4\", \"5\", \"4\"), concert_id (3, 5, 2) | stadium : name (\"Forthbank Stadium\", \"Forthbank Stadium\", \"Balmoor\"), lowest (1294, 1294, 331), location (\"Peterhead\", \"Arbroath\", \"Brechin City\"), stadium_id (2, 1, 4), highest (1057, 2363, 1125), capacity (52500, 4125, 11998), average (638, 637, 615) | gig : concert_id (1, 5, 1), stadium_id (\"9\", \"7\", \"1\"), year (\"2014\", \"2015\"), theme (\"Free choice\", \"Bleeding Love\", \"Happy Tonight\"), concert_name (\"Week 1\", \"Super bootcamp\", \"Week 1\") | performance : concert_id (1, 5, 1), stadium_id (\"9\", \"7\", \"1\"), year (\"2014\", \"2015\"), theme (\"Free choice\", \"Bleeding Love\", \"Happy Tonight\"), concert_name (\"Week 1\", \"Super bootcamp\", \"Week 1\")", + "schema_without_content": "singer : singer_id , country , age , song_name , name , is_male , song_release_year | singer_in_concert : singer_id , concert_id | stadium : name , lowest , location , stadium_id , highest , capacity , average | gig : concert_id , stadium_id , year , theme , concert_name | performance : concert_id , stadium_id , year , theme , concert_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "year": "concert.Year", + "concerts": "concert" + } + }, + { + "question": "what is the #year# that had the most #concerts# ?", + "db_id": "concert_singer", + "orig_query": "select year from concert group by year order by count(*) desc limit 1", + "schema_with_content": "singer_in_concert : singer_id (\"5\", \"6\", \"6\"), concert_id (3, 4, 3) | gig : concert_id (3, 5, 6), theme (\"Free choice 2\", \"Free choice\", \"Bleeding Love\"), stadium_id (\"10\", \"7\", \"2\"), year (\"2014\", \"2015\"), concert_name (\"Auditions\", \"Auditions\", \"Super bootcamp\") | performance : concert_id (3, 5, 6), theme (\"Free choice 2\", \"Free choice\", \"Bleeding Love\"), stadium_id (\"10\", \"7\", \"2\"), year (\"2014\", \"2015\"), concert_name (\"Auditions\", \"Auditions\", \"Super bootcamp\") | stadium : lowest (315, 400, 400), name (\"Recreation Park\", \"Stark's Park\", \"Hampden Park\"), highest (780, 2363, 780), average (637, 2106, 637), location (\"Arbroath\", \"Ayr United\", \"Raith Rovers\"), stadium_id (5, 2, 1), capacity (3100, 3960, 3960) | singer : is_male (\"F\", \"T\"), age (29, 41, 43), singer_id (5, 5, 3), song_name (\"You\", \"Gentleman\", \"Dangerous\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"John Nizinik\", \"John Nizinik\", \"Rose White\"), song_release_year (\"2013\", \"2013\", \"2014\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | gig : concert_id , theme , stadium_id , year , concert_name | performance : concert_id , theme , stadium_id , year , concert_name | stadium : lowest , name , highest , average , location , stadium_id , capacity | singer : is_male , age , singer_id , song_name , country , name , song_release_year", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "year": "concert.Year", + "concerts": "concert" + } + }, + { + "question": "show the #stadium names# without any #concert# .", + "db_id": "concert_singer", + "orig_query": "select name from stadium where stadium_id not in (select stadium_id from concert)", + "schema_with_content": "singer_in_concert : singer_id (\"5\", \"3\", \"6\"), concert_id (4, 6, 5) | concert : theme (\"Free choice\", \"Happy Tonight\", \"Happy Tonight\"), year (\"2014\", \"2015\"), stadium_id (\"1\", \"2\", \"1\"), concert_name (\"Super bootcamp\", \"Week 1\", \"Home Visits\"), concert_id (5, 2, 4) | venue : name (\"Forthbank Stadium\", \"Forthbank Stadium\", \"Recreation Park\"), highest (921, 1057, 837), capacity (10104, 3808, 11998), average (638, 1477, 552), location (\"East Fife\", \"Peterhead\", \"Peterhead\"), stadium_id (4, 4, 3), lowest (466, 331, 331) | singer : is_male (\"F\", \"T\"), song_release_year (\"2013\", \"2008\", \"2014\"), song_name (\"Sun\", \"Hey Oh\", \"Sun\"), name (\"Timbaland\", \"Timbaland\", \"Joe Sharp\"), singer_id (3, 4, 3), age (32, 25, 52), country (\"Netherlands\", \"United States\", \"France\") | arena : name (\"Forthbank Stadium\", \"Forthbank Stadium\", \"Recreation Park\"), highest (921, 1057, 837), capacity (10104, 3808, 11998), average (638, 1477, 552), location (\"East Fife\", \"Peterhead\", \"Peterhead\"), stadium_id (4, 4, 3), lowest (466, 331, 331)", + "schema_without_content": "singer_in_concert : singer_id , concert_id | concert : theme , year , stadium_id , concert_name , concert_id | venue : name , highest , capacity , average , location , stadium_id , lowest | singer : is_male , song_release_year , song_name , name , singer_id , age , country | arena : name , highest , capacity , average , location , stadium_id , lowest", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "stadium names": "stadium.Name", + "concert": "concert" + } + }, + { + "question": "show the #stadium names# without any #concert# .", + "db_id": "concert_singer", + "orig_query": "select name from stadium where stadium_id not in (select stadium_id from concert)", + "schema_with_content": "singer : country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2016\", \"2013\", \"2016\"), name (\"Justin Brown\", \"Joe Sharp\", \"Timbaland\"), is_male (\"F\", \"T\"), song_name (\"Love\", \"Sun\", \"Sun\"), age (52, 25, 29), singer_id (3, 1, 6) | performance : concert_id (6, 5, 1), year (\"2014\", \"2015\"), theme (\"Free choice 2\", \"Bleeding Love\", \"Party All Night\"), stadium_id (\"2\", \"7\", \"10\"), concert_name (\"Auditions\", \"Auditions\", \"Week 2\") | singer_in_concert : singer_id (\"6\", \"5\", \"6\"), concert_id (5, 3, 2) | gig : concert_id (6, 5, 1), year (\"2014\", \"2015\"), theme (\"Free choice 2\", \"Bleeding Love\", \"Party All Night\"), stadium_id (\"2\", \"7\", \"10\"), concert_name (\"Auditions\", \"Auditions\", \"Week 2\") | stadium : average (2106, 2106, 642), stadium_id (5, 7, 2), capacity (3100, 52500, 10104), highest (1057, 2363, 1125), name (\"Glebe Park\", \"Recreation Park\", \"Forthbank Stadium\"), location (\"Arbroath\", \"Stirling Albion\", \"Raith Rovers\"), lowest (466, 1294, 1294)", + "schema_without_content": "singer : country , song_release_year , name , is_male , song_name , age , singer_id | performance : concert_id , year , theme , stadium_id , concert_name | singer_in_concert : singer_id , concert_id | gig : concert_id , year , theme , stadium_id , concert_name | stadium : average , stadium_id , capacity , highest , name , location , lowest", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "stadium names": "stadium.Name", + "concert": "concert" + } + }, + { + "question": "what are the #names of the stadiums# without any #concerts# ?", + "db_id": "concert_singer", + "orig_query": "select name from stadium where stadium_id not in (select stadium_id from concert)", + "schema_with_content": "singer_in_concert : singer_id (\"6\", \"6\", \"4\"), concert_id (2, 4, 4) | arena : average (638, 864, 1477), name (\"Bayview Stadium\", \"Glebe Park\", \"Hampden Park\"), location (\"Ayr United\", \"Peterhead\", \"Stirling Albion\"), highest (1125, 780, 2363), capacity (10104, 52500, 3100), lowest (411, 533, 400), stadium_id (1, 6, 7) | concert : concert_id (6, 2, 5), stadium_id (\"10\", \"9\", \"7\"), theme (\"Party All Night\", \"Wide Awake\", \"Free choice\"), concert_name (\"Week 2\", \"Home Visits\", \"Week 2\"), year (\"2014\", \"2015\") | singer : song_release_year (\"2013\", \"2014\", \"2008\"), song_name (\"Gentleman\", \"Dangerous\", \"Gentleman\"), name (\"Rose White\", \"John Nizinik\", \"Rose White\"), age (25, 43, 43), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (6, 2, 5) | venue : average (638, 864, 1477), name (\"Bayview Stadium\", \"Glebe Park\", \"Hampden Park\"), location (\"Ayr United\", \"Peterhead\", \"Stirling Albion\"), highest (1125, 780, 2363), capacity (10104, 52500, 3100), lowest (411, 533, 400), stadium_id (1, 6, 7)", + "schema_without_content": "singer_in_concert : singer_id , concert_id | arena : average , name , location , highest , capacity , lowest , stadium_id | concert : concert_id , stadium_id , theme , concert_name , year | singer : song_release_year , song_name , name , age , is_male , country , singer_id | venue : average , name , location , highest , capacity , lowest , stadium_id", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the stadiums": "stadium.Name", + "concerts": "concert" + } + }, + { + "question": "what are the #names of the stadiums# without any #concerts# ?", + "db_id": "concert_singer", + "orig_query": "select name from stadium where stadium_id not in (select stadium_id from concert)", + "schema_with_content": "singer : song_name (\"Sun\", \"Hey Oh\", \"You\"), is_male (\"F\", \"T\"), age (43, 25, 29), song_release_year (\"2013\", \"2016\", \"2016\"), name (\"John Nizinik\", \"Tribal King\", \"Joe Sharp\"), singer_id (5, 1, 2), country (\"Netherlands\", \"United States\", \"France\") | stadium : highest (1057, 1125, 921), capacity (4000, 3100, 4000), lowest (315, 411, 400), name (\"Balmoor\", \"Balmoor\", \"Gayfield Park\"), location (\"Raith Rovers\", \"Ayr United\", \"Peterhead\"), average (730, 642, 1477), stadium_id (10, 3, 9) | performance : theme (\"Wide Awake\", \"Free choice\", \"Party All Night\"), concert_name (\"Week 2\", \"Week 2\", \"Week 1\"), concert_id (4, 1, 4), year (\"2014\", \"2015\"), stadium_id (\"9\", \"7\", \"9\") | singer_in_concert : concert_id (6, 5, 2), singer_id (\"6\", \"4\", \"3\") | gig : theme (\"Wide Awake\", \"Free choice\", \"Party All Night\"), concert_name (\"Week 2\", \"Week 2\", \"Week 1\"), concert_id (4, 1, 4), year (\"2014\", \"2015\"), stadium_id (\"9\", \"7\", \"9\")", + "schema_without_content": "singer : song_name , is_male , age , song_release_year , name , singer_id , country | stadium : highest , capacity , lowest , name , location , average , stadium_id | performance : theme , concert_name , concert_id , year , stadium_id | singer_in_concert : concert_id , singer_id | gig : theme , concert_name , concert_id , year , stadium_id", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the stadiums": "stadium.Name", + "concerts": "concert" + } + }, + { + "question": "show #countries# where a #singer above age 40# and a #singer below 30# are from.", + "db_id": "concert_singer", + "orig_query": "select country from singer where age > 40 intersect select country from singer where age < 30", + "schema_with_content": "singer_in_concert : concert_id (5, 1, 3), singer_id (\"4\", \"5\", \"2\") | concert : theme (\"Wide Awake\", \"Free choice 2\", \"Free choice 2\"), concert_id (2, 1, 3), year (\"2014\", \"2015\"), concert_name (\"Super bootcamp\", \"Home Visits\", \"Auditions\"), stadium_id (\"2\", \"9\", \"7\") | artist : age (52, 52, 32), song_release_year (\"2008\", \"2003\", \"1992\"), singer_id (1, 6, 6), song_name (\"You\", \"Love\", \"You\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Rose White\", \"Rose White\", \"John Nizinik\") | stadium : lowest (533, 315, 400), average (730, 638, 864), location (\"Stirling Albion\", \"Stirling Albion\", \"Queen's Park\"), capacity (4000, 4000, 11998), stadium_id (1, 6, 4), name (\"Somerset Park\", \"Recreation Park\", \"Stark's Park\"), highest (1057, 780, 4812) | performer : age (52, 52, 32), song_release_year (\"2008\", \"2003\", \"1992\"), singer_id (1, 6, 6), song_name (\"You\", \"Love\", \"You\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Rose White\", \"Rose White\", \"John Nizinik\")", + "schema_without_content": "singer_in_concert : concert_id , singer_id | concert : theme , concert_id , year , concert_name , stadium_id | artist : age , song_release_year , singer_id , song_name , country , is_male , name | stadium : lowest , average , location , capacity , stadium_id , name , highest | performer : age , song_release_year , singer_id , song_name , country , is_male , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "singer.Country", + "singer above age 40": "singer.Age", + "singer below 30": "singer.Age" + } + }, + { + "question": "show #names for all stadiums# except for stadiums having a concert in #year# 2014.", + "db_id": "concert_singer", + "orig_query": "select name from stadium except select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014", + "schema_with_content": "venue : highest (1057, 1057, 837), capacity (11998, 3808, 4000), stadium_id (4, 9, 4), lowest (466, 1294, 315), location (\"East Fife\", \"Queen's Park\", \"Arbroath\"), name (\"Recreation Park\", \"Balmoor\", \"Somerset Park\"), average (552, 1477, 615) | arena : highest (1057, 1057, 837), capacity (11998, 3808, 4000), stadium_id (4, 9, 4), lowest (466, 1294, 315), location (\"East Fife\", \"Queen's Park\", \"Arbroath\"), name (\"Recreation Park\", \"Balmoor\", \"Somerset Park\"), average (552, 1477, 615) | singer_in_concert : singer_id (\"2\", \"4\", \"5\"), concert_id (1, 5, 5) | singer : singer_id (6, 3, 4), song_name (\"Hey Oh\", \"Love\", \"Gentleman\"), is_male (\"F\", \"T\"), age (43, 52, 25), country (\"Netherlands\", \"United States\", \"France\"), name (\"Justin Brown\", \"Tribal King\", \"Tribal King\"), song_release_year (\"2016\", \"2008\", \"2008\") | concert : theme (\"Bleeding Love\", \"Free choice\", \"Bleeding Love\"), year (\"2014\", \"2015\"), concert_id (3, 3, 1), concert_name (\"Super bootcamp\", \"Week 1\", \"Week 2\"), stadium_id (\"10\", \"2\", \"1\")", + "schema_without_content": "venue : highest , capacity , stadium_id , lowest , location , name , average | arena : highest , capacity , stadium_id , lowest , location , name , average | singer_in_concert : singer_id , concert_id | singer : singer_id , song_name , is_male , age , country , name , song_release_year | concert : theme , year , concert_id , concert_name , stadium_id", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names for all stadiums": "stadium.Name", + "stadiums": "stadium", + "year": "concert.Year" + } + }, + { + "question": "show #names for all stadiums# except for stadiums having a concert in #year# 2014.", + "db_id": "concert_singer", + "orig_query": "select name from stadium except select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014", + "schema_with_content": "singer : is_male (\"F\", \"T\"), name (\"Rose White\", \"John Nizinik\", \"Tribal King\"), singer_id (4, 4, 2), song_release_year (\"2013\", \"2016\", \"2003\"), song_name (\"Love\", \"Sun\", \"Love\"), country (\"Netherlands\", \"United States\", \"France\"), age (29, 25, 43) | gig : year (\"2014\", \"2015\"), theme (\"Wide Awake\", \"Free choice\", \"Bleeding Love\"), stadium_id (\"2\", \"2\", \"2\"), concert_id (3, 4, 3), concert_name (\"Week 2\", \"Super bootcamp\", \"Week 1\") | performance : year (\"2014\", \"2015\"), theme (\"Wide Awake\", \"Free choice\", \"Bleeding Love\"), stadium_id (\"2\", \"2\", \"2\"), concert_id (3, 4, 3), concert_name (\"Week 2\", \"Super bootcamp\", \"Week 1\") | singer_in_concert : singer_id (\"3\", \"2\", \"6\"), concert_id (4, 3, 6) | stadium : location (\"Ayr United\", \"Arbroath\", \"Queen's Park\"), stadium_id (10, 5, 9), lowest (404, 466, 1057), average (730, 615, 864), name (\"Stark's Park\", \"Recreation Park\", \"Glebe Park\"), capacity (4125, 3960, 4125), highest (1980, 1763, 837)", + "schema_without_content": "singer : is_male , name , singer_id , song_release_year , song_name , country , age | gig : year , theme , stadium_id , concert_id , concert_name | performance : year , theme , stadium_id , concert_id , concert_name | singer_in_concert : singer_id , concert_id | stadium : location , stadium_id , lowest , average , name , capacity , highest", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "names for all stadiums": "stadium.Name", + "stadiums": "stadium", + "year": "concert.Year" + } + }, + { + "question": "what are the #names of all stadiums# that did not have a #concert in 2014# ?", + "db_id": "concert_singer", + "orig_query": "select name from stadium except select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014", + "schema_with_content": "concert : year (\"2014\", \"2015\"), concert_id (4, 3, 3), concert_name (\"Week 2\", \"Week 1\", \"Week 1\"), stadium_id (\"9\", \"7\", \"7\"), theme (\"Free choice\", \"Free choice 2\", \"Bleeding Love\") | arena : name (\"Recreation Park\", \"Somerset Park\", \"Balmoor\"), average (730, 1477, 864), capacity (3100, 3808, 4125), stadium_id (4, 6, 6), location (\"Brechin City\", \"Raith Rovers\", \"Queen's Park\"), highest (1980, 837, 1057), lowest (400, 466, 533) | singer_in_concert : concert_id (3, 3, 4), singer_id (\"6\", \"3\", \"5\") | singer : is_male (\"F\", \"T\"), age (43, 32, 25), name (\"Rose White\", \"John Nizinik\", \"Timbaland\"), song_name (\"Dangerous\", \"Dangerous\", \"Hey Oh\"), song_release_year (\"2008\", \"2016\", \"2013\"), singer_id (6, 1, 3), country (\"Netherlands\", \"United States\", \"France\") | venue : name (\"Recreation Park\", \"Somerset Park\", \"Balmoor\"), average (730, 1477, 864), capacity (3100, 3808, 4125), stadium_id (4, 6, 6), location (\"Brechin City\", \"Raith Rovers\", \"Queen's Park\"), highest (1980, 837, 1057), lowest (400, 466, 533)", + "schema_without_content": "concert : year , concert_id , concert_name , stadium_id , theme | arena : name , average , capacity , stadium_id , location , highest , lowest | singer_in_concert : concert_id , singer_id | singer : is_male , age , name , song_name , song_release_year , singer_id , country | venue : name , average , capacity , stadium_id , location , highest , lowest", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of all stadiums": "stadium.Name", + "concert in 2014": "concert.Year" + } + }, + { + "question": "what are the #names of all stadiums# that did not have a #concert in 2014# ?", + "db_id": "concert_singer", + "orig_query": "select name from stadium except select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014", + "schema_with_content": "singer_in_concert : singer_id (\"3\", \"2\", \"2\"), concert_id (2, 4, 6) | singer : song_name (\"You\", \"Sun\", \"Love\"), name (\"Tribal King\", \"John Nizinik\", \"Timbaland\"), age (41, 41, 29), song_release_year (\"2008\", \"2014\", \"2016\"), is_male (\"F\", \"T\"), singer_id (5, 3, 3), country (\"Netherlands\", \"United States\", \"France\") | stadium : capacity (4125, 10104, 11998), location (\"Stirling Albion\", \"Peterhead\", \"Peterhead\"), name (\"Gayfield Park\", \"Gayfield Park\", \"Balmoor\"), lowest (1057, 331, 315), highest (1057, 2363, 921), average (642, 864, 637), stadium_id (9, 7, 7) | gig : concert_id (3, 4, 6), stadium_id (\"9\", \"2\", \"9\"), year (\"2014\", \"2015\"), theme (\"Free choice 2\", \"Free choice 2\", \"Happy Tonight\"), concert_name (\"Week 1\", \"Week 1\", \"Week 1\") | performance : concert_id (3, 4, 6), stadium_id (\"9\", \"2\", \"9\"), year (\"2014\", \"2015\"), theme (\"Free choice 2\", \"Free choice 2\", \"Happy Tonight\"), concert_name (\"Week 1\", \"Week 1\", \"Week 1\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | singer : song_name , name , age , song_release_year , is_male , singer_id , country | stadium : capacity , location , name , lowest , highest , average , stadium_id | gig : concert_id , stadium_id , year , theme , concert_name | performance : concert_id , stadium_id , year , theme , concert_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "names of all stadiums": "stadium.Name", + "concert in 2014": "concert.Year" + } + }, + { + "question": "show the #name# and #theme# for all concerts and the #number of singers# in each concert.", + "db_id": "concert_singer", + "orig_query": "select t2.concert_name, t2.theme, count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", + "schema_with_content": "performance : year (\"2014\", \"2015\"), concert_id (4, 5, 1), theme (\"Bleeding Love\", \"Free choice 2\", \"Wide Awake\"), concert_name (\"Auditions\", \"Week 1\", \"Week 1\"), stadium_id (\"7\", \"10\", \"1\") | gig : year (\"2014\", \"2015\"), concert_id (4, 5, 1), theme (\"Bleeding Love\", \"Free choice 2\", \"Wide Awake\"), concert_name (\"Auditions\", \"Week 1\", \"Week 1\"), stadium_id (\"7\", \"10\", \"1\") | singer : age (41, 29, 43), singer_id (2, 3, 6), country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2013\", \"2016\", \"1992\"), name (\"John Nizinik\", \"Timbaland\", \"Rose White\"), is_male (\"F\", \"T\"), song_name (\"Dangerous\", \"Gentleman\", \"Dangerous\") | stadium : location (\"Peterhead\", \"Brechin City\", \"Queen's Park\"), name (\"Stark's Park\", \"Somerset Park\", \"Hampden Park\"), highest (1763, 1125, 1057), average (638, 615, 615), capacity (3960, 4125, 10104), lowest (315, 466, 411), stadium_id (3, 7, 4) | singer_in_concert : singer_id (\"2\", \"5\", \"4\"), concert_id (6, 5, 6)", + "schema_without_content": "performance : year , concert_id , theme , concert_name , stadium_id | gig : year , concert_id , theme , concert_name , stadium_id | singer : age , singer_id , country , song_release_year , name , is_male , song_name | stadium : location , name , highest , average , capacity , lowest , stadium_id | singer_in_concert : singer_id , concert_id", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "concert.concert_Name", + "theme": "concert.Theme", + "number of singers": "singer_in_concert" + } + }, + { + "question": "show the #name# and #theme# for all concerts and the #number of singers# in each concert.", + "db_id": "concert_singer", + "orig_query": "select t2.concert_name, t2.theme, count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", + "schema_with_content": "concert_artist : singer_id (\"4\", \"6\", \"3\"), concert_id (4, 2, 4) | stadium : stadium_id (4, 5, 3), location (\"East Fife\", \"Brechin City\", \"Alloa Athletic\"), name (\"Glebe Park\", \"Forthbank Stadium\", \"Stark's Park\"), highest (4812, 921, 2363), capacity (4125, 2000, 10104), average (864, 730, 615), lowest (400, 533, 404) | concert_performer : singer_id (\"4\", \"6\", \"3\"), concert_id (4, 2, 4) | concert : concert_name (\"Super bootcamp\", \"Auditions\", \"Super bootcamp\"), stadium_id (\"7\", \"2\", \"7\"), theme (\"Party All Night\", \"Happy Tonight\", \"Free choice\"), year (\"2014\", \"2015\"), concert_id (3, 2, 4) | singer : name (\"Rose White\", \"Timbaland\", \"John Nizinik\"), song_name (\"Hey Oh\", \"Dangerous\", \"Dangerous\"), singer_id (2, 2, 3), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), song_release_year (\"2016\", \"2013\", \"2016\"), age (43, 25, 52)", + "schema_without_content": "concert_artist : singer_id , concert_id | stadium : stadium_id , location , name , highest , capacity , average , lowest | concert_performer : singer_id , concert_id | concert : concert_name , stadium_id , theme , year , concert_id | singer : name , song_name , singer_id , country , is_male , song_release_year , age", + "extra_map": null, + "extra_table_map": { + "singer_in_concert": [ + "concert_performer", + "concert_artist" + ] + }, + "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" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "column_linking_gt": { + "name": "concert.concert_Name", + "theme": "concert.Theme", + "number of singers": "singer_in_concert" + } + }, + { + "question": "list #singer names# and #number of concerts# for each singer.", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id group by t2.singer_id", + "schema_with_content": "singer_in_concert : singer_id (\"2\", \"5\", \"6\"), concert_id (5, 2, 4) | artist : age (52, 25, 25), is_male (\"F\", \"T\"), singer_id (4, 2, 5), song_release_year (\"2014\", \"2014\", \"2014\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Joe Sharp\", \"Rose White\", \"Justin Brown\"), song_name (\"Love\", \"Love\", \"Sun\") | performer : age (52, 25, 25), is_male (\"F\", \"T\"), singer_id (4, 2, 5), song_release_year (\"2014\", \"2014\", \"2014\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Joe Sharp\", \"Rose White\", \"Justin Brown\"), song_name (\"Love\", \"Love\", \"Sun\") | stadium : lowest (1294, 315, 315), stadium_id (9, 2, 7), average (2106, 552, 642), name (\"Glebe Park\", \"Gayfield Park\", \"Balmoor\"), highest (2363, 1125, 1057), location (\"East Fife\", \"Stirling Albion\", \"Alloa Athletic\"), capacity (10104, 4125, 10104) | concert : stadium_id (\"7\", \"1\", \"2\"), year (\"2014\", \"2015\"), theme (\"Free choice\", \"Bleeding Love\", \"Party All Night\"), concert_id (5, 4, 2), concert_name (\"Home Visits\", \"Auditions\", \"Week 2\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | artist : age , is_male , singer_id , song_release_year , country , name , song_name | performer : age , is_male , singer_id , song_release_year , country , name , song_name | stadium : lowest , stadium_id , average , name , highest , location , capacity | concert : stadium_id , year , theme , concert_id , concert_name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "singer names": "singer.Name", + "number of concerts": "singer_in_concert" + } + }, + { + "question": "list #singer names# and #number of concerts# for each singer.", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id group by t2.singer_id", + "schema_with_content": "concert_artist : singer_id (\"3\", \"4\", \"2\"), concert_id (3, 3, 6) | singer : song_release_year (\"2003\", \"2008\", \"2013\"), singer_id (2, 5, 5), is_male (\"F\", \"T\"), age (25, 25, 52), name (\"Joe Sharp\", \"Rose White\", \"Rose White\"), song_name (\"Love\", \"Sun\", \"You\"), country (\"Netherlands\", \"United States\", \"France\") | stadium : name (\"Recreation Park\", \"Bayview Stadium\", \"Hampden Park\"), highest (837, 1763, 1763), stadium_id (1, 4, 5), capacity (3808, 3808, 3960), average (552, 1477, 552), lowest (411, 1057, 315), location (\"Arbroath\", \"East Fife\", \"East Fife\") | concert : year (\"2014\", \"2015\"), concert_id (3, 4, 5), concert_name (\"Week 2\", \"Week 2\", \"Home Visits\"), theme (\"Free choice 2\", \"Free choice 2\", \"Party All Night\"), stadium_id (\"1\", \"2\", \"9\") | concert_performer : singer_id (\"3\", \"4\", \"2\"), concert_id (3, 3, 6)", + "schema_without_content": "concert_artist : singer_id , concert_id | singer : song_release_year , singer_id , is_male , age , name , song_name , country | stadium : name , highest , stadium_id , capacity , average , lowest , location | concert : year , concert_id , concert_name , theme , stadium_id | concert_performer : singer_id , concert_id", + "extra_map": null, + "extra_table_map": { + "singer_in_concert": [ + "concert_performer", + "concert_artist" + ] + }, + "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" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "column_linking_gt": { + "singer names": "singer.Name", + "number of concerts": "singer_in_concert" + } + }, + { + "question": "what are the #names of the singers# and #number of concerts# for each person?", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id group by t2.singer_id", + "schema_with_content": "concert : theme (\"Free choice\", \"Happy Tonight\", \"Free choice\"), year (\"2014\", \"2015\"), stadium_id (\"2\", \"7\", \"9\"), concert_name (\"Week 2\", \"Week 2\", \"Auditions\"), concert_id (2, 1, 2) | singer_in_concert : concert_id (5, 2, 4), singer_id (\"2\", \"2\", \"3\") | performer : is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Justin Brown\", \"Justin Brown\"), song_name (\"Dangerous\", \"Love\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), age (52, 25, 29), singer_id (1, 4, 3), song_release_year (\"2014\", \"2008\", \"2016\") | stadium : location (\"Stirling Albion\", \"Queen's Park\", \"Arbroath\"), stadium_id (7, 3, 2), average (2106, 638, 637), lowest (331, 411, 1294), highest (4812, 921, 837), capacity (2000, 4000, 3960), name (\"Balmoor\", \"Forthbank Stadium\", \"Stark's Park\") | artist : is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Justin Brown\", \"Justin Brown\"), song_name (\"Dangerous\", \"Love\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), age (52, 25, 29), singer_id (1, 4, 3), song_release_year (\"2014\", \"2008\", \"2016\")", + "schema_without_content": "concert : theme , year , stadium_id , concert_name , concert_id | singer_in_concert : concert_id , singer_id | performer : is_male , name , song_name , country , age , singer_id , song_release_year | stadium : location , stadium_id , average , lowest , highest , capacity , name | artist : is_male , name , song_name , country , age , singer_id , song_release_year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "number of concerts": "singer_in_concert.concert_ID" + } + }, + { + "question": "what are the #names of the singers# and #number of concerts# for each person?", + "db_id": "concert_singer", + "orig_query": "select t2.name, count(*) from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id group by t2.singer_id", + "schema_with_content": "stadium : average (2106, 638, 1477), stadium_id (5, 7, 5), location (\"Arbroath\", \"Peterhead\", \"Brechin City\"), highest (1763, 1125, 921), name (\"Stark's Park\", \"Glebe Park\", \"Somerset Park\"), lowest (466, 1057, 404), capacity (2000, 3808, 10104) | concert_performer : concert_id (3, 2, 6), singer_id (\"4\", \"3\", \"6\") | concert_artist : concert_id (3, 2, 6), singer_id (\"4\", \"3\", \"6\") | singer : song_release_year (\"2014\", \"2013\", \"2008\"), song_name (\"Gentleman\", \"Gentleman\", \"Sun\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), name (\"Tribal King\", \"John Nizinik\", \"Joe Sharp\"), age (52, 41, 52), singer_id (3, 1, 3) | concert : year (\"2014\", \"2015\"), concert_id (6, 5, 5), stadium_id (\"9\", \"1\", \"9\"), theme (\"Happy Tonight\", \"Bleeding Love\", \"Free choice 2\"), concert_name (\"Home Visits\", \"Week 2\", \"Auditions\")", + "schema_without_content": "stadium : average , stadium_id , location , highest , name , lowest , capacity | concert_performer : concert_id , singer_id | concert_artist : concert_id , singer_id | singer : song_release_year , song_name , is_male , country , name , age , singer_id | concert : year , concert_id , stadium_id , theme , concert_name", + "extra_map": null, + "extra_table_map": { + "singer_in_concert": [ + "concert_performer", + "concert_artist" + ] + }, + "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" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "number of concerts": "singer_in_concert.concert_ID" + } + }, + { + "question": "list all #singer names in concerts in year# 2014.", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "performer : song_name (\"Hey Oh\", \"Sun\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), age (25, 29, 29), is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Joe Sharp\", \"Rose White\"), singer_id (5, 1, 2), song_release_year (\"2014\", \"2003\", \"2008\") | artist : song_name (\"Hey Oh\", \"Sun\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), age (25, 29, 29), is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Joe Sharp\", \"Rose White\"), singer_id (5, 1, 2), song_release_year (\"2014\", \"2003\", \"2008\") | singer_in_concert : concert_id (4, 1, 1), singer_id (\"6\", \"4\", \"3\") | stadium : stadium_id (2, 10, 1), highest (1980, 1057, 780), lowest (466, 411, 331), location (\"Raith Rovers\", \"Alloa Athletic\", \"Ayr United\"), name (\"Recreation Park\", \"Gayfield Park\", \"Balmoor\"), capacity (2000, 2000, 10104), average (2106, 552, 642) | concert : stadium_id (\"2\", \"9\", \"2\"), concert_name (\"Week 1\", \"Auditions\", \"Auditions\"), theme (\"Party All Night\", \"Free choice\", \"Bleeding Love\"), concert_id (5, 6, 3), year (\"2014\", \"2015\")", + "schema_without_content": "performer : song_name , country , age , is_male , name , singer_id , song_release_year | artist : song_name , country , age , is_male , name , singer_id , song_release_year | singer_in_concert : concert_id , singer_id | stadium : stadium_id , highest , lowest , location , name , capacity , average | concert : stadium_id , concert_name , theme , concert_id , year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "singer names in concerts in year": "singer.Name" + } + }, + { + "question": "list all #singer names in concerts in year# 2014.", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "performance : theme (\"Happy Tonight\", \"Happy Tonight\", \"Happy Tonight\"), concert_id (5, 3, 5), year (\"2014\", \"2015\"), stadium_id (\"10\", \"2\", \"10\"), concert_name (\"Super bootcamp\", \"Week 1\", \"Week 1\") | singer : country (\"Netherlands\", \"United States\", \"France\"), singer_id (2, 2, 2), name (\"Joe Sharp\", \"Justin Brown\", \"Timbaland\"), age (43, 25, 52), song_name (\"Dangerous\", \"Dangerous\", \"Hey Oh\"), is_male (\"F\", \"T\"), song_release_year (\"2003\", \"2013\", \"2014\") | gig : theme (\"Happy Tonight\", \"Happy Tonight\", \"Happy Tonight\"), concert_id (5, 3, 5), year (\"2014\", \"2015\"), stadium_id (\"10\", \"2\", \"10\"), concert_name (\"Super bootcamp\", \"Week 1\", \"Week 1\") | singer_in_concert : singer_id (\"4\", \"3\", \"5\"), concert_id (2, 4, 5) | stadium : average (2106, 642, 615), name (\"Forthbank Stadium\", \"Glebe Park\", \"Somerset Park\"), location (\"Brechin City\", \"Ayr United\", \"Alloa Athletic\"), lowest (466, 315, 1057), highest (837, 921, 780), stadium_id (9, 5, 10), capacity (2000, 4125, 2000)", + "schema_without_content": "performance : theme , concert_id , year , stadium_id , concert_name | singer : country , singer_id , name , age , song_name , is_male , song_release_year | gig : theme , concert_id , year , stadium_id , concert_name | singer_in_concert : singer_id , concert_id | stadium : average , name , location , lowest , highest , stadium_id , capacity", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "singer names in concerts in year": "singer.Name" + } + }, + { + "question": "list all #singer names in concerts in year# 2014.", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "stadium : name (\"Glebe Park\", \"Glebe Park\", \"Hampden Park\"), capacity (10104, 11998, 3100), lowest (404, 1057, 331), highest (2363, 780, 780), location (\"Raith Rovers\", \"Peterhead\", \"Brechin City\"), average (637, 615, 2106), stadium_id (3, 7, 4) | concert : stadium_id (\"1\", \"1\", \"7\"), concert_id (1, 1, 6), year (\"2014\", \"2015\"), theme (\"Free choice\", \"Free choice 2\", \"Party All Night\"), concert_name (\"Auditions\", \"Auditions\", \"Home Visits\") | concert_performer : singer_id (\"5\", \"2\", \"2\"), concert_id (1, 4, 3) | singer : song_release_year (\"2013\", \"2016\", \"2008\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (1, 5, 5), song_name (\"Hey Oh\", \"Gentleman\", \"Gentleman\"), name (\"Tribal King\", \"Justin Brown\", \"Justin Brown\"), age (25, 32, 32), is_male (\"F\", \"T\") | concert_artist : singer_id (\"5\", \"2\", \"2\"), concert_id (1, 4, 3)", + "schema_without_content": "stadium : name , capacity , lowest , highest , location , average , stadium_id | concert : stadium_id , concert_id , year , theme , concert_name | concert_performer : singer_id , concert_id | singer : song_release_year , country , singer_id , song_name , name , age , is_male | concert_artist : singer_id , concert_id", + "extra_map": null, + "extra_table_map": { + "singer_in_concert": [ + "concert_performer", + "concert_artist" + ] + }, + "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" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "column_linking_gt": { + "singer names in concerts in year": "singer.Name" + } + }, + { + "question": "what are the #names of the singers# who performed in a #concert in 2014# ?", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "singer_in_concert : concert_id (4, 5, 1), singer_id (\"2\", \"5\", \"6\") | stadium : location (\"Ayr United\", \"Arbroath\", \"Arbroath\"), name (\"Bayview Stadium\", \"Gayfield Park\", \"Somerset Park\"), lowest (404, 404, 411), highest (2363, 1125, 837), stadium_id (9, 1, 5), capacity (3960, 11998, 3100), average (552, 637, 615) | performer : singer_id (1, 2, 4), song_release_year (\"1992\", \"2014\", \"2013\"), name (\"Rose White\", \"Timbaland\", \"Tribal King\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Dangerous\", \"Dangerous\", \"Hey Oh\"), age (43, 43, 52) | artist : singer_id (1, 2, 4), song_release_year (\"1992\", \"2014\", \"2013\"), name (\"Rose White\", \"Timbaland\", \"Tribal King\"), is_male (\"F\", \"T\"), country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Dangerous\", \"Dangerous\", \"Hey Oh\"), age (43, 43, 52) | concert : stadium_id (\"1\", \"2\", \"7\"), theme (\"Free choice 2\", \"Party All Night\", \"Party All Night\"), year (\"2014\", \"2015\"), concert_name (\"Week 1\", \"Home Visits\", \"Week 2\"), concert_id (4, 5, 4)", + "schema_without_content": "singer_in_concert : concert_id , singer_id | stadium : location , name , lowest , highest , stadium_id , capacity , average | performer : singer_id , song_release_year , name , is_male , country , song_name , age | artist : singer_id , song_release_year , name , is_male , country , song_name , age | concert : stadium_id , theme , year , concert_name , concert_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "concert in 2014": "concert.Year" + } + }, + { + "question": "what are the #names of the singers# who performed in a #concert in 2014# ?", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "singer_in_concert : concert_id (6, 4, 6), singer_id (\"3\", \"5\", \"4\") | stadium : stadium_id (1, 6, 1), average (552, 637, 864), lowest (1294, 411, 1294), highest (837, 921, 921), capacity (10104, 4125, 52500), location (\"Ayr United\", \"Queen's Park\", \"Queen's Park\"), name (\"Somerset Park\", \"Glebe Park\", \"Forthbank Stadium\") | performance : year (\"2014\", \"2015\"), theme (\"Happy Tonight\", \"Happy Tonight\", \"Bleeding Love\"), concert_id (3, 5, 3), stadium_id (\"2\", \"2\", \"2\"), concert_name (\"Week 2\", \"Week 1\", \"Week 2\") | gig : year (\"2014\", \"2015\"), theme (\"Happy Tonight\", \"Happy Tonight\", \"Bleeding Love\"), concert_id (3, 5, 3), stadium_id (\"2\", \"2\", \"2\"), concert_name (\"Week 2\", \"Week 1\", \"Week 2\") | singer : country (\"Netherlands\", \"United States\", \"France\"), song_release_year (\"2013\", \"2016\", \"2003\"), song_name (\"Gentleman\", \"Gentleman\", \"Hey Oh\"), is_male (\"F\", \"T\"), singer_id (2, 5, 4), name (\"Justin Brown\", \"Rose White\", \"Rose White\"), age (29, 43, 32)", + "schema_without_content": "singer_in_concert : concert_id , singer_id | stadium : stadium_id , average , lowest , highest , capacity , location , name | performance : year , theme , concert_id , stadium_id , concert_name | gig : year , theme , concert_id , stadium_id , concert_name | singer : country , song_release_year , song_name , is_male , singer_id , name , age", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "concert in 2014": "concert.Year" + } + }, + { + "question": "what are the #names of the singers# who performed in a #concert in 2014# ?", + "db_id": "concert_singer", + "orig_query": "select t2.name from singer_in_concert as t1 join singer as t2 on t1.singer_id = t2.singer_id join concert as t3 on t1.concert_id = t3.concert_id where t3.year = 2014", + "schema_with_content": "concert_artist : concert_id (4, 5, 5), singer_id (\"6\", \"6\", \"6\") | singer : is_male (\"F\", \"T\"), age (32, 29, 29), country (\"Netherlands\", \"United States\", \"France\"), name (\"Timbaland\", \"Tribal King\", \"Justin Brown\"), singer_id (6, 4, 4), song_release_year (\"2016\", \"2016\", \"2016\"), song_name (\"You\", \"Gentleman\", \"Gentleman\") | concert : year (\"2014\", \"2015\"), stadium_id (\"9\", \"1\", \"1\"), theme (\"Bleeding Love\", \"Free choice 2\", \"Bleeding Love\"), concert_name (\"Auditions\", \"Week 1\", \"Week 2\"), concert_id (3, 5, 5) | stadium : location (\"Queen's Park\", \"Raith Rovers\", \"Queen's Park\"), stadium_id (7, 9, 2), lowest (404, 533, 315), average (1477, 2106, 1477), highest (1763, 2363, 1057), name (\"Forthbank Stadium\", \"Recreation Park\", \"Hampden Park\"), capacity (4125, 11998, 3960) | concert_performer : concert_id (4, 5, 5), singer_id (\"6\", \"6\", \"6\")", + "schema_without_content": "concert_artist : concert_id , singer_id | singer : is_male , age , country , name , singer_id , song_release_year , song_name | concert : year , stadium_id , theme , concert_name , concert_id | stadium : location , stadium_id , lowest , average , highest , name , capacity | concert_performer : concert_id , singer_id", + "extra_map": null, + "extra_table_map": { + "singer_in_concert": [ + "concert_performer", + "concert_artist" + ] + }, + "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" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "concert in 2014": "concert.Year" + } + }, + { + "question": "what is the #name# and #nation of the singer# who have a song having 'hey' in its name?", + "db_id": "concert_singer", + "orig_query": "select name, country from singer where song_name like '%Hey%'", + "schema_with_content": "stadium : highest (921, 1125, 4812), lowest (1057, 533, 315), average (638, 1477, 864), location (\"Queen's Park\", \"Arbroath\", \"Arbroath\"), capacity (2000, 10104, 2000), stadium_id (3, 5, 4), name (\"Stark's Park\", \"Recreation Park\", \"Forthbank Stadium\") | concert : stadium_id (\"9\", \"7\", \"7\"), concert_name (\"Week 2\", \"Auditions\", \"Week 1\"), theme (\"Free choice 2\", \"Free choice\", \"Happy Tonight\"), concert_id (5, 3, 4), year (\"2014\", \"2015\") | performer : song_release_year (\"2008\", \"2008\", \"2003\"), singer_id (4, 6, 5), age (43, 32, 52), song_name (\"Hey Oh\", \"Sun\", \"Sun\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Joe Sharp\", \"Justin Brown\") | artist : song_release_year (\"2008\", \"2008\", \"2003\"), singer_id (4, 6, 5), age (43, 32, 52), song_name (\"Hey Oh\", \"Sun\", \"Sun\"), country (\"Netherlands\", \"United States\", \"France\"), is_male (\"F\", \"T\"), name (\"Joe Sharp\", \"Joe Sharp\", \"Justin Brown\") | singer_in_concert : singer_id (\"4\", \"6\", \"4\"), concert_id (1, 6, 5)", + "schema_without_content": "stadium : highest , lowest , average , location , capacity , stadium_id , name | concert : stadium_id , concert_name , theme , concert_id , year | performer : song_release_year , singer_id , age , song_name , country , is_male , name | artist : song_release_year , singer_id , age , song_name , country , is_male , name | singer_in_concert : singer_id , concert_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "singer.Name", + "nation of the singer": "singer.Country", + "song name": "singer.Song_Name" + } + }, + { + "question": "what is the #name# and #country of origin# of every #singer# who has a song with the word 'hey' in its title?", + "db_id": "concert_singer", + "orig_query": "select name, country from singer where song_name like '%Hey%'", + "schema_with_content": "concert : theme (\"Party All Night\", \"Wide Awake\", \"Wide Awake\"), concert_name (\"Home Visits\", \"Auditions\", \"Super bootcamp\"), year (\"2014\", \"2015\"), concert_id (4, 5, 3), stadium_id (\"2\", \"2\", \"7\") | stadium : highest (837, 4812, 1057), lowest (404, 315, 315), capacity (2000, 52500, 3100), location (\"Ayr United\", \"East Fife\", \"Queen's Park\"), stadium_id (5, 9, 1), average (1477, 864, 2106), name (\"Glebe Park\", \"Forthbank Stadium\", \"Stark's Park\") | performer : song_name (\"Dangerous\", \"Gentleman\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (3, 5, 3), age (25, 43, 29), song_release_year (\"2008\", \"1992\", \"2003\"), is_male (\"F\", \"T\"), name (\"John Nizinik\", \"John Nizinik\", \"Rose White\") | singer_in_concert : singer_id (\"6\", \"3\", \"6\"), concert_id (1, 2, 3) | artist : song_name (\"Dangerous\", \"Gentleman\", \"Hey Oh\"), country (\"Netherlands\", \"United States\", \"France\"), singer_id (3, 5, 3), age (25, 43, 29), song_release_year (\"2008\", \"1992\", \"2003\"), is_male (\"F\", \"T\"), name (\"John Nizinik\", \"John Nizinik\", \"Rose White\")", + "schema_without_content": "concert : theme , concert_name , year , concert_id , stadium_id | stadium : highest , lowest , capacity , location , stadium_id , average , name | performer : song_name , country , singer_id , age , song_release_year , is_male , name | singer_in_concert : singer_id , concert_id | artist : song_name , country , singer_id , age , song_release_year , is_male , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "artist", + "performer" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "singer.Name", + "country of origin": "singer.Country", + "singer": "singer", + "song title": "singer.Song_Name" + } + }, + { + "question": "find the #name# and #location of the stadiums# which some #concerts# happened in the #years# of both 2014 and 2015.", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 intersect select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", + "schema_with_content": "singer : country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Gentleman\", \"Hey Oh\", \"Sun\"), singer_id (1, 3, 6), name (\"John Nizinik\", \"Rose White\", \"John Nizinik\"), is_male (\"F\", \"T\"), song_release_year (\"2016\", \"2013\", \"2003\"), age (43, 41, 29) | arena : location (\"Arbroath\", \"Peterhead\", \"Queen's Park\"), lowest (331, 404, 466), stadium_id (6, 2, 4), highest (1763, 1057, 837), average (638, 864, 642), capacity (11998, 10104, 10104), name (\"Bayview Stadium\", \"Forthbank Stadium\", \"Stark's Park\") | concert : theme (\"Bleeding Love\", \"Wide Awake\", \"Bleeding Love\"), stadium_id (\"10\", \"1\", \"9\"), concert_id (3, 1, 6), concert_name (\"Week 2\", \"Week 1\", \"Week 2\"), year (\"2014\", \"2015\") | venue : location (\"Arbroath\", \"Peterhead\", \"Queen's Park\"), lowest (331, 404, 466), stadium_id (6, 2, 4), highest (1763, 1057, 837), average (638, 864, 642), capacity (11998, 10104, 10104), name (\"Bayview Stadium\", \"Forthbank Stadium\", \"Stark's Park\") | singer_in_concert : concert_id (1, 3, 1), singer_id (\"2\", \"5\", \"5\")", + "schema_without_content": "singer : country , song_name , singer_id , name , is_male , song_release_year , age | arena : location , lowest , stadium_id , highest , average , capacity , name | concert : theme , stadium_id , concert_id , concert_name , year | venue : location , lowest , stadium_id , highest , average , capacity , name | singer_in_concert : concert_id , singer_id", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "stadium.Name", + "location of the stadiums": "stadium.Location", + "concerts": "concert", + "years": "concert.Year" + } + }, + { + "question": "find the #name# and #location of the stadiums# which some #concerts# happened in the #years# of both 2014 and 2015.", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 intersect select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", + "schema_with_content": "gig : theme (\"Bleeding Love\", \"Free choice\", \"Free choice 2\"), concert_name (\"Home Visits\", \"Week 1\", \"Week 1\"), concert_id (4, 5, 5), stadium_id (\"2\", \"7\", \"7\"), year (\"2014\", \"2015\") | singer : country (\"Netherlands\", \"United States\", \"France\"), singer_id (2, 1, 2), song_release_year (\"2008\", \"1992\", \"2014\"), song_name (\"Love\", \"Gentleman\", \"Love\"), age (32, 52, 41), is_male (\"F\", \"T\"), name (\"Timbaland\", \"Rose White\", \"Rose White\") | performance : theme (\"Bleeding Love\", \"Free choice\", \"Free choice 2\"), concert_name (\"Home Visits\", \"Week 1\", \"Week 1\"), concert_id (4, 5, 5), stadium_id (\"2\", \"7\", \"7\"), year (\"2014\", \"2015\") | singer_in_concert : concert_id (6, 5, 2), singer_id (\"5\", \"3\", \"4\") | stadium : capacity (3100, 3100, 52500), highest (2363, 837, 921), stadium_id (3, 1, 6), lowest (466, 1294, 315), average (864, 638, 638), name (\"Recreation Park\", \"Recreation Park\", \"Recreation Park\"), location (\"Raith Rovers\", \"East Fife\", \"Raith Rovers\")", + "schema_without_content": "gig : theme , concert_name , concert_id , stadium_id , year | singer : country , singer_id , song_release_year , song_name , age , is_male , name | performance : theme , concert_name , concert_id , stadium_id , year | singer_in_concert : concert_id , singer_id | stadium : capacity , highest , stadium_id , lowest , average , name , location", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "stadium.Name", + "location of the stadiums": "stadium.Location", + "concerts": "concert", + "years": "concert.Year" + } + }, + { + "question": "what are the #names# and #locations of the stadiums# that had #concerts# that occurred in both #2014# and #2015# ?", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 intersect select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", + "schema_with_content": "singer_in_concert : singer_id (\"5\", \"2\", \"2\"), concert_id (3, 2, 6) | singer : name (\"Tribal King\", \"Rose White\", \"Tribal King\"), is_male (\"F\", \"T\"), song_name (\"Gentleman\", \"Sun\", \"You\"), song_release_year (\"2008\", \"2013\", \"2013\"), age (43, 29, 43), singer_id (4, 4, 4), country (\"Netherlands\", \"United States\", \"France\") | venue : stadium_id (9, 2, 1), highest (780, 780, 921), average (552, 642, 864), lowest (404, 466, 404), capacity (11998, 4125, 3808), location (\"Brechin City\", \"Ayr United\", \"Ayr United\"), name (\"Somerset Park\", \"Gayfield Park\", \"Gayfield Park\") | concert : year (\"2014\", \"2015\"), theme (\"Free choice 2\", \"Wide Awake\", \"Free choice\"), concert_name (\"Home Visits\", \"Week 2\", \"Super bootcamp\"), stadium_id (\"7\", \"2\", \"7\"), concert_id (6, 2, 6) | arena : stadium_id (9, 2, 1), highest (780, 780, 921), average (552, 642, 864), lowest (404, 466, 404), capacity (11998, 4125, 3808), location (\"Brechin City\", \"Ayr United\", \"Ayr United\"), name (\"Somerset Park\", \"Gayfield Park\", \"Gayfield Park\")", + "schema_without_content": "singer_in_concert : singer_id , concert_id | singer : name , is_male , song_name , song_release_year , age , singer_id , country | venue : stadium_id , highest , average , lowest , capacity , location , name | concert : year , theme , concert_name , stadium_id , concert_id | arena : stadium_id , highest , average , lowest , capacity , location , name", + "extra_map": null, + "extra_table_map": { + "stadium": [ + "arena", + "venue" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names": "stadium.Name", + "locations of the stadiums": "stadium.Location", + "concerts": "concert", + "2014": "concert.Year", + "2015": "concert.Year" + } + }, + { + "question": "what are the #names# and #locations of the stadiums# that had #concerts# that occurred in both #2014# and #2015# ?", + "db_id": "concert_singer", + "orig_query": "select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 intersect select t2.name, t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", + "schema_with_content": "gig : theme (\"Happy Tonight\", \"Free choice 2\", \"Free choice\"), year (\"2014\", \"2015\"), stadium_id (\"10\", \"1\", \"2\"), concert_id (5, 6, 5), concert_name (\"Home Visits\", \"Week 2\", \"Home Visits\") | stadium : location (\"Brechin City\", \"Raith Rovers\", \"Ayr United\"), name (\"Bayview Stadium\", \"Balmoor\", \"Forthbank Stadium\"), capacity (3100, 11998, 11998), highest (921, 4812, 1763), lowest (400, 411, 1057), stadium_id (5, 4, 7), average (638, 642, 638) | singer_in_concert : concert_id (5, 2, 4), singer_id (\"2\", \"5\", \"2\") | singer : country (\"Netherlands\", \"United States\", \"France\"), song_name (\"Love\", \"Hey Oh\", \"Hey Oh\"), age (43, 32, 52), is_male (\"F\", \"T\"), singer_id (2, 5, 6), name (\"John Nizinik\", \"Joe Sharp\", \"Tribal King\"), song_release_year (\"1992\", \"2008\", \"2008\") | performance : theme (\"Happy Tonight\", \"Free choice 2\", \"Free choice\"), year (\"2014\", \"2015\"), stadium_id (\"10\", \"1\", \"2\"), concert_id (5, 6, 5), concert_name (\"Home Visits\", \"Week 2\", \"Home Visits\")", + "schema_without_content": "gig : theme , year , stadium_id , concert_id , concert_name | stadium : location , name , capacity , highest , lowest , stadium_id , average | singer_in_concert : concert_id , singer_id | singer : country , song_name , age , is_male , singer_id , name , song_release_year | performance : theme , year , stadium_id , concert_id , concert_name", + "extra_map": null, + "extra_table_map": { + "concert": [ + "gig", + "performance" + ] + }, + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "stadium.Name", + "locations of the stadiums": "stadium.Location", + "concerts": "concert", + "2014": "concert.Year", + "2015": "concert.Year" + } + }, + { + "question": "find the #number of pets# whose #weight# is heavier than 10.", + "db_id": "pets_1", + "orig_query": "select count(*) from pets where weight > 10", + "schema_with_content": "Companions : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | student : city_code (\"LOS\", \"HOU\", \"WAS\"), sex (\"F\", \"M\"), stuid (1009, 1017, 1019), fname (\"Derek\", \"Michael\", \"Arthur\"), advisor (2192, 7271, 9172), age (21, 20, 16), lname (\"Andreou\", \"Shieber\", \"Brown\"), major (600, 100, 550) | Animals : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1)", + "schema_without_content": "Companions : petid , pettype , weight , pet_age | has_pet : petid , stuid | student : city_code , sex , stuid , fname , advisor , age , lname , major | Animals : petid , pettype , weight , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "number of pets": "pets", + "weight": "pets.weight" + } + }, + { + "question": "how many #pets# have a greater #weight# than 10?", + "db_id": "pets_1", + "orig_query": "select count(*) from pets where weight > 10", + "schema_with_content": "Companions : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | Animals : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | student : age (27, 22, 17), city_code (\"ROC\", \"BAL\", \"PIT\"), stuid (1020, 1009, 1026), lname (\"Kim\", \"Andreou\", \"Pang\"), advisor (8721, 8721, 2311), sex (\"F\", \"M\"), fname (\"Jandy\", \"George\", \"William\"), major (600, 100, 100) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "Companions : pettype , pet_age , petid , weight | Animals : pettype , pet_age , petid , weight | student : age , city_code , stuid , lname , advisor , sex , fname , major | has_pet : stuid , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "pets": "pets", + "weight": "pets.weight" + } + }, + { + "question": "find the #weight of the youngest dog# .", + "db_id": "pets_1", + "orig_query": "select weight from pets order by pet_age limit 1", + "schema_with_content": "student : major (600, 550, 100), advisor (2311, 7792, 2311), fname (\"David\", \"Arthur\", \"Jandy\"), lname (\"Kim\", \"Schultz\", \"Kim\"), city_code (\"HKG\", \"PHL\", \"ROC\"), age (27, 27, 17), sex (\"F\", \"M\"), stuid (1011, 1016, 1014) | Animals : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Companions : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3)", + "schema_without_content": "student : major , advisor , fname , lname , city_code , age , sex , stuid | Animals : petid , pet_age , pettype , weight | has_pet : stuid , petid | Companions : petid , pet_age , pettype , weight", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "weight of the youngest dog": "Pets.weight" + } + }, + { + "question": "how much does the #youngest dog weigh# ?", + "db_id": "pets_1", + "orig_query": "select weight from pets order by pet_age limit 1", + "schema_with_content": "Companions : pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1) | student : city_code (\"SFO\", \"CHI\", \"NYC\"), age (18, 27, 17), sex (\"F\", \"M\"), major (520, 50, 540), fname (\"Paul\", \"Jandy\", \"Lisa\"), lname (\"Wilson\", \"Nelson\", \"Norris\"), stuid (1021, 1025, 1014), advisor (7271, 2311, 1148) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | Animals : pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1)", + "schema_without_content": "Companions : pettype , weight , petid , pet_age | student : city_code , age , sex , major , fname , lname , stuid , advisor | has_pet : petid , stuid | Animals : pettype , weight , petid , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "youngest dog weigh": "pets.weight" + } + }, + { + "question": "find the #maximum weight# for each type of pet. list the maximum weight and #pet type# .", + "db_id": "pets_1", + "orig_query": "select max(weight), pettype from pets group by pettype", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | student : sex (\"F\", \"M\"), advisor (8423, 9172, 8423), stuid (1011, 1010, 1009), city_code (\"DET\", \"DET\", \"DET\"), lname (\"Leighton\", \"Schmidt\", \"Apap\"), age (19, 22, 22), fname (\"Lisa\", \"Steven\", \"Michael\"), major (600, 50, 600) | Animals : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | Companions : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003)", + "schema_without_content": "has_pet : stuid , petid | student : sex , advisor , stuid , city_code , lname , age , fname , major | Animals : pet_age , pettype , weight , petid | Companions : pet_age , pettype , weight , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "maximum weight": "Pets.weight", + "pet type": "Pets.PetType" + } + }, + { + "question": "list the #maximum weight# and type for each #type of pet# .", + "db_id": "pets_1", + "orig_query": "select max(weight), pettype from pets group by pettype", + "schema_with_content": "Animals : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | student : fname (\"Jun\", \"William\", \"Steven\"), age (17, 16, 18), lname (\"Woods\", \"Tai\", \"Han\"), advisor (7712, 7792, 8723), stuid (1008, 1008, 1024), major (550, 100, 600), city_code (\"SFO\", \"PIT\", \"BAL\"), sex (\"F\", \"M\") | Companions : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003)", + "schema_without_content": "Animals : pet_age , pettype , weight , petid | has_pet : stuid , petid | student : fname , age , lname , advisor , stuid , major , city_code , sex | Companions : pet_age , pettype , weight , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "maximum weight": "Pets.weight", + "type of pet": "Pets.PetType" + } + }, + { + "question": "find #number of pets# owned by #students# who are #older than 20# .", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", + "schema_with_content": "enrollee : sex (\"F\", \"M\"), lname (\"Brown\", \"Rugh\", \"Prater\"), city_code (\"ATL\", \"YYZ\", \"PIT\"), advisor (2311, 1148, 8721), age (19, 18, 16), major (540, 100, 520), stuid (1026, 1017, 1017), fname (\"Stacy\", \"Derek\", \"William\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | learner : sex (\"F\", \"M\"), lname (\"Brown\", \"Rugh\", \"Prater\"), city_code (\"ATL\", \"YYZ\", \"PIT\"), advisor (2311, 1148, 8721), age (19, 18, 16), major (540, 100, 520), stuid (1026, 1017, 1017), fname (\"Stacy\", \"Derek\", \"William\")", + "schema_without_content": "enrollee : sex , lname , city_code , advisor , age , major , stuid , fname | has_pet : stuid , petid | pets : weight , petid , pettype , pet_age | learner : sex , lname , city_code , advisor , age , major , stuid , fname", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "number of pets": "has_pet.PetID", + "students": "student", + "older than 20": "student.Age" + } + }, + { + "question": "find #number of pets# owned by #students# who are #older than 20# .", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", + "schema_with_content": "pets : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | student : advisor (8723, 7723, 1121), fname (\"Eric\", \"Michael\", \"Jun\"), sex (\"F\", \"M\"), lname (\"Han\", \"Epp\", \"Kumar\"), stuid (1032, 1006, 1015), age (18, 27, 21), city_code (\"HOU\", \"WAS\", \"PHL\"), major (100, 540, 550) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | owns : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "pets : petid , weight , pettype , pet_age | student : advisor , fname , sex , lname , stuid , age , city_code , major | has_animal : petid , stuid | owns : petid , stuid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "number of pets": "has_pet.PetID", + "students": "student", + "older than 20": "student.Age" + } + }, + { + "question": "how many #pets# are owned by #students# that have an #age# greater than 20?", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", + "schema_with_content": "has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | learner : stuid (1020, 1022, 1027), lname (\"Norris\", \"Wilson\", \"Schwartz\"), advisor (8721, 1148, 9172), age (26, 16, 21), fname (\"Paul\", \"Lisa\", \"Lisa\"), city_code (\"CHI\", \"PHL\", \"NYC\"), major (100, 550, 50), sex (\"F\", \"M\") | pets : pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003) | enrollee : stuid (1020, 1022, 1027), lname (\"Norris\", \"Wilson\", \"Schwartz\"), advisor (8721, 1148, 9172), age (26, 16, 21), fname (\"Paul\", \"Lisa\", \"Lisa\"), city_code (\"CHI\", \"PHL\", \"NYC\"), major (100, 550, 50), sex (\"F\", \"M\")", + "schema_without_content": "has_pet : petid , stuid | learner : stuid , lname , advisor , age , fname , city_code , major , sex | pets : pet_age , weight , pettype , petid | enrollee : stuid , lname , advisor , age , fname , city_code , major , sex", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "pets": "has_pet.PetID", + "students": "student", + "age": "student.Age" + } + }, + { + "question": "how many #pets# are owned by #students# that have an #age# greater than 20?", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | student : lname (\"Brown\", \"Schultz\", \"Brody\"), major (540, 520, 550), age (16, 21, 22), city_code (\"PHL\", \"WAS\", \"HOU\"), fname (\"Ian\", \"Ian\", \"William\"), advisor (8721, 8918, 8772), sex (\"F\", \"M\"), stuid (1001, 1030, 1003)", + "schema_without_content": "has_animal : stuid , petid | owns : stuid , petid | pets : pettype , pet_age , petid , weight | student : lname , major , age , city_code , fname , advisor , sex , stuid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "pets": "has_pet.PetID", + "students": "student", + "age": "student.Age" + } + }, + { + "question": "find the number of #dog pets# that are raised by #female students# (with sex f).", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "learner : lname (\"Woods\", \"Davis\", \"Tai\"), city_code (\"NYC\", \"LON\", \"PIT\"), advisor (8423, 9172, 7271), sex (\"F\", \"M\"), major (520, 600, 550), fname (\"Ian\", \"Derek\", \"Tracy\"), age (21, 17, 19), stuid (1008, 1012, 1017) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | enrollee : lname (\"Woods\", \"Davis\", \"Tai\"), city_code (\"NYC\", \"LON\", \"PIT\"), advisor (8423, 9172, 7271), sex (\"F\", \"M\"), major (520, 600, 550), fname (\"Ian\", \"Derek\", \"Tracy\"), age (21, 17, 19), stuid (1008, 1012, 1017)", + "schema_without_content": "learner : lname , city_code , advisor , sex , major , fname , age , stuid | has_pet : stuid , petid | pets : petid , pettype , pet_age , weight | enrollee : lname , city_code , advisor , sex , major , fname , age , stuid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "find the number of #dog pets# that are raised by #female students# (with sex f).", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | student : fname (\"Mark\", \"Derek\", \"Paul\"), city_code (\"CHI\", \"BOS\", \"CHI\"), stuid (1017, 1029, 1012), sex (\"F\", \"M\"), major (540, 550, 600), lname (\"Andreou\", \"Schwartz\", \"Gompers\"), advisor (7271, 7134, 7723), age (16, 16, 21) | owns : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "has_animal : stuid , petid | pets : pet_age , pettype , petid , weight | student : fname , city_code , stuid , sex , major , lname , advisor , age | owns : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "find the number of #dog pets# that are raised by #female students# (with sex f).", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "Companions : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | Animals : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | student : major (100, 100, 540), stuid (1026, 1003, 1032), city_code (\"HKG\", \"LOS\", \"CHI\"), advisor (9172, 7271, 2311), fname (\"Jandy\", \"Charles\", \"Charles\"), lname (\"Epp\", \"Han\", \"Pang\"), sex (\"F\", \"M\"), age (22, 21, 19) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "Companions : petid , pet_age , pettype , weight | Animals : petid , pet_age , pettype , weight | student : major , stuid , city_code , advisor , fname , lname , sex , age | has_pet : stuid , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "how many #dog pets# are raised by #female students# ?", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | learner : stuid (1034, 1017, 1002), major (520, 540, 520), city_code (\"BAL\", \"ATL\", \"SFO\"), advisor (8722, 5718, 2192), lname (\"Kim\", \"Thornton\", \"Pang\"), age (18, 21, 16), fname (\"Stacy\", \"Andy\", \"Steven\"), sex (\"F\", \"M\") | enrollee : stuid (1034, 1017, 1002), major (520, 540, 520), city_code (\"BAL\", \"ATL\", \"SFO\"), advisor (8722, 5718, 2192), lname (\"Kim\", \"Thornton\", \"Pang\"), age (18, 21, 16), fname (\"Stacy\", \"Andy\", \"Steven\"), sex (\"F\", \"M\")", + "schema_without_content": "has_pet : petid , stuid | pets : weight , pettype , petid , pet_age | learner : stuid , major , city_code , advisor , lname , age , fname , sex | enrollee : stuid , major , city_code , advisor , lname , age , fname , sex", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "how many #dog pets# are raised by #female students# ?", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "pets : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | student : major (100, 520, 600), city_code (\"BOS\", \"ATL\", \"NYC\"), lname (\"Davis\", \"Cheng\", \"Wilson\"), fname (\"Dinesh\", \"Paul\", \"Lisa\"), advisor (8423, 8722, 7134), stuid (1005, 1005, 1033), sex (\"F\", \"M\"), age (26, 16, 21)", + "schema_without_content": "pets : petid , pettype , weight , pet_age | has_animal : stuid , petid | owns : stuid , petid | student : major , city_code , lname , fname , advisor , stuid , sex , age", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "how many #dog pets# are raised by #female students# ?", + "db_id": "pets_1", + "orig_query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'F' and t3.pettype = 'dog'", + "schema_with_content": "Animals : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | student : city_code (\"YYZ\", \"PHL\", \"ROC\"), fname (\"Michael\", \"Tracy\", \"Sarah\"), major (540, 520, 100), advisor (7134, 7271, 7792), sex (\"F\", \"M\"), stuid (1014, 1033, 1007), age (16, 20, 16), lname (\"Kim\", \"Apap\", \"Thornton\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | Companions : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1)", + "schema_without_content": "Animals : pettype , petid , weight , pet_age | student : city_code , fname , major , advisor , sex , stuid , age , lname | has_pet : petid , stuid | Companions : pettype , petid , weight , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "dog pets": "pets.PetType", + "female students": "student.Sex" + } + }, + { + "question": "find the #first name of students# who have #cat# or #dog# pet.", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "learner : major (540, 100, 50), city_code (\"ROC\", \"HOU\", \"NYC\"), age (26, 21, 19), advisor (8721, 8723, 8423), sex (\"F\", \"M\"), fname (\"Tracy\", \"Susan\", \"Dinesh\"), stuid (1034, 1016, 1001), lname (\"Shieber\", \"Kim\", \"Epp\") | enrollee : major (540, 100, 50), city_code (\"ROC\", \"HOU\", \"NYC\"), age (26, 21, 19), advisor (8721, 8723, 8423), sex (\"F\", \"M\"), fname (\"Tracy\", \"Susan\", \"Dinesh\"), stuid (1034, 1016, 1001), lname (\"Shieber\", \"Kim\", \"Epp\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003)", + "schema_without_content": "learner : major , city_code , age , advisor , sex , fname , stuid , lname | enrollee : major , city_code , age , advisor , sex , fname , stuid , lname | has_pet : petid , stuid | pets : pettype , weight , pet_age , petid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name of students": "Student.Fname", + "cat": "Pets.PetType", + "dog": "Pets.PetType" + } + }, + { + "question": "find the #first name of students# who have #cat# or #dog# pet.", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "student : advisor (9172, 7723, 7271), sex (\"F\", \"M\"), age (16, 22, 18), stuid (1011, 1001, 1011), major (600, 540, 520), fname (\"Arthur\", \"David\", \"Tracy\"), lname (\"Cheng\", \"Lee\", \"Gompers\"), city_code (\"CHI\", \"NYC\", \"SFO\") | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "student : advisor , sex , age , stuid , major , fname , lname , city_code | pets : pet_age , pettype , petid , weight | owns : petid , stuid | has_animal : petid , stuid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name of students": "Student.Fname", + "cat": "Pets.PetType", + "dog": "Pets.PetType" + } + }, + { + "question": "find the #first name of students# who have #cat# or #dog# pet.", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "student : major (600, 520, 540), fname (\"William\", \"George\", \"Sarah\"), stuid (1028, 1007, 1029), sex (\"F\", \"M\"), advisor (7723, 7271, 8722), city_code (\"PIT\", \"HOU\", \"ATL\"), age (26, 20, 16), lname (\"Han\", \"Brody\", \"Nelson\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Animals : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003) | Companions : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003)", + "schema_without_content": "student : major , fname , stuid , sex , advisor , city_code , age , lname | has_pet : stuid , petid | Animals : weight , pettype , pet_age , petid | Companions : weight , pettype , pet_age , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "first name of students": "Student.Fname", + "cat": "Pets.PetType", + "dog": "Pets.PetType" + } + }, + { + "question": "what are the #first names# of every #student# who has a #cat# or #dog as a pet# ?", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "enrollee : city_code (\"NYC\", \"CHI\", \"WAS\"), sex (\"F\", \"M\"), stuid (1022, 1028, 1024), fname (\"Derek\", \"Lisa\", \"Lisa\"), lname (\"Goldman\", \"Brody\", \"Schmidt\"), age (18, 26, 17), major (550, 50, 100), advisor (8723, 7792, 8741) | learner : city_code (\"NYC\", \"CHI\", \"WAS\"), sex (\"F\", \"M\"), stuid (1022, 1028, 1024), fname (\"Derek\", \"Lisa\", \"Lisa\"), lname (\"Goldman\", \"Brody\", \"Schmidt\"), age (18, 26, 17), major (550, 50, 100), advisor (8723, 7792, 8741) | pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "enrollee : city_code , sex , stuid , fname , lname , age , major , advisor | learner : city_code , sex , stuid , fname , lname , age , major , advisor | pets : pettype , pet_age , weight , petid | has_pet : stuid , petid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first names": "Student.Fname", + "student": "Student", + "cat": "Pets.PetType", + "dog as a pet": "Pets.PetType" + } + }, + { + "question": "what are the #first names# of every #student# who has a #cat# or #dog as a pet# ?", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "student : advisor (2311, 7712, 8721), stuid (1014, 1015, 1003), age (21, 22, 19), fname (\"Susan\", \"Paul\", \"Stacy\"), lname (\"Schultz\", \"Kumar\", \"Woods\"), major (100, 540, 550), sex (\"F\", \"M\"), city_code (\"ROC\", \"DAL\", \"NYC\") | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | owns : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "student : advisor , stuid , age , fname , lname , major , sex , city_code | has_animal : stuid , petid | pets : pettype , petid , weight , pet_age | owns : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first names": "Student.Fname", + "student": "Student", + "cat": "Pets.PetType", + "dog as a pet": "Pets.PetType" + } + }, + { + "question": "what are the #first names# of every #student# who has a #cat# or #dog as a pet# ?", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' or t3.pettype = 'dog'", + "schema_with_content": "student : age (21, 19, 18), fname (\"Mark\", \"Charles\", \"Shiela\"), advisor (5718, 8723, 9172), lname (\"Davis\", \"Goldman\", \"Brown\"), major (520, 550, 50), city_code (\"PIT\", \"SFO\", \"CHI\"), stuid (1006, 1017, 1025), sex (\"F\", \"M\") | Animals : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | Companions : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1)", + "schema_without_content": "student : age , fname , advisor , lname , major , city_code , stuid , sex | Animals : petid , pettype , weight , pet_age | has_pet : petid , stuid | Companions : petid , pettype , weight , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "first names": "Student.Fname", + "student": "Student", + "cat": "Pets.PetType", + "dog as a pet": "Pets.PetType" + } + }, + { + "question": "what are the #students' first names# who have both #cats# and d #ogs as pets?# ", + "db_id": "pets_1", + "orig_query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "schema_with_content": "learner : city_code (\"DET\", \"PIT\", \"LON\"), lname (\"Tai\", \"Schwartz\", \"Kumar\"), advisor (1121, 7134, 7723), age (18, 19, 17), sex (\"F\", \"M\"), major (600, 600, 50), fname (\"David\", \"Jun\", \"Steven\"), stuid (1008, 1006, 1035) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | enrollee : city_code (\"DET\", \"PIT\", \"LON\"), lname (\"Tai\", \"Schwartz\", \"Kumar\"), advisor (1121, 7134, 7723), age (18, 19, 17), sex (\"F\", \"M\"), major (600, 600, 50), fname (\"David\", \"Jun\", \"Steven\"), stuid (1008, 1006, 1035) | pets : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003)", + "schema_without_content": "learner : city_code , lname , advisor , age , sex , major , fname , stuid | has_pet : stuid , petid | enrollee : city_code , lname , advisor , age , sex , major , fname , stuid | pets : weight , pet_age , pettype , petid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "cats": "Pets.PetType", + "ogs as pets?": "Has_Pet", + "students' first names": "Student.Fname", + "dogs": "Pets.PetType" + } + }, + { + "question": "what are the #students' first names# who have both #cats# and d #ogs as pets?# ", + "db_id": "pets_1", + "orig_query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | student : lname (\"Apap\", \"Jones\", \"Goldman\"), fname (\"Derek\", \"Sarah\", \"Arthur\"), sex (\"F\", \"M\"), stuid (1028, 1033, 1032), advisor (7134, 7712, 8741), city_code (\"ROC\", \"NAR\", \"HKG\"), age (17, 26, 27), major (520, 600, 520) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\")", + "schema_without_content": "has_animal : stuid , petid | student : lname , fname , sex , stuid , advisor , city_code , age , major | owns : stuid , petid | pets : pet_age , weight , petid , pettype", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "cats": "Pets.PetType", + "ogs as pets?": "Has_Pet", + "students' first names": "Student.Fname", + "dogs": "Pets.PetType" + } + }, + { + "question": "what are the #students' first names# who have both #cats# and d #ogs as pets?# ", + "db_id": "pets_1", + "orig_query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "schema_with_content": "student : fname (\"Michael\", \"David\", \"Tracy\"), stuid (1032, 1024, 1018), major (520, 100, 540), city_code (\"DAL\", \"DAL\", \"DAL\"), sex (\"F\", \"M\"), lname (\"Kim\", \"Norris\", \"Leighton\"), advisor (8772, 8721, 2192), age (19, 19, 27) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | Companions : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | Animals : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3)", + "schema_without_content": "student : fname , stuid , major , city_code , sex , lname , advisor , age | has_pet : petid , stuid | Companions : petid , pet_age , pettype , weight | Animals : petid , pet_age , pettype , weight", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "cats": "Pets.PetType", + "ogs as pets?": "Has_Pet", + "students' first names": "Student.Fname", + "dogs": "Pets.PetType" + } + }, + { + "question": "find the #major# and #age of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | enrollee : major (520, 100, 550), lname (\"Nelson\", \"Wilson\", \"Simms\"), stuid (1035, 1007, 1021), city_code (\"LOS\", \"SFO\", \"PHL\"), fname (\"Sarah\", \"Stacy\", \"Steven\"), sex (\"F\", \"M\"), advisor (7712, 8741, 8721), age (22, 21, 26) | learner : major (520, 100, 550), lname (\"Nelson\", \"Wilson\", \"Simms\"), stuid (1035, 1007, 1021), city_code (\"LOS\", \"SFO\", \"PHL\"), fname (\"Sarah\", \"Stacy\", \"Steven\"), sex (\"F\", \"M\"), advisor (7712, 8741, 8721), age (22, 21, 26) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "pets : pettype , pet_age , petid , weight | enrollee : major , lname , stuid , city_code , fname , sex , advisor , age | learner : major , lname , stuid , city_code , fname , sex , advisor , age | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "age of students": "Student.Age", + "cat pet": "Pets.PetType" + } + }, + { + "question": "find the #major# and #age of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "pets : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | student : stuid (1004, 1006, 1006), advisor (8918, 8721, 7134), city_code (\"HKG\", \"DAL\", \"YYZ\"), lname (\"Leighton\", \"Epp\", \"Cheng\"), fname (\"Susan\", \"Eric\", \"Paul\"), major (50, 550, 100), sex (\"F\", \"M\"), age (18, 27, 22)", + "schema_without_content": "pets : pettype , petid , pet_age , weight | has_animal : petid , stuid | owns : petid , stuid | student : stuid , advisor , city_code , lname , fname , major , sex , age", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "age of students": "Student.Age", + "cat pet": "Pets.PetType" + } + }, + { + "question": "find the #major# and #age of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "Animals : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Companions : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | student : fname (\"Lisa\", \"Dinesh\", \"David\"), sex (\"F\", \"M\"), stuid (1023, 1028, 1035), advisor (8723, 8721, 8772), city_code (\"WAS\", \"PIT\", \"HKG\"), major (50, 600, 540), lname (\"Apap\", \"Jones\", \"Nelson\"), age (17, 22, 22)", + "schema_without_content": "Animals : weight , pettype , petid , pet_age | has_pet : stuid , petid | Companions : weight , pettype , petid , pet_age | student : fname , sex , stuid , advisor , city_code , major , lname , age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "age of students": "Student.Age", + "cat pet": "Pets.PetType" + } + }, + { + "question": "what #major# is every #student# who does not own a #cat as a pet# , and also how old are they?", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\") | enrollee : major (550, 600, 540), stuid (1027, 1001, 1023), fname (\"Lisa\", \"Arthur\", \"Bruce\"), sex (\"F\", \"M\"), advisor (2192, 8723, 7792), lname (\"Thornton\", \"Gompers\", \"Andreou\"), city_code (\"BAL\", \"NYC\", \"HKG\"), age (20, 16, 16) | learner : major (550, 600, 540), stuid (1027, 1001, 1023), fname (\"Lisa\", \"Arthur\", \"Bruce\"), sex (\"F\", \"M\"), advisor (2192, 8723, 7792), lname (\"Thornton\", \"Gompers\", \"Andreou\"), city_code (\"BAL\", \"NYC\", \"HKG\"), age (20, 16, 16)", + "schema_without_content": "has_pet : stuid , petid | pets : pet_age , weight , petid , pettype | enrollee : major , stuid , fname , sex , advisor , lname , city_code , age | learner : major , stuid , fname , sex , advisor , lname , city_code , age", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "student": "Student", + "cat as a pet": "Pets.PetType", + "age": "Student.Age" + } + }, + { + "question": "what #major# is every #student# who does not own a #cat as a pet# , and also how old are they?", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | student : fname (\"Andy\", \"Charles\", \"Ian\"), lname (\"Schmidt\", \"Shieber\", \"Andreou\"), age (27, 20, 16), advisor (2311, 7792, 7271), city_code (\"LOS\", \"BAL\", \"HOU\"), sex (\"F\", \"M\"), stuid (1003, 1005, 1027), major (50, 520, 540) | owns : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "has_animal : stuid , petid | pets : pettype , petid , pet_age , weight | student : fname , lname , age , advisor , city_code , sex , stuid , major | owns : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "student": "Student", + "cat as a pet": "Pets.PetType", + "age": "Student.Age" + } + }, + { + "question": "what #major# is every #student# who does not own a #cat as a pet# , and also how old are they?", + "db_id": "pets_1", + "orig_query": "select major, age from student where stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "student : age (19, 19, 21), fname (\"Arthur\", \"Jandy\", \"Bruce\"), stuid (1031, 1025, 1033), major (550, 550, 100), sex (\"F\", \"M\"), advisor (8772, 8721, 9172), lname (\"Simms\", \"Smith\", \"Adams\"), city_code (\"LON\", \"PHL\", \"BOS\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Animals : pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | Companions : pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3)", + "schema_without_content": "student : age , fname , stuid , major , sex , advisor , lname , city_code | has_pet : stuid , petid | Animals : pet_age , petid , pettype , weight | Companions : pet_age , petid , pettype , weight", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "major": "Student.Major", + "student": "Student", + "cat as a pet": "Pets.PetType", + "age": "Student.Age" + } + }, + { + "question": "find the #id of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "pets : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | learner : stuid (1012, 1025, 1012), lname (\"Wilson\", \"Goldman\", \"Nelson\"), sex (\"F\", \"M\"), major (520, 520, 50), age (21, 27, 16), fname (\"Jandy\", \"Michael\", \"William\"), advisor (8721, 5718, 8723), city_code (\"DET\", \"ROC\", \"HOU\") | enrollee : stuid (1012, 1025, 1012), lname (\"Wilson\", \"Goldman\", \"Nelson\"), sex (\"F\", \"M\"), major (520, 520, 50), age (21, 27, 16), fname (\"Jandy\", \"Michael\", \"William\"), advisor (8721, 5718, 8723), city_code (\"DET\", \"ROC\", \"HOU\")", + "schema_without_content": "pets : petid , weight , pet_age , pettype | has_pet : stuid , petid | learner : stuid , lname , sex , major , age , fname , advisor , city_code | enrollee : stuid , lname , sex , major , age , fname , advisor , city_code", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "id of students": "Student.StuID", + "cat pet": "Pets.PetType" + } + }, + { + "question": "find the #id of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "student : fname (\"Sarah\", \"Susan\", \"Susan\"), age (27, 16, 18), lname (\"Leighton\", \"Epp\", \"Nelson\"), major (550, 540, 50), sex (\"F\", \"M\"), advisor (8722, 8918, 8721), city_code (\"BOS\", \"BOS\", \"BOS\"), stuid (1006, 1001, 1027) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003)", + "schema_without_content": "student : fname , age , lname , major , sex , advisor , city_code , stuid | owns : stuid , petid | has_animal : stuid , petid | pets : pet_age , weight , pettype , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "id of students": "Student.StuID", + "cat pet": "Pets.PetType" + } + }, + { + "question": "find the #id of students# who do not have a #cat pet# .", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "Animals : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | student : city_code (\"PEK\", \"HKG\", \"LON\"), major (50, 550, 550), age (18, 26, 19), sex (\"F\", \"M\"), lname (\"Simms\", \"Schwartz\", \"Smith\"), fname (\"Steven\", \"Susan\", \"Stacy\"), stuid (1016, 1023, 1023), advisor (7134, 8423, 1148) | Companions : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\")", + "schema_without_content": "Animals : weight , petid , pet_age , pettype | has_pet : petid , stuid | student : city_code , major , age , sex , lname , fname , stuid , advisor | Companions : weight , petid , pet_age , pettype", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "id of students": "Student.StuID", + "cat pet": "Pets.PetType" + } + }, + { + "question": "what are the #ids of the students# who do not own #cats as pets# ?", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | enrollee : advisor (8722, 1121, 2192), major (520, 50, 550), lname (\"Leighton\", \"Kim\", \"Lee\"), city_code (\"DAL\", \"HKG\", \"YYZ\"), fname (\"George\", \"Jun\", \"Andy\"), stuid (1031, 1010, 1024), sex (\"F\", \"M\"), age (22, 21, 17) | learner : advisor (8722, 1121, 2192), major (520, 50, 550), lname (\"Leighton\", \"Kim\", \"Lee\"), city_code (\"DAL\", \"HKG\", \"YYZ\"), fname (\"George\", \"Jun\", \"Andy\"), stuid (1031, 1010, 1024), sex (\"F\", \"M\"), age (22, 21, 17) | pets : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1)", + "schema_without_content": "has_pet : stuid , petid | enrollee : advisor , major , lname , city_code , fname , stuid , sex , age | learner : advisor , major , lname , city_code , fname , stuid , sex , age | pets : petid , weight , pettype , pet_age", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "ids of the students": "Student.StuID", + "cats as pets": "Pets.PetType" + } + }, + { + "question": "what are the #ids of the students# who do not own #cats as pets# ?", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "pets : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | student : fname (\"Linda\", \"Shiela\", \"Linda\"), major (600, 50, 100), city_code (\"PHL\", \"LON\", \"LOS\"), advisor (7271, 1148, 8721), stuid (1002, 1032, 1006), lname (\"Schultz\", \"Lee\", \"Schwartz\"), sex (\"F\", \"M\"), age (16, 20, 27) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "pets : weight , pettype , petid , pet_age | owns : petid , stuid | student : fname , major , city_code , advisor , stuid , lname , sex , age | has_animal : petid , stuid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "ids of the students": "Student.StuID", + "cats as pets": "Pets.PetType" + } + }, + { + "question": "what are the #ids of the students# who do not own #cats as pets# ?", + "db_id": "pets_1", + "orig_query": "select stuid from student except select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat'", + "schema_with_content": "Companions : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | student : city_code (\"WAS\", \"BOS\", \"CHI\"), stuid (1023, 1029, 1021), sex (\"F\", \"M\"), advisor (5718, 5718, 8772), fname (\"George\", \"Dinesh\", \"Bruce\"), age (22, 22, 18), lname (\"Han\", \"Adams\", \"Apap\"), major (540, 550, 100) | Animals : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "Companions : petid , pettype , pet_age , weight | student : city_code , stuid , sex , advisor , fname , age , lname , major | Animals : petid , pettype , pet_age , weight | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "ids of the students": "Student.StuID", + "cats as pets": "Pets.PetType" + } + }, + { + "question": "find the #first name# and #age of students# who have a #dog# but do not have a #cat as a pet# .", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "learner : fname (\"William\", \"Tracy\", \"Steven\"), sex (\"F\", \"M\"), advisor (8772, 2311, 8722), major (600, 550, 540), stuid (1024, 1025, 1033), age (20, 22, 27), city_code (\"PEK\", \"DAL\", \"BOS\"), lname (\"Davis\", \"Goldman\", \"Schwartz\") | pets : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | enrollee : fname (\"William\", \"Tracy\", \"Steven\"), sex (\"F\", \"M\"), advisor (8772, 2311, 8722), major (600, 550, 540), stuid (1024, 1025, 1033), age (20, 22, 27), city_code (\"PEK\", \"DAL\", \"BOS\"), lname (\"Davis\", \"Goldman\", \"Schwartz\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "learner : fname , sex , advisor , major , stuid , age , city_code , lname | pets : petid , pet_age , pettype , weight | enrollee : fname , sex , advisor , major , stuid , age , city_code , lname | has_pet : stuid , petid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "age of students": "Student.Age", + "dog": "Pets.PetType", + "cat as a pet": "Pets.PetType" + } + }, + { + "question": "find the #first name# and #age of students# who have a #dog# but do not have a #cat as a pet# .", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | student : sex (\"F\", \"M\"), age (19, 17, 18), major (540, 550, 600), stuid (1035, 1009, 1033), advisor (8723, 2311, 8918), lname (\"Schwartz\", \"Andreou\", \"Gompers\"), fname (\"Tracy\", \"Jandy\", \"Michael\"), city_code (\"HOU\", \"LOS\", \"SFO\") | pets : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | owns : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "has_animal : stuid , petid | student : sex , age , major , stuid , advisor , lname , fname , city_code | pets : petid , weight , pet_age , pettype | owns : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "age of students": "Student.Age", + "dog": "Pets.PetType", + "cat as a pet": "Pets.PetType" + } + }, + { + "question": "find the #first name# and #age of students# who have a #dog# but do not have a #cat as a pet# .", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "Animals : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | Companions : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | student : lname (\"Lee\", \"Smith\", \"Woods\"), advisor (8722, 1121, 8721), age (17, 21, 21), city_code (\"ROC\", \"BAL\", \"HOU\"), major (520, 540, 540), fname (\"Sarah\", \"Steven\", \"Ian\"), stuid (1030, 1004, 1029), sex (\"F\", \"M\")", + "schema_without_content": "Animals : pettype , petid , pet_age , weight | Companions : pettype , petid , pet_age , weight | has_pet : stuid , petid | student : lname , advisor , age , city_code , major , fname , stuid , sex", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "age of students": "Student.Age", + "dog": "Pets.PetType", + "cat as a pet": "Pets.PetType" + } + }, + { + "question": "what is the #first name# of every #student# who has a #dog# but does not have a #cat# ?", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "pets : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | learner : major (550, 600, 600), age (18, 21, 22), lname (\"Pang\", \"Kumar\", \"Schultz\"), sex (\"F\", \"M\"), fname (\"William\", \"Steven\", \"Sarah\"), advisor (8772, 5718, 2192), stuid (1020, 1020, 1006), city_code (\"BAL\", \"PIT\", \"SFO\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | enrollee : major (550, 600, 600), age (18, 21, 22), lname (\"Pang\", \"Kumar\", \"Schultz\"), sex (\"F\", \"M\"), fname (\"William\", \"Steven\", \"Sarah\"), advisor (8772, 5718, 2192), stuid (1020, 1020, 1006), city_code (\"BAL\", \"PIT\", \"SFO\")", + "schema_without_content": "pets : pettype , petid , weight , pet_age | learner : major , age , lname , sex , fname , advisor , stuid , city_code | has_pet : stuid , petid | enrollee : major , age , lname , sex , fname , advisor , stuid , city_code", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "student": "Student", + "dog": "Pets.PetType", + "cat": "Pets.PetType" + } + }, + { + "question": "what is the #first name# of every #student# who has a #dog# but does not have a #cat# ?", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | student : sex (\"F\", \"M\"), lname (\"Andreou\", \"Cheng\", \"Schwartz\"), stuid (1011, 1020, 1028), age (27, 21, 22), major (600, 520, 600), fname (\"Paul\", \"William\", \"Arthur\"), city_code (\"CHI\", \"LOS\", \"PEK\"), advisor (8423, 8723, 8423) | pets : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1)", + "schema_without_content": "has_animal : stuid , petid | owns : stuid , petid | student : sex , lname , stuid , age , major , fname , city_code , advisor | pets : weight , pettype , petid , pet_age", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "student": "Student", + "dog": "Pets.PetType", + "cat": "Pets.PetType" + } + }, + { + "question": "what is the #first name# of every #student# who has a #dog# but does not have a #cat# ?", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' and t1.stuid not in (select t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat')", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | student : city_code (\"HKG\", \"HOU\", \"BOS\"), major (50, 50, 100), age (26, 20, 22), lname (\"Smith\", \"Smith\", \"Tai\"), sex (\"F\", \"M\"), advisor (1148, 1121, 8918), stuid (1034, 1023, 1022), fname (\"Shiela\", \"David\", \"Andy\") | Animals : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003) | Companions : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003)", + "schema_without_content": "has_pet : stuid , petid | student : city_code , major , age , lname , sex , advisor , stuid , fname | Animals : weight , pet_age , pettype , petid | Companions : weight , pet_age , pettype , petid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "student": "Student", + "dog": "Pets.PetType", + "cat": "Pets.PetType" + } + }, + { + "question": "find the #type# and #weight of the youngest pet# .", + "db_id": "pets_1", + "orig_query": "select pettype, weight from pets order by pet_age limit 1", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Companions : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3) | student : city_code (\"HKG\", \"PIT\", \"HOU\"), sex (\"F\", \"M\"), age (21, 26, 27), major (520, 520, 520), fname (\"David\", \"Jandy\", \"Arthur\"), stuid (1007, 1015, 1009), lname (\"Kumar\", \"Leighton\", \"Leighton\"), advisor (8423, 7723, 8741) | Animals : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3)", + "schema_without_content": "has_pet : stuid , petid | Companions : pettype , petid , pet_age , weight | student : city_code , sex , age , major , fname , stuid , lname , advisor | Animals : pettype , petid , pet_age , weight", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "type": "Pets.PetType", + "weight of the youngest pet": "Pets.weight" + } + }, + { + "question": "what #type of pet is the youngest animal# , and how much does it #weigh# ?", + "db_id": "pets_1", + "orig_query": "select pettype, weight from pets order by pet_age limit 1", + "schema_with_content": "Companions : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | Animals : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | student : city_code (\"CHI\", \"CHI\", \"PEK\"), lname (\"Schmidt\", \"Shieber\", \"Jones\"), advisor (7712, 1121, 8723), sex (\"F\", \"M\"), fname (\"George\", \"Jandy\", \"Paul\"), stuid (1019, 1033, 1026), major (550, 550, 600), age (18, 19, 18)", + "schema_without_content": "Companions : petid , weight , pet_age , pettype | Animals : petid , weight , pet_age , pettype | has_pet : petid , stuid | student : city_code , lname , advisor , sex , fname , stuid , major , age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "type of pet is the youngest animal": "Pets.PetType", + "weigh": "Pets.weight" + } + }, + { + "question": "find the #id# and #weight# of all pets whose #age# is older than 1.", + "db_id": "pets_1", + "orig_query": "select petid, weight from pets where pet_age > 1", + "schema_with_content": "Animals : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | Companions : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | student : city_code (\"BAL\", \"CHI\", \"ROC\"), stuid (1022, 1025, 1021), advisor (8722, 8918, 8423), sex (\"F\", \"M\"), age (21, 26, 17), fname (\"Mark\", \"Lisa\", \"Sarah\"), major (50, 100, 100), lname (\"Prater\", \"Simms\", \"Han\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "Animals : weight , pettype , petid , pet_age | Companions : weight , pettype , petid , pet_age | student : city_code , stuid , advisor , sex , age , fname , major , lname | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "id": "Pets.PetID", + "weight": "Pets.weight", + "age": "Pets.pet_age" + } + }, + { + "question": "what is the #id# and #weight# of every pet who is #older than 1# ?", + "db_id": "pets_1", + "orig_query": "select petid, weight from pets where pet_age > 1", + "schema_with_content": "student : age (26, 20, 20), fname (\"Sarah\", \"Andy\", \"Ian\"), stuid (1005, 1033, 1022), advisor (7271, 7723, 7723), city_code (\"BOS\", \"CHI\", \"PIT\"), lname (\"Woods\", \"Leighton\", \"Gompers\"), major (520, 550, 600), sex (\"F\", \"M\") | Companions : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | Animals : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "student : age , fname , stuid , advisor , city_code , lname , major , sex | Companions : pet_age , pettype , weight , petid | Animals : pet_age , pettype , weight , petid | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "id": "Pets.PetID", + "weight": "Pets.weight", + "older than 1": "Pets.pet_age" + } + }, + { + "question": "find the #average and maximum age for each type of pet# .", + "db_id": "pets_1", + "orig_query": "select avg(pet_age), max(pet_age), pettype from pets group by pettype", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Companions : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | student : lname (\"Schwartz\", \"Thornton\", \"Thornton\"), sex (\"F\", \"M\"), age (16, 21, 27), major (100, 50, 550), fname (\"Tracy\", \"David\", \"David\"), advisor (1148, 8772, 7723), stuid (1011, 1005, 1010), city_code (\"YYZ\", \"HKG\", \"BAL\") | Animals : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1)", + "schema_without_content": "has_pet : stuid , petid | Companions : petid , weight , pettype , pet_age | student : lname , sex , age , major , fname , advisor , stuid , city_code | Animals : petid , weight , pettype , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "average and maximum age for each type of pet": "Pets.pet_age" + } + }, + { + "question": "what is the #average and maximum age for each pet type# ?", + "db_id": "pets_1", + "orig_query": "select avg(pet_age), max(pet_age), pettype from pets group by pettype", + "schema_with_content": "student : city_code (\"YYZ\", \"ROC\", \"LOS\"), sex (\"F\", \"M\"), age (21, 21, 16), advisor (5718, 9172, 1148), fname (\"Andy\", \"Bruce\", \"William\"), stuid (1032, 1003, 1024), major (600, 600, 540), lname (\"Shieber\", \"Goldman\", \"Rugh\") | Companions : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | Animals : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1)", + "schema_without_content": "student : city_code , sex , age , advisor , fname , stuid , major , lname | Companions : weight , petid , pettype , pet_age | has_pet : petid , stuid | Animals : weight , petid , pettype , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "average and maximum age for each pet type": "Pets.pet_age" + } + }, + { + "question": "find the #average weight for each pet type# .", + "db_id": "pets_1", + "orig_query": "select avg(weight), pettype from pets group by pettype", + "schema_with_content": "student : major (50, 540, 540), city_code (\"HKG\", \"BAL\", \"PEK\"), advisor (7723, 7712, 2192), stuid (1024, 1008, 1015), lname (\"Davis\", \"Jones\", \"Cheng\"), age (16, 19, 22), fname (\"Ian\", \"Paul\", \"Mark\"), sex (\"F\", \"M\") | Companions : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Animals : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1)", + "schema_without_content": "student : major , city_code , advisor , stuid , lname , age , fname , sex | Companions : petid , pettype , weight , pet_age | has_pet : stuid , petid | Animals : petid , pettype , weight , pet_age", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "average weight for each pet type": "Pets.weight" + } + }, + { + "question": "what is the #average weight for each type of pet# ?", + "db_id": "pets_1", + "orig_query": "select avg(weight), pettype from pets group by pettype", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | student : city_code (\"LON\", \"NYC\", \"BAL\"), fname (\"Dinesh\", \"Andy\", \"Michael\"), major (520, 550, 540), stuid (1026, 1006, 1004), sex (\"F\", \"M\"), age (19, 17, 18), lname (\"Apap\", \"Andreou\", \"Pang\"), advisor (7712, 2311, 2311) | Companions : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\") | Animals : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\")", + "schema_without_content": "has_pet : stuid , petid | student : city_code , fname , major , stuid , sex , age , lname , advisor | Companions : weight , pet_age , petid , pettype | Animals : weight , pet_age , petid , pettype", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "average weight for each type of pet": "Pets.weight" + } + }, + { + "question": "find the #first name# and #age of students# who #have a pet# .", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", + "schema_with_content": "pets : pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003) | enrollee : lname (\"Epp\", \"Tai\", \"Epp\"), sex (\"F\", \"M\"), city_code (\"BAL\", \"YYZ\", \"PEK\"), advisor (7134, 2192, 8772), major (520, 550, 100), age (16, 21, 17), stuid (1023, 1001, 1005), fname (\"William\", \"Bruce\", \"Shiela\") | learner : lname (\"Epp\", \"Tai\", \"Epp\"), sex (\"F\", \"M\"), city_code (\"BAL\", \"YYZ\", \"PEK\"), advisor (7134, 2192, 8772), major (520, 550, 100), age (16, 21, 17), stuid (1023, 1001, 1005), fname (\"William\", \"Bruce\", \"Shiela\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "pets : pettype , weight , pet_age , petid | enrollee : lname , sex , city_code , advisor , major , age , stuid , fname | learner : lname , sex , city_code , advisor , major , age , stuid , fname | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "age of students": "Student.Age", + "have a pet": "Has_Pet" + } + }, + { + "question": "find the #first name# and #age of students# who #have a pet# .", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", + "schema_with_content": "student : advisor (8918, 2192, 1148), sex (\"F\", \"M\"), age (16, 16, 20), fname (\"Eric\", \"Stacy\", \"Susan\"), lname (\"Tai\", \"Kumar\", \"Woods\"), city_code (\"DAL\", \"YYZ\", \"HKG\"), major (50, 550, 540), stuid (1033, 1034, 1025) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3)", + "schema_without_content": "student : advisor , sex , age , fname , lname , city_code , major , stuid | owns : stuid , petid | has_animal : stuid , petid | pets : pet_age , pettype , petid , weight", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "age of students": "Student.Age", + "have a pet": "Has_Pet" + } + }, + { + "question": "what are the different #first names# and #ages of the students# who do have #pets# ?", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", + "schema_with_content": "pets : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | learner : fname (\"Jun\", \"Shiela\", \"Eric\"), sex (\"F\", \"M\"), major (540, 540, 550), city_code (\"HOU\", \"PHL\", \"BAL\"), age (21, 20, 18), stuid (1030, 1002, 1006), lname (\"Kim\", \"Davis\", \"Smith\"), advisor (2192, 8721, 5718) | enrollee : fname (\"Jun\", \"Shiela\", \"Eric\"), sex (\"F\", \"M\"), major (540, 540, 550), city_code (\"HOU\", \"PHL\", \"BAL\"), age (21, 20, 18), stuid (1030, 1002, 1006), lname (\"Kim\", \"Davis\", \"Smith\"), advisor (2192, 8721, 5718) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002)", + "schema_without_content": "pets : weight , petid , pettype , pet_age | learner : fname , sex , major , city_code , age , stuid , lname , advisor | enrollee : fname , sex , major , city_code , age , stuid , lname , advisor | has_pet : petid , stuid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first names": "Student.Fname", + "ages of the students": "Student.Age", + "pets": "Has_Pet" + } + }, + { + "question": "what are the different #first names# and #ages of the students# who do have #pets# ?", + "db_id": "pets_1", + "orig_query": "select distinct t1.fname, t1.age from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | student : city_code (\"DET\", \"NYC\", \"PHL\"), major (520, 550, 540), sex (\"F\", \"M\"), age (22, 22, 21), fname (\"Charles\", \"Andy\", \"George\"), advisor (7723, 7723, 8772), stuid (1021, 1004, 1005), lname (\"Thornton\", \"Shieber\", \"Adams\") | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003)", + "schema_without_content": "has_animal : stuid , petid | student : city_code , major , sex , age , fname , advisor , stuid , lname | owns : stuid , petid | pets : pettype , pet_age , weight , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first names": "Student.Fname", + "ages of the students": "Student.Age", + "pets": "Has_Pet" + } + }, + { + "question": "find the #id of the pet# owned by #student# whose #last name# is \u2018smith\u2019.", + "db_id": "pets_1", + "orig_query": "select t2.petid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.lname = 'Smith'", + "schema_with_content": "has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | enrollee : age (18, 17, 16), city_code (\"PEK\", \"PEK\", \"LON\"), sex (\"F\", \"M\"), advisor (2311, 2311, 2192), lname (\"Smith\", \"Pang\", \"Jones\"), stuid (1019, 1023, 1026), major (520, 550, 540), fname (\"Shiela\", \"Bruce\", \"Derek\") | learner : age (18, 17, 16), city_code (\"PEK\", \"PEK\", \"LON\"), sex (\"F\", \"M\"), advisor (2311, 2311, 2192), lname (\"Smith\", \"Pang\", \"Jones\"), stuid (1019, 1023, 1026), major (520, 550, 540), fname (\"Shiela\", \"Bruce\", \"Derek\")", + "schema_without_content": "has_pet : stuid , petid | pets : pettype , pet_age , petid , weight | enrollee : age , city_code , sex , advisor , lname , stuid , major , fname | learner : age , city_code , sex , advisor , lname , stuid , major , fname", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "id of the pet": "Pets.PetID", + "student": "Student", + "last name": "Student.LName" + } + }, + { + "question": "find the #id of the pet# owned by #student# whose #last name# is \u2018smith\u2019.", + "db_id": "pets_1", + "orig_query": "select t2.petid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.lname = 'Smith'", + "schema_with_content": "has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | student : advisor (2311, 8722, 2311), sex (\"F\", \"M\"), age (18, 20, 20), fname (\"Jun\", \"Arthur\", \"Steven\"), stuid (1028, 1020, 1021), major (550, 600, 600), lname (\"Schwartz\", \"Thornton\", \"Goldman\"), city_code (\"DET\", \"LOS\", \"LON\") | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3)", + "schema_without_content": "has_animal : petid , stuid | owns : petid , stuid | student : advisor , sex , age , fname , stuid , major , lname , city_code | pets : pet_age , pettype , petid , weight", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "id of the pet": "Pets.PetID", + "student": "Student", + "last name": "Student.LName" + } + }, + { + "question": "what is the #id of the pet# owned by the #student# whose #last name# is 'smith'?", + "db_id": "pets_1", + "orig_query": "select t2.petid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.lname = 'Smith'", + "schema_with_content": "enrollee : major (100, 550, 600), city_code (\"YYZ\", \"PEK\", \"ROC\"), stuid (1007, 1023, 1018), fname (\"Bruce\", \"Sarah\", \"Jandy\"), lname (\"Schultz\", \"Davis\", \"Nelson\"), advisor (5718, 8918, 8741), sex (\"F\", \"M\"), age (26, 26, 17) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003) | learner : major (100, 550, 600), city_code (\"YYZ\", \"PEK\", \"ROC\"), stuid (1007, 1023, 1018), fname (\"Bruce\", \"Sarah\", \"Jandy\"), lname (\"Schultz\", \"Davis\", \"Nelson\"), advisor (5718, 8918, 8741), sex (\"F\", \"M\"), age (26, 26, 17)", + "schema_without_content": "enrollee : major , city_code , stuid , fname , lname , advisor , sex , age | has_pet : petid , stuid | pets : weight , pettype , pet_age , petid | learner : major , city_code , stuid , fname , lname , advisor , sex , age", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "id of the pet": "Pets.PetID", + "student": "Student", + "last name": "Student.LName" + } + }, + { + "question": "what is the #id of the pet# owned by the #student# whose #last name# is 'smith'?", + "db_id": "pets_1", + "orig_query": "select t2.petid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.lname = 'Smith'", + "schema_with_content": "has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\") | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | student : city_code (\"PIT\", \"PIT\", \"NAR\"), advisor (9172, 8721, 1121), sex (\"F\", \"M\"), fname (\"Bruce\", \"Lisa\", \"Stacy\"), stuid (1009, 1017, 1001), lname (\"Leighton\", \"Rugh\", \"Adams\"), age (17, 20, 16), major (520, 520, 100)", + "schema_without_content": "has_animal : petid , stuid | pets : weight , petid , pet_age , pettype | owns : petid , stuid | student : city_code , advisor , sex , fname , stuid , lname , age , major", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "id of the pet": "Pets.PetID", + "student": "Student", + "last name": "Student.LName" + } + }, + { + "question": "find the #number of pets for each student# who has any pet and #student id# .", + "db_id": "pets_1", + "orig_query": "select count(*), t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", + "schema_with_content": "learner : age (26, 22, 21), lname (\"Kim\", \"Andreou\", \"Pang\"), sex (\"F\", \"M\"), fname (\"Bruce\", \"Arthur\", \"Tracy\"), city_code (\"PIT\", \"NYC\", \"HOU\"), stuid (1032, 1017, 1029), advisor (8918, 8918, 1121), major (100, 540, 100) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | enrollee : age (26, 22, 21), lname (\"Kim\", \"Andreou\", \"Pang\"), sex (\"F\", \"M\"), fname (\"Bruce\", \"Arthur\", \"Tracy\"), city_code (\"PIT\", \"NYC\", \"HOU\"), stuid (1032, 1017, 1029), advisor (8918, 8918, 1121), major (100, 540, 100) | pets : petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1)", + "schema_without_content": "learner : age , lname , sex , fname , city_code , stuid , advisor , major | has_pet : petid , stuid | enrollee : age , lname , sex , fname , city_code , stuid , advisor , major | pets : petid , pettype , weight , pet_age", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "number of pets for each student": "has_pet.PetID", + "student": "student", + "student id": "student.StuID" + } + }, + { + "question": "find the #number of pets for each student# who has any pet and #student id# .", + "db_id": "pets_1", + "orig_query": "select count(*), t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", + "schema_with_content": "owns : petid (2001, 2002, 2003), stuid (1001, 1002) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3) | student : stuid (1020, 1010, 1025), advisor (8741, 7134, 7271), age (20, 26, 26), major (550, 600, 520), lname (\"Thornton\", \"Brown\", \"Smith\"), fname (\"Arthur\", \"Bruce\", \"Linda\"), sex (\"F\", \"M\"), city_code (\"PIT\", \"LOS\", \"PIT\")", + "schema_without_content": "owns : petid , stuid | has_animal : petid , stuid | pets : pet_age , pettype , petid , weight | student : stuid , advisor , age , major , lname , fname , sex , city_code", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "number of pets for each student": "has_pet.PetID", + "student": "student", + "student id": "student.StuID" + } + }, + { + "question": "find the #first name# and #gender of student# who have more than one #pet# .", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.sex from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid having count(*) > 1", + "schema_with_content": "learner : stuid (1035, 1005, 1006), fname (\"Susan\", \"Bruce\", \"William\"), city_code (\"DAL\", \"DET\", \"PIT\"), age (17, 26, 21), major (50, 540, 550), advisor (5718, 7712, 8423), lname (\"Leighton\", \"Jones\", \"Pang\"), sex (\"F\", \"M\") | pets : pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pet_age (3, 2, 1) | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | enrollee : stuid (1035, 1005, 1006), fname (\"Susan\", \"Bruce\", \"William\"), city_code (\"DAL\", \"DET\", \"PIT\"), age (17, 26, 21), major (50, 540, 550), advisor (5718, 7712, 8423), lname (\"Leighton\", \"Jones\", \"Pang\"), sex (\"F\", \"M\")", + "schema_without_content": "learner : stuid , fname , city_code , age , major , advisor , lname , sex | pets : pettype , weight , petid , pet_age | has_pet : petid , stuid | enrollee : stuid , fname , city_code , age , major , advisor , lname , sex", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "gender of student": "Student.Sex", + "pet": "Has_Pet" + } + }, + { + "question": "find the #first name# and #gender of student# who have more than one #pet# .", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.sex from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid having count(*) > 1", + "schema_with_content": "has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | pets : weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), pet_age (3, 2, 1) | student : advisor (7712, 7723, 8918), stuid (1010, 1004, 1020), city_code (\"ROC\", \"YYZ\", \"PIT\"), sex (\"F\", \"M\"), major (540, 100, 600), lname (\"Leighton\", \"Cheng\", \"Simms\"), fname (\"Linda\", \"Arthur\", \"Sarah\"), age (21, 21, 19) | owns : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "has_animal : stuid , petid | pets : weight , pettype , petid , pet_age | student : advisor , stuid , city_code , sex , major , lname , fname , age | owns : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "gender of student": "Student.Sex", + "pet": "Has_Pet" + } + }, + { + "question": "what is the #first name# and #gender of the all the students# who have more than one #pet# ?", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.sex from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid having count(*) > 1", + "schema_with_content": "pets : pettype (\"cat\", \"dog\"), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pet_age (3, 2, 1) | learner : city_code (\"PIT\", \"ROC\", \"BAL\"), age (21, 21, 26), stuid (1010, 1002, 1003), lname (\"Adams\", \"Brown\", \"Epp\"), advisor (8721, 8722, 8423), major (100, 550, 540), sex (\"F\", \"M\"), fname (\"Ian\", \"Sarah\", \"Tracy\") | has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | enrollee : city_code (\"PIT\", \"ROC\", \"BAL\"), age (21, 21, 26), stuid (1010, 1002, 1003), lname (\"Adams\", \"Brown\", \"Epp\"), advisor (8721, 8722, 8423), major (100, 550, 540), sex (\"F\", \"M\"), fname (\"Ian\", \"Sarah\", \"Tracy\")", + "schema_without_content": "pets : pettype , petid , weight , pet_age | learner : city_code , age , stuid , lname , advisor , major , sex , fname | has_pet : petid , stuid | enrollee : city_code , age , stuid , lname , advisor , major , sex , fname", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "gender of the all the students": "Student.Sex", + "pet": "Has_Pet" + } + }, + { + "question": "what is the #first name# and #gender of the all the students# who have more than one #pet# ?", + "db_id": "pets_1", + "orig_query": "select t1.fname, t1.sex from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid having count(*) > 1", + "schema_with_content": "student : sex (\"F\", \"M\"), major (50, 100, 550), city_code (\"LON\", \"SFO\", \"HKG\"), lname (\"Brown\", \"Andreou\", \"Shieber\"), fname (\"Bruce\", \"Steven\", \"Andy\"), stuid (1023, 1023, 1021), advisor (7712, 7271, 1148), age (18, 26, 21) | has_animal : petid (2001, 2002, 2003), stuid (1001, 1002) | owns : petid (2001, 2002, 2003), stuid (1001, 1002) | pets : petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1)", + "schema_without_content": "student : sex , major , city_code , lname , fname , stuid , advisor , age | has_animal : petid , stuid | owns : petid , stuid | pets : petid , weight , pettype , pet_age", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "first name": "Student.Fname", + "gender of the all the students": "Student.Sex", + "pet": "Has_Pet" + } + }, + { + "question": "find the #last name of the student# who has a #cat that is age# 3.", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "enrollee : major (540, 100, 520), stuid (1021, 1035, 1003), city_code (\"HOU\", \"NYC\", \"BAL\"), lname (\"Schwartz\", \"Simms\", \"Adams\"), sex (\"F\", \"M\"), age (27, 22, 26), advisor (8722, 9172, 8722), fname (\"Michael\", \"Jun\", \"Lisa\") | learner : major (540, 100, 520), stuid (1021, 1035, 1003), city_code (\"HOU\", \"NYC\", \"BAL\"), lname (\"Schwartz\", \"Simms\", \"Adams\"), sex (\"F\", \"M\"), age (27, 22, 26), advisor (8722, 9172, 8722), fname (\"Michael\", \"Jun\", \"Lisa\") | pets : weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\"), pet_age (3, 2, 1) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "enrollee : major , stuid , city_code , lname , sex , age , advisor , fname | learner : major , stuid , city_code , lname , sex , age , advisor , fname | pets : weight , petid , pettype , pet_age | has_pet : stuid , petid", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is age": "Pets.PetType" + } + }, + { + "question": "find the #last name of the student# who has a #cat that is age# 3.", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "owns : stuid (1001, 1002), petid (2001, 2002, 2003) | student : advisor (9172, 7792, 1121), lname (\"Gompers\", \"Thornton\", \"Simms\"), major (600, 550, 100), sex (\"F\", \"M\"), age (27, 20, 18), stuid (1032, 1006, 1031), city_code (\"NAR\", \"DET\", \"PEK\"), fname (\"Jun\", \"David\", \"Charles\") | pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003)", + "schema_without_content": "owns : stuid , petid | student : advisor , lname , major , sex , age , stuid , city_code , fname | pets : pet_age , pettype , weight , petid | has_animal : stuid , petid", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is age": "Pets.PetType" + } + }, + { + "question": "find the #last name of the student# who has a #cat that is age# 3.", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "Animals : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3) | student : age (20, 21, 19), lname (\"Brody\", \"Epp\", \"Pang\"), major (550, 50, 50), city_code (\"PHL\", \"CHI\", \"DET\"), advisor (2311, 8741, 2311), fname (\"Jun\", \"William\", \"Derek\"), sex (\"F\", \"M\"), stuid (1019, 1022, 1003) | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Companions : petid (2001, 2002, 2003), pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3)", + "schema_without_content": "Animals : petid , pet_age , pettype , weight | student : age , lname , major , city_code , advisor , fname , sex , stuid | has_pet : stuid , petid | Companions : petid , pet_age , pettype , weight", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is age": "Pets.PetType" + } + }, + { + "question": "what is the #last name of the student# who has a #cat that is 3 years old# ?", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "has_pet : petid (2001, 2002, 2003), stuid (1001, 1002) | enrollee : advisor (8918, 7712, 7792), stuid (1006, 1002, 1014), lname (\"Schultz\", \"Nelson\", \"Davis\"), city_code (\"LOS\", \"NAR\", \"DAL\"), major (520, 540, 100), age (17, 19, 27), fname (\"Ian\", \"Linda\", \"Andy\"), sex (\"F\", \"M\") | learner : advisor (8918, 7712, 7792), stuid (1006, 1002, 1014), lname (\"Schultz\", \"Nelson\", \"Davis\"), city_code (\"LOS\", \"NAR\", \"DAL\"), major (520, 540, 100), age (17, 19, 27), fname (\"Ian\", \"Linda\", \"Andy\"), sex (\"F\", \"M\") | pets : pettype (\"cat\", \"dog\"), pet_age (3, 2, 1), petid (2001, 2002, 2003), weight (12.0, 13.4, 9.3)", + "schema_without_content": "has_pet : petid , stuid | enrollee : advisor , stuid , lname , city_code , major , age , fname , sex | learner : advisor , stuid , lname , city_code , major , age , fname , sex | pets : pettype , pet_age , petid , weight", + "extra_map": null, + "extra_table_map": { + "student": [ + "enrollee", + "learner" + ] + }, + "db_schema": { + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "enrollee": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "learner": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is 3 years old": "Pets.PetType" + } + }, + { + "question": "what is the #last name of the student# who has a #cat that is 3 years old# ?", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "pets : pet_age (3, 2, 1), pettype (\"cat\", \"dog\"), weight (12.0, 13.4, 9.3), petid (2001, 2002, 2003) | owns : stuid (1001, 1002), petid (2001, 2002, 2003) | has_animal : stuid (1001, 1002), petid (2001, 2002, 2003) | student : advisor (7792, 5718, 8721), fname (\"Jun\", \"Arthur\", \"Steven\"), city_code (\"HKG\", \"LOS\", \"LOS\"), lname (\"Leighton\", \"Shieber\", \"Davis\"), age (17, 22, 27), stuid (1018, 1011, 1004), sex (\"F\", \"M\"), major (540, 550, 540)", + "schema_without_content": "pets : pet_age , pettype , weight , petid | owns : stuid , petid | has_animal : stuid , petid | student : advisor , fname , city_code , lname , age , stuid , sex , major", + "extra_map": null, + "extra_table_map": { + "has_pet": [ + "owns", + "has_animal" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is 3 years old": "Pets.PetType" + } + }, + { + "question": "what is the #last name of the student# who has a #cat that is 3 years old# ?", + "db_id": "pets_1", + "orig_query": "select t1.lname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pet_age = 3 and t3.pettype = 'cat'", + "schema_with_content": "Companions : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\") | has_pet : stuid (1001, 1002), petid (2001, 2002, 2003) | Animals : weight (12.0, 13.4, 9.3), pet_age (3, 2, 1), petid (2001, 2002, 2003), pettype (\"cat\", \"dog\") | student : stuid (1026, 1019, 1018), sex (\"F\", \"M\"), fname (\"William\", \"Dinesh\", \"Michael\"), major (600, 100, 540), age (18, 18, 20), advisor (5718, 7271, 7134), lname (\"Kumar\", \"Cheng\", \"Han\"), city_code (\"NYC\", \"PIT\", \"DET\")", + "schema_without_content": "Companions : weight , pet_age , petid , pettype | has_pet : stuid , petid | Animals : weight , pet_age , petid , pettype | student : stuid , sex , fname , major , age , advisor , lname , city_code", + "extra_map": null, + "extra_table_map": { + "pets": [ + "Animals", + "Companions" + ] + }, + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "column_linking_gt": { + "last name of the student": "Student.LName", + "cat that is 3 years old": "Pets.PetType" + } + }, + { + "question": "how many countries does each continent have? list the #continent id# , #continent name# and the #number of countries# .", + "db_id": "car_1", + "orig_query": "select t1.contid, t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid", + "schema_with_content": "continents_list : contid (5, 5, 2), continent (\"africa\", \"africa\", \"europe\") | car_names : makeid (67, 51, 57), make (\"amc ambassador dpl\", \"ford mustang boss 302\", \"chevrolet monte carlo s\"), model (\"renault\", \"ford\", \"buick\") | cars_data : id (224, 224, 367), cylinders (5, 6, 5), horsepower (\"190\", \"85\", \"107\"), edispl (262.0, 112.0, 181.0), accelerate (19.4, 11.6, 16.9), mpg (\"23.2\", \"33.7\", \"40.8\"), year (1971, 1971, 1974), weight (2451, 2145, 2385) | countries : countryid (15, 5, 6), countryname (\"egypt\", \"france\", \"russia\"), continent (5, 2, 1) | planet_regions : contid (5, 5, 2), continent (\"africa\", \"africa\", \"europe\") | car_makers : id (21, 19, 12), country (\"1\", \"4\", \"7\"), fullname (\"Saab\", \"Kia Motors\", \"Citroen\"), maker (\"fiat\", \"bmw\", \"amc\") | model_list : model (\"buick\", \"kia\", \"chrysler\"), maker (22, 6, 16), modelid (36, 18, 29)", + "schema_without_content": "continents_list : contid , continent | car_names : makeid , make , model | cars_data : id , cylinders , horsepower , edispl , accelerate , mpg , year , weight | countries : countryid , countryname , continent | planet_regions : contid , continent | car_makers : id , country , fullname , maker | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "continent id": "continents.ContId", + "continent name": "continents.Continent", + "number of countries": "countries" + } + }, + { + "question": "how many countries does each continent have? list the #continent id# , #continent name# and the #number of countries# .", + "db_id": "car_1", + "orig_query": "select t1.contid, t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid", + "schema_with_content": "car_names : make (\"plymouth volare custom\", \"chevrolet malibu\", \"buick century limited\"), makeid (135, 18, 177), model (\"chevrolet\", \"chevrolet\", \"triumph\") | state : countryid (12, 7, 15), continent (2, 4, 2), countryname (\"korea\", \"usa\", \"russia\") | continents : continent (\"america\", \"europe\", \"africa\"), contid (3, 1, 5) | model_list : maker (4, 14, 5), model (\"datsun\", \"opel\", \"scion\"), modelid (36, 20, 31) | nation : countryid (12, 7, 15), continent (2, 4, 2), countryname (\"korea\", \"usa\", \"russia\") | car_makers : id (19, 13, 22), country (\"1\", \"3\", \"3\"), maker (\"peugeaut\", \"volkswagen\", \"peugeaut\"), fullname (\"Fiat\", \"BMW\", \"Volvo\") | cars_data : edispl (360.0, 163.0, 79.0), mpg (\"19.9\", \"19.1\", \"44\"), id (127, 31, 302), weight (3433, 3730, 4274), horsepower (\"48\", \"94\", \"140\"), accelerate (12.2, 20.0, 14.3), year (1972, 1978, 1980), cylinders (3, 3, 3)", + "schema_without_content": "car_names : make , makeid , model | state : countryid , continent , countryname | continents : continent , contid | model_list : maker , model , modelid | nation : countryid , continent , countryname | car_makers : id , country , maker , fullname | cars_data : edispl , mpg , id , weight , horsepower , accelerate , year , cylinders", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "continent id": "continents.ContId", + "continent name": "continents.Continent", + "number of countries": "countries" + } + }, + { + "question": "for each continent, list its id, name, and how many #countries# it has?", + "db_id": "car_1", + "orig_query": "select t1.contid, t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid", + "schema_with_content": "model_list : maker (19, 16, 17), model (\"citroen\", \"amc\", \"fiat\"), modelid (23, 24, 1) | car_makers : country (\"1\", \"7\", \"3\"), fullname (\"Subaru\", \"Ford Motor Company\", \"BMW\"), id (2, 4, 5), maker (\"chrysler\", \"citroen\", \"triumph\") | continents_list : continent (\"australia\", \"europe\", \"asia\"), contid (1, 4, 2) | car_names : make (\"plymouth cuda 340\", \"chevrolet chevelle malibu classic\", \"dodge colt hatchback custom\"), makeid (304, 95, 257), model (\"opel\", \"mercury\", \"chrysler\") | cars_data : edispl (141.0, 101.0, 119.0), id (291, 78, 381), mpg (\"11\", \"18.1\", \"18.5\"), horsepower (\"60\", \"85\", \"94\"), accelerate (23.7, 18.5, 16.0), weight (3233, 2310, 4312), year (1971, 1981, 1982), cylinders (8, 3, 6) | planet_regions : continent (\"australia\", \"europe\", \"asia\"), contid (1, 4, 2) | countries : countryname (\"france\", \"nigeria\", \"new zealand\"), continent (1, 1, 5), countryid (14, 7, 10)", + "schema_without_content": "model_list : maker , model , modelid | car_makers : country , fullname , id , maker | continents_list : continent , contid | car_names : make , makeid , model | cars_data : edispl , id , mpg , horsepower , accelerate , weight , year , cylinders | planet_regions : continent , contid | countries : countryname , continent , countryid", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "countries": "countries", + "continent id": "continents.ContId", + "continent name": "continents.Continent" + } + }, + { + "question": "for each continent, list its id, name, and how many #countries# it has?", + "db_id": "car_1", + "orig_query": "select t1.contid, t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid", + "schema_with_content": "continents : continent (\"europe\", \"australia\", \"america\"), contid (4, 4, 3) | car_names : makeid (219, 147, 373), model (\"citroen\", \"saab\", \"mercedes-benz\"), make (\"toyota corolla 1600 (sw)\", \"chevrolet cavalier 2-door\", \"honda civic 1300\") | car_makers : id (2, 14, 13), fullname (\"Ford Motor Company\", \"American Motor Company\", \"Daimler Benz\"), country (\"8\", \"4\", \"6\"), maker (\"toyota\", \"renault\", \"toyota\") | nation : countryid (9, 11, 10), continent (3, 5, 2), countryname (\"japan\", \"japan\", \"sweden\") | state : countryid (9, 11, 10), continent (3, 5, 2), countryname (\"japan\", \"japan\", \"sweden\") | cars_data : weight (2957, 3003, 4080), edispl (260.0, 144.0, 163.0), id (397, 185, 41), cylinders (6, 5, 6), horsepower (\"67\", \"190\", \"69\"), year (1978, 1978, 1982), accelerate (14.2, 9.5, 23.7), mpg (\"null\", \"19.1\", \"33\") | model_list : maker (3, 22, 11), modelid (15, 21, 18), model (\"peugeot\", \"dodge\", \"hyundai\")", + "schema_without_content": "continents : continent , contid | car_names : makeid , model , make \", \"chevrolet cavalier 2-door\", \"honda civic 1300\" | car_makers : id , fullname , country , maker | nation : countryid , continent , countryname | state : countryid , continent , countryname | cars_data : weight , edispl , id , cylinders , horsepower , year , accelerate , mpg | model_list : maker , modelid , model", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "countries": "countries", + "continent id": "continents.ContId", + "continent name": "continents.Continent" + } + }, + { + "question": "how many #models# does each #car maker# produce? list #maker full name# , #id# and the number.", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id, count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id", + "schema_with_content": "model_list : model (\"oldsmobile\", \"volvo\", \"opel\"), modelid (3, 10, 14), maker (18, 12, 14) | cars_data : weight (2050, 2074, 4166), cylinders (4, 4, 8), mpg (\"44\", \"41.5\", \"34.3\"), horsepower (\"91\", \"95\", \"115\"), accelerate (15.0, 10.5, 19.0), id (40, 359, 298), year (1975, 1974, 1978), edispl (302.0, 155.0, 173.0) | countries : continent (4, 2, 3), countryname (\"korea\", \"nigeria\", \"italy\"), countryid (11, 13, 15) | continents : continent (\"australia\", \"africa\", \"africa\"), contid (3, 2, 2) | auto_brands : maker (\"toyota\", \"triumph\", \"nissan\"), fullname (\"Honda\", \"Nissan Motors\", \"Mazda\"), id (8, 12, 9), country (\"2\", \"2\", \"2\") | manufacturers : maker (\"toyota\", \"triumph\", \"nissan\"), fullname (\"Honda\", \"Nissan Motors\", \"Mazda\"), id (8, 12, 9), country (\"2\", \"2\", \"2\") | car_names : make (\"toyota corolla liftback\", \"plymouth horizon tc3\", \"ford fairmont 4\"), makeid (229, 12, 15), model (\"subaru\", \" volkswagen\", \"hi\")", + "schema_without_content": "model_list : model , modelid , maker | cars_data : weight , cylinders , mpg , horsepower , accelerate , id , year , edispl | countries : continent , countryname , countryid | continents : continent , contid | auto_brands : maker , fullname , id , country | manufacturers : maker , fullname , id , country | car_names : make , makeid , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker": "car_makers", + "maker full name": "car_makers.FullName", + "id": "car_makers.Id" + } + }, + { + "question": "how many #models# does each #car maker# produce? list #maker full name# , #id# and the number.", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id, count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id", + "schema_with_content": "countries : countryid (6, 6, 9), countryname (\"australia\", \"nigeria\", \"egypt\"), continent (3, 5, 3) | continents : contid (1, 5, 4), continent (\"australia\", \"africa\", \"africa\") | car_makers : id (5, 14, 8), maker (\"volvo\", \"renault\", \"saab\"), fullname (\"Ford Motor Company\", \"Citroen\", \"Mazda\"), country (\"7\", \"8\", \"3\") | cars_data : year (1970, 1980, 1971), weight (3535, 2472, 2979), id (324, 327, 176), edispl (340.0, 305.0, 360.0), cylinders (4, 6, 4), horsepower (\"92\", \"58\", \"68\"), accelerate (20.5, 14.7, 13.6), mpg (\"21.1\", \"33\", \"15\") | car_names : model (\"citroen\", \"volvo\", \"fiat\"), make (\"amc ambassador dpl\", \"mazda glc custom\", \"ford pinto runabout\"), makeid (22, 225, 368) | car_models : model (\"toyota\", \"chrysler\", \"chrysler\"), maker (10, 10, 23), modelid (28, 24, 35) | vehicle_models : model (\"toyota\", \"chrysler\", \"chrysler\"), maker (10, 10, 23), modelid (28, 24, 35)", + "schema_without_content": "countries : countryid , countryname , continent | continents : contid , continent | car_makers : id , maker , fullname , country | cars_data : year , weight , id , edispl , cylinders , horsepower , accelerate , mpg | car_names : model , make , makeid | car_models : model , maker , modelid | vehicle_models : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker": "car_makers", + "maker full name": "car_makers.FullName", + "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_id": "car_1", + "orig_query": "select t1.fullname, t1.id, count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id", + "schema_with_content": "auto_brands : id (14, 12, 8), fullname (\"Opel\", \"BMW\", \"Ford Motor Company\"), country (\"6\", \"3\", \"6\"), maker (\"daimler benz\", \"saab\", \"gm\") | model_list : maker (9, 11, 15), model (\"fiat\", \"renault\", \"mercury\"), modelid (13, 8, 13) | countries : countryname (\"usa\", \"france\", \"france\"), countryid (6, 12, 2), continent (3, 1, 3) | continents : contid (5, 5, 1), continent (\"asia\", \"america\", \"europe\") | cars_data : id (405, 39, 114), edispl (440.0, 131.0, 76.0), weight (2965, 2025, 2957), year (1981, 1970, 1976), mpg (\"29.5\", \"20.8\", \"11\"), horsepower (\"90\", \"160\", \"74\"), accelerate (20.7, 15.9, 15.5), cylinders (6, 6, 4) | manufacturers : id (14, 12, 8), fullname (\"Opel\", \"BMW\", \"Ford Motor Company\"), country (\"6\", \"3\", \"6\"), maker (\"daimler benz\", \"saab\", \"gm\") | car_names : make (\"mazda rx2 coupe\", \"volkswagen super beetle\", \"dodge colt hatchback custom\"), makeid (112, 153, 235), model (\"chevrolet\", \"mercedes-benz\", \"subaru\")", + "schema_without_content": "auto_brands : id , fullname , country , maker | model_list : maker , model , modelid | countries : countryname , countryid , continent | continents : contid , continent | cars_data : id , edispl , weight , year , mpg , horsepower , accelerate , cylinders | manufacturers : id , fullname , country , maker | car_names : make , makeid , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "full name of each car maker": "car_makers.FullName", + "id": "car_makers.Id", + "models": "model_list.Model" + } + }, + { + "question": "what is the #full name of each car maker# , along with its #id# and how many #models# it produces?", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id, count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id", + "schema_with_content": "car_models : model (\"kia\", \"mercury\", \"toyota\"), modelid (1, 18, 34), maker (2, 8, 14) | cars_data : id (253, 79, 6), accelerate (13.7, 13.5, 16.9), horsepower (\"133\", \"66\", \"167\"), weight (3288, 4654, 2639), edispl (400.0, 135.0, 135.0), cylinders (8, 8, 8), year (1976, 1978, 1981), mpg (\"44.6\", \"21\", \"34.1\") | car_names : makeid (135, 195, 52), model (\"pontiac\", \"dodge\", \"subaru\"), make (\"renault lecar deluxe\", \"ford gran torino (sw)\", \"opel manta\") | continents : continent (\"africa\", \"africa\", \"australia\"), contid (4, 1, 5) | vehicle_models : model (\"kia\", \"mercury\", \"toyota\"), modelid (1, 18, 34), maker (2, 8, 14) | car_makers : maker (\"chrysler\", \"hyundai\", \"hyundai\"), id (22, 1, 5), country (\"7\", \"5\", \"6\"), fullname (\"Mazda\", \"American Motor Company\", \"Subaru\") | countries : continent (3, 4, 1), countryid (10, 7, 1), countryname (\"russia\", \"italy\", \"russia\")", + "schema_without_content": "car_models : model , modelid , maker | cars_data : id , accelerate , horsepower , weight , edispl , cylinders , year , mpg | car_names : makeid , model , make \", \"opel manta\" | continents : continent , contid | vehicle_models : model , modelid , maker | car_makers : maker , id , country , fullname | countries : continent , countryid , countryname", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "full name of each car maker": "car_makers.FullName", + "id": "car_makers.Id", + "models": "model_list.Model" + } + }, + { + "question": "which #model# of the car has the minimum #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.horsepower asc limit 1", + "schema_with_content": "continents : contid (5, 1, 3), continent (\"africa\", \"asia\", \"africa\") | model_list : model (\"plymouth\", \"hyundai\", \"citroen\"), modelid (15, 6, 13), maker (16, 19, 20) | car_makers : id (12, 8, 21), country (\"3\", \"7\", \"8\"), maker (\"opel\", \"volvo\", \"volkswagen\"), fullname (\"Chrysler\", \"Kia Motors\", \"Kia Motors\") | vehicle_names : make (\"citroen ds-21 pallas\", \"toyota corona mark ii\", \"chevrolet vega (sw)\"), makeid (90, 314, 372), model (\"mazda\", \"cadillac\", \"cadillac\") | cars_data : cylinders (8, 8, 5), accelerate (15.9, 19.6, 16.1), id (1, 118, 251), weight (3465, 2789, 3193), year (1976, 1975, 1978), mpg (\"40.9\", \"25.8\", \"16.2\"), edispl (80.0, 383.0, 114.0), horsepower (\"61\", \"62\", \"158\") | countries : continent (2, 5, 3), countryid (4, 2, 9), countryname (\"uk\", \"russia\", \"japan\") | car_models : make (\"citroen ds-21 pallas\", \"toyota corona mark ii\", \"chevrolet vega (sw)\"), makeid (90, 314, 372), model (\"mazda\", \"cadillac\", \"cadillac\")", + "schema_without_content": "continents : contid , continent | model_list : model , modelid , maker | car_makers : id , country , maker , fullname | vehicle_names : make \", makeid , model | cars_data : cylinders , accelerate , id , weight , year , mpg , edispl , horsepower | countries : continent , countryid , countryname | car_models : make \", makeid , model", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "which #model# of the car has the minimum #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.horsepower asc limit 1", + "schema_with_content": "car_makers : country (\"5\", \"4\", \"6\"), id (3, 1, 14), maker (\"volkswagen\", \"peugeaut\", \"honda\"), fullname (\"Fiat\", \"General Motors\", \"Saab\") | model_list : modelid (11, 22, 21), model (\"citroen\", \"cadillac\", \"scion\"), maker (13, 9, 12) | vehicle_data : accelerate (18.8, 18.8, 11.2), id (293, 101, 226), mpg (\"35.1\", \"46.6\", \"16.5\"), edispl (120.0, 72.0, 122.0), weight (2489, 1875, 4952), horsepower (\"49\", \"137\", \"84\"), year (1976, 1972, 1979), cylinders (8, 3, 6) | countries : countryid (14, 1, 10), continent (5, 1, 2), countryname (\"russia\", \"japan\", \"italy\") | continents : contid (3, 1, 3), continent (\"asia\", \"asia\", \"europe\") | auto_data : accelerate (18.8, 18.8, 11.2), id (293, 101, 226), mpg (\"35.1\", \"46.6\", \"16.5\"), edispl (120.0, 72.0, 122.0), weight (2489, 1875, 4952), horsepower (\"49\", \"137\", \"84\"), year (1976, 1972, 1979), cylinders (8, 3, 6) | car_names : make (\"mercury zephyr\", \"plymouth valiant custom\", \"triumph tr7 coupe\"), model (\"datsun\", \"audi\", \"amc\"), makeid (134, 393, 397)", + "schema_without_content": "car_makers : country , id , maker , fullname | model_list : modelid , model , maker | vehicle_data : accelerate , id , mpg , edispl , weight , horsepower , year , cylinders | countries : countryid , continent , countryname | continents : contid , continent | auto_data : accelerate , id , mpg , edispl , weight , horsepower , year , cylinders | car_names : make , model , makeid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "what is the #model# of the car with the smallest amount of #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.horsepower asc limit 1", + "schema_with_content": "car_makers : fullname (\"Renault\", \"Renault\", \"Kia Motors\"), id (7, 6, 20), country (\"6\", \"7\", \"1\"), maker (\"nissan\", \"toyota\", \"citroen\") | vehicle_names : make (\"fiat 124 tc\", \"pontiac phoenix lj\", \"dodge st. regis\"), model (\"oldsmobile\", \"ford\", \"peugeot\"), makeid (337, 279, 375) | cars_data : edispl (96.0, 85.0, 131.0), horsepower (\"208\", \"48\", \"85\"), accelerate (21.7, 15.5, 16.5), id (254, 249, 222), weight (2074, 2962, 4380), mpg (\"18.5\", \"33\", \"40.8\"), year (1972, 1972, 1974), cylinders (3, 8, 5) | model_list : maker (15, 21, 2), model (\"plymouth\", \"hi\", \"hi\"), modelid (16, 16, 12) | car_models : make (\"fiat 124 tc\", \"pontiac phoenix lj\", \"dodge st. regis\"), model (\"oldsmobile\", \"ford\", \"peugeot\"), makeid (337, 279, 375) | countries : countryname (\"usa\", \"italy\", \"korea\"), continent (5, 2, 4), countryid (4, 13, 1) | continents : contid (3, 4, 4), continent (\"asia\", \"america\", \"asia\")", + "schema_without_content": "car_makers : fullname , id , country , maker | vehicle_names : make , model , makeid | cars_data : edispl , horsepower , accelerate , id , weight , mpg , year , cylinders | model_list : maker , model , modelid | car_models : make , model , makeid | countries : countryname , continent , countryid | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "what is the #model# of the car with the smallest amount of #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.horsepower asc limit 1", + "schema_with_content": "countries : continent (3, 4, 3), countryid (8, 14, 14), countryname (\"new zealand\", \"egypt\", \"nigeria\") | continents : contid (4, 3, 2), continent (\"europe\", \"africa\", \"australia\") | car_makers : country (\"7\", \"7\", \"8\"), fullname (\"Peugeaut\", \"Citroen\", \"Renault\"), id (21, 3, 3), maker (\"volkswagen\", \"honda\", \"chrysler\") | model_list : modelid (12, 29, 8), model (\"volkswagen\", \"mazda\", \"plymouth\"), maker (20, 2, 19) | car_names : make (\"saab 900s\", \"peugeot 504\", \"mercury grand marquis\"), makeid (57, 305, 33), model (\"fiat\", \"capri\", \"fiat\") | vehicle_data : year (1981, 1973, 1970), accelerate (13.4, 17.6, 19.0), mpg (\"25\", \"21\", \"27.5\"), cylinders (6, 5, 5), horsepower (\"137\", \"96\", \"208\"), weight (5140, 2035, 1937), id (122, 149, 74), edispl (68.0, 318.0, 131.0) | auto_data : year (1981, 1973, 1970), accelerate (13.4, 17.6, 19.0), mpg (\"25\", \"21\", \"27.5\"), cylinders (6, 5, 5), horsepower (\"137\", \"96\", \"208\"), weight (5140, 2035, 1937), id (122, 149, 74), edispl (68.0, 318.0, 131.0)", + "schema_without_content": "countries : continent , countryid , countryname | continents : contid , continent | car_makers : country , fullname , id , maker | model_list : modelid , model , maker | car_names : make , makeid , model | vehicle_data : year , accelerate , mpg , cylinders , horsepower , weight , id , edispl | auto_data : year , accelerate , mpg , cylinders , horsepower , weight , id , edispl", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.weight < (select avg(weight) from cars_data)", + "schema_with_content": "car_makers : id (22, 5, 23), country (\"8\", \"6\", \"3\"), fullname (\"Triumph\", \"Hyundai\", \"Daimler Benz\"), maker (\"chrysler\", \"mazda\", \"hyundai\") | car_models : make (\"triumph tr7 coupe\", \"oldsmobile starfire sx\", \" mazda glc deluxe\"), makeid (232, 390, 152), model (\"capri\", \"mazda\", \"mercury\") | countries : countryid (4, 3, 12), continent (4, 2, 3), countryname (\"nigeria\", \"australia\", \"nigeria\") | vehicle_names : make (\"triumph tr7 coupe\", \"oldsmobile starfire sx\", \" mazda glc deluxe\"), makeid (232, 390, 152), model (\"capri\", \"mazda\", \"mercury\") | cars_data : horsepower (\"180\", \"115\", \"89\"), cylinders (3, 6, 8), edispl (88.0, 72.0, 146.0), mpg (\"44.3\", \"38\", \"25.5\"), id (301, 379, 329), weight (4440, 1985, 2725), accelerate (20.7, 15.8, 12.6), year (1978, 1979, 1975) | continents : contid (1, 1, 5), continent (\"africa\", \"america\", \"america\") | model_list : maker (6, 21, 23), modelid (33, 12, 4), model (\"volkswagen\", \"subaru\", \"scion\")", + "schema_without_content": "car_makers : id , country , fullname , maker | car_models : make , makeid , model | countries : countryid , continent , countryname | vehicle_names : make , makeid , model | cars_data : horsepower , cylinders , edispl , mpg , id , weight , accelerate , year | continents : contid , continent | model_list : maker , modelid , model", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "weight": "cars_data.Weight" + } + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.weight < (select avg(weight) from cars_data)", + "schema_with_content": "vehicle_data : weight (3900, 3193, 2962), year (1975, 1980, 1978), mpg (\"21.6\", \"25.5\", \"24\"), horsepower (\"225\", \"125\", \"84\"), cylinders (6, 3, 5), accelerate (12.5, 8.0, 24.6), id (203, 362, 165), edispl (383.0, 119.0, 146.0) | car_makers : id (9, 17, 17), country (\"7\", \"3\", \"2\"), fullname (\"Saab\", \"Volvo\", \"General Motors\"), maker (\"chrysler\", \"ford\", \"triumph\") | model_list : maker (7, 1, 14), model (\"mercedes-benz\", \"chevrolet\", \"volvo\"), modelid (27, 3, 12) | continents : continent (\"asia\", \"europe\", \"america\"), contid (2, 2, 3) | car_names : make (\"datsun 280-zx\", \"mercury capri v6\", \"datsun 510 (sw)\"), model (\"amc\", \"fiat\", \"honda\"), makeid (291, 177, 172) | auto_data : weight (3900, 3193, 2962), year (1975, 1980, 1978), mpg (\"21.6\", \"25.5\", \"24\"), horsepower (\"225\", \"125\", \"84\"), cylinders (6, 3, 5), accelerate (12.5, 8.0, 24.6), id (203, 362, 165), edispl (383.0, 119.0, 146.0) | countries : countryid (12, 12, 6), continent (5, 4, 4), countryname (\"sweden\", \"usa\", \"usa\")", + "schema_without_content": "vehicle_data : weight , year , mpg , horsepower , cylinders , accelerate , id , edispl | car_makers : id , country , fullname , maker | model_list : maker , model , modelid | continents : continent , contid | car_names : make \", model , makeid | auto_data : weight , year , mpg , horsepower , cylinders , accelerate , id , edispl | countries : countryid , continent , countryname", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "weight": "cars_data.Weight" + } + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.weight < (select avg(weight) from cars_data)", + "schema_with_content": "continents : continent (\"asia\", \"america\", \"australia\"), contid (4, 1, 4) | model_list : maker (2, 22, 21), modelid (11, 30, 21), model (\"scion\", \"chrysler\", \"ford\") | car_models : makeid (220, 334, 393), make (\"datsun 710\", \"mazda glc 4\", \"oldsmobile cutlass ciera (diesel)\"), model (\"mercedes-benz\", \"peugeot\", \"oldsmobile\") | vehicle_names : makeid (220, 334, 393), make (\"datsun 710\", \"mazda glc 4\", \"oldsmobile cutlass ciera (diesel)\"), model (\"mercedes-benz\", \"peugeot\", \"oldsmobile\") | cars_data : mpg (\"27.2\", \"18.2\", \"29.9\"), accelerate (11.4, 14.1, 14.7), horsepower (\"116\", \"68\", \"190\"), id (322, 190, 116), edispl (231.0, 225.0, 130.0), cylinders (6, 5, 3), weight (2265, 2904, 2639), year (1971, 1974, 1975) | car_makers : maker (\"toyota\", \"citroen\", \"bmw\"), country (\"8\", \"3\", \"6\"), fullname (\"Triumph\", \"Fiat\", \"Kia Motors\"), id (11, 16, 13) | countries : countryid (6, 6, 13), continent (5, 4, 2), countryname (\"japan\", \"brazil\", \"france\")", + "schema_without_content": "continents : continent , contid | model_list : maker , modelid , model | car_models : makeid , make \", model | vehicle_names : makeid , make \", model | cars_data : mpg , accelerate , horsepower , id , edispl , cylinders , weight , year | car_makers : maker , country , fullname , id | countries : countryid , continent , countryname", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "weight": "cars_data.Weight" + } + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.weight < (select avg(weight) from cars_data)", + "schema_with_content": "car_names : make (\"volkswagen super beetle 117\", \"oldsmobile omega brougham\", \"amc ambassador dpl\"), model (\"chevrolet\", \"mercury\", \"citroen\"), makeid (225, 35, 260) | car_makers : maker (\"renault\", \"volvo\", \"ford\"), country (\"3\", \"6\", \"1\"), fullname (\"Fiat\", \"Citroen\", \"Opel\"), id (15, 13, 21) | auto_data : edispl (390.0, 120.0, 111.0), year (1974, 1981, 1978), id (163, 173, 309), cylinders (6, 3, 8), weight (3432, 3270, 4638), mpg (\"23\", \"38\", \"29.5\"), horsepower (\"67\", \"49\", \"175\"), accelerate (17.0, 21.0, 17.9) | vehicle_data : edispl (390.0, 120.0, 111.0), year (1974, 1981, 1978), id (163, 173, 309), cylinders (6, 3, 8), weight (3432, 3270, 4638), mpg (\"23\", \"38\", \"29.5\"), horsepower (\"67\", \"49\", \"175\"), accelerate (17.0, 21.0, 17.9) | continents : continent (\"europe\", \"asia\", \"europe\"), contid (5, 3, 3) | countries : countryid (10, 4, 13), countryname (\"italy\", \"new zealand\", \"japan\"), continent (1, 4, 5) | model_list : model (\"subaru\", \"fiat\", \"bmw\"), maker (13, 3, 12), modelid (28, 14, 23)", + "schema_without_content": "car_names : make , model , makeid | car_makers : maker , country , fullname , id | auto_data : edispl , year , id , cylinders , weight , mpg , horsepower , accelerate | vehicle_data : edispl , year , id , cylinders , weight , mpg , horsepower , accelerate | continents : continent , contid | countries : countryid , countryname , continent | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "weight": "cars_data.Weight" + } + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "car_names : model (\"citroen\", \"bmw\", \"honda\"), make (\"mercury lynx l\", \"ford fairmont\", \"chrysler new yorker brougham\"), makeid (17, 30, 43) | manufacturers : fullname (\"Honda\", \"Nissan Motors\", \"Kia Motors\"), maker (\"peugeaut\", \"honda\", \"toyota\"), country (\"8\", \"7\", \"6\"), id (11, 16, 3) | auto_brands : fullname (\"Honda\", \"Nissan Motors\", \"Kia Motors\"), maker (\"peugeaut\", \"honda\", \"toyota\"), country (\"8\", \"7\", \"6\"), id (11, 16, 3) | cars_data : horsepower (\"215\", \"83\", \"69\"), id (217, 283, 59), weight (3620, 2050, 3410), year (1974, 1979, 1981), mpg (\"31.5\", \"33.5\", \"17.5\"), edispl (232.0, 135.0, 390.0), accelerate (16.0, 11.4, 16.5), cylinders (3, 6, 6) | model_list : maker (15, 9, 15), modelid (33, 30, 24), model (\"mercedes\", \"mercury\", \"scion\") | continents : continent (\"europe\", \"asia\", \"america\"), contid (1, 3, 4) | countries : countryid (9, 12, 12), continent (2, 2, 5), countryname (\"russia\", \"mexico\", \"australia\")", + "schema_without_content": "car_names : model , make , makeid | manufacturers : fullname , maker , country , id | auto_brands : fullname , maker , country , id | cars_data : horsepower , id , weight , year , mpg , edispl , accelerate , cylinders | model_list : maker , modelid , model | continents : continent , contid | countries : countryid , continent , countryname", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the makers": "car_makers.Maker", + "year": "cars_data.Year" + } + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "car_models : maker (2, 22, 7), model (\"oldsmobile\", \"oldsmobile\", \"fiat\"), modelid (31, 2, 13) | car_names : make (\"toyota tercel\", \"chevrolet malibu classic (sw)\", \"fiat strada custom\"), makeid (310, 335, 56), model (\"ford\", \"amc\", \"dodge\") | car_makers : maker (\"toyota\", \"bmw\", \"ford\"), fullname (\"Opel\", \"Chrysler\", \"Renault\"), country (\"1\", \"4\", \"3\"), id (17, 15, 17) | cars_data : edispl (101.0, 90.0, 440.0), mpg (\"37\", \"24\", \"30.9\"), accelerate (16.1, 9.0, 13.8), horsepower (\"120\", \"140\", \"65\"), cylinders (3, 3, 8), id (44, 52, 179), weight (2003, 2335, 4220), year (1972, 1974, 1980) | vehicle_models : maker (2, 22, 7), model (\"oldsmobile\", \"oldsmobile\", \"fiat\"), modelid (31, 2, 13) | continents : contid (3, 3, 5), continent (\"asia\", \"america\", \"america\") | countries : continent (4, 2, 2), countryid (4, 11, 5), countryname (\"korea\", \"usa\", \"germany\")", + "schema_without_content": "car_models : maker , model , modelid | car_names : make \", \"fiat strada custom\", makeid , model | car_makers : maker , fullname , country , id | cars_data : edispl , mpg , accelerate , horsepower , cylinders , id , weight , year | vehicle_models : maker , model , modelid | continents : contid , continent | countries : continent , countryid , countryname", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the makers": "car_makers.Maker", + "year": "cars_data.Year" + } + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "model_list : modelid (36, 15, 25), model (\"mercedes\", \"peugeot\", \"chevrolet\"), maker (3, 21, 23) | car_models : makeid (153, 47, 293), model (\"hi\", \"mercury\", \"plymouth\"), make (\"buick regal sport coupe (turbo)\", \"chevrolet caprice classic\", \"chevrolet cavalier 2-door\") | car_makers : fullname (\"Fiat\", \"Volvo\", \"Toyota\"), id (7, 1, 5), country (\"8\", \"7\", \"2\"), maker (\"bmw\", \"triumph\", \"honda\") | cars_data : weight (2790, 3433, 2711), horsepower (\"77\", \"198\", \"152\"), edispl (267.0, 81.0, 115.0), cylinders (8, 6, 3), mpg (\"37.2\", \"26.6\", \"21.6\"), accelerate (11.3, 21.8, 15.9), year (1975, 1981, 1972), id (315, 337, 252) | countries : countryid (12, 3, 4), countryname (\"russia\", \"korea\", \"japan\"), continent (2, 4, 4) | vehicle_names : makeid (153, 47, 293), model (\"hi\", \"mercury\", \"plymouth\"), make (\"buick regal sport coupe (turbo)\", \"chevrolet caprice classic\", \"chevrolet cavalier 2-door\") | continents : continent (\"asia\", \"australia\", \"europe\"), contid (1, 3, 3)", + "schema_without_content": "model_list : modelid , model , maker | car_models : makeid , model , make \", \"chevrolet caprice classic\", \"chevrolet cavalier 2-door\" | car_makers : fullname , id , country , maker | cars_data : weight , horsepower , edispl , cylinders , mpg , accelerate , year , id | countries : countryid , countryname , continent | vehicle_names : makeid , model , make \", \"chevrolet caprice classic\", \"chevrolet cavalier 2-door\" | continents : continent , contid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "name of the makers": "car_makers.Maker", + "year": "cars_data.Year" + } + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "countries : countryid (12, 15, 1), continent (2, 4, 4), countryname (\"japan\", \"france\", \"italy\") | auto_data : accelerate (15.6, 15.1, 18.7), edispl (307.0, 455.0, 231.0), cylinders (4, 6, 8), mpg (\"27.2\", \"28.4\", \"38.1\"), horsepower (\"90\", \"132\", \"113\"), id (261, 230, 180), weight (1985, 3205, 3439), year (1977, 1972, 1981) | car_names : model (\"triumph\", \"honda\", \"audi\"), make (\"chevrolet bel air\", \"chevrolet caprice classic\", \"cadillac seville\"), makeid (289, 302, 262) | model_list : model (\"capri\", \"subaru\", \"triumph\"), maker (3, 6, 18), modelid (16, 3, 21) | continents : contid (4, 1, 4), continent (\"europe\", \"australia\", \"asia\") | car_makers : id (6, 1, 13), maker (\"honda\", \"hyundai\", \"bmw\"), country (\"2\", \"1\", \"2\"), fullname (\"American Motor Company\", \"Fiat\", \"Honda\") | vehicle_data : accelerate (15.6, 15.1, 18.7), edispl (307.0, 455.0, 231.0), cylinders (4, 6, 8), mpg (\"27.2\", \"28.4\", \"38.1\"), horsepower (\"90\", \"132\", \"113\"), id (261, 230, 180), weight (1985, 3205, 3439), year (1977, 1972, 1981)", + "schema_without_content": "countries : countryid , continent , countryname | auto_data : accelerate , edispl , cylinders , mpg , horsepower , id , weight , year | car_names : model , make , makeid | model_list : model , maker , modelid | continents : contid , continent | car_makers : id , maker , country , fullname | vehicle_data : accelerate , edispl , cylinders , mpg , horsepower , id , weight , year", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "name of the makers": "car_makers.Maker", + "year": "cars_data.Year" + } + }, + { + "question": "what is the #name# of the different #car makers# who produced a car in #1970# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "continents : contid (3, 5, 1), continent (\"america\", \"europe\", \"australia\") | auto_brands : maker (\"kia\", \"volvo\", \"ford\"), fullname (\"Volvo\", \"Volkswagen\", \"Opel\"), country (\"3\", \"1\", \"5\"), id (8, 9, 1) | manufacturers : maker (\"kia\", \"volvo\", \"ford\"), fullname (\"Volvo\", \"Volkswagen\", \"Opel\"), country (\"3\", \"1\", \"5\"), id (8, 9, 1) | cars_data : mpg (\"29.5\", \"22.3\", \"34.1\"), weight (2648, 3630, 5140), edispl (318.0, 141.0, 85.0), id (89, 209, 263), accelerate (15.9, 16.8, 21.8), horsepower (\"95\", \"89\", \"91\"), year (1971, 1981, 1973), cylinders (3, 6, 6) | countries : countryname (\"japan\", \"new zealand\", \"japan\"), countryid (8, 5, 12), continent (3, 1, 5) | model_list : model (\"ford\", \"mercedes\", \"hi\"), modelid (16, 27, 16), maker (2, 15, 17) | car_names : makeid (31, 19, 210), make (\"ford ranger\", \"fiat 131\", \"plymouth sapporo\"), model (\"peugeot\", \"nissan\", \"mercedes-benz\")", + "schema_without_content": "continents : contid , continent | auto_brands : maker , fullname , country , id | manufacturers : maker , fullname , country , id | cars_data : mpg , weight , edispl , id , accelerate , horsepower , year , cylinders | countries : countryname , countryid , continent | model_list : model , modelid , maker | car_names : makeid , make , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "car_makers.Maker", + "car makers": "car_makers", + "1970": "cars_data.Year" + } + }, + { + "question": "what is the #name# of the different #car makers# who produced a car in #1970# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "continents : continent (\"asia\", \"america\", \"asia\"), contid (3, 2, 5) | countries : countryid (14, 8, 10), countryname (\"brazil\", \"usa\", \"germany\"), continent (2, 1, 4) | vehicle_models : modelid (7, 18, 16), model (\"fiat\", \"saab\", \"mazda\"), maker (12, 3, 4) | car_makers : maker (\"ford\", \"subaru\", \"renault\"), id (17, 8, 4), fullname (\"Subaru\", \"Chrysler\", \"General Motors\"), country (\"3\", \"5\", \"2\") | cars_data : horsepower (\"152\", \"140\", \"60\"), year (1982, 1971, 1976), id (144, 37, 12), mpg (\"27.9\", \"23.6\", \"25\"), weight (3381, 3465, 3730), accelerate (17.5, 18.5, 16.7), cylinders (3, 3, 8), edispl (145.0, 183.0, 429.0) | car_models : modelid (7, 18, 16), model (\"fiat\", \"saab\", \"mazda\"), maker (12, 3, 4) | car_names : make (\"plymouth champ\", \"chrysler lebaron town @ country (sw)\", \"audi 100ls\"), model (\"mercury\", \"fiat\", \"volkswagen\"), makeid (166, 34, 230)", + "schema_without_content": "continents : continent , contid | countries : countryid , countryname , continent | vehicle_models : modelid , model , maker | car_makers : maker , id , fullname , country | cars_data : horsepower , year , id , mpg , weight , accelerate , cylinders , edispl | car_models : modelid , model , maker | car_names : make \", \"audi 100ls\", model , makeid", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "car_makers.Maker", + "car makers": "car_makers", + "1970": "cars_data.Year" + } + }, + { + "question": "what is the #name# of the different #car makers# who produced a car in #1970# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "car_makers : id (9, 20, 21), country (\"2\", \"7\", \"8\"), maker (\"nissan\", \"subaru\", \"gm\"), fullname (\"Renault\", \"Citroen\", \"Chrysler\") | vehicle_names : make (\"pontiac safari (sw)\", \"plymouth valiant\", \"toyota corolla tercel\"), makeid (160, 113, 382), model (\"chrysler\", \"plymouth\", \"dodge\") | continents : continent (\"australia\", \"america\", \"asia\"), contid (5, 2, 5) | car_models : make (\"pontiac safari (sw)\", \"plymouth valiant\", \"toyota corolla tercel\"), makeid (160, 113, 382), model (\"chrysler\", \"plymouth\", \"dodge\") | cars_data : mpg (\"19.8\", \"46.6\", \"34.7\"), accelerate (18.3, 15.0, 17.6), edispl (72.0, 267.0, 454.0), id (292, 385, 186), horsepower (\"89\", \"52\", \"138\"), year (1980, 1972, 1977), cylinders (8, 5, 3), weight (2310, 2865, 4955) | countries : continent (1, 3, 5), countryname (\"usa\", \"new zealand\", \"uk\"), countryid (12, 10, 3) | model_list : maker (17, 18, 11), model (\"chrysler\", \"nissan\", \"volvo\"), modelid (10, 28, 13)", + "schema_without_content": "car_makers : id , country , maker , fullname | vehicle_names : make \", \"plymouth valiant\", \"toyota corolla tercel\", makeid , model | continents : continent , contid | car_models : make \", \"plymouth valiant\", \"toyota corolla tercel\", makeid , model | cars_data : mpg , accelerate , edispl , id , horsepower , year , cylinders , weight | countries : continent , countryname , countryid | model_list : maker , model , modelid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "name": "car_makers.Maker", + "car makers": "car_makers", + "1970": "cars_data.Year" + } + }, + { + "question": "what is the #name# of the different #car makers# who produced a car in #1970# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model join cars_data as t4 on t3.makeid = t4.id where t4.year = '1970'", + "schema_with_content": "countries : continent (3, 1, 4), countryname (\"brazil\", \"japan\", \"nigeria\"), countryid (13, 6, 6) | auto_data : year (1981, 1971, 1982), mpg (\"16\", \"34.7\", \"38.1\"), horsepower (\"116\", \"180\", \"120\"), edispl (133.0, 97.0, 115.0), weight (2135, 2795, 2188), id (402, 222, 183), accelerate (17.0, 19.2, 14.1), cylinders (5, 6, 5) | vehicle_data : year (1981, 1971, 1982), mpg (\"16\", \"34.7\", \"38.1\"), horsepower (\"116\", \"180\", \"120\"), edispl (133.0, 97.0, 115.0), weight (2135, 2795, 2188), id (402, 222, 183), accelerate (17.0, 19.2, 14.1), cylinders (5, 6, 5) | car_makers : id (8, 9, 8), maker (\"subaru\", \"gm\", \"hyundai\"), fullname (\"General Motors\", \"Fiat\", \"Saab\"), country (\"7\", \"3\", \"8\") | model_list : maker (22, 2, 10), model (\"kia\", \"mercedes-benz\", \"citroen\"), modelid (4, 4, 25) | continents : contid (1, 3, 4), continent (\"australia\", \"europe\", \"america\") | car_names : model (\"buick\", \"chrysler\", \"fiat\"), make (\"mazda glc deluxe\", \"honda civic (auto)\", \"renault 5 gtl\"), makeid (130, 374, 108)", + "schema_without_content": "countries : continent , countryname , countryid | auto_data : year , mpg , horsepower , edispl , weight , id , accelerate , cylinders | vehicle_data : year , mpg , horsepower , edispl , weight , id , accelerate , cylinders | car_makers : id , maker , fullname , country | model_list : maker , model , modelid | continents : contid , continent | car_names : model , make \", \"renault 5 gtl\", makeid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "name": "car_makers.Maker", + "car makers": "car_makers", + "1970": "cars_data.Year" + } + }, + { + "question": "find the #make# and #production time of the cars# that were produced in the earliest year?", + "db_id": "car_1", + "orig_query": "select t2.make, t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.year = (select min(year) from cars_data)", + "schema_with_content": "vehicle_names : makeid (395, 280, 3), model (\"cadillac\", \"mercedes-benz\", \"capri\"), make (\"honda civic (auto)\", \"pontiac j2000 se hatchback\", \"chevrolet chevelle malibu classic\") | car_makers : fullname (\"Opel\", \"Ford Motor Company\", \"Renault\"), maker (\"kia\", \"triumph\", \"gm\"), country (\"4\", \"5\", \"8\"), id (18, 1, 22) | model_list : maker (7, 9, 17), modelid (13, 15, 21), model (\"audi\", \"oldsmobile\", \"triumph\") | car_models : makeid (395, 280, 3), model (\"cadillac\", \"mercedes-benz\", \"capri\"), make (\"honda civic (auto)\", \"pontiac j2000 se hatchback\", \"chevrolet chevelle malibu classic\") | countries : countryname (\"russia\", \"egypt\", \"uk\"), continent (5, 1, 4), countryid (14, 2, 7) | continents : contid (3, 5, 2), continent (\"australia\", \"asia\", \"europe\") | cars_data : edispl (97.5, 119.0, 114.0), weight (4746, 3605, 4129), accelerate (15.3, 20.0, 15.3), id (149, 237, 179), cylinders (3, 5, 8), mpg (\"24.2\", \"23.5\", \"18.1\"), horsepower (\"62\", \"133\", \"81\"), year (1971, 1974, 1973)", + "schema_without_content": "vehicle_names : makeid , model , make \", \"pontiac j2000 se hatchback\", \"chevrolet chevelle malibu classic\" | car_makers : fullname , maker , country , id | model_list : maker , modelid , model | car_models : makeid , model , make \", \"pontiac j2000 se hatchback\", \"chevrolet chevelle malibu classic\" | countries : countryname , continent , countryid | continents : contid , continent | cars_data : edispl , weight , accelerate , id , cylinders , mpg , horsepower , year", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "make": "car_names.Make", + "production time of the cars": "cars_data.Year" + } + }, + { + "question": "find the #make# and #production time of the cars# that were produced in the earliest year?", + "db_id": "car_1", + "orig_query": "select t2.make, t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.year = (select min(year) from cars_data)", + "schema_with_content": "car_makers : fullname (\"Fiat\", \"Citroen\", \"BMW\"), country (\"1\", \"1\", \"6\"), maker (\"daimler benz\", \"subaru\", \"volkswagen\"), id (18, 9, 18) | car_names : model (\"mercedes\", \"bmw\", \"datsun\"), make (\"chevrolet nova\", \"volkswagen rabbit\", \"audi 4000\"), makeid (389, 401, 5) | continents : contid (3, 3, 1), continent (\"asia\", \"australia\", \"australia\") | auto_data : cylinders (8, 4, 6), year (1981, 1973, 1978), horsepower (\"215\", \"140\", \"130\"), mpg (\"23.6\", \"18.2\", \"31.9\"), accelerate (17.6, 18.2, 15.9), weight (3288, 2575, 4668), id (37, 93, 6), edispl (88.0, 113.0, 151.0) | countries : countryname (\"russia\", \"egypt\", \"japan\"), continent (5, 3, 1), countryid (6, 1, 9) | model_list : maker (12, 5, 22), model (\"opel\", \"scion\", \"datsun\"), modelid (24, 29, 15) | vehicle_data : cylinders (8, 4, 6), year (1981, 1973, 1978), horsepower (\"215\", \"140\", \"130\"), mpg (\"23.6\", \"18.2\", \"31.9\"), accelerate (17.6, 18.2, 15.9), weight (3288, 2575, 4668), id (37, 93, 6), edispl (88.0, 113.0, 151.0)", + "schema_without_content": "car_makers : fullname , country , maker , id | car_names : model , make , makeid | continents : contid , continent | auto_data : cylinders , year , horsepower , mpg , accelerate , weight , id , edispl | countries : countryname , continent , countryid | model_list : maker , model , modelid | vehicle_data : cylinders , year , horsepower , mpg , accelerate , weight , id , edispl", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "make": "car_names.Make", + "production time of the cars": "cars_data.Year" + } + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_id": "car_1", + "orig_query": "select t2.make, t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.year = (select min(year) from cars_data)", + "schema_with_content": "vehicle_names : model (\"citroen\", \"mazda\", \"capri\"), make (\"datsun 210 mpg\", \"dodge coronet brougham\", \"datsun 310\"), makeid (405, 154, 215) | continents : contid (4, 2, 1), continent (\"asia\", \"europe\", \"europe\") | cars_data : horsepower (\"139\", \"74\", \"142\"), weight (2226, 3445, 3353), edispl (107.0, 305.0, 258.0), year (1980, 1976, 1976), mpg (\"34.4\", \"41.5\", \"34.5\"), accelerate (11.2, 20.5, 18.2), cylinders (5, 5, 3), id (15, 305, 312) | car_makers : maker (\"ford\", \"peugeaut\", \"gm\"), fullname (\"Ford Motor Company\", \"General Motors\", \"Triumph\"), country (\"4\", \"5\", \"1\"), id (13, 13, 7) | model_list : model (\"saab\", \"volvo\", \"cadillac\"), maker (16, 10, 15), modelid (2, 4, 32) | countries : countryname (\"france\", \"mexico\", \"france\"), countryid (5, 2, 12), continent (5, 4, 2) | car_models : model (\"citroen\", \"mazda\", \"capri\"), make (\"datsun 210 mpg\", \"dodge coronet brougham\", \"datsun 310\"), makeid (405, 154, 215)", + "schema_without_content": "vehicle_names : model , make , makeid | continents : contid , continent | cars_data : horsepower , weight , edispl , year , mpg , accelerate , cylinders , id | car_makers : maker , fullname , country , id | model_list : model , maker , modelid | countries : countryname , countryid , continent | car_models : model , make , makeid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "maker": "car_names.Make", + "year": "cars_data.Year" + } + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_id": "car_1", + "orig_query": "select t2.make, t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.year = (select min(year) from cars_data)", + "schema_with_content": "car_names : model (\"honda\", \"mercedes-benz\", \"cadillac\"), makeid (233, 183, 24), make (\"datsun 310 gx\", \"mazda rx-7 gs\", \"peugeot 504 (sw)\") | model_list : model (\"chevrolet\", \"mazda\", \"honda\"), modelid (9, 17, 4), maker (3, 7, 2) | continents : continent (\"america\", \"africa\", \"asia\"), contid (5, 2, 2) | auto_data : accelerate (11.6, 16.8, 13.4), horsepower (\"65\", \"66\", \"72\"), id (98, 270, 256), weight (2868, 3632, 3907), year (1972, 1982, 1982), cylinders (6, 3, 6), edispl (144.0, 96.0, 302.0), mpg (\"23.9\", \"25.4\", \"34.7\") | countries : countryname (\"germany\", \"usa\", \"russia\"), continent (5, 1, 2), countryid (1, 10, 11) | car_makers : fullname (\"Mazda\", \"Triumph\", \"General Motors\"), maker (\"renault\", \"triumph\", \"kia\"), id (14, 8, 15), country (\"6\", \"1\", \"8\") | vehicle_data : accelerate (11.6, 16.8, 13.4), horsepower (\"65\", \"66\", \"72\"), id (98, 270, 256), weight (2868, 3632, 3907), year (1972, 1982, 1982), cylinders (6, 3, 6), edispl (144.0, 96.0, 302.0), mpg (\"23.9\", \"25.4\", \"34.7\")", + "schema_without_content": "car_names : model , makeid , make \" | model_list : model , modelid , maker | continents : continent , contid | auto_data : accelerate , horsepower , id , weight , year , cylinders , edispl , mpg | countries : countryname , continent , countryid | car_makers : fullname , maker , id , country | vehicle_data : accelerate , horsepower , id , weight , year , cylinders , edispl , mpg", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "maker": "car_names.Make", + "year": "cars_data.Year" + } + }, + { + "question": "which distinct #car models# are the #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "continents : continent (\"america\", \"america\", \"africa\"), contid (1, 4, 5) | car_names : model (\"volvo\", \"nissan\", \"amc\"), make (\"chevrolet citation\", \"audi 100ls\", \"volkswagen 411 (sw)\"), makeid (207, 216, 381) | car_makers : country (\"8\", \"2\", \"8\"), fullname (\"American Motor Company\", \"Triumph\", \"Mazda\"), id (7, 3, 14), maker (\"hyundai\", \"ford\", \"subaru\") | cars_data : horsepower (\"76\", \"220\", \"200\"), cylinders (8, 8, 8), mpg (\"26.4\", \"16.5\", \"26.5\"), id (176, 76, 381), edispl (455.0, 302.0, 70.0), accelerate (22.2, 12.9, 19.9), weight (2000, 1937, 2625), year (1978, 1976, 1975) | countries : countryname (\"russia\", \"egypt\", \"russia\"), countryid (3, 8, 8), continent (3, 5, 2) | vehicle_models : modelid (35, 17, 24), maker (21, 22, 1), model (\"scion\", \"hi\", \"amc\") | car_models : modelid (35, 17, 24), maker (21, 22, 1), model (\"scion\", \"hi\", \"amc\")", + "schema_without_content": "continents : continent , contid | car_names : model , make \", makeid | car_makers : country , fullname , id , maker | cars_data : horsepower , cylinders , mpg , id , edispl , accelerate , weight , year | countries : countryname , countryid , continent | vehicle_models : modelid , maker , model | car_models : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "which distinct #car models# are the #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "countries : countryname (\"italy\", \"france\", \"australia\"), continent (3, 2, 5), countryid (2, 15, 12) | vehicle_names : makeid (116, 42, 116), make (\"amc pacer\", \"datsun 200sx\", \"mercury cougar brougham\"), model (\"volkswagen\", \"triumph\", \"pontiac\") | model_list : modelid (9, 17, 32), model (\"capri\", \"honda\", \"cadillac\"), maker (16, 16, 16) | continents : contid (2, 1, 1), continent (\"africa\", \"australia\", \"australia\") | car_models : makeid (116, 42, 116), make (\"amc pacer\", \"datsun 200sx\", \"mercury cougar brougham\"), model (\"volkswagen\", \"triumph\", \"pontiac\") | cars_data : weight (4360, 4034, 3420), horsepower (\"108\", \"129\", \"108\"), mpg (\"32.9\", \"11\", \"44.3\"), id (237, 367, 264), cylinders (3, 4, 6), accelerate (15.1, 12.8, 20.1), edispl (360.0, 76.0, 145.0), year (1976, 1977, 1975) | car_makers : country (\"3\", \"4\", \"5\"), maker (\"volkswagen\", \"chrysler\", \"gm\"), id (22, 3, 4), fullname (\"American Motor Company\", \"Kia Motors\", \"Mazda\")", + "schema_without_content": "countries : countryname , continent , countryid | vehicle_names : makeid , make , model | model_list : modelid , model , maker | continents : contid , continent | car_models : makeid , make , model | cars_data : weight , horsepower , mpg , id , cylinders , accelerate , edispl , year | car_makers : country , maker , id , fullname", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "which distinct #car models# are the #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "continents : continent (\"europe\", \"asia\", \"america\"), contid (1, 5, 2) | model_list : maker (2, 11, 17), model (\"subaru\", \"peugeot\", \"oldsmobile\"), modelid (22, 25, 7) | auto_data : horsepower (\"208\", \"122\", \"148\"), edispl (135.0, 122.0, 111.0), mpg (\"34.5\", \"9\", \"31.3\"), year (1980, 1976, 1981), id (75, 310, 383), accelerate (18.6, 17.4, 21.5), weight (2300, 1915, 2678), cylinders (8, 3, 8) | car_makers : maker (\"triumph\", \"gm\", \"volkswagen\"), id (17, 9, 7), country (\"4\", \"3\", \"5\"), fullname (\"Saab\", \"Opel\", \"Renault\") | car_names : model (\"oldsmobile\", \"ford\", \"volvo\"), makeid (32, 46, 351), make (\"buick century\", \"chevy s-10\", \"plymouth duster\") | vehicle_data : horsepower (\"208\", \"122\", \"148\"), edispl (135.0, 122.0, 111.0), mpg (\"34.5\", \"9\", \"31.3\"), year (1980, 1976, 1981), id (75, 310, 383), accelerate (18.6, 17.4, 21.5), weight (2300, 1915, 2678), cylinders (8, 3, 8) | countries : countryname (\"new zealand\", \"korea\", \"korea\"), countryid (9, 1, 4), continent (4, 3, 1)", + "schema_without_content": "continents : continent , contid | model_list : maker , model , modelid | auto_data : horsepower , edispl , mpg , year , id , accelerate , weight , cylinders | car_makers : maker , id , country , fullname | car_names : model , makeid , make | vehicle_data : horsepower , edispl , mpg , year , id , accelerate , weight , cylinders | countries : countryname , countryid , continent", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "what are the different #models# for the cards #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "cars_data : horsepower (\"149\", \"115\", \"93\"), mpg (\"26.5\", \"24.3\", \"26.6\"), edispl (112.0, 107.0, 390.0), year (1981, 1980, 1973), weight (2500, 1980, 3090), cylinders (3, 8, 8), accelerate (16.2, 23.5, 16.6), id (227, 42, 63) | car_makers : fullname (\"Triumph\", \"General Motors\", \"Subaru\"), id (2, 13, 19), maker (\"volkswagen\", \"opel\", \"daimler benz\"), country (\"8\", \"5\", \"3\") | car_models : model (\"buick\", \"mercedes\", \"mercury\"), maker (23, 3, 19), modelid (24, 32, 15) | car_names : make (\"chevrolet nova\", \"toyota celica gt\", \"fiat 124 sport coupe\"), makeid (228, 306, 126), model (\"datsun\", \"plymouth\", \"volvo\") | continents : continent (\"america\", \"europe\", \"europe\"), contid (2, 5, 5) | vehicle_models : model (\"buick\", \"mercedes\", \"mercury\"), maker (23, 3, 19), modelid (24, 32, 15) | countries : continent (1, 3, 3), countryname (\"france\", \"russia\", \"korea\"), countryid (15, 3, 11)", + "schema_without_content": "cars_data : horsepower , mpg , edispl , year , weight , cylinders , accelerate , id | car_makers : fullname , id , maker , country | car_models : model , maker , modelid | car_names : make , makeid , model | continents : continent , contid | vehicle_models : model , maker , modelid | countries : continent , countryname , countryid", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "what are the different #models# for the cards #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "vehicle_names : make (\"amc concord d/l\", \"dodge rampage\", \"plymouth satellite sebring\"), makeid (288, 180, 136), model (\"mercury\", \" volkswagen\", \"plymouth\") | model_list : modelid (3, 32, 2), maker (2, 10, 6), model (\"honda\", \"ford\", \"jeep\") | car_models : make (\"amc concord d/l\", \"dodge rampage\", \"plymouth satellite sebring\"), makeid (288, 180, 136), model (\"mercury\", \" volkswagen\", \"plymouth\") | car_makers : maker (\"opel\", \"gm\", \"saab\"), id (23, 8, 20), country (\"2\", \"1\", \"4\"), fullname (\"Toyota\", \"Volkswagen\", \"Fiat\") | continents : contid (4, 1, 3), continent (\"australia\", \"america\", \"australia\") | cars_data : id (312, 342, 143), mpg (\"27.9\", \"17.6\", \"35.7\"), year (1981, 1981, 1975), horsepower (\"210\", \"193\", \"69\"), weight (3672, 3060, 3940), cylinders (4, 6, 5), edispl (79.0, 81.0, 168.0), accelerate (20.4, 24.8, 16.2) | countries : continent (2, 5, 1), countryid (14, 2, 15), countryname (\"russia\", \"germany\", \"sweden\")", + "schema_without_content": "vehicle_names : make , makeid , model | model_list : modelid , maker , model | car_models : make , makeid , model | car_makers : maker , id , country , fullname | continents : contid , continent | cars_data : id , mpg , year , horsepower , weight , cylinders , edispl , accelerate | countries : continent , countryid , countryname", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "what are the different #models# for the cards #produced after 1980# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id where t3.year > 1980", + "schema_with_content": "countries : continent (4, 3, 3), countryid (15, 5, 1), countryname (\"japan\", \"australia\", \"japan\") | continents : contid (2, 3, 3), continent (\"america\", \"asia\", \"america\") | auto_data : accelerate (14.5, 18.7, 18.6), weight (3574, 2279, 2046), year (1976, 1973, 1975), mpg (\"27.4\", \"31.8\", \"18.2\"), cylinders (5, 8, 4), horsepower (\"210\", \"105\", \"62\"), id (203, 28, 329), edispl (163.0, 307.0, 131.0) | model_list : maker (1, 20, 6), model (\"citroen\", \"hi\", \"chevrolet\"), modelid (1, 33, 19) | vehicle_data : accelerate (14.5, 18.7, 18.6), weight (3574, 2279, 2046), year (1976, 1973, 1975), mpg (\"27.4\", \"31.8\", \"18.2\"), cylinders (5, 8, 4), horsepower (\"210\", \"105\", \"62\"), id (203, 28, 329), edispl (163.0, 307.0, 131.0) | car_makers : fullname (\"General Motors\", \"General Motors\", \"Chrysler\"), id (1, 16, 23), maker (\"nissan\", \"kia\", \"renault\"), country (\"7\", \"4\", \"8\") | car_names : make (\"ford fairmont (man)\", \"mazda glc deluxe\", \"ford fairmont (auto)\"), makeid (31, 80, 56), model (\"honda\", \"chevrolet\", \"honda\")", + "schema_without_content": "countries : continent , countryid , countryname | continents : contid , continent | auto_data : accelerate , weight , year , mpg , cylinders , horsepower , id , edispl | model_list : maker , model , modelid | vehicle_data : accelerate , weight , year , mpg , cylinders , horsepower , id , edispl | car_makers : fullname , id , maker , country | car_names : make \", \"mazda glc deluxe\", \"ford fairmont \", makeid , model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "produced after 1980": "cars_data.Year" + } + }, + { + "question": "how many #car makers# are there in each continents? list the #continent name# and the count.", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "car_makers : id (14, 11, 14), maker (\"gm\", \"nissan\", \"kia\"), fullname (\"Triumph\", \"American Motor Company\", \"Peugeaut\"), country (\"8\", \"6\", \"8\") | model_list : maker (15, 5, 23), modelid (35, 26, 29), model (\"datsun\", \"subaru\", \"mercedes-benz\") | car_names : makeid (26, 58, 289), make (\"volkswagen model 111\", \"toyota corona\", \"datsun 200sx\"), model (\"oldsmobile\", \"chevrolet\", \"nissan\") | countries : countryname (\"france\", \"mexico\", \"nigeria\"), countryid (4, 10, 14), continent (3, 4, 5) | cars_data : edispl (133.0, 120.0, 91.0), accelerate (23.7, 9.0, 20.7), cylinders (8, 3, 6), weight (4952, 3563, 2230), mpg (\"25.4\", \"32.8\", \"28.8\"), horsepower (\"115\", \"198\", \"77\"), id (391, 254, 380), year (1977, 1977, 1973) | planet_regions : continent (\"asia\", \"america\", \"america\"), contid (2, 1, 3) | continents_list : continent (\"asia\", \"america\", \"america\"), contid (2, 1, 3)", + "schema_without_content": "car_makers : id , maker , fullname , country | model_list : maker , modelid , model | car_names : makeid , make , model | countries : countryname , countryid , continent | cars_data : edispl , accelerate , cylinders , weight , mpg , horsepower , id , year | planet_regions : continent , contid | continents_list : continent , contid", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "continent name": "continents.Continent" + } + }, + { + "question": "how many #car makers# are there in each continents? list the #continent name# and the count.", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "state : countryname (\"brazil\", \"japan\", \"sweden\"), countryid (3, 3, 13), continent (1, 3, 2) | car_names : make (\"chrysler newport royal\", \"ford fairmont (man)\", \"ford fiesta\"), model (\"triumph\", \"pontiac\", \"renault\"), makeid (286, 110, 160) | continents : continent (\"asia\", \"africa\", \"europe\"), contid (4, 4, 1) | cars_data : horsepower (\"91\", \"149\", \"130\"), weight (3012, 2830, 3897), year (1972, 1972, 1970), id (156, 134, 82), edispl (86.0, 119.0, 71.0), accelerate (16.6, 11.4, 13.5), mpg (\"31.9\", \"34.5\", \"25.4\"), cylinders (5, 6, 4) | car_makers : id (8, 17, 17), maker (\"hyundai\", \"kia\", \"saab\"), fullname (\"Renault\", \"Peugeaut\", \"Fiat\"), country (\"1\", \"6\", \"1\") | nation : countryname (\"brazil\", \"japan\", \"sweden\"), countryid (3, 3, 13), continent (1, 3, 2) | model_list : model (\"buick\", \"fiat\", \"pontiac\"), modelid (6, 18, 29), maker (3, 23, 9)", + "schema_without_content": "state : countryname , countryid , continent | car_names : make \", \"ford fiesta\", model , makeid | continents : continent , contid | cars_data : horsepower , weight , year , id , edispl , accelerate , mpg , cylinders | car_makers : id , maker , fullname , country | nation : countryname , countryid , continent | model_list : model , modelid , maker", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "continent name": "continents.Continent" + } + }, + { + "question": "how many #car makers# are there in each continents? list the #continent name# and the count.", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "continents : contid (3, 4, 1), continent (\"america\", \"australia\", \"europe\") | manufacturers : fullname (\"Kia Motors\", \"Mazda\", \"Volkswagen\"), id (16, 11, 18), country (\"8\", \"6\", \"6\"), maker (\"opel\", \"ford\", \"renault\") | cars_data : accelerate (17.8, 16.5, 16.7), weight (2830, 4354, 2451), mpg (\"22\", \"32.9\", \"22\"), horsepower (\"152\", \"193\", \"82\"), cylinders (4, 5, 4), id (104, 14, 103), year (1976, 1979, 1971), edispl (100.0, 140.0, 260.0) | auto_brands : fullname (\"Kia Motors\", \"Mazda\", \"Volkswagen\"), id (16, 11, 18), country (\"8\", \"6\", \"6\"), maker (\"opel\", \"ford\", \"renault\") | car_names : make (\"chevrolet chevelle concours (sw)\", \"volkswagen model 111\", \"chrysler lebaron salon\"), makeid (239, 141, 333), model (\"pontiac\", \"buick\", \"audi\") | countries : countryid (12, 4, 12), countryname (\"egypt\", \"italy\", \"egypt\"), continent (5, 5, 5) | model_list : maker (23, 7, 23), modelid (26, 15, 28), model (\"citroen\", \"ford\", \"volkswagen\")", + "schema_without_content": "continents : contid , continent | manufacturers : fullname , id , country , maker | cars_data : accelerate , weight , mpg , horsepower , cylinders , id , year , edispl | auto_brands : fullname , id , country , maker | car_names : make \", \"volkswagen model 111\", \"chrysler lebaron salon\", makeid , model | countries : countryid , countryname , continent | model_list : maker , modelid , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "continent name": "continents.Continent" + } + }, + { + "question": "what is the #name of each continent# and how many #car makers# are there in each one?", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "planet_regions : continent (\"asia\", \"australia\", \"europe\"), contid (5, 1, 5) | car_names : makeid (83, 14, 223), make (\"mercedes benz 300d\", \"amc pacer d/l\", \"mercury cougar brougham\"), model (\"hi\", \"datsun\", \"renault\") | countries : continent (2, 2, 2), countryname (\"egypt\", \"japan\", \"korea\"), countryid (14, 12, 2) | model_list : maker (18, 18, 15), model (\"cadillac\", \"mazda\", \"dodge\"), modelid (28, 13, 31) | continents_list : continent (\"asia\", \"australia\", \"europe\"), contid (5, 1, 5) | cars_data : edispl (141.0, 318.0, 144.0), horsepower (\"122\", \"81\", \"155\"), mpg (\"23.9\", \"10\", \"34.5\"), weight (2230, 3160, 1845), year (1979, 1980, 1972), id (281, 222, 21), cylinders (4, 3, 6), accelerate (18.6, 18.8, 16.5) | car_makers : fullname (\"Opel\", \"Subaru\", \"Daimler Benz\"), maker (\"volkswagen\", \"saab\", \"peugeaut\"), id (17, 6, 21), country (\"1\", \"2\", \"1\")", + "schema_without_content": "planet_regions : continent , contid | car_names : makeid , make , model | countries : continent , countryname , countryid | model_list : maker , model , modelid | continents_list : continent , contid | cars_data : edispl , horsepower , mpg , weight , year , id , cylinders , accelerate | car_makers : fullname , maker , id , country", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "name of each continent": "continents.Continent", + "car makers": "car_makers" + } + }, + { + "question": "what is the #name of each continent# and how many #car makers# are there in each one?", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "nation : countryname (\"germany\", \"france\", \"egypt\"), countryid (9, 10, 6), continent (2, 5, 2) | cars_data : accelerate (13.2, 14.5, 17.4), cylinders (6, 6, 5), horsepower (\"142\", \"80\", \"77\"), weight (2155, 2300, 4425), id (190, 8, 193), edispl (85.0, 72.0, 119.0), mpg (\"24.5\", \"25.5\", \"20.5\"), year (1977, 1980, 1982) | car_makers : country (\"2\", \"3\", \"5\"), fullname (\"Toyota\", \"Renault\", \"Daimler Benz\"), id (12, 3, 7), maker (\"hyundai\", \"opel\", \"toyota\") | continents : continent (\"america\", \"australia\", \"america\"), contid (5, 3, 1) | state : countryname (\"germany\", \"france\", \"egypt\"), countryid (9, 10, 6), continent (2, 5, 2) | model_list : model (\"bmw\", \"triumph\", \"hi\"), modelid (13, 10, 16), maker (9, 20, 1) | car_names : make (\"ford f108\", \"chevrolet monza 2+2\", \"toyota cressida\"), model (\"amc\", \"triumph\", \"peugeot\"), makeid (197, 376, 67)", + "schema_without_content": "nation : countryname , countryid , continent | cars_data : accelerate , cylinders , horsepower , weight , id , edispl , mpg , year | car_makers : country , fullname , id , maker | continents : continent , contid | state : countryname , countryid , continent | model_list : model , modelid , maker | car_names : make , model , makeid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "name of each continent": "continents.Continent", + "car makers": "car_makers" + } + }, + { + "question": "what is the #name of each continent# and how many #car makers# are there in each one?", + "db_id": "car_1", + "orig_query": "select t1.continent, count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent join car_makers as t3 on t2.countryid = t3.country group by t1.continent", + "schema_with_content": "model_list : modelid (14, 27, 18), maker (16, 21, 9), model (\"fiat\", \"chevrolet\", \"triumph\") | cars_data : horsepower (\"85\", \"61\", \"79\"), accelerate (19.5, 17.0, 23.5), edispl (146.0, 86.0, 390.0), mpg (\"27.9\", \"38.1\", \"30.7\"), year (1980, 1972, 1977), cylinders (3, 8, 6), weight (3329, 3015, 2572), id (301, 139, 9) | auto_brands : maker (\"hyundai\", \"gm\", \"mazda\"), id (6, 16, 4), fullname (\"Subaru\", \"Peugeaut\", \"Mazda\"), country (\"6\", \"6\", \"6\") | countries : countryname (\"brazil\", \"new zealand\", \"japan\"), countryid (1, 5, 11), continent (4, 5, 5) | car_names : makeid (81, 124, 210), model (\"mercury\", \"volvo\", \"mazda\"), make (\"fiat 131\", \"buick skylark 320\", \"mazda glc\") | manufacturers : maker (\"hyundai\", \"gm\", \"mazda\"), id (6, 16, 4), fullname (\"Subaru\", \"Peugeaut\", \"Mazda\"), country (\"6\", \"6\", \"6\") | continents : continent (\"america\", \"america\", \"asia\"), contid (1, 3, 5)", + "schema_without_content": "model_list : modelid , maker , model | cars_data : horsepower , accelerate , edispl , mpg , year , cylinders , weight , id | auto_brands : maker , id , fullname , country | countries : countryname , countryid , continent | car_names : makeid , model , make | manufacturers : maker , id , fullname , country | continents : continent , contid", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "name of each continent": "continents.Continent", + "car makers": "car_makers" + } + }, + { + "question": "which of the #countries# has the most #car makers# ? list the #country name# .", + "db_id": "car_1", + "orig_query": "select t2.countryname from car_makers as t1 join countries as t2 on t1.country = t2.countryid group by t1.country order by count(*) desc limit 1", + "schema_with_content": "car_makers : id (22, 18, 1), maker (\"volvo\", \"gm\", \"peugeaut\"), fullname (\"Hyundai\", \"Toyota\", \"Fiat\"), country (\"5\", \"7\", \"5\") | model_list : model (\"mercedes-benz\", \"mercury\", \"mercedes\"), maker (1, 17, 19), modelid (26, 33, 26) | cars_data : horsepower (\"96\", \"62\", \"75\"), edispl (260.0, 360.0, 72.0), id (90, 105, 95), cylinders (4, 8, 6), mpg (\"36.1\", \"25.1\", \"28\"), year (1980, 1972, 1972), accelerate (20.7, 11.6, 11.1), weight (3021, 2592, 2290) | nation : continent (1, 4, 5), countryname (\"sweden\", \"mexico\", \"new zealand\"), countryid (2, 6, 5) | continents : contid (1, 2, 1), continent (\"asia\", \"america\", \"america\") | car_names : makeid (277, 21, 120), make (\"amc concord dl 6\", \"volvo 245\", \"ford galaxie 500\"), model (\"mercedes-benz\", \"plymouth\", \"chevrolet\") | state : continent (1, 4, 5), countryname (\"sweden\", \"mexico\", \"new zealand\"), countryid (2, 6, 5)", + "schema_without_content": "car_makers : id , maker , fullname , country | model_list : model , maker , modelid | cars_data : horsepower , edispl , id , cylinders , mpg , year , accelerate , weight | nation : continent , countryname , countryid | continents : contid , continent | car_names : makeid , make , model | state : continent , countryname , countryid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "countries": "countries", + "car makers": "car_makers", + "country name": "countries.CountryName" + } + }, + { + "question": "which of the #countries# has the most #car makers# ? list the #country name# .", + "db_id": "car_1", + "orig_query": "select t2.countryname from car_makers as t1 join countries as t2 on t1.country = t2.countryid group by t1.country order by count(*) desc limit 1", + "schema_with_content": "continents : continent (\"europe\", \"america\", \"africa\"), contid (5, 4, 2) | model_list : modelid (24, 25, 18), maker (15, 2, 8), model (\"hi\", \"renault\", \"volkswagen\") | auto_brands : id (5, 15, 7), fullname (\"Subaru\", \"Citroen\", \"Volvo\"), maker (\"fiat\", \"saab\", \"citroen\"), country (\"1\", \"7\", \"8\") | car_names : make (\"ford mustang boss 302\", \"plymouth fury\", \"chevrolet monte carlo\"), makeid (376, 20, 239), model (\"audi\", \"honda\", \"opel\") | manufacturers : id (5, 15, 7), fullname (\"Subaru\", \"Citroen\", \"Volvo\"), maker (\"fiat\", \"saab\", \"citroen\"), country (\"1\", \"7\", \"8\") | countries : countryid (11, 5, 10), continent (1, 2, 3), countryname (\"sweden\", \"mexico\", \"germany\") | cars_data : year (1971, 1972, 1979), id (145, 312, 319), cylinders (3, 4, 3), accelerate (8.0, 16.1, 15.1), weight (2035, 3302, 3415), horsepower (\"58\", \"175\", \"132\"), edispl (307.0, 79.0, 135.0), mpg (\"37.7\", \"25.8\", \"32.7\")", + "schema_without_content": "continents : continent , contid | model_list : modelid , maker , model | auto_brands : id , fullname , maker , country | car_names : make , makeid , model | manufacturers : id , fullname , maker , country | countries : countryid , continent , countryname | cars_data : year , id , cylinders , accelerate , weight , horsepower , edispl , mpg", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "countries", + "car makers": "car_makers", + "country name": "countries.CountryName" + } + }, + { + "question": "what is the name of the country with the most #car makers# ?", + "db_id": "car_1", + "orig_query": "select t2.countryname from car_makers as t1 join countries as t2 on t1.country = t2.countryid group by t1.country order by count(*) desc limit 1", + "schema_with_content": "continents : continent (\"europe\", \"australia\", \"asia\"), contid (5, 5, 5) | state : countryname (\"usa\", \"germany\", \"germany\"), continent (4, 4, 2), countryid (11, 10, 5) | car_names : model (\"audi\", \"mazda\", \"peugeot\"), makeid (275, 116, 347), make (\"honda civic cvcc\", \"amc ambassador brougham\", \"fiat 124b\") | cars_data : year (1981, 1982, 1980), horsepower (\"148\", \"125\", \"133\"), mpg (\"26.6\", \"33.7\", \"27.9\"), weight (4457, 2595, 4142), edispl (390.0, 307.0, 304.0), cylinders (6, 6, 8), accelerate (23.5, 19.2, 13.8), id (93, 285, 312) | car_makers : country (\"2\", \"5\", \"5\"), fullname (\"American Motor Company\", \"Fiat\", \"Kia Motors\"), id (21, 4, 1), maker (\"peugeaut\", \"kia\", \"chrysler\") | nation : countryname (\"usa\", \"germany\", \"germany\"), continent (4, 4, 2), countryid (11, 10, 5) | model_list : model (\"peugeot\", \"mercedes\", \"scion\"), maker (13, 12, 15), modelid (28, 27, 4)", + "schema_without_content": "continents : continent , contid | state : countryname , continent , countryid | car_names : model , makeid , make | cars_data : year , horsepower , mpg , weight , edispl , cylinders , accelerate , id | car_makers : country , fullname , id , maker | nation : countryname , continent , countryid | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "country name": "countries.CountryName" + } + }, + { + "question": "what is the name of the country with the most #car makers# ?", + "db_id": "car_1", + "orig_query": "select t2.countryname from car_makers as t1 join countries as t2 on t1.country = t2.countryid group by t1.country order by count(*) desc limit 1", + "schema_with_content": "cars_data : weight (3907, 2219, 2246), cylinders (8, 6, 5), id (390, 97, 89), mpg (\"32.7\", \"32.1\", \"22.5\"), edispl (140.0, 360.0, 155.0), year (1982, 1981, 1977), accelerate (19.2, 15.9, 21.7), horsepower (\"86\", \"115\", \"69\") | countries : countryid (6, 7, 14), continent (5, 4, 3), countryname (\"germany\", \"germany\", \"russia\") | auto_brands : fullname (\"Daimler Benz\", \"Hyundai\", \"Triumph\"), id (22, 20, 15), country (\"6\", \"1\", \"7\"), maker (\"fiat\", \"daimler benz\", \"opel\") | model_list : model (\"kia\", \"fiat\", \"volvo\"), maker (1, 15, 17), modelid (32, 25, 8) | car_names : make (\"amc matador\", \"buick regal sport coupe (turbo)\", \"buick lesabre custom\"), model (\"ford\", \"cadillac\", \"mazda\"), makeid (378, 191, 3) | manufacturers : fullname (\"Daimler Benz\", \"Hyundai\", \"Triumph\"), id (22, 20, 15), country (\"6\", \"1\", \"7\"), maker (\"fiat\", \"daimler benz\", \"opel\") | continents : contid (4, 1, 5), continent (\"asia\", \"africa\", \"africa\")", + "schema_without_content": "cars_data : weight , cylinders , id , mpg , edispl , year , accelerate , horsepower | countries : countryid , continent , countryname | auto_brands : fullname , id , country , maker | model_list : model , maker , modelid | car_names : make \", \"buick lesabre custom\", model , makeid | manufacturers : fullname , id , country , maker | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "country 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_id": "car_1", + "orig_query": "select count(*), t2.fullname, t2.id from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id", + "schema_with_content": "countries : countryname (\"italy\", \"japan\", \"mexico\"), continent (1, 2, 5), countryid (8, 3, 12) | continents : continent (\"europe\", \"asia\", \"africa\"), contid (2, 1, 2) | car_names : make (\"renault 5 gtl\", \"ford escort 4w\", \"dodge d200\"), makeid (25, 242, 365), model (\"cadillac\", \"saab\", \" volkswagen\") | manufacturers : id (4, 18, 23), country (\"5\", \"6\", \"2\"), maker (\"nissan\", \"renault\", \"subaru\"), fullname (\"Chrysler\", \"General Motors\", \"Triumph\") | cars_data : mpg (\"30.7\", \"18.5\", \"24.5\"), cylinders (8, 3, 3), accelerate (11.3, 10.5, 13.6), edispl (133.0, 318.0, 156.0), year (1970, 1971, 1974), weight (1755, 2434, 5140), horsepower (\"89\", \"152\", \"75\"), id (40, 352, 133) | model_list : modelid (8, 20, 30), maker (21, 22, 4), model (\"honda\", \"saab\", \"saab\") | auto_brands : id (4, 18, 23), country (\"5\", \"6\", \"2\"), maker (\"nissan\", \"renault\", \"subaru\"), fullname (\"Chrysler\", \"General Motors\", \"Triumph\")", + "schema_without_content": "countries : countryname , continent , countryid | continents : continent , contid | car_names : make , makeid , model | manufacturers : id , country , maker , fullname | cars_data : mpg , cylinders , accelerate , edispl , year , weight , horsepower , id | model_list : modelid , maker , model | auto_brands : id , country , maker , fullname", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "number of car models": "model_list.Model", + "maker": "car_makers", + "id": "car_makers.Id", + "full name of each maker": "car_makers.FullName" + } + }, + { + "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_id": "car_1", + "orig_query": "select count(*), t2.fullname, t2.id from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id", + "schema_with_content": "car_makers : id (13, 9, 18), maker (\"saab\", \"bmw\", \"daimler benz\"), fullname (\"Renault\", \"BMW\", \"BMW\"), country (\"7\", \"8\", \"8\") | vehicle_models : modelid (36, 3, 29), model (\"mazda\", \"cadillac\", \"chrysler\"), maker (1, 23, 1) | continents : contid (3, 2, 5), continent (\"australia\", \"asia\", \"asia\") | cars_data : weight (3892, 4154, 3003), cylinders (6, 8, 3), accelerate (21.0, 15.6, 17.7), horsepower (\"210\", \"158\", \"152\"), mpg (\"35\", \"15\", \"44.3\"), edispl (141.0, 133.0, 134.0), id (327, 195, 132), year (1980, 1979, 1973) | car_names : make (\"chevrolet chevelle concours (sw)\", \"toyota corolla liftback\", \"vw dasher (diesel)\"), model (\"peugeot\", \"mercedes-benz\", \" volkswagen\"), makeid (9, 287, 295) | countries : continent (1, 4, 1), countryid (11, 9, 14), countryname (\"russia\", \"uk\", \"usa\") | car_models : modelid (36, 3, 29), model (\"mazda\", \"cadillac\", \"chrysler\"), maker (1, 23, 1)", + "schema_without_content": "car_makers : id , maker , fullname , country | vehicle_models : modelid , model , maker | continents : contid , continent | cars_data : weight , cylinders , accelerate , horsepower , mpg , edispl , id , year | car_names : make \", \"toyota corolla liftback\", \"vw dasher \", model , makeid | countries : continent , countryid , countryname | car_models : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "number of car models": "model_list.Model", + "maker": "car_makers", + "id": "car_makers.Id", + "full name of each maker": "car_makers.FullName" + } + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_id": "car_1", + "orig_query": "select t1.accelerate from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.make = 'amc hornet sportabout (sw)'", + "schema_with_content": "car_models : makeid (291, 232, 226), make (\"chevy c10\", \"toyota corona mark ii (sw)\", \"nissan stanza xe\"), model (\"datsun\", \"capri\", \"citroen\") | cars_data : mpg (\"31\", \"25.4\", \"35.7\"), id (286, 272, 289), weight (3725, 4425, 4274), horsepower (\"100\", \"85\", \"135\"), cylinders (4, 8, 8), accelerate (14.4, 14.9, 12.0), year (1971, 1977, 1981), edispl (267.0, 80.0, 88.0) | vehicle_names : makeid (291, 232, 226), make (\"chevy c10\", \"toyota corona mark ii (sw)\", \"nissan stanza xe\"), model (\"datsun\", \"capri\", \"citroen\") | car_makers : id (22, 11, 12), country (\"4\", \"7\", \"4\"), fullname (\"Honda\", \"Daimler Benz\", \"Volkswagen\"), maker (\"hyundai\", \"triumph\", \"renault\") | model_list : model (\"mercury\", \"bmw\", \"cadillac\"), modelid (22, 25, 5), maker (23, 15, 5) | countries : countryid (6, 5, 1), continent (3, 3, 4), countryname (\"japan\", \"usa\", \"russia\") | continents : contid (4, 5, 3), continent (\"asia\", \"europe\", \"asia\")", + "schema_without_content": "car_models : makeid , make \", \"nissan stanza xe\", model | cars_data : mpg , id , weight , horsepower , cylinders , accelerate , year , edispl | vehicle_names : makeid , make \", \"nissan stanza xe\", model | car_makers : id , country , fullname , maker | model_list : model , modelid , maker | countries : countryid , continent , countryname | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "accelerate of the car make": "cars_data.Accelerate" + } + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_id": "car_1", + "orig_query": "select t1.accelerate from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.make = 'amc hornet sportabout (sw)'", + "schema_with_content": "auto_data : weight (2350, 2565, 2790), id (77, 103, 127), year (1977, 1982, 1978), horsepower (\"107\", \"139\", \"190\"), mpg (\"22.5\", \"26.8\", \"37.2\"), accelerate (16.0, 20.1, 15.5), cylinders (6, 6, 4), edispl (171.0, 351.0, 267.0) | continents : contid (3, 1, 2), continent (\"africa\", \"europe\", \"europe\") | model_list : maker (20, 20, 22), model (\"peugeot\", \"mercedes-benz\", \"subaru\"), modelid (25, 27, 9) | car_names : make (\"mercury zephyr 6\", \"plymouth reliant\", \" mazda glc deluxe\"), makeid (90, 251, 221), model (\"cadillac\", \"fiat\", \"buick\") | countries : countryname (\"new zealand\", \"korea\", \"russia\"), continent (3, 3, 4), countryid (1, 5, 7) | vehicle_data : weight (2350, 2565, 2790), id (77, 103, 127), year (1977, 1982, 1978), horsepower (\"107\", \"139\", \"190\"), mpg (\"22.5\", \"26.8\", \"37.2\"), accelerate (16.0, 20.1, 15.5), cylinders (6, 6, 4), edispl (171.0, 351.0, 267.0) | car_makers : fullname (\"Citroen\", \"Mazda\", \"Mazda\"), maker (\"subaru\", \"toyota\", \"gm\"), id (3, 6, 20), country (\"4\", \"2\", \"2\")", + "schema_without_content": "auto_data : weight , id , year , horsepower , mpg , accelerate , cylinders , edispl | continents : contid , continent | model_list : maker , model , modelid | car_names : make , makeid , model | countries : countryname , continent , countryid | vehicle_data : weight , id , year , horsepower , mpg , accelerate , cylinders , edispl | car_makers : fullname , maker , id , country", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "accelerate of the car make": "cars_data.Accelerate" + } + }, + { + "question": "how much does the car #accelerate# that makes amc hornet sportabout (sw)?", + "db_id": "car_1", + "orig_query": "select t1.accelerate from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.make = 'amc hornet sportabout (sw)'", + "schema_with_content": "vehicle_names : makeid (87, 379, 181), make (\"plymouth champ\", \"datsun 510 (sw)\", \"datsun f-10 hatchback\"), model (\"plymouth\", \"honda\", \"honda\") | cars_data : horsepower (\"90\", \"52\", \"61\"), id (43, 81, 273), edispl (168.0, 351.0, 70.0), cylinders (5, 3, 4), weight (1925, 3821, 2125), year (1976, 1976, 1971), mpg (\"25.1\", \"37.7\", \"25.5\"), accelerate (12.1, 14.5, 24.6) | continents : contid (2, 5, 3), continent (\"africa\", \"europe\", \"europe\") | car_makers : fullname (\"Fiat\", \"Ford Motor Company\", \"Saab\"), id (19, 2, 19), country (\"2\", \"1\", \"1\"), maker (\"citroen\", \"volkswagen\", \"nissan\") | car_models : makeid (87, 379, 181), make (\"plymouth champ\", \"datsun 510 (sw)\", \"datsun f-10 hatchback\"), model (\"plymouth\", \"honda\", \"honda\") | countries : countryid (12, 7, 14), continent (1, 1, 3), countryname (\"france\", \"japan\", \"usa\") | model_list : maker (5, 20, 11), model (\"scion\", \"cadillac\", \"amc\"), modelid (22, 30, 9)", + "schema_without_content": "vehicle_names : makeid , make \", \"datsun f-10 hatchback\", model | cars_data : horsepower , id , edispl , cylinders , weight , year , mpg , accelerate | continents : contid , continent | car_makers : fullname , id , country , maker | car_models : makeid , make \", \"datsun f-10 hatchback\", model | countries : countryid , continent , countryname | model_list : maker , model , modelid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "accelerate": "cars_data.Accelerate", + "make": "car_names.Make" + } + }, + { + "question": "how much does the car #accelerate# that makes amc hornet sportabout (sw)?", + "db_id": "car_1", + "orig_query": "select t1.accelerate from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.make = 'amc hornet sportabout (sw)'", + "schema_with_content": "model_list : modelid (13, 13, 6), maker (5, 10, 13), model (\"jeep\", \"mercedes\", \"honda\") | car_names : make (\"fiat 131\", \"buick skylark\", \"subaru dl\"), model (\"peugeot\", \"mercedes\", \"bmw\"), makeid (268, 359, 79) | countries : countryname (\"italy\", \"italy\", \"italy\"), countryid (8, 2, 1), continent (5, 1, 2) | continents : contid (1, 3, 4), continent (\"asia\", \"asia\", \"asia\") | car_makers : maker (\"volkswagen\", \"chrysler\", \"honda\"), country (\"3\", \"4\", \"3\"), fullname (\"Daimler Benz\", \"Triumph\", \"Renault\"), id (13, 15, 7) | vehicle_data : cylinders (3, 5, 3), accelerate (16.2, 20.5, 15.8), id (316, 224, 280), edispl (88.0, 262.0, 318.0), weight (3870, 2930, 2278), mpg (\"23.8\", \"21.1\", \"14.5\"), horsepower (\"75\", \"98\", \"142\"), year (1974, 1976, 1976) | auto_data : cylinders (3, 5, 3), accelerate (16.2, 20.5, 15.8), id (316, 224, 280), edispl (88.0, 262.0, 318.0), weight (3870, 2930, 2278), mpg (\"23.8\", \"21.1\", \"14.5\"), horsepower (\"75\", \"98\", \"142\"), year (1974, 1976, 1976)", + "schema_without_content": "model_list : modelid , maker , model | car_names : make , model , makeid | countries : countryname , countryid , continent | continents : contid , continent | car_makers : maker , country , fullname , id | vehicle_data : cylinders , accelerate , id , edispl , weight , mpg , horsepower , year | auto_data : cylinders , accelerate , id , edispl , weight , mpg , horsepower , year", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "accelerate": "cars_data.Accelerate", + "make": "car_names.Make" + } + }, + { + "question": "how many #car makers# are there in #france# ?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france'", + "schema_with_content": "cars_data : horsepower (\"175\", \"83\", \"155\"), mpg (\"16.5\", \"43.1\", \"17.5\"), edispl (155.0, 70.0, 155.0), id (149, 267, 125), accelerate (15.5, 15.8, 18.7), weight (2740, 2100, 2401), cylinders (3, 4, 6), year (1974, 1982, 1979) | nation : countryid (8, 10, 10), continent (1, 4, 2), countryname (\"japan\", \"korea\", \"russia\") | car_makers : country (\"6\", \"5\", \"8\"), maker (\"triumph\", \"volkswagen\", \"fiat\"), fullname (\"Toyota\", \"Toyota\", \"Volkswagen\"), id (11, 14, 20) | state : countryid (8, 10, 10), continent (1, 4, 2), countryname (\"japan\", \"korea\", \"russia\") | car_names : model (\"volvo\", \"volvo\", \"dodge\"), make (\"dodge rampage\", \"plymouth grand fury\", \"datsun 510 hatchback\"), makeid (208, 141, 10) | continents : continent (\"australia\", \"asia\", \"australia\"), contid (2, 2, 3) | model_list : modelid (19, 3, 7), model (\"mazda\", \"plymouth\", \"mercedes\"), maker (14, 17, 15)", + "schema_without_content": "cars_data : horsepower , mpg , edispl , id , accelerate , weight , cylinders , year | nation : countryid , continent , countryname | car_makers : country , maker , fullname , id | state : countryid , continent , countryname | car_names : model , make , makeid | continents : continent , contid | model_list : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "france": "countries.CountryName" + } + }, + { + "question": "how many #car makers# are there in #france# ?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france'", + "schema_with_content": "car_names : make (\"plymouth fury gran sedan\", \"chrysler new yorker brougham\", \"plymouth horizon 4\"), makeid (403, 165, 127), model (\"bmw\", \"peugeot\", \"subaru\") | model_list : maker (5, 3, 13), model (\"ford\", \"peugeot\", \"capri\"), modelid (2, 29, 22) | auto_brands : id (4, 21, 18), fullname (\"Ford Motor Company\", \"Renault\", \"Volkswagen\"), maker (\"subaru\", \"triumph\", \"opel\"), country (\"4\", \"4\", \"5\") | cars_data : year (1972, 1975, 1980), cylinders (3, 8, 3), id (161, 252, 47), horsepower (\"80\", \"82\", \"230\"), weight (2255, 3039, 4735), edispl (318.0, 98.0, 71.0), accelerate (15.3, 18.3, 18.1), mpg (\"34.4\", \"26.6\", \"13\") | continents : continent (\"australia\", \"america\", \"europe\"), contid (2, 1, 2) | countries : countryname (\"mexico\", \"egypt\", \"sweden\"), countryid (6, 5, 2), continent (2, 3, 3) | manufacturers : id (4, 21, 18), fullname (\"Ford Motor Company\", \"Renault\", \"Volkswagen\"), maker (\"subaru\", \"triumph\", \"opel\"), country (\"4\", \"4\", \"5\")", + "schema_without_content": "car_names : make , makeid , model | model_list : maker , model , modelid | auto_brands : id , fullname , maker , country | cars_data : year , cylinders , id , horsepower , weight , edispl , accelerate , mpg | continents : continent , contid | countries : countryname , countryid , continent | manufacturers : id , fullname , maker , country", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car makers": "car_makers", + "france": "countries.CountryName" + } + }, + { + "question": "what is the number of #makers# of care in #france# ?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france'", + "schema_with_content": "continents : continent (\"america\", \"europe\", \"africa\"), contid (1, 3, 3) | nation : countryid (5, 11, 5), countryname (\"nigeria\", \"mexico\", \"brazil\"), continent (4, 4, 3) | cars_data : accelerate (18.1, 9.0, 16.0), cylinders (4, 8, 5), year (1976, 1979, 1970), mpg (\"31.6\", \"25.4\", \"29.8\"), id (400, 289, 62), edispl (318.0, 135.0, 71.0), weight (4735, 1836, 2585), horsepower (\"102\", \"122\", \"137\") | state : countryid (5, 11, 5), countryname (\"nigeria\", \"mexico\", \"brazil\"), continent (4, 4, 3) | car_makers : maker (\"toyota\", \"ford\", \"toyota\"), fullname (\"BMW\", \"Opel\", \"Volkswagen\"), id (3, 4, 21), country (\"6\", \"3\", \"8\") | model_list : maker (22, 1, 5), model (\"amc\", \"datsun\", \"nissan\"), modelid (25, 24, 35) | car_names : model (\"opel\", \" volkswagen\", \" volkswagen\"), makeid (60, 112, 307), make (\"honda accord\", \"ford country squire (sw)\", \"chrysler lebaron salon\")", + "schema_without_content": "continents : continent , contid | nation : countryid , countryname , continent | cars_data : accelerate , cylinders , year , mpg , id , edispl , weight , horsepower | state : countryid , countryname , continent | car_makers : maker , fullname , id , country | model_list : maker , model , modelid | car_names : model , makeid , make \", \"chrysler lebaron salon\"", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "makers": "car_makers.Maker", + "France": "countries.CountryName" + } + }, + { + "question": "what is the number of #makers# of care in #france# ?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france'", + "schema_with_content": "manufacturers : maker (\"bmw\", \"honda\", \"volkswagen\"), country (\"7\", \"7\", \"1\"), fullname (\"Volvo\", \"Honda\", \"Peugeaut\"), id (2, 5, 21) | continents : contid (3, 4, 4), continent (\"australia\", \"europe\", \"europe\") | auto_brands : maker (\"bmw\", \"honda\", \"volkswagen\"), country (\"7\", \"7\", \"1\"), fullname (\"Volvo\", \"Honda\", \"Peugeaut\"), id (2, 5, 21) | cars_data : accelerate (19.2, 16.2, 16.5), weight (1950, 2171, 4325), mpg (\"27.2\", \"40.9\", \"35.1\"), edispl (85.0, 101.0, 130.0), year (1976, 1973, 1980), horsepower (\"142\", \"77\", \"215\"), cylinders (6, 5, 3), id (81, 129, 62) | model_list : maker (2, 2, 10), model (\"mercury\", \"citroen\", \"cadillac\"), modelid (11, 10, 13) | countries : countryname (\"nigeria\", \"mexico\", \"new zealand\"), continent (1, 5, 3), countryid (8, 5, 13) | car_names : makeid (3, 316, 174), model (\"mercedes\", \"volvo\", \"honda\"), make (\"mazda glc 4\", \"dodge aspen\", \"chevrolet monte carlo s\")", + "schema_without_content": "manufacturers : maker , country , fullname , id | continents : contid , continent | auto_brands : maker , country , fullname , id | cars_data : accelerate , weight , mpg , edispl , year , horsepower , cylinders , id | model_list : maker , model , modelid | countries : countryname , continent , countryid | car_names : makeid , model , make", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "makers": "car_makers.Maker", + "France": "countries.CountryName" + } + }, + { + "question": "how many #car models# are #produced in the usa# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "nation : countryid (11, 4, 1), countryname (\"new zealand\", \"korea\", \"sweden\"), continent (5, 2, 3) | model_list : maker (15, 6, 3), modelid (8, 1, 2), model (\"ford\", \"buick\", \"audi\") | cars_data : year (1971, 1975, 1981), id (54, 342, 76), cylinders (3, 5, 5), mpg (\"31\", \"35\", \"24.5\"), weight (2490, 3907, 4422), accelerate (17.3, 8.0, 16.9), horsepower (\"158\", \"230\", \"97\"), edispl (232.0, 340.0, 200.0) | car_names : makeid (123, 88, 86), model (\"oldsmobile\", \"volkswagen\", \"amc\"), make (\"chevrolet cavalier wagon\", \"amc hornet sportabout (sw)\", \"saab 900s\") | car_makers : id (2, 8, 6), fullname (\"Toyota\", \"Mazda\", \"Chrysler\"), maker (\"toyota\", \"bmw\", \"nissan\"), country (\"2\", \"7\", \"6\") | state : countryid (11, 4, 1), countryname (\"new zealand\", \"korea\", \"sweden\"), continent (5, 2, 3) | continents : contid (5, 3, 5), continent (\"africa\", \"america\", \"europe\")", + "schema_without_content": "nation : countryid , countryname , continent | model_list : maker , modelid , model | cars_data : year , id , cylinders , mpg , weight , accelerate , horsepower , edispl | car_names : makeid , model , make \", \"saab 900s\" | car_makers : id , fullname , maker , country | state : countryid , countryname , continent | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced in the usa": "countries.CountryName" + } + }, + { + "question": "how many #car models# are #produced in the usa# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "continents : contid (5, 5, 5), continent (\"asia\", \"america\", \"africa\") | auto_brands : id (2, 6, 11), maker (\"nissan\", \"subaru\", \"daimler benz\"), fullname (\"Kia Motors\", \"Saab\", \"Kia Motors\"), country (\"7\", \"4\", \"3\") | model_list : modelid (9, 10, 18), maker (15, 17, 1), model (\"datsun\", \"chrysler\", \"oldsmobile\") | car_names : model (\" volkswagen\", \"saab\", \" volkswagen\"), makeid (52, 262, 20), make (\"pontiac catalina\", \"chevrolet concours\", \"volkswagen rabbit\") | cars_data : id (126, 289, 346), weight (1825, 3150, 4080), mpg (\"25.8\", \"16.5\", \"28.1\"), accelerate (11.5, 20.7, 14.4), edispl (200.0, 116.0, 305.0), year (1976, 1982, 1980), horsepower (\"155\", \"96\", \"135\"), cylinders (4, 6, 5) | countries : continent (4, 1, 5), countryname (\"usa\", \"italy\", \"new zealand\"), countryid (8, 14, 2) | manufacturers : id (2, 6, 11), maker (\"nissan\", \"subaru\", \"daimler benz\"), fullname (\"Kia Motors\", \"Saab\", \"Kia Motors\"), country (\"7\", \"4\", \"3\")", + "schema_without_content": "continents : contid , continent | auto_brands : id , maker , fullname , country | model_list : modelid , maker , model | car_names : model , makeid , make | cars_data : id , weight , mpg , accelerate , edispl , year , horsepower , cylinders | countries : continent , countryname , countryid | manufacturers : id , maker , fullname , country", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced in the usa": "countries.CountryName" + } + }, + { + "question": "how many #car models# are #produced in the usa# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "continents : contid (4, 3, 1), continent (\"europe\", \"africa\", \"america\") | car_names : makeid (123, 340, 133), make (\"volkswagen model 111\", \"hi 1200d\", \"mercury zephyr 6\"), model (\"plymouth\", \"audi\", \"bmw\") | cars_data : cylinders (8, 6, 4), mpg (\"17.7\", \"30.9\", \"29.8\"), accelerate (11.2, 8.0, 18.3), id (261, 99, 87), weight (2219, 4237, 2123), edispl (78.0, 360.0, 400.0), year (1974, 1975, 1978), horsepower (\"149\", \"125\", \"149\") | vehicle_models : maker (17, 5, 8), model (\"hyundai\", \"volvo\", \"chevrolet\"), modelid (23, 8, 6) | countries : countryid (15, 11, 1), countryname (\"egypt\", \"france\", \"russia\"), continent (1, 5, 4) | car_models : maker (17, 5, 8), model (\"hyundai\", \"volvo\", \"chevrolet\"), modelid (23, 8, 6) | car_makers : fullname (\"Daimler Benz\", \"Renault\", \"Kia Motors\"), country (\"3\", \"4\", \"3\"), maker (\"toyota\", \"peugeaut\", \"gm\"), id (21, 4, 7)", + "schema_without_content": "continents : contid , continent | car_names : makeid , make , model | cars_data : cylinders , mpg , accelerate , id , weight , edispl , year , horsepower | vehicle_models : maker , model , modelid | countries : countryid , countryname , continent | car_models : maker , model , modelid | car_makers : fullname , country , maker , id", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "produced in the usa": "countries.CountryName" + } + }, + { + "question": "what is the count of the #car models produced in the united states# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "car_names : make (\"pontiac grand prix lj\", \"ford pinto runabout\", \"mercury marquis brougham\"), model (\"triumph\", \"cadillac\", \"hi\"), makeid (383, 87, 351) | continents : continent (\"europe\", \"europe\", \"europe\"), contid (1, 2, 2) | car_makers : id (15, 4, 19), maker (\"honda\", \"daimler benz\", \"toyota\"), country (\"6\", \"7\", \"7\"), fullname (\"Triumph\", \"Kia Motors\", \"Triumph\") | state : countryname (\"usa\", \"brazil\", \"korea\"), countryid (9, 4, 5), continent (2, 4, 3) | cars_data : edispl (101.0, 198.0, 146.0), year (1970, 1975, 1977), mpg (\"20.3\", \"40.8\", \"15.5\"), weight (2585, 2046, 2290), horsepower (\"210\", \"149\", \"230\"), cylinders (3, 6, 5), id (250, 310, 245), accelerate (17.0, 13.5, 9.0) | nation : countryname (\"usa\", \"brazil\", \"korea\"), countryid (9, 4, 5), continent (2, 4, 3) | model_list : maker (3, 10, 15), modelid (28, 20, 14), model (\"nissan\", \"bmw\", \"fiat\")", + "schema_without_content": "car_names : make , model , makeid | continents : continent , contid | car_makers : id , maker , country , fullname | state : countryname , countryid , continent | cars_data : edispl , year , mpg , weight , horsepower , cylinders , id , accelerate | nation : countryname , countryid , continent | model_list : maker , modelid , model", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "car models produced in the United States": "model_list.Model" + } + }, + { + "question": "what is the count of the #car models produced in the united states# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "cars_data : mpg (\"36\", \"27.2\", \"31.6\"), edispl (116.0, 91.0, 98.0), weight (2950, 3605, 2904), year (1982, 1976, 1971), cylinders (4, 3, 6), accelerate (13.7, 16.6, 20.7), horsepower (\"79\", \"70\", \"67\"), id (89, 59, 327) | countries : countryid (1, 4, 10), continent (4, 4, 2), countryname (\"germany\", \"brazil\", \"germany\") | car_names : makeid (105, 73, 272), make (\"ford country\", \"chevrolet citation\", \"audi 5000s (diesel)\"), model (\"triumph\", \"bmw\", \"saab\") | auto_brands : country (\"1\", \"8\", \"5\"), maker (\"renault\", \"gm\", \"gm\"), fullname (\"Volvo\", \"Hyundai\", \"Daimler Benz\"), id (8, 11, 8) | model_list : model (\"citroen\", \"datsun\", \"chrysler\"), modelid (7, 11, 13), maker (2, 5, 3) | continents : continent (\"asia\", \"europe\", \"australia\"), contid (4, 5, 5) | manufacturers : country (\"1\", \"8\", \"5\"), maker (\"renault\", \"gm\", \"gm\"), fullname (\"Volvo\", \"Hyundai\", \"Daimler Benz\"), id (8, 11, 8)", + "schema_without_content": "cars_data : mpg , edispl , weight , year , cylinders , accelerate , horsepower , id | countries : countryid , continent , countryname | car_names : makeid , make \", model | auto_brands : country , maker , fullname , id | model_list : model , modelid , maker | continents : continent , contid | manufacturers : country , maker , fullname , id", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car models produced in the United States": "model_list.Model" + } + }, + { + "question": "what is the count of the #car models produced in the united states# ?", + "db_id": "car_1", + "orig_query": "select count(*) from model_list as t1 join car_makers as t2 on t1.maker = t2.id join countries as t3 on t2.country = t3.countryid where t3.countryname = 'usa'", + "schema_with_content": "countries : countryname (\"russia\", \"usa\", \"usa\"), continent (3, 2, 4), countryid (1, 2, 10) | car_models : maker (13, 15, 12), model (\"datsun\", \"datsun\", \"cadillac\"), modelid (2, 12, 2) | car_names : makeid (168, 200, 366), model (\"triumph\", \"plymouth\", \"audi\"), make (\"saab 99e\", \"cadillac eldorado\", \"fiat 131\") | car_makers : id (14, 7, 1), fullname (\"Ford Motor Company\", \"Peugeaut\", \"Saab\"), maker (\"citroen\", \"daimler benz\", \"citroen\"), country (\"7\", \"7\", \"5\") | vehicle_models : maker (13, 15, 12), model (\"datsun\", \"datsun\", \"cadillac\"), modelid (2, 12, 2) | cars_data : mpg (\"24\", \"37.3\", \"23.9\"), year (1981, 1973, 1970), cylinders (6, 3, 8), id (393, 79, 29), weight (2335, 3085, 2790), edispl (91.0, 104.0, 232.0), accelerate (14.3, 8.5, 18.5), horsepower (\"98\", \"70\", \"208\") | continents : contid (1, 2, 3), continent (\"america\", \"america\", \"europe\")", + "schema_without_content": "countries : countryname , continent , countryid | car_models : maker , model , modelid | car_names : makeid , model , make | car_makers : id , fullname , maker , country | vehicle_models : maker , model , modelid | cars_data : mpg , year , cylinders , id , weight , edispl , accelerate , horsepower | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "car models produced in the United States": "model_list.Model" + } + }, + { + "question": "what is the #average miles per gallon(mpg) of the cars with 4 cylinders?# ", + "db_id": "car_1", + "orig_query": "select avg(mpg) from cars_data where cylinders = 4", + "schema_with_content": "car_names : make (\"vw pickup\", \"honda civic 1300\", \"dodge colt\"), model (\"pontiac\", \"hi\", \"pontiac\"), makeid (24, 43, 153) | vehicle_data : edispl (231.0, 79.0, 115.0), id (199, 31, 40), accelerate (8.0, 14.4, 13.6), cylinders (8, 3, 6), weight (2711, 2735, 4746), mpg (\"12\", \"31.8\", \"40.9\"), year (1982, 1981, 1973), horsepower (\"225\", \"91\", \"120\") | countries : countryid (13, 5, 2), continent (2, 5, 1), countryname (\"new zealand\", \"italy\", \"germany\") | continents : contid (2, 1, 3), continent (\"america\", \"america\", \"africa\") | auto_data : edispl (231.0, 79.0, 115.0), id (199, 31, 40), accelerate (8.0, 14.4, 13.6), cylinders (8, 3, 6), weight (2711, 2735, 4746), mpg (\"12\", \"31.8\", \"40.9\"), year (1982, 1981, 1973), horsepower (\"225\", \"91\", \"120\") | car_makers : country (\"3\", \"4\", \"7\"), maker (\"renault\", \"fiat\", \"fiat\"), fullname (\"Renault\", \"Ford Motor Company\", \"Saab\"), id (18, 5, 13) | model_list : modelid (25, 23, 9), maker (3, 13, 12), model (\"amc\", \"dodge\", \"fiat\")", + "schema_without_content": "car_names : make , model , makeid | vehicle_data : edispl , id , accelerate , cylinders , weight , mpg , year , horsepower | countries : countryid , continent , countryname | continents : contid , continent | auto_data : edispl , id , accelerate , cylinders , weight , mpg , year , horsepower | car_makers : country , maker , fullname , id | model_list : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average miles per gallon(mpg) of the cars with 4 cylinders?": "cars_data.MPG" + } + }, + { + "question": "what is the #average miles per gallon# of all the cards with 4 #cylinders# ?", + "db_id": "car_1", + "orig_query": "select avg(mpg) from cars_data where cylinders = 4", + "schema_with_content": "car_makers : maker (\"bmw\", \"bmw\", \"ford\"), fullname (\"Subaru\", \"Chrysler\", \"Fiat\"), id (19, 7, 3), country (\"6\", \"1\", \"2\") | car_names : makeid (326, 89, 361), make (\"toyota celica gt liftback\", \"buick century luxus (sw)\", \"plymouth fury gran sedan\"), model (\"peugeot\", \"buick\", \"volkswagen\") | countries : countryid (5, 11, 15), continent (2, 4, 1), countryname (\"russia\", \"germany\", \"australia\") | vehicle_data : horsepower (\"149\", \"94\", \"63\"), year (1971, 1974, 1977), mpg (\"22.5\", \"16\", \"34.1\"), weight (3940, 2125, 2875), edispl (350.0, 111.0, 144.0), cylinders (5, 3, 6), id (268, 355, 374), accelerate (11.1, 24.8, 12.9) | auto_data : horsepower (\"149\", \"94\", \"63\"), year (1971, 1974, 1977), mpg (\"22.5\", \"16\", \"34.1\"), weight (3940, 2125, 2875), edispl (350.0, 111.0, 144.0), cylinders (5, 3, 6), id (268, 355, 374), accelerate (11.1, 24.8, 12.9) | model_list : model (\"mercury\", \"opel\", \"pontiac\"), maker (3, 13, 5), modelid (30, 23, 21) | continents : continent (\"europe\", \"europe\", \"europe\"), contid (3, 4, 5)", + "schema_without_content": "car_makers : maker , fullname , id , country | car_names : makeid , make \", \"plymouth fury gran sedan\", model | countries : countryid , continent , countryname | vehicle_data : horsepower , year , mpg , weight , edispl , cylinders , id , accelerate | auto_data : horsepower , year , mpg , weight , edispl , cylinders , id , accelerate | model_list : model , maker , modelid | continents : continent , contid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average miles per gallon": "cars_data.MPG", + "cylinders": "cars_data.Cylinders" + } + }, + { + "question": "what are the #countries# having at least one #car maker# ? list #name# and #id# .", + "db_id": "car_1", + "orig_query": "select t1.countryname, t1.countryid from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) >= 1", + "schema_with_content": "model_list : model (\"scion\", \"fiat\", \"kia\"), modelid (29, 26, 2), maker (1, 22, 10) | nation : continent (2, 3, 3), countryname (\"france\", \"russia\", \"italy\"), countryid (7, 1, 9) | continents : continent (\"europe\", \"africa\", \"asia\"), contid (4, 1, 5) | car_names : model (\"citroen\", \"plymouth\", \"mazda\"), makeid (20, 387, 222), make (\"mercury lynx l\", \"mazda rx-7 gs\", \"datsun 810 maxima\") | car_makers : country (\"2\", \"1\", \"5\"), id (9, 23, 5), maker (\"renault\", \"honda\", \"nissan\"), fullname (\"Honda\", \"Volkswagen\", \"Volvo\") | cars_data : year (1972, 1974, 1981), weight (3785, 2300, 4380), accelerate (20.5, 17.6, 11.5), id (355, 102, 367), edispl (80.0, 134.0, 171.0), mpg (\"32.7\", \"9\", \"28.8\"), horsepower (\"112\", \"88\", \"110\"), cylinders (6, 8, 8) | state : continent (2, 3, 3), countryname (\"france\", \"russia\", \"italy\"), countryid (7, 1, 9)", + "schema_without_content": "model_list : model , modelid , maker | nation : continent , countryname , countryid | continents : continent , contid | car_names : model , makeid , make | car_makers : country , id , maker , fullname | cars_data : year , weight , accelerate , id , edispl , mpg , horsepower , cylinders | state : continent , countryname , countryid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "countries": "countries", + "car maker": "car_makers", + "name": "countries.CountryName", + "id": "countries.CountryId" + } + }, + { + "question": "what are the #countries# having at least one #car maker# ? list #name# and #id# .", + "db_id": "car_1", + "orig_query": "select t1.countryname, t1.countryid from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) >= 1", + "schema_with_content": "countries : countryid (9, 1, 11), countryname (\"australia\", \"france\", \"brazil\"), continent (5, 3, 1) | auto_brands : country (\"8\", \"8\", \"8\"), maker (\"kia\", \"toyota\", \"toyota\"), id (13, 3, 9), fullname (\"Hyundai\", \"Renault\", \"Renault\") | car_names : make (\"toyota cressida\", \"dodge colt m/m\", \"mazda glc 4\"), model (\"saab\", \"pontiac\", \"renault\"), makeid (2, 20, 250) | continents : contid (1, 2, 1), continent (\"europe\", \"africa\", \"america\") | manufacturers : country (\"8\", \"8\", \"8\"), maker (\"kia\", \"toyota\", \"toyota\"), id (13, 3, 9), fullname (\"Hyundai\", \"Renault\", \"Renault\") | cars_data : accelerate (18.8, 13.9, 15.2), id (72, 340, 216), cylinders (3, 8, 4), edispl (79.0, 260.0, 318.0), year (1980, 1970, 1975), weight (2665, 2648, 3210), horsepower (\"158\", \"175\", \"80\"), mpg (\"24\", \"27.4\", \"25.4\") | model_list : model (\"hi\", \"chevrolet\", \"fiat\"), maker (20, 3, 20), modelid (2, 13, 35)", + "schema_without_content": "countries : countryid , countryname , continent | auto_brands : country , maker , id , fullname | car_names : make , model , makeid | continents : contid , continent | manufacturers : country , maker , id , fullname | cars_data : accelerate , id , cylinders , edispl , year , weight , horsepower , mpg | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "countries", + "car maker": "car_makers", + "name": "countries.CountryName", + "id": "countries.CountryId" + } + }, + { + "question": "what are the #names# and #ids of all countries# with at least one #car maker# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname, t1.countryid from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) >= 1", + "schema_with_content": "nation : continent (1, 1, 5), countryid (12, 12, 7), countryname (\"brazil\", \"uk\", \"japan\") | continents : contid (1, 3, 5), continent (\"africa\", \"europe\", \"america\") | model_list : maker (8, 18, 4), modelid (10, 28, 19), model (\"mercedes-benz\", \"opel\", \"chrysler\") | cars_data : horsepower (\"150\", \"90\", \"46\"), id (352, 377, 205), edispl (80.0, 113.0, 80.0), cylinders (4, 8, 5), mpg (\"23.6\", \"34.5\", \"29.9\"), weight (2145, 3288, 2904), year (1977, 1980, 1973), accelerate (16.5, 12.9, 23.7) | state : continent (1, 1, 5), countryid (12, 12, 7), countryname (\"brazil\", \"uk\", \"japan\") | car_names : makeid (351, 266, 315), make (\"mazda 626\", \"mercury zephyr\", \"pontiac j2000 se hatchback\"), model (\"audi\", \"triumph\", \"citroen\") | car_makers : country (\"4\", \"5\", \"7\"), id (7, 1, 15), fullname (\"BMW\", \"Triumph\", \"Hyundai\"), maker (\"gm\", \"volvo\", \"volvo\")", + "schema_without_content": "nation : continent , countryid , countryname | continents : contid , continent | model_list : maker , modelid , model | cars_data : horsepower , id , edispl , cylinders , mpg , weight , year , accelerate | state : continent , countryid , countryname | car_names : makeid , make , model | car_makers : country , id , fullname , maker", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "names": "countries.CountryName", + "ids of all countries": "countries.CountryId", + "car maker": "car_makers" + } + }, + { + "question": "what are the #names# and #ids of all countries# with at least one #car maker# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname, t1.countryid from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) >= 1", + "schema_with_content": "car_names : model (\"nissan\", \"nissan\", \"buick\"), make (\"plymouth custom suburb\", \"volkswagen scirocco\", \"oldsmobile delta 88 royale\"), makeid (323, 81, 194) | auto_brands : id (2, 2, 9), fullname (\"Kia Motors\", \"Triumph\", \"Mazda\"), country (\"4\", \"6\", \"2\"), maker (\"saab\", \"fiat\", \"hyundai\") | cars_data : cylinders (8, 3, 3), weight (2265, 2965, 2865), horsepower (\"153\", \"120\", \"105\"), year (1982, 1980, 1974), accelerate (13.8, 24.8, 15.9), mpg (\"37.2\", \"40.8\", \"16.5\"), edispl (302.0, 171.0, 383.0), id (305, 135, 397) | continents : continent (\"asia\", \"america\", \"africa\"), contid (4, 2, 2) | countries : countryname (\"brazil\", \"brazil\", \"brazil\"), continent (5, 2, 3), countryid (14, 1, 12) | manufacturers : id (2, 2, 9), fullname (\"Kia Motors\", \"Triumph\", \"Mazda\"), country (\"4\", \"6\", \"2\"), maker (\"saab\", \"fiat\", \"hyundai\") | model_list : model (\"cadillac\", \"amc\", \"jeep\"), maker (19, 22, 12), modelid (19, 4, 15)", + "schema_without_content": "car_names : model , make , makeid | auto_brands : id , fullname , country , maker | cars_data : cylinders , weight , horsepower , year , accelerate , mpg , edispl , id | continents : continent , contid | countries : countryname , continent , countryid | manufacturers : id , fullname , country , maker | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "countries.CountryName", + "ids of all countries": "countries.CountryId", + "car maker": "car_makers" + } + }, + { + "question": "what is the #number of the cars with horsepower# more than 150?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where horsepower > 150", + "schema_with_content": "car_names : model (\"cadillac\", \" volkswagen\", \"toyota\"), make (\"plymouth sapporo\", \"chevrolet impala\", \"bmw 320i\"), makeid (246, 202, 134) | vehicle_data : id (298, 193, 157), year (1972, 1973, 1976), horsepower (\"198\", \"77\", \"125\"), cylinders (5, 4, 8), accelerate (19.6, 14.2, 21.7), weight (2123, 4360, 4906), mpg (\"19.8\", \"38.1\", \"27.4\"), edispl (305.0, 231.0, 135.0) | continents : contid (2, 3, 3), continent (\"america\", \"australia\", \"africa\") | countries : countryname (\"nigeria\", \"uk\", \"mexico\"), continent (2, 5, 1), countryid (3, 4, 14) | auto_data : id (298, 193, 157), year (1972, 1973, 1976), horsepower (\"198\", \"77\", \"125\"), cylinders (5, 4, 8), accelerate (19.6, 14.2, 21.7), weight (2123, 4360, 4906), mpg (\"19.8\", \"38.1\", \"27.4\"), edispl (305.0, 231.0, 135.0) | model_list : modelid (10, 4, 24), maker (8, 12, 16), model (\"volkswagen\", \"renault\", \"mazda\") | car_makers : id (23, 8, 1), maker (\"fiat\", \"fiat\", \"hyundai\"), fullname (\"Opel\", \"Kia Motors\", \"Renault\"), country (\"2\", \"5\", \"7\")", + "schema_without_content": "car_names : model , make , makeid | vehicle_data : id , year , horsepower , cylinders , accelerate , weight , mpg , edispl | continents : contid , continent | countries : countryname , continent , countryid | auto_data : id , year , horsepower , cylinders , accelerate , weight , mpg , edispl | model_list : modelid , maker , model | car_makers : id , maker , fullname , country", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "number of the cars with horsepower": "cars_data.Id" + } + }, + { + "question": "what is the #number of cars with a horsepower# greater than 150?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where horsepower > 150", + "schema_with_content": "car_makers : country (\"2\", \"6\", \"3\"), id (2, 2, 7), fullname (\"Fiat\", \"Daimler Benz\", \"Citroen\"), maker (\"daimler benz\", \"hyundai\", \"chrysler\") | vehicle_data : edispl (105.0, 108.0, 144.0), accelerate (17.8, 13.9, 15.7), horsepower (\"139\", \"210\", \"215\"), cylinders (3, 5, 8), mpg (\"25.1\", \"23.6\", \"30.7\"), year (1980, 1981, 1976), weight (2245, 3336, 2144), id (126, 218, 331) | auto_data : edispl (105.0, 108.0, 144.0), accelerate (17.8, 13.9, 15.7), horsepower (\"139\", \"210\", \"215\"), cylinders (3, 5, 8), mpg (\"25.1\", \"23.6\", \"30.7\"), year (1980, 1981, 1976), weight (2245, 3336, 2144), id (126, 218, 331) | countries : countryid (15, 5, 6), continent (3, 5, 1), countryname (\"germany\", \"japan\", \"uk\") | continents : contid (5, 3, 4), continent (\"australia\", \"europe\", \"australia\") | car_names : makeid (174, 12, 348), model (\"toyota\", \"amc\", \"renault\"), make (\"chevrolet monte carlo\", \"pontiac safari (sw)\", \"datsun 210 mpg\") | model_list : maker (3, 11, 21), model (\"amc\", \"chevrolet\", \"buick\"), modelid (3, 20, 6)", + "schema_without_content": "car_makers : country , id , fullname , maker | vehicle_data : edispl , accelerate , horsepower , cylinders , mpg , year , weight , id | auto_data : edispl , accelerate , horsepower , cylinders , mpg , year , weight , id | countries : countryid , continent , countryname | continents : contid , continent | car_names : makeid , model , make \", \"datsun 210 mpg\" | model_list : maker , model , modelid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "number of cars with a horsepower": "cars_data.Id" + } + }, + { + "question": "what is the #average weight of cars each year# ?", + "db_id": "car_1", + "orig_query": "select avg(weight), year from cars_data group by year", + "schema_with_content": "car_makers : fullname (\"Nissan Motors\", \"Renault\", \"Saab\"), country (\"1\", \"5\", \"6\"), maker (\"fiat\", \"renault\", \"fiat\"), id (9, 6, 16) | model_list : maker (13, 13, 19), model (\"pontiac\", \"pontiac\", \"jeep\"), modelid (7, 13, 7) | auto_data : mpg (\"12\", \"30\", \"44\"), accelerate (14.2, 19.4, 18.6), year (1979, 1977, 1970), weight (3211, 3892, 3102), cylinders (5, 4, 6), id (168, 265, 295), horsepower (\"83\", \"149\", \"80\"), edispl (350.0, 173.0, 262.0) | countries : continent (5, 5, 4), countryid (4, 15, 1), countryname (\"egypt\", \"italy\", \"brazil\") | continents : contid (4, 5, 3), continent (\"europe\", \"europe\", \"australia\") | car_names : makeid (361, 220, 79), make (\"subaru\", \"chevrolet vega 2300\", \"honda civic\"), model (\"toyota\", \" volkswagen\", \"nissan\") | vehicle_data : mpg (\"12\", \"30\", \"44\"), accelerate (14.2, 19.4, 18.6), year (1979, 1977, 1970), weight (3211, 3892, 3102), cylinders (5, 4, 6), id (168, 265, 295), horsepower (\"83\", \"149\", \"80\"), edispl (350.0, 173.0, 262.0)", + "schema_without_content": "car_makers : fullname , country , maker , id | model_list : maker , model , modelid | auto_data : mpg , accelerate , year , weight , cylinders , id , horsepower , edispl | countries : continent , countryid , countryname | continents : contid , continent | car_names : makeid , make , model | vehicle_data : mpg , accelerate , year , weight , cylinders , id , horsepower , edispl", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average weight of cars each year": "cars_data.Weight" + } + }, + { + "question": "what is the #average weight# and #year for each year# ?", + "db_id": "car_1", + "orig_query": "select avg(weight), year from cars_data group by year", + "schema_with_content": "car_makers : id (9, 23, 11), country (\"7\", \"2\", \"8\"), maker (\"opel\", \"amc\", \"mazda\"), fullname (\"Chrysler\", \"Opel\", \"Chrysler\") | vehicle_data : horsepower (\"65\", \"130\", \"52\"), year (1970, 1976, 1971), edispl (112.0, 231.0, 76.0), mpg (\"11\", \"19.4\", \"34.1\"), weight (2145, 1945, 4055), accelerate (17.2, 13.2, 8.5), cylinders (3, 6, 6), id (99, 193, 145) | model_list : model (\"saab\", \"saab\", \"fiat\"), modelid (16, 27, 27), maker (12, 23, 2) | continents : continent (\"asia\", \"asia\", \"asia\"), contid (2, 5, 4) | car_names : makeid (338, 399, 129), make (\"buick century luxus (sw)\", \"ford country squire (sw)\", \"triumph tr7 coupe\"), model (\"renault\", \"citroen\", \"ford\") | auto_data : horsepower (\"65\", \"130\", \"52\"), year (1970, 1976, 1971), edispl (112.0, 231.0, 76.0), mpg (\"11\", \"19.4\", \"34.1\"), weight (2145, 1945, 4055), accelerate (17.2, 13.2, 8.5), cylinders (3, 6, 6), id (99, 193, 145) | countries : continent (5, 3, 3), countryid (6, 10, 8), countryname (\"sweden\", \"uk\", \"nigeria\")", + "schema_without_content": "car_makers : id , country , maker , fullname | vehicle_data : horsepower , year , edispl , mpg , weight , accelerate , cylinders , id | model_list : model , modelid , maker | continents : continent , contid | car_names : makeid , make \", \"ford country squire \", \"triumph tr7 coupe\", model | auto_data : horsepower , year , edispl , mpg , weight , accelerate , cylinders , id | countries : continent , countryid , countryname", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average weight": "cars_data.Weight", + "year for each year": "cars_data.Year" + } + }, + { + "question": "which #countries in europe# have at least 3 #car manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "car_names : makeid (68, 204, 264), make (\"ford maverick\", \"buick century luxus (sw)\", \"buick century 350\"), model (\"peugeot\", \"bmw\", \"toyota\") | model_list : maker (8, 21, 19), model (\"datsun\", \"buick\", \"toyota\"), modelid (33, 12, 5) | cars_data : mpg (\"23\", \"12\", \"29.9\"), id (164, 309, 156), year (1978, 1973, 1977), weight (4440, 3160, 2126), edispl (258.0, 141.0, 121.0), cylinders (3, 4, 8), accelerate (14.9, 14.3, 20.1), horsepower (\"115\", \"53\", \"98\") | continents_list : contid (5, 5, 2), continent (\"asia\", \"america\", \"africa\") | countries : continent (2, 1, 5), countryname (\"germany\", \"russia\", \"italy\"), countryid (5, 3, 6) | car_makers : country (\"6\", \"1\", \"7\"), id (16, 23, 1), fullname (\"Citroen\", \"Triumph\", \"Chrysler\"), maker (\"opel\", \"ford\", \"toyota\") | planet_regions : contid (5, 5, 2), continent (\"asia\", \"america\", \"africa\")", + "schema_without_content": "car_names : makeid , make \", \"buick century 350\", model | model_list : maker , model , modelid | cars_data : mpg , id , year , weight , edispl , cylinders , accelerate , horsepower | continents_list : contid , continent | countries : continent , countryname , countryid | car_makers : country , id , fullname , maker | planet_regions : contid , continent", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "countries in europe": "countries.CountryName", + "car manufacturers": "car_makers" + } + }, + { + "question": "which #countries in europe# have at least 3 #car manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "continents : continent (\"asia\", \"australia\", \"australia\"), contid (3, 4, 2) | car_names : makeid (100, 88, 180), make (\"chevrolet vega\", \"ford granada\", \"chrysler newport royal\"), model (\"volvo\", \"saab\", \"triumph\") | cars_data : cylinders (4, 5, 6), horsepower (\"175\", \"116\", \"68\"), accelerate (18.6, 14.9, 14.4), mpg (\"25.4\", \"31.9\", \"40.9\"), edispl (390.0, 440.0, 86.0), id (266, 130, 130), weight (2500, 2678, 2171), year (1971, 1970, 1977) | model_list : model (\"triumph\", \"kia\", \"nissan\"), maker (19, 13, 12), modelid (6, 13, 13) | nation : countryid (13, 5, 11), countryname (\"russia\", \"japan\", \"nigeria\"), continent (2, 4, 1) | state : countryid (13, 5, 11), countryname (\"russia\", \"japan\", \"nigeria\"), continent (2, 4, 1) | car_makers : id (8, 3, 22), fullname (\"Saab\", \"Fiat\", \"Renault\"), country (\"8\", \"5\", \"2\"), maker (\"triumph\", \"fiat\", \"opel\")", + "schema_without_content": "continents : continent , contid | car_names : makeid , make , model | cars_data : cylinders , horsepower , accelerate , mpg , edispl , id , weight , year | model_list : model , maker , modelid | nation : countryid , countryname , continent | state : countryid , countryname , continent | car_makers : id , fullname , country , maker", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "countries in europe": "countries.CountryName", + "car manufacturers": "car_makers" + } + }, + { + "question": "which #countries in europe# have at least 3 #car manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "cars_data : mpg (\"35.1\", \"32.4\", \"34.7\"), year (1976, 1982, 1975), edispl (85.0, 110.0, 71.0), cylinders (8, 3, 3), id (338, 320, 362), horsepower (\"150\", \"215\", \"105\"), accelerate (17.1, 16.4, 16.1), weight (3962, 1845, 3336) | manufacturers : country (\"6\", \"7\", \"4\"), fullname (\"Volkswagen\", \"Saab\", \"Toyota\"), id (20, 17, 9), maker (\"volvo\", \"peugeaut\", \"saab\") | auto_brands : country (\"6\", \"7\", \"4\"), fullname (\"Volkswagen\", \"Saab\", \"Toyota\"), id (20, 17, 9), maker (\"volvo\", \"peugeaut\", \"saab\") | continents : contid (1, 2, 3), continent (\"america\", \"africa\", \"europe\") | car_names : make (\"buick century luxus (sw)\", \"toyota tercel\", \"ford gran torino (sw)\"), model (\"opel\", \"buick\", \"plymouth\"), makeid (35, 396, 249) | countries : countryid (1, 15, 11), continent (2, 4, 2), countryname (\"usa\", \"brazil\", \"germany\") | model_list : modelid (6, 24, 6), maker (2, 4, 21), model (\"jeep\", \"honda\", \"plymouth\")", + "schema_without_content": "cars_data : mpg , year , edispl , cylinders , id , horsepower , accelerate , weight | manufacturers : country , fullname , id , maker | auto_brands : country , fullname , id , maker | continents : contid , continent | car_names : make \", \"toyota tercel\", \"ford gran torino \", model , makeid | countries : countryid , continent , countryname | model_list : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "countries in europe": "countries.CountryName", + "car manufacturers": "car_makers" + } + }, + { + "question": "what are the #names of all european countries# with at least 3 #manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "continents_list : continent (\"america\", \"australia\", \"asia\"), contid (4, 4, 1) | car_names : makeid (244, 254, 180), make (\"chrysler new yorker brougham\", \"plymouth satellite (sw)\", \"pontiac ventura sj\"), model (\"volkswagen\", \"bmw\", \"mercury\") | model_list : maker (14, 12, 18), modelid (10, 21, 22), model (\"nissan\", \"volvo\", \"mercedes-benz\") | cars_data : weight (2050, 3415, 3821), accelerate (16.6, 10.0, 18.3), cylinders (6, 8, 3), year (1978, 1973, 1974), horsepower (\"102\", \"220\", \"66\"), id (228, 282, 217), mpg (\"34.2\", \"29.9\", \"20.3\"), edispl (383.0, 163.0, 85.0) | car_makers : maker (\"nissan\", \"honda\", \"triumph\"), country (\"4\", \"6\", \"2\"), id (4, 16, 23), fullname (\"Triumph\", \"Chrysler\", \"Ford Motor Company\") | planet_regions : continent (\"america\", \"australia\", \"asia\"), contid (4, 4, 1) | countries : continent (4, 3, 5), countryid (7, 13, 2), countryname (\"korea\", \"italy\", \"new zealand\")", + "schema_without_content": "continents_list : continent , contid | car_names : makeid , make \", \"pontiac ventura sj\", model | model_list : maker , modelid , model | cars_data : weight , accelerate , cylinders , year , horsepower , id , mpg , edispl | car_makers : maker , country , id , fullname | planet_regions : continent , contid | countries : continent , countryid , countryname", + "extra_map": null, + "extra_table_map": { + "continents": [ + "continents_list", + "planet_regions" + ] + }, + "db_schema": { + "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" + ], + "continents_list": [ + "contid", + "continent" + ], + "planet_regions": [ + "contid", + "continent" + ] + }, + "column_linking_gt": { + "names of all European countries": "countries.CountryName", + "manufacturers": "car_makers" + } + }, + { + "question": "what are the #names of all european countries# with at least 3 #manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "nation : continent (5, 1, 2), countryid (8, 4, 1), countryname (\"usa\", \"mexico\", \"germany\") | cars_data : year (1978, 1972, 1971), weight (1850, 3449, 3158), cylinders (5, 4, 8), edispl (151.0, 111.0, 96.0), mpg (\"12\", \"23.2\", \"16.2\"), horsepower (\"139\", \"96\", \"49\"), accelerate (21.0, 16.5, 18.2), id (266, 245, 48) | car_makers : id (2, 21, 18), fullname (\"Kia Motors\", \"BMW\", \"Volvo\"), maker (\"kia\", \"ford\", \"citroen\"), country (\"1\", \"3\", \"4\") | continents : continent (\"australia\", \"europe\", \"america\"), contid (4, 3, 3) | model_list : modelid (16, 16, 19), model (\"cadillac\", \"toyota\", \"volkswagen\"), maker (2, 13, 1) | state : continent (5, 1, 2), countryid (8, 4, 1), countryname (\"usa\", \"mexico\", \"germany\") | car_names : make (\"oldsmobile starfire sx\", \"dodge diplomat\", \"peugeot 505s turbo diesel\"), makeid (266, 286, 374), model (\"mazda\", \"nissan\", \"dodge\")", + "schema_without_content": "nation : continent , countryid , countryname | cars_data : year , weight , cylinders , edispl , mpg , horsepower , accelerate , id | car_makers : id , fullname , maker , country | continents : continent , contid | model_list : modelid , model , maker | state : continent , countryid , countryname | car_names : make , makeid , model", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "names of all European countries": "countries.CountryName", + "manufacturers": "car_makers" + } + }, + { + "question": "what are the #names of all european countries# with at least 3 #manufacturers# ?", + "db_id": "car_1", + "orig_query": "select t1.countryname from countries as t1 join continents as t2 on t1.continent = t2.contid join car_makers as t3 on t1.countryid = t3.country where t2.continent = 'europe' group by t1.countryname having count(*) >= 3", + "schema_with_content": "manufacturers : fullname (\"Honda\", \"Ford Motor Company\", \"Mazda\"), country (\"5\", \"1\", \"8\"), maker (\"subaru\", \"hyundai\", \"ford\"), id (13, 21, 7) | model_list : modelid (4, 1, 20), maker (15, 19, 14), model (\"amc\", \"triumph\", \"buick\") | cars_data : year (1975, 1975, 1981), weight (2807, 4456, 2279), accelerate (12.6, 8.0, 16.1), mpg (\"26.8\", \"24.5\", \"28.4\"), horsepower (\"113\", \"65\", \"86\"), id (210, 275, 254), cylinders (4, 8, 3), edispl (121.0, 70.0, 302.0) | auto_brands : fullname (\"Honda\", \"Ford Motor Company\", \"Mazda\"), country (\"5\", \"1\", \"8\"), maker (\"subaru\", \"hyundai\", \"ford\"), id (13, 21, 7) | continents : continent (\"europe\", \"africa\", \"africa\"), contid (2, 3, 3) | countries : countryid (2, 12, 1), continent (2, 5, 3), countryname (\"brazil\", \"italy\", \"new zealand\") | car_names : make (\"plymouth reliant\", \"volkswagen 411 (sw)\", \"amc pacer\"), makeid (2, 286, 375), model (\"toyota\", \" volkswagen\", \"mazda\")", + "schema_without_content": "manufacturers : fullname , country , maker , id | model_list : modelid , maker , model | cars_data : year , weight , accelerate , mpg , horsepower , id , cylinders , edispl | auto_brands : fullname , country , maker , id | continents : continent , contid | countries : countryid , continent , countryname | car_names : make \", \"amc pacer\", makeid , model", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "names of all European countries": "countries.CountryName", + "manufacturers": "car_makers" + } + }, + { + "question": "what is the #maximum horsepower# and the #make of the car models with 3 cylinders# ?", + "db_id": "car_1", + "orig_query": "select t2.horsepower, t1.make from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 3 order by t2.horsepower desc limit 1", + "schema_with_content": "continents : contid (1, 5, 1), continent (\"europe\", \"europe\", \"america\") | vehicle_names : model (\"subaru\", \"mercedes-benz\", \"bmw\"), makeid (18, 302, 50), make (\"dodge colt hatchback custom\", \"honda civic 1300\", \"oldsmobile cutlass ciera (diesel)\") | cars_data : cylinders (3, 3, 6), id (402, 121, 21), mpg (\"26.8\", \"17\", \"34.4\"), horsepower (\"79\", \"145\", \"133\"), edispl (101.0, 88.0, 115.0), weight (2600, 1955, 2464), year (1973, 1972, 1978), accelerate (20.4, 16.8, 10.0) | countries : countryid (10, 11, 12), countryname (\"usa\", \"japan\", \"new zealand\"), continent (3, 1, 4) | model_list : modelid (22, 31, 5), model (\"fiat\", \"volvo\", \"ford\"), maker (20, 5, 12) | car_models : model (\"subaru\", \"mercedes-benz\", \"bmw\"), makeid (18, 302, 50), make (\"dodge colt hatchback custom\", \"honda civic 1300\", \"oldsmobile cutlass ciera (diesel)\") | car_makers : fullname (\"Ford Motor Company\", \"Subaru\", \"Ford Motor Company\"), country (\"4\", \"3\", \"2\"), maker (\"triumph\", \"kia\", \"mazda\"), id (16, 23, 9)", + "schema_without_content": "continents : contid , continent | vehicle_names : model , makeid , make \" | cars_data : cylinders , id , mpg , horsepower , edispl , weight , year , accelerate | countries : countryid , countryname , continent | model_list : modelid , model , maker | car_models : model , makeid , make \" | car_makers : fullname , country , maker , id", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "maximum horsepower": "cars_data.Horsepower", + "make of the car models with 3 cylinders": "car_names.Make" + } + }, + { + "question": "what is the #maximum horsepower# and the #make of the car models with 3 cylinders# ?", + "db_id": "car_1", + "orig_query": "select t2.horsepower, t1.make from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 3 order by t2.horsepower desc limit 1", + "schema_with_content": "vehicle_data : edispl (112.0, 104.0, 78.0), mpg (\"28.4\", \"31.8\", \"33.8\"), weight (2070, 3781, 3570), cylinders (5, 4, 3), id (394, 64, 406), horsepower (\"100\", \"48\", \"120\"), accelerate (20.4, 11.1, 11.6), year (1975, 1981, 1972) | auto_data : edispl (112.0, 104.0, 78.0), mpg (\"28.4\", \"31.8\", \"33.8\"), weight (2070, 3781, 3570), cylinders (5, 4, 3), id (394, 64, 406), horsepower (\"100\", \"48\", \"120\"), accelerate (20.4, 11.1, 11.6), year (1975, 1981, 1972) | car_names : makeid (255, 316, 170), model (\"datsun\", \"mazda\", \"hi\"), make (\"fiat 124 tc\", \"subaru\", \"chevy s-10\") | continents : contid (2, 4, 5), continent (\"australia\", \"europe\", \"africa\") | model_list : modelid (9, 28, 19), maker (2, 17, 9), model (\"mercedes\", \"oldsmobile\", \"honda\") | countries : continent (5, 4, 1), countryname (\"korea\", \"new zealand\", \"italy\"), countryid (9, 9, 1) | car_makers : id (15, 2, 13), fullname (\"Citroen\", \"Volkswagen\", \"Triumph\"), maker (\"daimler benz\", \"subaru\", \"fiat\"), country (\"4\", \"7\", \"6\")", + "schema_without_content": "vehicle_data : edispl , mpg , weight , cylinders , id , horsepower , accelerate , year | auto_data : edispl , mpg , weight , cylinders , id , horsepower , accelerate , year | car_names : makeid , model , make | continents : contid , continent | model_list : modelid , maker , model | countries : continent , countryname , countryid | car_makers : id , fullname , maker , country", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "maximum horsepower": "cars_data.Horsepower", + "make of the car models with 3 cylinders": "car_names.Make" + } + }, + { + "question": "what is the largest amount of #horsepower for the models# with 3 #cylinders# and what #make# is it?", + "db_id": "car_1", + "orig_query": "select t2.horsepower, t1.make from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 3 order by t2.horsepower desc limit 1", + "schema_with_content": "model_list : maker (16, 4, 17), modelid (15, 33, 25), model (\"saab\", \"mercedes-benz\", \"mercedes-benz\") | continents : continent (\"asia\", \"europe\", \"africa\"), contid (1, 3, 1) | vehicle_names : model (\"ford\", \"saab\", \"chevrolet\"), makeid (340, 186, 364), make (\"opel 1900\", \"fiat 131\", \"datsun 1200\") | car_makers : country (\"5\", \"1\", \"4\"), id (17, 13, 1), fullname (\"Volkswagen\", \"Volvo\", \"BMW\"), maker (\"triumph\", \"honda\", \"amc\") | countries : continent (1, 1, 2), countryid (13, 7, 13), countryname (\"germany\", \"japan\", \"japan\") | cars_data : accelerate (22.2, 17.0, 11.4), edispl (91.0, 100.0, 151.0), horsepower (\"116\", \"97\", \"215\"), cylinders (6, 8, 4), mpg (\"39\", \"27.4\", \"21.1\"), year (1980, 1979, 1976), weight (4440, 2835, 3410), id (43, 310, 81) | car_models : model (\"ford\", \"saab\", \"chevrolet\"), makeid (340, 186, 364), make (\"opel 1900\", \"fiat 131\", \"datsun 1200\")", + "schema_without_content": "model_list : maker , modelid , model | continents : continent , contid | vehicle_names : model , makeid , make | car_makers : country , id , fullname , maker | countries : continent , countryid , countryname | cars_data : accelerate , edispl , horsepower , cylinders , mpg , year , weight , id | car_models : model , makeid , make", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "horsepower for the models": "cars_data.Horsepower", + "cylinders": "cars_data.Cylinders", + "make": "car_names.Make" + } + }, + { + "question": "what is the largest amount of #horsepower for the models# with 3 #cylinders# and what #make# is it?", + "db_id": "car_1", + "orig_query": "select t2.horsepower, t1.make from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 3 order by t2.horsepower desc limit 1", + "schema_with_content": "car_makers : fullname (\"Peugeaut\", \"Renault\", \"BMW\"), id (21, 12, 1), country (\"3\", \"5\", \"7\"), maker (\"saab\", \"bmw\", \"kia\") | auto_data : weight (2582, 2020, 2200), year (1974, 1976, 1973), id (331, 272, 175), edispl (113.0, 390.0, 231.0), cylinders (4, 5, 6), mpg (\"32.3\", \"36.1\", \"23\"), accelerate (15.9, 21.5, 22.2), horsepower (\"122\", \"139\", \"215\") | vehicle_data : weight (2582, 2020, 2200), year (1974, 1976, 1973), id (331, 272, 175), edispl (113.0, 390.0, 231.0), cylinders (4, 5, 6), mpg (\"32.3\", \"36.1\", \"23\"), accelerate (15.9, 21.5, 22.2), horsepower (\"122\", \"139\", \"215\") | continents : continent (\"europe\", \"australia\", \"australia\"), contid (1, 2, 1) | countries : countryid (3, 2, 4), continent (1, 1, 2), countryname (\"australia\", \"uk\", \"korea\") | car_names : makeid (145, 195, 182), model (\"chevrolet\", \"nissan\", \"audi\"), make (\"pontiac catalina\", \"buick century limited\", \"dodge st. regis\") | model_list : maker (7, 9, 2), modelid (36, 33, 23), model (\"jeep\", \"dodge\", \"jeep\")", + "schema_without_content": "car_makers : fullname , id , country , maker | auto_data : weight , year , id , edispl , cylinders , mpg , accelerate , horsepower | vehicle_data : weight , year , id , edispl , cylinders , mpg , accelerate , horsepower | continents : continent , contid | countries : countryid , continent , countryname | car_names : makeid , model , make | model_list : maker , modelid , model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "horsepower for the models": "cars_data.Horsepower", + "cylinders": "cars_data.Cylinders", + "make": "car_names.Make" + } + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1", + "schema_with_content": "countries : countryid (14, 7, 4), continent (2, 1, 5), countryname (\"japan\", \"france\", \"japan\") | vehicle_names : make (\"buick skylark 320\", \"chrysler newport royal\", \"audi 100ls\"), model (\"fiat\", \"capri\", \"oldsmobile\"), makeid (182, 37, 289) | model_list : maker (5, 20, 13), modelid (34, 27, 33), model (\"bmw\", \"subaru\", \"nissan\") | cars_data : weight (4312, 3449, 2979), accelerate (16.1, 11.4, 17.2), year (1980, 1979, 1972), cylinders (3, 4, 3), mpg (\"39.1\", \"17.6\", \"26\"), edispl (200.0, 113.0, 100.0), id (399, 108, 85), horsepower (\"66\", \"152\", \"75\") | continents : continent (\"asia\", \"asia\", \"america\"), contid (1, 3, 3) | car_models : make (\"buick skylark 320\", \"chrysler newport royal\", \"audi 100ls\"), model (\"fiat\", \"capri\", \"oldsmobile\"), makeid (182, 37, 289) | car_makers : country (\"1\", \"2\", \"7\"), maker (\"volvo\", \"amc\", \"ford\"), id (1, 20, 22), fullname (\"Ford Motor Company\", \"Peugeaut\", \"Honda\")", + "schema_without_content": "countries : countryid , continent , countryname | vehicle_names : make , model , makeid | model_list : maker , modelid , model | cars_data : weight , accelerate , year , cylinders , mpg , edispl , id , horsepower | continents : continent , contid | car_models : make , model , makeid | car_makers : country , maker , id , fullname", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "miles per gallon": "cars_data.MPG" + } + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1", + "schema_with_content": "auto_data : year (1970, 1976, 1978), cylinders (5, 3, 6), id (175, 393, 46), weight (3850, 2962, 2124), edispl (76.0, 88.0, 231.0), horsepower (\"91\", \"81\", \"71\"), mpg (\"null\", \"20.8\", \"31\"), accelerate (19.9, 19.0, 18.6) | car_makers : country (\"3\", \"6\", \"4\"), id (14, 14, 17), fullname (\"Fiat\", \"Volvo\", \"Citroen\"), maker (\"ford\", \"subaru\", \"hyundai\") | continents : continent (\"asia\", \"africa\", \"america\"), contid (1, 1, 3) | vehicle_data : year (1970, 1976, 1978), cylinders (5, 3, 6), id (175, 393, 46), weight (3850, 2962, 2124), edispl (76.0, 88.0, 231.0), horsepower (\"91\", \"81\", \"71\"), mpg (\"null\", \"20.8\", \"31\"), accelerate (19.9, 19.0, 18.6) | countries : countryid (13, 12, 6), continent (2, 3, 5), countryname (\"new zealand\", \"italy\", \"egypt\") | car_names : model (\"mercedes-benz\", \"saab\", \"audi\"), make (\"datsun 510 (sw)\", \"buick century luxus (sw)\", \"plymouth horizon miser\"), makeid (60, 342, 373) | model_list : modelid (14, 25, 8), model (\"mazda\", \"chevrolet\", \"triumph\"), maker (21, 8, 23)", + "schema_without_content": "auto_data : year , cylinders , id , weight , edispl , horsepower , mpg , accelerate | car_makers : country , id , fullname , maker | continents : continent , contid | vehicle_data : year , cylinders , id , weight , edispl , horsepower , mpg , accelerate | countries : countryid , continent , countryname | car_names : model , make \", \"buick century luxus \", \"plymouth horizon miser\", makeid | model_list : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "miles per gallon": "cars_data.MPG" + } + }, + { + "question": "what is the #average horsepower of the cars before 1980# ?", + "db_id": "car_1", + "orig_query": "select avg(horsepower) from cars_data where year < 1980", + "schema_with_content": "car_names : model (\"plymouth\", \"pontiac\", \"opel\"), make (\"volvo diesel\", \"plymouth cricket\", \"audi 5000\"), makeid (33, 304, 49) | vehicle_data : id (90, 132, 57), edispl (121.0, 131.0, 105.0), horsepower (\"153\", \"93\", \"138\"), accelerate (22.1, 13.0, 19.2), cylinders (3, 5, 6), mpg (\"11\", \"37\", \"31\"), weight (4952, 4363, 4257), year (1971, 1978, 1977) | auto_data : id (90, 132, 57), edispl (121.0, 131.0, 105.0), horsepower (\"153\", \"93\", \"138\"), accelerate (22.1, 13.0, 19.2), cylinders (3, 5, 6), mpg (\"11\", \"37\", \"31\"), weight (4952, 4363, 4257), year (1971, 1978, 1977) | countries : countryname (\"australia\", \"uk\", \"egypt\"), countryid (3, 10, 15), continent (2, 5, 3) | car_makers : id (16, 17, 6), maker (\"honda\", \"volvo\", \"citroen\"), country (\"4\", \"6\", \"1\"), fullname (\"Subaru\", \"Renault\", \"Volkswagen\") | model_list : modelid (33, 15, 27), model (\"peugeot\", \"volkswagen\", \"renault\"), maker (20, 16, 13) | continents : contid (5, 1, 4), continent (\"asia\", \"asia\", \"asia\")", + "schema_without_content": "car_names : model , make , makeid | vehicle_data : id , edispl , horsepower , accelerate , cylinders , mpg , weight , year | auto_data : id , edispl , horsepower , accelerate , cylinders , mpg , weight , year | countries : countryname , countryid , continent | car_makers : id , maker , country , fullname | model_list : modelid , model , maker | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average horsepower of the cars before 1980": "cars_data.Horsepower" + } + }, + { + "question": "what is the #average edispl of the cars of model# volvo?", + "db_id": "car_1", + "orig_query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo'", + "schema_with_content": "countries : continent (2, 1, 3), countryname (\"russia\", \"sweden\", \"japan\"), countryid (11, 9, 5) | car_models : makeid (354, 82, 241), model (\"toyota\", \"volkswagen\", \"audi\"), make (\"mercury marquis\", \"ford country\", \"pontiac astro\") | model_list : modelid (17, 14, 25), model (\"ford\", \"subaru\", \"mazda\"), maker (9, 10, 22) | continents : contid (1, 2, 3), continent (\"australia\", \"europe\", \"america\") | vehicle_names : makeid (354, 82, 241), model (\"toyota\", \"volkswagen\", \"audi\"), make (\"mercury marquis\", \"ford country\", \"pontiac astro\") | car_makers : country (\"3\", \"7\", \"5\"), id (8, 1, 14), maker (\"honda\", \"opel\", \"chrysler\"), fullname (\"Fiat\", \"Renault\", \"Toyota\") | cars_data : mpg (\"30.7\", \"24.2\", \"13\"), cylinders (8, 3, 8), year (1972, 1977, 1972), accelerate (23.5, 19.6, 13.6), id (287, 15, 156), horsepower (\"140\", \"225\", \"198\"), weight (1990, 3821, 4166), edispl (145.0, 121.0, 68.0)", + "schema_without_content": "countries : continent , countryname , countryid | car_models : makeid , model , make | model_list : modelid , model , maker | continents : contid , continent | vehicle_names : makeid , model , make | car_makers : country , id , maker , fullname | cars_data : mpg , cylinders , year , accelerate , id , horsepower , weight , edispl", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "average edispl of the cars of model": "cars_data.Edispl" + } + }, + { + "question": "what is the #average edispl of the cars of model# volvo?", + "db_id": "car_1", + "orig_query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo'", + "schema_with_content": "car_names : model (\"peugeot\", \"nissan\", \"toyota\"), makeid (400, 124, 240), make (\"dodge aries se\", \"volkswagen jetta\", \"plymouth cuda 340\") | auto_data : year (1979, 1977, 1979), accelerate (10.5, 17.9, 17.1), horsepower (\"108\", \"122\", \"170\"), id (223, 226, 389), cylinders (4, 6, 6), weight (2290, 2065, 1773), edispl (144.0, 112.0, 231.0), mpg (\"40.8\", \"23.7\", \"21.5\") | continents : contid (3, 3, 3), continent (\"europe\", \"europe\", \"asia\") | vehicle_data : year (1979, 1977, 1979), accelerate (10.5, 17.9, 17.1), horsepower (\"108\", \"122\", \"170\"), id (223, 226, 389), cylinders (4, 6, 6), weight (2290, 2065, 1773), edispl (144.0, 112.0, 231.0), mpg (\"40.8\", \"23.7\", \"21.5\") | model_list : modelid (35, 31, 10), maker (6, 14, 6), model (\"toyota\", \"mercedes-benz\", \"volvo\") | countries : countryname (\"japan\", \"korea\", \"usa\"), continent (2, 4, 2), countryid (8, 11, 4) | car_makers : fullname (\"Daimler Benz\", \"Toyota\", \"Fiat\"), maker (\"amc\", \"volvo\", \"citroen\"), id (1, 11, 20), country (\"5\", \"7\", \"3\")", + "schema_without_content": "car_names : model , makeid , make | auto_data : year , accelerate , horsepower , id , cylinders , weight , edispl , mpg | continents : contid , continent | vehicle_data : year , accelerate , horsepower , id , cylinders , weight , edispl , mpg | model_list : modelid , maker , model | countries : countryname , continent , countryid | car_makers : fullname , maker , id , country", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average edispl of the cars of model": "cars_data.Edispl" + } + }, + { + "question": "what is the #average edispl for all volvos# ?", + "db_id": "car_1", + "orig_query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo'", + "schema_with_content": "model_list : model (\"volkswagen\", \"hi\", \"cadillac\"), modelid (4, 2, 25), maker (12, 3, 22) | continents : contid (3, 3, 2), continent (\"africa\", \"america\", \"africa\") | countries : countryname (\"korea\", \"new zealand\", \"australia\"), continent (1, 5, 4), countryid (10, 1, 2) | cars_data : mpg (\"30.7\", \"44\", \"19.1\"), year (1973, 1982, 1973), accelerate (17.8, 13.8, 10.5), id (245, 1, 294), weight (2979, 2188, 2451), cylinders (4, 5, 4), horsepower (\"66\", \"98\", \"48\"), edispl (340.0, 250.0, 231.0) | vehicle_names : model (\" volkswagen\", \"dodge\", \"mercedes-benz\"), make (\"peugeot 504\", \"datsun 510\", \"datsun 510 (sw)\"), makeid (406, 179, 359) | car_makers : id (15, 18, 6), country (\"8\", \"1\", \"3\"), fullname (\"Saab\", \"Honda\", \"Opel\"), maker (\"volvo\", \"toyota\", \"gm\") | car_models : model (\" volkswagen\", \"dodge\", \"mercedes-benz\"), make (\"peugeot 504\", \"datsun 510\", \"datsun 510 (sw)\"), makeid (406, 179, 359)", + "schema_without_content": "model_list : model , modelid , maker | continents : contid , continent | countries : countryname , continent , countryid | cars_data : mpg , year , accelerate , id , weight , cylinders , horsepower , edispl | vehicle_names : model , make \", makeid | car_makers : id , country , fullname , maker | car_models : model , make \", makeid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "average edispl for all volvos": "cars_data.Edispl" + } + }, + { + "question": "what is the #average edispl for all volvos# ?", + "db_id": "car_1", + "orig_query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo'", + "schema_with_content": "continents : continent (\"europe\", \"asia\", \"asia\"), contid (4, 2, 5) | vehicle_data : weight (3781, 4385, 3632), horsepower (\"85\", \"87\", \"52\"), mpg (\"33\", \"12\", \"23.5\"), cylinders (8, 6, 8), id (129, 12, 25), edispl (390.0, 78.0, 91.0), accelerate (15.3, 18.2, 15.4), year (1971, 1979, 1974) | countries : countryid (7, 12, 9), continent (1, 4, 3), countryname (\"nigeria\", \"sweden\", \"new zealand\") | auto_data : weight (3781, 4385, 3632), horsepower (\"85\", \"87\", \"52\"), mpg (\"33\", \"12\", \"23.5\"), cylinders (8, 6, 8), id (129, 12, 25), edispl (390.0, 78.0, 91.0), accelerate (15.3, 18.2, 15.4), year (1971, 1979, 1974) | car_makers : id (17, 8, 7), fullname (\"General Motors\", \"Nissan Motors\", \"Opel\"), country (\"3\", \"5\", \"1\"), maker (\"opel\", \"volvo\", \"mazda\") | car_names : make (\"peugeot 304\", \"mazda glc custom\", \"fiat 124 sport coupe\"), model (\"peugeot\", \"plymouth\", \"peugeot\"), makeid (256, 197, 236) | model_list : modelid (25, 25, 16), maker (17, 23, 11), model (\"plymouth\", \"volvo\", \"mercury\")", + "schema_without_content": "continents : continent , contid | vehicle_data : weight , horsepower , mpg , cylinders , id , edispl , accelerate , year | countries : countryid , continent , countryname | auto_data : weight , horsepower , mpg , cylinders , id , edispl , accelerate , year | car_makers : id , fullname , country , maker | car_names : make , model , makeid | model_list : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "average edispl for all volvos": "cars_data.Edispl" + } + }, + { + "question": "what is the #maximum accelerate# for different #number of cylinders# ?", + "db_id": "car_1", + "orig_query": "select max(accelerate), cylinders from cars_data group by cylinders", + "schema_with_content": "auto_data : horsepower (\"76\", \"115\", \"67\"), mpg (\"29.8\", \"34.5\", \"25.8\"), edispl (90.0, 250.0, 231.0), id (346, 158, 86), accelerate (14.9, 11.6, 17.6), cylinders (3, 4, 8), weight (3820, 3613, 3233), year (1978, 1971, 1981) | continents : contid (5, 2, 4), continent (\"asia\", \"africa\", \"europe\") | car_makers : maker (\"kia\", \"bmw\", \"nissan\"), fullname (\"Honda\", \"Peugeaut\", \"Chrysler\"), id (16, 20, 17), country (\"6\", \"2\", \"7\") | car_names : makeid (43, 214, 196), make (\"pontiac phoenix lj\", \"chrysler cordoba\", \"datsun 310 gx\"), model (\"volvo\", \"oldsmobile\", \"triumph\") | model_list : modelid (30, 10, 35), maker (22, 21, 13), model (\"cadillac\", \"datsun\", \"chevrolet\") | countries : continent (4, 3, 1), countryid (9, 8, 12), countryname (\"korea\", \"nigeria\", \"korea\") | vehicle_data : horsepower (\"76\", \"115\", \"67\"), mpg (\"29.8\", \"34.5\", \"25.8\"), edispl (90.0, 250.0, 231.0), id (346, 158, 86), accelerate (14.9, 11.6, 17.6), cylinders (3, 4, 8), weight (3820, 3613, 3233), year (1978, 1971, 1981)", + "schema_without_content": "auto_data : horsepower , mpg , edispl , id , accelerate , cylinders , weight , year | continents : contid , continent | car_makers : maker , fullname , id , country | car_names : makeid , make , model | model_list : modelid , maker , model | countries : continent , countryid , countryname | vehicle_data : horsepower , mpg , edispl , id , accelerate , cylinders , weight , year", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "maximum accelerate": "cars_data.Accelerate", + "number of cylinders": "cars_data.Cylinders" + } + }, + { + "question": "what is the #maximum accelerate# for all the different #cylinders# ?", + "db_id": "car_1", + "orig_query": "select max(accelerate), cylinders from cars_data group by cylinders", + "schema_with_content": "continents : continent (\"africa\", \"europe\", \"europe\"), contid (2, 2, 4) | car_names : makeid (6, 301, 146), make (\"oldsmobile cutlass ciera (diesel)\", \"buick century special\", \"mercury zephyr 6\"), model (\"volvo\", \"dodge\", \"buick\") | countries : countryname (\"australia\", \"egypt\", \"russia\"), countryid (12, 13, 1), continent (4, 4, 2) | car_makers : maker (\"bmw\", \"renault\", \"ford\"), fullname (\"Citroen\", \"Kia Motors\", \"Volvo\"), id (23, 11, 1), country (\"2\", \"5\", \"4\") | model_list : maker (3, 3, 15), modelid (18, 34, 26), model (\"honda\", \"jeep\", \"kia\") | vehicle_data : weight (3725, 2075, 2702), id (85, 190, 264), cylinders (8, 5, 3), accelerate (14.8, 14.5, 21.5), edispl (97.0, 83.0, 108.0), year (1970, 1978, 1979), mpg (\"39\", \"26.4\", \"30\"), horsepower (\"88\", \"160\", \"48\") | auto_data : weight (3725, 2075, 2702), id (85, 190, 264), cylinders (8, 5, 3), accelerate (14.8, 14.5, 21.5), edispl (97.0, 83.0, 108.0), year (1970, 1978, 1979), mpg (\"39\", \"26.4\", \"30\"), horsepower (\"88\", \"160\", \"48\")", + "schema_without_content": "continents : continent , contid | car_names : makeid , make \", \"buick century special\", \"mercury zephyr 6\", model | countries : countryname , countryid , continent | car_makers : maker , fullname , id , country | model_list : maker , modelid , model | vehicle_data : weight , id , cylinders , accelerate , edispl , year , mpg , horsepower | auto_data : weight , id , cylinders , accelerate , edispl , year , mpg , horsepower", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "maximum accelerate": "cars_data.Accelerate", + "cylinders": "cars_data.Cylinders" + } + }, + { + "question": "which #model# has the most #version(make) of cars# ?", + "db_id": "car_1", + "orig_query": "select model from car_names group by model order by count(*) desc limit 1", + "schema_with_content": "continents : continent (\"australia\", \"australia\", \"australia\"), contid (3, 2, 5) | vehicle_names : makeid (379, 71, 343), model (\"buick\", \"chrysler\", \" volkswagen\"), make (\"volkswagen scirocco\", \"dodge colt (sw)\", \"datsun 1200\") | car_models : makeid (379, 71, 343), model (\"buick\", \"chrysler\", \" volkswagen\"), make (\"volkswagen scirocco\", \"dodge colt (sw)\", \"datsun 1200\") | countries : countryname (\"nigeria\", \"egypt\", \"japan\"), countryid (7, 13, 1), continent (5, 4, 1) | cars_data : horsepower (\"120\", \"76\", \"67\"), cylinders (6, 4, 6), edispl (307.0, 101.0, 171.0), year (1975, 1971, 1978), weight (4997, 2255, 3140), id (277, 366, 403), accelerate (19.9, 14.2, 14.0), mpg (\"10\", \"29.9\", \"34.1\") | model_list : maker (5, 23, 18), modelid (23, 32, 11), model (\"citroen\", \"mercedes-benz\", \"scion\") | car_makers : id (6, 9, 9), fullname (\"Saab\", \"Hyundai\", \"Fiat\"), maker (\"mazda\", \"opel\", \"renault\"), country (\"4\", \"6\", \"1\")", + "schema_without_content": "continents : continent , contid | vehicle_names : makeid , model , make \", \"datsun 1200\" | car_models : makeid , model , make \", \"datsun 1200\" | countries : countryname , countryid , continent | cars_data : horsepower , cylinders , edispl , year , weight , id , accelerate , mpg | model_list : maker , modelid , model | car_makers : id , fullname , maker , country", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "version(make) of cars": "car_names.Make" + } + }, + { + "question": "what #model# has the most different versions?", + "db_id": "car_1", + "orig_query": "select model from car_names group by model order by count(*) desc limit 1", + "schema_with_content": "model_list : modelid (33, 31, 14), maker (14, 13, 23), model (\"dodge\", \"audi\", \"capri\") | vehicle_names : make (\"chevrolet woody\", \"subaru dl\", \"dodge coronet brougham\"), makeid (114, 30, 18), model (\"capri\", \"mazda\", \"citroen\") | car_makers : id (11, 19, 16), maker (\"subaru\", \"fiat\", \"opel\"), country (\"6\", \"7\", \"1\"), fullname (\"Daimler Benz\", \"Citroen\", \"Volvo\") | continents : continent (\"europe\", \"america\", \"asia\"), contid (5, 3, 2) | car_models : make (\"chevrolet woody\", \"subaru dl\", \"dodge coronet brougham\"), makeid (114, 30, 18), model (\"capri\", \"mazda\", \"citroen\") | countries : continent (5, 4, 4), countryname (\"russia\", \"new zealand\", \"sweden\"), countryid (9, 3, 10) | cars_data : horsepower (\"152\", \"130\", \"89\"), edispl (108.0, 130.0, 83.0), accelerate (18.6, 8.0, 11.5), weight (2560, 2870, 1760), id (120, 291, 259), mpg (\"34.4\", \"44.3\", \"20\"), year (1975, 1978, 1980), cylinders (5, 5, 8)", + "schema_without_content": "model_list : modelid , maker , model | vehicle_names : make , makeid , model | car_makers : id , maker , country , fullname | continents : continent , contid | car_models : make , makeid , model | countries : continent , countryname , countryid | cars_data : horsepower , edispl , accelerate , weight , id , mpg , year , cylinders", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model" + } + }, + { + "question": "how many #cars# have more than 4 #cylinders# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where cylinders > 4", + "schema_with_content": "countries : countryid (5, 15, 3), continent (3, 3, 2), countryname (\"sweden\", \"russia\", \"new zealand\") | car_makers : maker (\"bmw\", \"daimler benz\", \"mazda\"), country (\"7\", \"3\", \"2\"), fullname (\"BMW\", \"Citroen\", \"Mazda\"), id (19, 19, 22) | auto_data : weight (2108, 4464, 2678), edispl (85.0, 86.0, 262.0), accelerate (15.6, 14.8, 15.8), mpg (\"32\", \"19.4\", \"19.2\"), id (75, 392, 287), cylinders (3, 8, 6), horsepower (\"107\", \"190\", \"95\"), year (1977, 1974, 1971) | continents : contid (5, 1, 5), continent (\"australia\", \"america\", \"europe\") | car_names : makeid (158, 300, 341), model (\"volvo\", \"chrysler\", \"oldsmobile\"), make (\"honda civic (auto)\", \"oldsmobile cutlass ls\", \"mazda rx2 coupe\") | model_list : maker (7, 8, 4), model (\"mercedes-benz\", \"chevrolet\", \"honda\"), modelid (18, 20, 6) | vehicle_data : weight (2108, 4464, 2678), edispl (85.0, 86.0, 262.0), accelerate (15.6, 14.8, 15.8), mpg (\"32\", \"19.4\", \"19.2\"), id (75, 392, 287), cylinders (3, 8, 6), horsepower (\"107\", \"190\", \"95\"), year (1977, 1974, 1971)", + "schema_without_content": "countries : countryid , continent , countryname | car_makers : maker , country , fullname , id | auto_data : weight , edispl , accelerate , mpg , id , cylinders , horsepower , year | continents : contid , continent | car_names : makeid , model , make \", \"oldsmobile cutlass ls\", \"mazda rx2 coupe\" | model_list : maker , model , modelid | vehicle_data : weight , edispl , accelerate , mpg , id , cylinders , horsepower , year", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "cylinders": "cars_data.Cylinders" + } + }, + { + "question": "what is the #number of cars# with more than 4 #cylinders# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where cylinders > 4", + "schema_with_content": "model_list : maker (19, 10, 23), modelid (33, 14, 27), model (\"cadillac\", \"toyota\", \"citroen\") | continents : continent (\"australia\", \"america\", \"australia\"), contid (4, 5, 5) | vehicle_data : horsepower (\"71\", \"96\", \"130\"), mpg (\"31.9\", \"27.4\", \"19.1\"), year (1972, 1977, 1981), cylinders (5, 6, 6), id (390, 140, 176), weight (1965, 2228, 4668), accelerate (14.2, 14.7, 11.0), edispl (111.0, 260.0, 116.0) | countries : countryid (8, 2, 14), continent (1, 1, 4), countryname (\"nigeria\", \"nigeria\", \"japan\") | car_makers : id (15, 3, 6), fullname (\"Opel\", \"Chrysler\", \"Hyundai\"), country (\"1\", \"8\", \"8\"), maker (\"citroen\", \"subaru\", \"amc\") | car_names : make (\"ford thunderbird\", \"toyota corolla liftback\", \"volvo 244dl\"), makeid (10, 300, 111), model (\"chrysler\", \"subaru\", \"mercedes-benz\") | auto_data : horsepower (\"71\", \"96\", \"130\"), mpg (\"31.9\", \"27.4\", \"19.1\"), year (1972, 1977, 1981), cylinders (5, 6, 6), id (390, 140, 176), weight (1965, 2228, 4668), accelerate (14.2, 14.7, 11.0), edispl (111.0, 260.0, 116.0)", + "schema_without_content": "model_list : maker , modelid , model | continents : continent , contid | vehicle_data : horsepower , mpg , year , cylinders , id , weight , accelerate , edispl | countries : countryid , continent , countryname | car_makers : id , fullname , country , maker | car_names : make , makeid , model | auto_data : horsepower , mpg , year , cylinders , id , weight , accelerate , edispl", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "number of cars": "cars_data.Id", + "cylinders": "cars_data.Cylinders" + } + }, + { + "question": "how many #cars# were produced in #1980# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where year = 1980", + "schema_with_content": "continents : contid (2, 5, 5), continent (\"australia\", \"africa\", \"europe\") | car_names : makeid (376, 146, 220), make (\"volkswagen rabbit l\", \"triumph tr7 coupe\", \"mazda rx2 coupe\"), model (\"honda\", \"cadillac\", \"bmw\") | auto_data : cylinders (8, 5, 5), accelerate (14.2, 13.7, 24.8), mpg (\"31.5\", \"39.1\", \"43.4\"), weight (3282, 4135, 2150), edispl (307.0, 146.0, 101.0), year (1979, 1971, 1980), id (125, 390, 298), horsepower (\"107\", \"108\", \"133\") | countries : continent (3, 1, 5), countryid (11, 1, 2), countryname (\"australia\", \"usa\", \"uk\") | vehicle_data : cylinders (8, 5, 5), accelerate (14.2, 13.7, 24.8), mpg (\"31.5\", \"39.1\", \"43.4\"), weight (3282, 4135, 2150), edispl (307.0, 146.0, 101.0), year (1979, 1971, 1980), id (125, 390, 298), horsepower (\"107\", \"108\", \"133\") | model_list : modelid (19, 1, 32), maker (13, 11, 20), model (\"cadillac\", \"triumph\", \"opel\") | car_makers : country (\"7\", \"8\", \"4\"), id (9, 17, 6), fullname (\"Kia Motors\", \"Triumph\", \"Toyota\"), maker (\"toyota\", \"mazda\", \"chrysler\")", + "schema_without_content": "continents : contid , continent | car_names : makeid , make , model | auto_data : cylinders , accelerate , mpg , weight , edispl , year , id , horsepower | countries : continent , countryid , countryname | vehicle_data : cylinders , accelerate , mpg , weight , edispl , year , id , horsepower | model_list : modelid , maker , model | car_makers : country , id , fullname , maker", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "1980": "cars_data.Year" + } + }, + { + "question": "in #1980# , how many #cars# were made?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where year = 1980", + "schema_with_content": "countries : countryid (5, 4, 12), continent (5, 2, 4), countryname (\"mexico\", \"sweden\", \"france\") | model_list : maker (20, 12, 6), model (\"chrysler\", \"triumph\", \"hyundai\"), modelid (29, 14, 22) | car_makers : fullname (\"Peugeaut\", \"Kia Motors\", \"Volkswagen\"), id (17, 6, 16), maker (\"renault\", \"peugeaut\", \"saab\"), country (\"2\", \"1\", \"4\") | continents : contid (3, 5, 5), continent (\"europe\", \"australia\", \"africa\") | vehicle_data : accelerate (18.1, 17.5, 12.6), mpg (\"26.5\", \"25.8\", \"18.6\"), horsepower (\"113\", \"98\", \"86\"), weight (3563, 2855, 2290), cylinders (4, 6, 4), edispl (140.0, 105.0, 302.0), id (195, 234, 384), year (1974, 1976, 1974) | auto_data : accelerate (18.1, 17.5, 12.6), mpg (\"26.5\", \"25.8\", \"18.6\"), horsepower (\"113\", \"98\", \"86\"), weight (3563, 2855, 2290), cylinders (4, 6, 4), edispl (140.0, 105.0, 302.0), id (195, 234, 384), year (1974, 1976, 1974) | car_names : model (\"amc\", \"dodge\", \"mercury\"), make (\"volvo 245\", \"datsun 310\", \"mercedes-benz 240d\"), makeid (147, 229, 111)", + "schema_without_content": "countries : countryid , continent , countryname | model_list : maker , model , modelid | car_makers : fullname , id , maker , country | continents : contid , continent | vehicle_data : accelerate , mpg , horsepower , weight , cylinders , edispl , id , year | auto_data : accelerate , mpg , horsepower , weight , cylinders , edispl , id , year | car_names : model , make , makeid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "1980": "cars_data.Year", + "cars": "cars_data" + } + }, + { + "question": "how many #car models# were produced by the #maker with full name# american motor company?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'American Motor Company'", + "schema_with_content": "model_list : modelid (12, 16, 29), model (\"saab\", \"fiat\", \"subaru\"), maker (9, 20, 1) | continents : contid (5, 1, 1), continent (\"europe\", \"america\", \"africa\") | cars_data : mpg (\"39\", \"18.2\", \"44.3\"), weight (3563, 3211, 4376), id (74, 42, 18), year (1970, 1974, 1971), cylinders (5, 6, 6), horsepower (\"79\", \"77\", \"97\"), accelerate (12.5, 12.1, 15.2), edispl (350.0, 267.0, 318.0) | manufacturers : maker (\"mazda\", \"toyota\", \"volkswagen\"), fullname (\"General Motors\", \"Fiat\", \"Peugeaut\"), country (\"3\", \"1\", \"5\"), id (4, 4, 5) | car_names : make (\"citroen ds-21 pallas\", \"oldsmobile vista cruiser\", \"ford ltd\"), model (\"bmw\", \"mercedes-benz\", \"volkswagen\"), makeid (89, 388, 109) | auto_brands : maker (\"mazda\", \"toyota\", \"volkswagen\"), fullname (\"General Motors\", \"Fiat\", \"Peugeaut\"), country (\"3\", \"1\", \"5\"), id (4, 4, 5) | countries : countryid (6, 2, 15), countryname (\"korea\", \"brazil\", \"uk\"), continent (4, 3, 4)", + "schema_without_content": "model_list : modelid , model , maker | continents : contid , continent | cars_data : mpg , weight , id , year , cylinders , horsepower , accelerate , edispl | manufacturers : maker , fullname , country , id | car_names : make , model , makeid | auto_brands : maker , fullname , country , id | countries : countryid , countryname , continent", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "maker with full name": "car_makers.Maker" + } + }, + { + "question": "how many #car models# were produced by the #maker with full name# american motor company?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'American Motor Company'", + "schema_with_content": "car_makers : maker (\"chrysler\", \"opel\", \"daimler benz\"), id (18, 5, 18), country (\"5\", \"3\", \"3\"), fullname (\"Ford Motor Company\", \"Hyundai\", \"Chrysler\") | continents : continent (\"asia\", \"asia\", \"asia\"), contid (3, 3, 2) | car_names : model (\"plymouth\", \"buick\", \"mercedes\"), make (\"chevrolet cavalier wagon\", \"mercury cougar brougham\", \"buick century special\"), makeid (346, 79, 369) | car_models : modelid (9, 28, 23), maker (22, 15, 20), model (\"dodge\", \"honda\", \"toyota\") | cars_data : edispl (171.0, 104.0, 135.0), id (66, 149, 124), horsepower (\"215\", \"132\", \"130\"), weight (3632, 4425, 3003), mpg (\"31.9\", \"10\", \"15\"), cylinders (4, 5, 6), accelerate (11.1, 10.5, 17.9), year (1973, 1981, 1977) | countries : countryid (4, 1, 13), continent (5, 2, 5), countryname (\"sweden\", \"mexico\", \"germany\") | vehicle_models : modelid (9, 28, 23), maker (22, 15, 20), model (\"dodge\", \"honda\", \"toyota\")", + "schema_without_content": "car_makers : maker , id , country , fullname | continents : continent , contid | car_names : model , make , makeid | car_models : modelid , maker , model | cars_data : edispl , id , horsepower , weight , mpg , cylinders , accelerate , year | countries : countryid , continent , countryname | vehicle_models : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "maker with full name": "car_makers.Maker" + } + }, + { + "question": "what is the number of #car models# created by the #car maker# american motor company?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'American Motor Company'", + "schema_with_content": "cars_data : cylinders (4, 3, 5), year (1980, 1970, 1976), accelerate (20.5, 24.6, 19.2), horsepower (\"81\", \"79\", \"149\"), mpg (\"20.8\", \"13\", \"43.1\"), id (25, 282, 134), weight (3781, 1800, 2171), edispl (98.0, 100.0, 91.0) | car_names : makeid (226, 67, 200), make (\"chevrolet bel air\", \"plymouth fury gran sedan\", \"datsun 200-sx\"), model (\"ford\", \"datsun\", \"toyota\") | manufacturers : id (3, 7, 23), maker (\"volkswagen\", \"gm\", \"hyundai\"), fullname (\"Triumph\", \"BMW\", \"American Motor Company\"), country (\"7\", \"3\", \"5\") | countries : continent (2, 2, 3), countryid (8, 6, 14), countryname (\"japan\", \"italy\", \"france\") | model_list : model (\"nissan\", \"opel\", \"datsun\"), modelid (20, 21, 14), maker (3, 7, 20) | continents : continent (\"asia\", \"europe\", \"europe\"), contid (4, 2, 1) | auto_brands : id (3, 7, 23), maker (\"volkswagen\", \"gm\", \"hyundai\"), fullname (\"Triumph\", \"BMW\", \"American Motor Company\"), country (\"7\", \"3\", \"5\")", + "schema_without_content": "cars_data : cylinders , year , accelerate , horsepower , mpg , id , weight , edispl | car_names : makeid , make , model | manufacturers : id , maker , fullname , country | countries : continent , countryid , countryname | model_list : model , modelid , maker | continents : continent , contid | auto_brands : id , maker , fullname , country", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "car maker": "car_makers.FullName" + } + }, + { + "question": "what is the number of #car models# created by the #car maker# american motor company?", + "db_id": "car_1", + "orig_query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'American Motor Company'", + "schema_with_content": "countries : countryname (\"korea\", \"uk\", \"sweden\"), countryid (7, 15, 3), continent (2, 2, 4) | continents : continent (\"europe\", \"europe\", \"africa\"), contid (2, 5, 5) | car_names : makeid (186, 286, 220), make (\"chevrolet monte carlo s\", \"chrysler lebaron salon\", \"mercury marquis brougham\"), model (\"volvo\", \"capri\", \"capri\") | car_models : model (\"chevrolet\", \"bmw\", \"amc\"), maker (13, 8, 10), modelid (7, 35, 3) | cars_data : cylinders (8, 5, 4), edispl (112.0, 114.0, 258.0), mpg (\"26.5\", \"22\", \"34.4\"), weight (2670, 2950, 2108), accelerate (13.6, 20.5, 18.7), year (1970, 1979, 1982), horsepower (\"69\", \"130\", \"230\"), id (76, 71, 157) | car_makers : country (\"4\", \"1\", \"1\"), fullname (\"Opel\", \"Triumph\", \"Nissan Motors\"), id (1, 4, 5), maker (\"kia\", \"nissan\", \"toyota\") | vehicle_models : model (\"chevrolet\", \"bmw\", \"amc\"), maker (13, 8, 10), modelid (7, 35, 3)", + "schema_without_content": "countries : countryname , countryid , continent | continents : continent , contid | car_names : makeid , make , model | car_models : model , maker , modelid | cars_data : cylinders , edispl , mpg , weight , accelerate , year , horsepower , id | car_makers : country , fullname , id , maker | vehicle_models : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "car models": "model_list.Model", + "car maker": "car_makers.FullName" + } + }, + { + "question": "which #makers# designed more than 3 #car models# ? list #full name# and the #id# .", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) > 3", + "schema_with_content": "cars_data : mpg (\"33\", \"20.2\", \"17.6\"), accelerate (17.2, 23.7, 12.9), weight (4376, 2065, 1968), edispl (155.0, 130.0, 350.0), cylinders (3, 5, 8), year (1982, 1972, 1970), id (151, 314, 152), horsepower (\"132\", \"102\", \"48\") | manufacturers : id (7, 14, 18), maker (\"subaru\", \"amc\", \"amc\"), fullname (\"Volvo\", \"Volvo\", \"Volkswagen\"), country (\"2\", \"4\", \"2\") | auto_brands : id (7, 14, 18), maker (\"subaru\", \"amc\", \"amc\"), fullname (\"Volvo\", \"Volvo\", \"Volkswagen\"), country (\"2\", \"4\", \"2\") | continents : continent (\"asia\", \"australia\", \"africa\"), contid (5, 1, 1) | countries : countryid (8, 6, 4), continent (2, 2, 5), countryname (\"new zealand\", \"australia\", \"korea\") | car_names : make (\"chevrolet cavalier\", \"ford fairmont (auto)\", \"ford galaxie 500\"), makeid (168, 265, 154), model (\"chevrolet\", \"capri\", \"cadillac\") | model_list : modelid (32, 22, 3), model (\"ford\", \"subaru\", \"chevrolet\"), maker (21, 12, 6)", + "schema_without_content": "cars_data : mpg , accelerate , weight , edispl , cylinders , year , id , horsepower | manufacturers : id , maker , fullname , country | auto_brands : id , maker , fullname , country | continents : continent , contid | countries : countryid , continent , countryname | car_names : make \", \"ford galaxie 500\", makeid , model | model_list : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "makers": "car_makers", + "car models": "model_list.Model", + "full name": "car_makers.FullName", + "id": "car_makers.Id" + } + }, + { + "question": "which #makers# designed more than 3 #car models# ? list #full name# and the #id# .", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) > 3", + "schema_with_content": "continents : continent (\"america\", \"europe\", \"asia\"), contid (3, 1, 4) | car_models : maker (1, 8, 17), model (\"scion\", \"capri\", \"saab\"), modelid (24, 8, 13) | cars_data : accelerate (13.9, 15.9, 14.0), horsepower (\"200\", \"74\", \"108\"), edispl (83.0, 107.0, 155.0), mpg (\"18.2\", \"17.7\", \"36.1\"), id (218, 322, 30), cylinders (4, 6, 8), year (1972, 1979, 1976), weight (1990, 2000, 2694) | vehicle_models : maker (1, 8, 17), model (\"scion\", \"capri\", \"saab\"), modelid (24, 8, 13) | countries : countryname (\"korea\", \"new zealand\", \"japan\"), continent (5, 5, 4), countryid (9, 3, 15) | car_names : model (\"nissan\", \"toyota\", \"chrysler\"), makeid (53, 222, 59), make (\"volkswagen scirocco\", \"dodge diplomat\", \"toyota corona liftback\") | car_makers : fullname (\"Triumph\", \"Triumph\", \"General Motors\"), country (\"2\", \"2\", \"7\"), maker (\"ford\", \"hyundai\", \"nissan\"), id (5, 14, 11)", + "schema_without_content": "continents : continent , contid | car_models : maker , model , modelid | cars_data : accelerate , horsepower , edispl , mpg , id , cylinders , year , weight | vehicle_models : maker , model , modelid | countries : countryname , continent , countryid | car_names : model , makeid , make | car_makers : fullname , country , maker , id", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "makers": "car_makers", + "car models": "model_list.Model", + "full name": "car_makers.FullName", + "id": "car_makers.Id" + } + }, + { + "question": "what are the #names# and #ids of all makers# with more than 3 #models# ?", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) > 3", + "schema_with_content": "auto_brands : fullname (\"Volkswagen\", \"Triumph\", \"Chrysler\"), maker (\"volkswagen\", \"honda\", \"saab\"), id (2, 21, 9), country (\"1\", \"1\", \"5\") | cars_data : edispl (113.0, 104.0, 121.0), weight (3504, 3205, 4425), horsepower (\"149\", \"72\", \"158\"), year (1979, 1972, 1979), cylinders (3, 8, 4), id (340, 152, 312), mpg (\"35.7\", \"40.8\", \"36.1\"), accelerate (18.8, 19.0, 12.6) | car_names : model (\"mercedes-benz\", \"subaru\", \"saab\"), make (\"chevy c20\", \"dodge d100\", \"pontiac firebird\"), makeid (398, 375, 34) | continents : contid (4, 5, 2), continent (\"europe\", \"africa\", \"america\") | manufacturers : fullname (\"Volkswagen\", \"Triumph\", \"Chrysler\"), maker (\"volkswagen\", \"honda\", \"saab\"), id (2, 21, 9), country (\"1\", \"1\", \"5\") | countries : countryname (\"japan\", \"new zealand\", \"nigeria\"), continent (3, 4, 2), countryid (2, 9, 15) | model_list : model (\"dodge\", \"audi\", \"opel\"), modelid (27, 6, 24), maker (14, 15, 16)", + "schema_without_content": "auto_brands : fullname , maker , id , country | cars_data : edispl , weight , horsepower , year , cylinders , id , mpg , accelerate | car_names : model , make , makeid | continents : contid , continent | manufacturers : fullname , maker , id , country | countries : countryname , continent , countryid | model_list : model , modelid , maker", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "car_makers.FullName", + "ids of all makers": "car_makers.Id", + "models": "model_list.Model" + } + }, + { + "question": "what are the #names# and #ids of all makers# with more than 3 #models# ?", + "db_id": "car_1", + "orig_query": "select t1.fullname, t1.id from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) > 3", + "schema_with_content": "vehicle_models : model (\"subaru\", \"triumph\", \"opel\"), maker (10, 21, 12), modelid (24, 35, 28) | car_names : model (\"fiat\", \"amc\", \"triumph\"), makeid (114, 132, 291), make (\"volvo 145e (sw)\", \"dodge colt hatchback custom\", \"datsun 210 mpg\") | countries : countryname (\"brazil\", \"korea\", \"mexico\"), countryid (3, 5, 15), continent (3, 4, 4) | continents : continent (\"america\", \"australia\", \"australia\"), contid (3, 2, 4) | cars_data : year (1975, 1970, 1980), horsepower (\"139\", \"215\", \"87\"), cylinders (3, 5, 8), edispl (96.0, 145.0, 104.0), weight (2434, 3302, 2984), accelerate (16.0, 16.0, 23.5), mpg (\"34.7\", \"32.3\", \"19\"), id (103, 29, 215) | car_models : model (\"subaru\", \"triumph\", \"opel\"), maker (10, 21, 12), modelid (24, 35, 28) | car_makers : maker (\"ford\", \"kia\", \"mazda\"), fullname (\"Saab\", \"Chrysler\", \"Saab\"), id (3, 14, 22), country (\"6\", \"6\", \"8\")", + "schema_without_content": "vehicle_models : model , maker , modelid | car_names : model , makeid , make \", \"dodge colt hatchback custom\", \"datsun 210 mpg\" | countries : countryname , countryid , continent | continents : continent , contid | cars_data : year , horsepower , cylinders , edispl , weight , accelerate , mpg , id | car_models : model , maker , modelid | car_makers : maker , fullname , id , country", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "car_makers.FullName", + "ids of all makers": "car_makers.Id", + "models": "model_list.Model" + } + }, + { + "question": "which #distinctive models# are produced by #maker with the full name general motors# or #weighing more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "model_list : model (\"chrysler\", \"honda\", \"triumph\"), modelid (19, 14, 11), maker (3, 12, 23) | countries : countryid (7, 3, 6), countryname (\"germany\", \"egypt\", \"nigeria\"), continent (5, 3, 2) | car_names : makeid (206, 391, 157), make (\"mercedes benz 300d\", \"ford mustang gl\", \"plymouth satellite sebring\"), model (\"citroen\", \"opel\", \"plymouth\") | continents : continent (\"europe\", \"australia\", \"australia\"), contid (4, 4, 4) | cars_data : horsepower (\"220\", \"140\", \"80\"), mpg (\"27.9\", \"22.4\", \"18.1\"), edispl (85.0, 135.0, 390.0), year (1977, 1981, 1976), accelerate (11.2, 20.1, 21.8), cylinders (8, 3, 3), weight (2615, 2890, 2720), id (81, 335, 304) | auto_brands : id (5, 15, 6), country (\"1\", \"5\", \"4\"), maker (\"mazda\", \"kia\", \"toyota\"), fullname (\"Citroen\", \"Mazda\", \"Subaru\") | manufacturers : id (5, 15, 6), country (\"1\", \"5\", \"4\"), maker (\"mazda\", \"kia\", \"toyota\"), fullname (\"Citroen\", \"Mazda\", \"Subaru\")", + "schema_without_content": "model_list : model , modelid , maker | countries : countryid , countryname , continent | car_names : makeid , make , model | continents : continent , contid | cars_data : horsepower , mpg , edispl , year , accelerate , cylinders , weight , id | auto_brands : id , country , maker , fullname | manufacturers : id , country , maker , fullname", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "distinctive models": "model_list.Model", + "maker with the full name General Motors": "car_makers.FullName", + "weighing more than 3500": "cars_data.Weight" + } + }, + { + "question": "which #distinctive models# are produced by #maker with the full name general motors# or #weighing more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "car_makers : fullname (\"Volvo\", \"Volvo\", \"Opel\"), id (21, 22, 2), country (\"4\", \"5\", \"6\"), maker (\"triumph\", \"triumph\", \"peugeaut\") | countries : countryname (\"sweden\", \"uk\", \"new zealand\"), continent (3, 5, 4), countryid (6, 5, 11) | continents : contid (2, 1, 1), continent (\"america\", \"america\", \"asia\") | car_names : makeid (346, 74, 204), model (\"chrysler\", \"datsun\", \" volkswagen\"), make (\"mazda 626\", \"ford fairmont 4\", \"plymouth fury gran sedan\") | car_models : modelid (2, 15, 23), maker (8, 13, 15), model (\"subaru\", \"amc\", \"ford\") | cars_data : cylinders (5, 6, 8), accelerate (22.1, 15.8, 17.3), edispl (200.0, 183.0, 120.0), weight (3459, 3436, 2391), horsepower (\"230\", \"67\", \"77\"), mpg (\"9\", \"24.5\", \"23.6\"), id (228, 230, 141), year (1982, 1980, 1970) | vehicle_models : modelid (2, 15, 23), maker (8, 13, 15), model (\"subaru\", \"amc\", \"ford\")", + "schema_without_content": "car_makers : fullname , id , country , maker | countries : countryname , continent , countryid | continents : contid , continent | car_names : makeid , model , make | car_models : modelid , maker , model | cars_data : cylinders , accelerate , edispl , weight , horsepower , mpg , id , year | vehicle_models : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "distinctive models": "model_list.Model", + "maker with the full name General Motors": "car_makers.FullName", + "weighing more than 3500": "cars_data.Weight" + } + }, + { + "question": "which #distinctive models# are produced by #maker with the full name general motors# or #weighing more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "car_models : makeid (186, 300, 328), model (\"pontiac\", \"triumph\", \"saab\"), make (\"ford granada l\", \"volkswagen jetta\", \"dodge omni\") | continents : contid (5, 5, 2), continent (\"asia\", \"asia\", \"africa\") | model_list : maker (13, 17, 20), modelid (1, 14, 27), model (\"audi\", \"chevrolet\", \"chrysler\") | countries : countryname (\"egypt\", \"usa\", \"japan\"), continent (1, 2, 2), countryid (5, 4, 9) | vehicle_names : makeid (186, 300, 328), model (\"pontiac\", \"triumph\", \"saab\"), make (\"ford granada l\", \"volkswagen jetta\", \"dodge omni\") | cars_data : horsepower (\"115\", \"85\", \"52\"), accelerate (14.9, 22.2, 11.4), weight (2144, 2380, 4042), cylinders (5, 8, 6), year (1981, 1982, 1976), mpg (\"32.1\", \"11\", \"21.6\"), id (233, 91, 185), edispl (134.0, 135.0, 85.0) | car_makers : maker (\"citroen\", \"ford\", \"volvo\"), fullname (\"Ford Motor Company\", \"Hyundai\", \"Honda\"), country (\"2\", \"8\", \"8\"), id (5, 8, 9)", + "schema_without_content": "car_models : makeid , model , make | continents : contid , continent | model_list : maker , modelid , model | countries : countryname , continent , countryid | vehicle_names : makeid , model , make | cars_data : horsepower , accelerate , weight , cylinders , year , mpg , id , edispl | car_makers : maker , fullname , country , id", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "distinctive models": "model_list.Model", + "maker with the full name General Motors": "car_makers.FullName", + "weighing more than 3500": "cars_data.Weight" + } + }, + { + "question": "which #distinctive models# are produced by #maker with the full name general motors# or #weighing more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "car_makers : maker (\"triumph\", \"amc\", \"volkswagen\"), id (16, 7, 19), fullname (\"Volkswagen\", \"Volvo\", \"Honda\"), country (\"1\", \"2\", \"7\") | countries : countryname (\"japan\", \"japan\", \"italy\"), countryid (10, 11, 4), continent (1, 5, 1) | vehicle_data : horsepower (\"160\", \"null\", \"91\"), edispl (119.0, 267.0, 260.0), mpg (\"30.9\", \"19.1\", \"20.3\"), id (219, 138, 30), accelerate (22.2, 18.8, 19.0), weight (2700, 4190, 3962), cylinders (5, 6, 8), year (1979, 1970, 1980) | continents : continent (\"europe\", \"australia\", \"australia\"), contid (4, 3, 2) | model_list : modelid (32, 30, 3), maker (15, 2, 15), model (\"buick\", \"kia\", \"audi\") | car_names : model (\" volkswagen\", \"amc\", \"ford\"), make (\"buick skylark 320\", \"dodge aspen\", \"dodge dart custom\"), makeid (203, 120, 262) | auto_data : horsepower (\"160\", \"null\", \"91\"), edispl (119.0, 267.0, 260.0), mpg (\"30.9\", \"19.1\", \"20.3\"), id (219, 138, 30), accelerate (22.2, 18.8, 19.0), weight (2700, 4190, 3962), cylinders (5, 6, 8), year (1979, 1970, 1980)", + "schema_without_content": "car_makers : maker , id , fullname , country | countries : countryname , countryid , continent | vehicle_data : horsepower , edispl , mpg , id , accelerate , weight , cylinders , year | continents : continent , contid | model_list : modelid , maker , model | car_names : model , make , makeid | auto_data : horsepower , edispl , mpg , id , accelerate , weight , cylinders , year", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "distinctive models": "model_list.Model", + "maker with the full name General Motors": "car_makers.FullName", + "weighing more than 3500": "cars_data.Weight" + } + }, + { + "question": "what are the different #models# created by either the #car maker general motors# or #weighed more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "countries : continent (1, 5, 4), countryid (2, 8, 9), countryname (\"australia\", \"uk\", \"france\") | auto_brands : maker (\"nissan\", \"honda\", \"mazda\"), country (\"7\", \"5\", \"2\"), id (11, 22, 20), fullname (\"Peugeaut\", \"Ford Motor Company\", \"Fiat\") | model_list : model (\"dodge\", \"mazda\", \"kia\"), modelid (13, 24, 12), maker (23, 16, 7) | continents : continent (\"africa\", \"america\", \"europe\"), contid (5, 5, 3) | car_names : model (\"chrysler\", \"ford\", \" volkswagen\"), make (\"datsun b-210\", \"audi 100ls\", \"plymouth arrow gs\"), makeid (346, 50, 356) | manufacturers : maker (\"nissan\", \"honda\", \"mazda\"), country (\"7\", \"5\", \"2\"), id (11, 22, 20), fullname (\"Peugeaut\", \"Ford Motor Company\", \"Fiat\") | cars_data : weight (2164, 4278, 2914), mpg (\"27.9\", \"11\", \"27.2\"), cylinders (8, 4, 3), edispl (134.0, 146.0, 383.0), horsepower (\"142\", \"97\", \"94\"), accelerate (14.3, 15.0, 17.2), year (1981, 1975, 1981), id (5, 94, 307)", + "schema_without_content": "countries : continent , countryid , countryname | auto_brands : maker , country , id , fullname | model_list : model , modelid , maker | continents : continent , contid | car_names : model , make , makeid | manufacturers : maker , country , id , fullname | cars_data : weight , mpg , cylinders , edispl , horsepower , accelerate , year , id", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker General Motors": "car_makers.FullName", + "weighed more than 3500": "cars_data.Weight" + } + }, + { + "question": "what are the different #models# created by either the #car maker general motors# or #weighed more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "vehicle_models : maker (14, 21, 16), model (\"peugeot\", \"capri\", \"chevrolet\"), modelid (9, 4, 16) | car_names : makeid (36, 177, 288), make (\"mazda glc custom l\", \"plymouth fury iii\", \"mercury monarch\"), model (\"saab\", \"chevrolet\", \"mazda\") | car_models : maker (14, 21, 16), model (\"peugeot\", \"capri\", \"chevrolet\"), modelid (9, 4, 16) | countries : countryname (\"new zealand\", \"nigeria\", \"new zealand\"), continent (2, 5, 1), countryid (13, 12, 12) | car_makers : fullname (\"Triumph\", \"Mazda\", \"Honda\"), maker (\"citroen\", \"toyota\", \"chrysler\"), country (\"1\", \"8\", \"7\"), id (1, 22, 19) | continents : continent (\"africa\", \"australia\", \"africa\"), contid (5, 1, 1) | cars_data : year (1978, 1973, 1975), cylinders (6, 8, 8), weight (3777, 4312, 2070), id (45, 70, 1), mpg (\"15.5\", \"23.2\", \"43.4\"), horsepower (\"49\", \"138\", \"153\"), edispl (76.0, 262.0, 107.0), accelerate (19.5, 15.1, 16.2)", + "schema_without_content": "vehicle_models : maker , model , modelid | car_names : makeid , make , model | car_models : maker , model , modelid | countries : countryname , continent , countryid | car_makers : fullname , maker , country , id | continents : continent , contid | cars_data : year , cylinders , weight , id , mpg , horsepower , edispl , accelerate", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker General Motors": "car_makers.FullName", + "weighed more than 3500": "cars_data.Weight" + } + }, + { + "question": "what are the different #models# created by either the #car maker general motors# or #weighed more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "model_list : maker (1, 6, 21), model (\"ford\", \"mercury\", \"datsun\"), modelid (18, 21, 4) | car_makers : id (18, 1, 22), maker (\"toyota\", \"citroen\", \"daimler benz\"), country (\"5\", \"8\", \"2\"), fullname (\"Citroen\", \"Daimler Benz\", \"Ford Motor Company\") | continents : contid (1, 2, 2), continent (\"africa\", \"america\", \"europe\") | countries : continent (4, 4, 1), countryid (3, 12, 13), countryname (\"sweden\", \"japan\", \"france\") | car_models : model (\"honda\", \"hi\", \"capri\"), make (\"toyota mark ii\", \"honda civic 1300\", \"buick century\"), makeid (143, 309, 323) | cars_data : mpg (\"18.1\", \"20\", \"16.2\"), horsepower (\"83\", \"102\", \"116\"), edispl (112.0, 140.0, 225.0), accelerate (20.7, 20.4, 12.9), year (1976, 1976, 1981), weight (4440, 1825, 4380), cylinders (4, 6, 8), id (406, 362, 215) | vehicle_names : model (\"honda\", \"hi\", \"capri\"), make (\"toyota mark ii\", \"honda civic 1300\", \"buick century\"), makeid (143, 309, 323)", + "schema_without_content": "model_list : maker , model , modelid | car_makers : id , maker , country , fullname | continents : contid , continent | countries : continent , countryid , countryname | car_models : model , make , makeid | cars_data : mpg , horsepower , edispl , accelerate , year , weight , cylinders , id | vehicle_names : model , make , makeid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker General Motors": "car_makers.FullName", + "weighed more than 3500": "cars_data.Weight" + } + }, + { + "question": "what are the different #models# created by either the #car maker general motors# or #weighed more than 3500# ?", + "db_id": "car_1", + "orig_query": "select distinct t2.model from car_names as t1 join model_list as t2 on t1.model = t2.model join car_makers as t3 on t2.maker = t3.id join cars_data as t4 on t1.makeid = t4.id where t3.fullname = 'General Motors' or t4.weight > 3500", + "schema_with_content": "continents : contid (2, 3, 1), continent (\"america\", \"america\", \"australia\") | countries : countryid (15, 8, 3), continent (2, 1, 5), countryname (\"mexico\", \"russia\", \"russia\") | auto_data : id (25, 299, 138), mpg (\"22\", \"34\", \"33.8\"), weight (2755, 1800, 3102), horsepower (\"95\", \"170\", \"225\"), accelerate (14.7, 15.0, 17.0), edispl (97.5, 455.0, 156.0), cylinders (3, 5, 6), year (1978, 1973, 1979) | vehicle_data : id (25, 299, 138), mpg (\"22\", \"34\", \"33.8\"), weight (2755, 1800, 3102), horsepower (\"95\", \"170\", \"225\"), accelerate (14.7, 15.0, 17.0), edispl (97.5, 455.0, 156.0), cylinders (3, 5, 6), year (1978, 1973, 1979) | model_list : maker (6, 20, 11), model (\"dodge\", \"datsun\", \"scion\"), modelid (20, 6, 33) | car_makers : id (21, 18, 18), fullname (\"Nissan Motors\", \"Volkswagen\", \"Renault\"), maker (\"toyota\", \"daimler benz\", \"honda\"), country (\"8\", \"6\", \"1\") | car_names : make (\"volkswagen 1131 deluxe sedan\", \"datsun 310 gx\", \"chevrolet citation\"), model (\"toyota\", \"cadillac\", \"pontiac\"), makeid (190, 21, 239)", + "schema_without_content": "continents : contid , continent | countries : countryid , continent , countryname | auto_data : id , mpg , weight , horsepower , accelerate , edispl , cylinders , year | vehicle_data : id , mpg , weight , horsepower , accelerate , edispl , cylinders , year | model_list : maker , model , modelid | car_makers : id , fullname , maker , country | car_names : make , model , makeid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "car maker General Motors": "car_makers.FullName", + "weighed more than 3500": "cars_data.Weight" + } + }, + { + "question": "what is the #horsepower of the car# with the largest #accelerate# ?", + "db_id": "car_1", + "orig_query": "select t1.horsepower from cars_data as t1 order by t1.accelerate desc limit 1", + "schema_with_content": "countries : countryid (4, 9, 6), continent (1, 3, 2), countryname (\"egypt\", \"italy\", \"new zealand\") | model_list : maker (1, 23, 19), modelid (32, 20, 26), model (\"mercedes\", \"fiat\", \"honda\") | vehicle_data : year (1982, 1970, 1980), horsepower (\"120\", \"49\", \"75\"), cylinders (6, 8, 3), weight (3892, 3830, 1795), mpg (\"37\", \"27.9\", \"26.4\"), accelerate (15.1, 14.0, 13.6), id (107, 401, 69), edispl (97.0, 85.0, 135.0) | car_makers : maker (\"daimler benz\", \"renault\", \"ford\"), country (\"1\", \"4\", \"8\"), id (19, 2, 17), fullname (\"Daimler Benz\", \"Citroen\", \"Peugeaut\") | car_names : model (\"pontiac\", \"mercury\", \"mazda\"), makeid (70, 325, 101), make (\"buick lesabre custom\", \"ford ltd landau\", \"volvo 244dl\") | auto_data : year (1982, 1970, 1980), horsepower (\"120\", \"49\", \"75\"), cylinders (6, 8, 3), weight (3892, 3830, 1795), mpg (\"37\", \"27.9\", \"26.4\"), accelerate (15.1, 14.0, 13.6), id (107, 401, 69), edispl (97.0, 85.0, 135.0) | continents : contid (2, 3, 3), continent (\"asia\", \"america\", \"australia\")", + "schema_without_content": "countries : countryid , continent , countryname | model_list : maker , modelid , model | vehicle_data : year , horsepower , cylinders , weight , mpg , accelerate , id , edispl | car_makers : maker , country , id , fullname | car_names : model , makeid , make | auto_data : year , horsepower , cylinders , weight , mpg , accelerate , id , edispl | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "horsepower of the car": "cars_data.Horsepower", + "accelerate": "cars_data.Accelerate" + } + }, + { + "question": "what is the #horsepower# of the car with the greatest #accelerate# ?", + "db_id": "car_1", + "orig_query": "select t1.horsepower from cars_data as t1 order by t1.accelerate desc limit 1", + "schema_with_content": "auto_data : mpg (\"22\", \"37.7\", \"44.3\"), edispl (97.5, 70.0, 454.0), id (379, 51, 294), cylinders (8, 5, 8), accelerate (13.5, 11.0, 11.2), horsepower (\"60\", \"85\", \"149\"), year (1974, 1975, 1982), weight (2556, 2075, 3988) | countries : countryname (\"usa\", \"germany\", \"korea\"), continent (5, 3, 2), countryid (14, 11, 5) | continents : contid (3, 3, 1), continent (\"asia\", \"africa\", \"america\") | model_list : modelid (16, 24, 32), model (\"subaru\", \"mercury\", \"mercury\"), maker (15, 13, 20) | car_makers : country (\"5\", \"5\", \"5\"), maker (\"honda\", \"ford\", \"honda\"), fullname (\"BMW\", \"General Motors\", \"Kia Motors\"), id (20, 21, 5) | vehicle_data : mpg (\"22\", \"37.7\", \"44.3\"), edispl (97.5, 70.0, 454.0), id (379, 51, 294), cylinders (8, 5, 8), accelerate (13.5, 11.0, 11.2), horsepower (\"60\", \"85\", \"149\"), year (1974, 1975, 1982), weight (2556, 2075, 3988) | car_names : make (\"volvo 264gl\", \"honda civic 1500 gl\", \"buick skyhawk\"), makeid (73, 64, 263), model (\"buick\", \"opel\", \"dodge\")", + "schema_without_content": "auto_data : mpg , edispl , id , cylinders , accelerate , horsepower , year , weight | countries : countryname , continent , countryid | continents : contid , continent | model_list : modelid , model , maker | car_makers : country , maker , fullname , id | vehicle_data : mpg , edispl , id , cylinders , accelerate , horsepower , year , weight | car_names : make , makeid , model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "horsepower": "cars_data.Horsepower", + "accelerate": "cars_data.Accelerate" + } + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least #accelerate# have?", + "db_id": "car_1", + "orig_query": "select t1.cylinders from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.model = 'volvo' order by t1.accelerate asc limit 1", + "schema_with_content": "countries : countryid (11, 12, 4), countryname (\"nigeria\", \"france\", \"uk\"), continent (5, 5, 2) | model_list : maker (15, 15, 20), modelid (18, 24, 18), model (\"datsun\", \"capri\", \"toyota\") | cars_data : weight (3432, 2962, 4633), id (235, 4, 293), accelerate (22.2, 20.7, 16.9), edispl (79.0, 100.0, 120.0), horsepower (\"113\", \"135\", \"230\"), cylinders (3, 6, 5), year (1975, 1982, 1981), mpg (\"16.5\", \"31.8\", \"27.5\") | vehicle_names : makeid (331, 286, 237), make (\"volvo 145e (sw)\", \"ford futura\", \"cadillac seville\"), model (\"plymouth\", \"datsun\", \"pontiac\") | car_makers : maker (\"toyota\", \"citroen\", \"nissan\"), id (13, 20, 2), fullname (\"Saab\", \"Volkswagen\", \"Peugeaut\"), country (\"3\", \"8\", \"1\") | car_models : makeid (331, 286, 237), make (\"volvo 145e (sw)\", \"ford futura\", \"cadillac seville\"), model (\"plymouth\", \"datsun\", \"pontiac\") | continents : contid (2, 4, 4), continent (\"asia\", \"australia\", \"africa\")", + "schema_without_content": "countries : countryid , countryname , continent | model_list : maker , modelid , model | cars_data : weight , id , accelerate , edispl , horsepower , cylinders , year , mpg | vehicle_names : makeid , make \", \"ford futura\", \"cadillac seville\", model | car_makers : maker , id , fullname , country | car_models : makeid , make \", \"ford futura\", \"cadillac seville\", model | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "cylinders": "cars_data.Cylinders", + "accelerate": "cars_data.Accelerate" + } + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least #accelerate# have?", + "db_id": "car_1", + "orig_query": "select t1.cylinders from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.model = 'volvo' order by t1.accelerate asc limit 1", + "schema_with_content": "model_list : maker (19, 21, 12), modelid (11, 24, 8), model (\"opel\", \"bmw\", \"bmw\") | countries : countryid (8, 15, 12), countryname (\"australia\", \"korea\", \"italy\"), continent (5, 3, 1) | car_makers : country (\"6\", \"8\", \"4\"), id (7, 17, 20), maker (\"saab\", \"gm\", \"daimler benz\"), fullname (\"Ford Motor Company\", \"BMW\", \"Chrysler\") | vehicle_data : weight (3570, 1968, 2833), id (85, 146, 338), accelerate (16.9, 12.1, 15.4), cylinders (5, 4, 5), edispl (163.0, 68.0, 76.0), horsepower (\"62\", \"48\", \"135\"), mpg (\"30.7\", \"26.4\", \"21.1\"), year (1971, 1978, 1970) | auto_data : weight (3570, 1968, 2833), id (85, 146, 338), accelerate (16.9, 12.1, 15.4), cylinders (5, 4, 5), edispl (163.0, 68.0, 76.0), horsepower (\"62\", \"48\", \"135\"), mpg (\"30.7\", \"26.4\", \"21.1\"), year (1971, 1978, 1970) | continents : continent (\"asia\", \"australia\", \"africa\"), contid (4, 4, 3) | car_names : makeid (73, 361, 109), make (\"honda civic (auto)\", \"plymouth satellite custom\", \"buick lesabre custom\"), model (\"audi\", \"mazda\", \"buick\")", + "schema_without_content": "model_list : maker , modelid , model | countries : countryid , countryname , continent | car_makers : country , id , maker , fullname | vehicle_data : weight , id , accelerate , cylinders , edispl , horsepower , mpg , year | auto_data : weight , id , accelerate , cylinders , edispl , horsepower , mpg , year | continents : continent , contid | car_names : makeid , make \", \"plymouth satellite custom\", \"buick lesabre custom\", model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "model": "car_names.Model", + "cylinders": "cars_data.Cylinders", + "accelerate": "cars_data.Accelerate" + } + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with #least accelerate# have?", + "db_id": "car_1", + "orig_query": "select t1.cylinders from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.model = 'volvo' order by t1.accelerate asc limit 1", + "schema_with_content": "car_models : makeid (99, 358, 355), model (\"mercedes\", \"chrysler\", \"oldsmobile\"), make (\"datsun 510 (sw)\", \"volvo 264gl\", \"peugeot 304\") | model_list : model (\"renault\", \"hyundai\", \"citroen\"), modelid (3, 24, 11), maker (14, 22, 5) | countries : continent (1, 1, 1), countryid (12, 7, 7), countryname (\"japan\", \"nigeria\", \"egypt\") | cars_data : mpg (\"22.4\", \"37.3\", \"20.3\"), edispl (90.0, 100.0, 116.0), accelerate (20.0, 14.3, 11.4), id (51, 227, 192), cylinders (4, 6, 6), weight (1975, 2634, 4140), horsepower (\"46\", \"193\", \"63\"), year (1982, 1970, 1980) | car_makers : maker (\"gm\", \"citroen\", \"gm\"), fullname (\"Chrysler\", \"Subaru\", \"Chrysler\"), country (\"2\", \"6\", \"6\"), id (14, 4, 8) | continents : contid (4, 1, 2), continent (\"asia\", \"australia\", \"america\") | vehicle_names : makeid (99, 358, 355), model (\"mercedes\", \"chrysler\", \"oldsmobile\"), make (\"datsun 510 (sw)\", \"volvo 264gl\", \"peugeot 304\")", + "schema_without_content": "car_models : makeid , model , make \", \"volvo 264gl\", \"peugeot 304\" | model_list : model , modelid , maker | countries : continent , countryid , countryname | cars_data : mpg , edispl , accelerate , id , cylinders , weight , horsepower , year | car_makers : maker , fullname , country , id | continents : contid , continent | vehicle_names : makeid , model , make \", \"volvo 264gl\", \"peugeot 304\"", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "volvo model": "car_names.Model", + "cylinders": "cars_data.Cylinders", + "least accelerate": "cars_data.Accelerate" + } + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with #least accelerate# have?", + "db_id": "car_1", + "orig_query": "select t1.cylinders from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t2.model = 'volvo' order by t1.accelerate asc limit 1", + "schema_with_content": "car_makers : fullname (\"Ford Motor Company\", \"Hyundai\", \"Mazda\"), id (22, 17, 7), country (\"3\", \"1\", \"3\"), maker (\"saab\", \"opel\", \"peugeaut\") | auto_data : id (63, 397, 399), cylinders (5, 5, 5), mpg (\"32.3\", \"37.7\", \"44\"), edispl (440.0, 262.0, 97.5), horsepower (\"48\", \"107\", \"130\"), accelerate (18.6, 8.5, 13.2), year (1977, 1972, 1978), weight (3425, 2385, 2640) | countries : countryname (\"egypt\", \"russia\", \"sweden\"), countryid (7, 2, 12), continent (5, 3, 5) | model_list : modelid (33, 8, 11), maker (5, 5, 4), model (\"chevrolet\", \"kia\", \"triumph\") | vehicle_data : id (63, 397, 399), cylinders (5, 5, 5), mpg (\"32.3\", \"37.7\", \"44\"), edispl (440.0, 262.0, 97.5), horsepower (\"48\", \"107\", \"130\"), accelerate (18.6, 8.5, 13.2), year (1977, 1972, 1978), weight (3425, 2385, 2640) | continents : continent (\"asia\", \"africa\", \"africa\"), contid (4, 1, 2) | car_names : makeid (132, 159, 281), make (\"ford pinto (sw)\", \"ford pinto\", \"opel 1900\"), model (\"subaru\", \"bmw\", \"mercury\")", + "schema_without_content": "car_makers : fullname , id , country , maker | auto_data : id , cylinders , mpg , edispl , horsepower , accelerate , year , weight | countries : countryname , countryid , continent | model_list : modelid , maker , model | vehicle_data : id , cylinders , mpg , edispl , horsepower , accelerate , year , weight | continents : continent , contid | car_names : makeid , make \", \"ford pinto\", \"opel 1900\", model", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "volvo model": "car_names.Model", + "cylinders": "cars_data.Cylinders", + "least accelerate": "cars_data.Accelerate" + } + }, + { + "question": "how many #cars# have a larger #accelerate# than the car with the largest #horsepower# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where accelerate > (select accelerate from cars_data order by horsepower desc limit 1)", + "schema_with_content": "car_names : model (\"dodge\", \"dodge\", \"mercury\"), make (\"fiat 124 tc\", \"dodge omni\", \"buick regal sport coupe (turbo)\"), makeid (50, 88, 155) | continents : continent (\"america\", \"africa\", \"america\"), contid (4, 2, 3) | car_makers : fullname (\"Kia Motors\", \"Ford Motor Company\", \"General Motors\"), maker (\"kia\", \"volkswagen\", \"citroen\"), country (\"3\", \"2\", \"4\"), id (9, 18, 13) | model_list : model (\"fiat\", \"peugeot\", \"buick\"), modelid (3, 16, 12), maker (23, 7, 10) | countries : countryid (3, 5, 12), continent (4, 3, 2), countryname (\"australia\", \"brazil\", \"brazil\") | vehicle_data : horsepower (\"96\", \"125\", \"70\"), weight (4360, 3399, 2592), mpg (\"9\", \"31.5\", \"33.5\"), edispl (90.0, 76.0, 86.0), cylinders (4, 3, 5), year (1974, 1971, 1975), accelerate (14.9, 19.0, 24.6), id (4, 48, 141) | auto_data : horsepower (\"96\", \"125\", \"70\"), weight (4360, 3399, 2592), mpg (\"9\", \"31.5\", \"33.5\"), edispl (90.0, 76.0, 86.0), cylinders (4, 3, 5), year (1974, 1971, 1975), accelerate (14.9, 19.0, 24.6), id (4, 48, 141)", + "schema_without_content": "car_names : model , make \", makeid | continents : continent , contid | car_makers : fullname , maker , country , id | model_list : model , modelid , maker | countries : countryid , continent , countryname | vehicle_data : horsepower , weight , mpg , edispl , cylinders , year , accelerate , id | auto_data : horsepower , weight , mpg , edispl , cylinders , year , accelerate , id", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "accelerate": "cars_data.Accelerate", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "what is the #number of cars# with a greater #accelerate# than the one with the most #horsepower# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where accelerate > (select accelerate from cars_data order by horsepower desc limit 1)", + "schema_with_content": "car_names : model (\"mercedes-benz\", \"datsun\", \"volvo\"), makeid (61, 287, 239), make (\"chevrolet cavalier wagon\", \"datsun 210 mpg\", \"amc matador (sw)\") | car_makers : maker (\"ford\", \"kia\", \"bmw\"), fullname (\"Chrysler\", \"Ford Motor Company\", \"Triumph\"), id (17, 15, 8), country (\"1\", \"8\", \"8\") | vehicle_data : mpg (\"31.5\", \"34.7\", \"20.8\"), id (341, 404, 156), horsepower (\"63\", \"84\", \"210\"), cylinders (3, 5, 8), year (1975, 1972, 1979), weight (2205, 3121, 4735), edispl (318.0, 155.0, 98.0), accelerate (12.8, 17.6, 19.0) | continents : contid (3, 3, 3), continent (\"africa\", \"asia\", \"australia\") | model_list : modelid (35, 29, 12), maker (17, 15, 16), model (\"honda\", \"subaru\", \"audi\") | auto_data : mpg (\"31.5\", \"34.7\", \"20.8\"), id (341, 404, 156), horsepower (\"63\", \"84\", \"210\"), cylinders (3, 5, 8), year (1975, 1972, 1979), weight (2205, 3121, 4735), edispl (318.0, 155.0, 98.0), accelerate (12.8, 17.6, 19.0) | countries : countryname (\"russia\", \"new zealand\", \"uk\"), countryid (13, 11, 9), continent (5, 4, 4)", + "schema_without_content": "car_names : model , makeid , make \" | car_makers : maker , fullname , id , country | vehicle_data : mpg , id , horsepower , cylinders , year , weight , edispl , accelerate | continents : contid , continent | model_list : modelid , maker , model | auto_data : mpg , id , horsepower , cylinders , year , weight , edispl , accelerate | countries : countryname , countryid , continent", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "number of cars": "cars_data.Id", + "accelerate": "cars_data.Accelerate", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "how many #cars# has over 6 #cylinders# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where cylinders > 6", + "schema_with_content": "continents : contid (5, 2, 3), continent (\"africa\", \"australia\", \"asia\") | vehicle_data : horsepower (\"175\", \"60\", \"139\"), mpg (\"24.3\", \"22\", \"27\"), cylinders (8, 6, 5), weight (1985, 2108, 3381), year (1978, 1981, 1982), id (361, 286, 143), accelerate (8.0, 13.7, 22.1), edispl (262.0, 81.0, 360.0) | model_list : model (\"mercury\", \"hyundai\", \"volkswagen\"), maker (2, 18, 17), modelid (3, 33, 16) | countries : continent (3, 3, 2), countryname (\"france\", \"uk\", \"uk\"), countryid (10, 8, 2) | car_names : makeid (310, 138, 49), make (\"dodge dart custom\", \"chevrolet vega (sw)\", \"mercedes-benz 240d\"), model (\" volkswagen\", \"nissan\", \"hi\") | auto_data : horsepower (\"175\", \"60\", \"139\"), mpg (\"24.3\", \"22\", \"27\"), cylinders (8, 6, 5), weight (1985, 2108, 3381), year (1978, 1981, 1982), id (361, 286, 143), accelerate (8.0, 13.7, 22.1), edispl (262.0, 81.0, 360.0) | car_makers : fullname (\"Toyota\", \"Daimler Benz\", \"Toyota\"), id (5, 5, 5), country (\"1\", \"4\", \"7\"), maker (\"peugeaut\", \"chrysler\", \"renault\")", + "schema_without_content": "continents : contid , continent | vehicle_data : horsepower , mpg , cylinders , weight , year , id , accelerate , edispl | model_list : model , maker , modelid | countries : continent , countryname , countryid | car_names : makeid , make \", \"mercedes-benz 240d\", model | auto_data : horsepower , mpg , cylinders , weight , year , id , accelerate , edispl | car_makers : fullname , id , country , maker", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "cylinders": "cars_data.Cylinders" + } + }, + { + "question": "what is the #number of cars# w ith over 6 #cylinders# ?", + "db_id": "car_1", + "orig_query": "select count(*) from cars_data where cylinders > 6", + "schema_with_content": "car_names : model (\"renault\", \"chrysler\", \"buick\"), makeid (50, 388, 353), make (\"mazda glc\", \"dodge colt\", \"dodge colt hardtop\") | model_list : modelid (34, 34, 28), maker (4, 6, 6), model (\"opel\", \"dodge\", \"nissan\") | car_makers : maker (\"kia\", \"renault\", \"chrysler\"), id (11, 7, 23), fullname (\"Mazda\", \"Saab\", \"Chrysler\"), country (\"8\", \"5\", \"1\") | continents : contid (1, 2, 4), continent (\"asia\", \"europe\", \"asia\") | vehicle_data : id (100, 360, 406), cylinders (5, 5, 6), weight (4209, 1937, 2295), mpg (\"34.7\", \"null\", \"20.3\"), horsepower (\"93\", \"53\", \"139\"), year (1975, 1982, 1971), edispl (131.0, 318.0, 454.0), accelerate (13.2, 23.5, 12.1) | countries : countryname (\"new zealand\", \"australia\", \"brazil\"), countryid (5, 15, 1), continent (2, 3, 3) | auto_data : id (100, 360, 406), cylinders (5, 5, 6), weight (4209, 1937, 2295), mpg (\"34.7\", \"null\", \"20.3\"), horsepower (\"93\", \"53\", \"139\"), year (1975, 1982, 1971), edispl (131.0, 318.0, 454.0), accelerate (13.2, 23.5, 12.1)", + "schema_without_content": "car_names : model , makeid , make | model_list : modelid , maker , model | car_makers : maker , id , fullname , country | continents : contid , continent | vehicle_data : id , cylinders , weight , mpg , horsepower , year , edispl , accelerate | countries : countryname , countryid , continent | auto_data : id , cylinders , weight , mpg , horsepower , year , edispl , accelerate", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cylinders": "cars_data.Cylinders", + "number of cars": "cars_data.Id" + } + }, + { + "question": "for the #cars# with 4 #cylinders# , which #model# has the largest #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 4 order by t2.horsepower desc limit 1", + "schema_with_content": "vehicle_names : model (\"buick\", \"nissan\", \"fiat\"), make (\"datsun 510 (sw)\", \"mazda rx-4\", \"chevrolet camaro\"), makeid (212, 345, 234) | model_list : modelid (2, 29, 32), model (\"chevrolet\", \"scion\", \"hi\"), maker (2, 12, 14) | car_models : model (\"buick\", \"nissan\", \"fiat\"), make (\"datsun 510 (sw)\", \"mazda rx-4\", \"chevrolet camaro\"), makeid (212, 345, 234) | countries : continent (1, 3, 1), countryid (4, 2, 8), countryname (\"mexico\", \"australia\", \"australia\") | continents : continent (\"america\", \"africa\", \"asia\"), contid (2, 3, 1) | car_makers : fullname (\"Citroen\", \"Peugeaut\", \"Mazda\"), country (\"2\", \"1\", \"7\"), maker (\"toyota\", \"honda\", \"opel\"), id (18, 11, 15) | cars_data : horsepower (\"180\", \"113\", \"108\"), id (262, 321, 215), accelerate (12.0, 15.2, 18.0), edispl (79.0, 455.0, 112.0), mpg (\"27.9\", \"32.2\", \"25.1\"), weight (1970, 1875, 2164), year (1978, 1975, 1973), cylinders (6, 8, 6)", + "schema_without_content": "vehicle_names : model , make \", \"mazda rx-4\", \"chevrolet camaro\", makeid | model_list : modelid , model , maker | car_models : model , make \", \"mazda rx-4\", \"chevrolet camaro\", makeid | countries : continent , countryid , countryname | continents : continent , contid | car_makers : fullname , country , maker , id | cars_data : horsepower , id , accelerate , edispl , mpg , weight , year , cylinders", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "cylinders": "cars_data.Cylinders", + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "for the #cars# with 4 #cylinders# , which #model# has the largest #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 4 order by t2.horsepower desc limit 1", + "schema_with_content": "model_list : maker (23, 8, 12), model (\"citroen\", \"saab\", \"plymouth\"), modelid (33, 25, 34) | vehicle_data : year (1981, 1975, 1977), cylinders (4, 8, 8), weight (3211, 3880, 2391), accelerate (19.0, 17.4, 11.6), mpg (\"27.4\", \"16.5\", \"23.9\"), horsepower (\"129\", \"129\", \"116\"), id (79, 182, 385), edispl (390.0, 91.0, 155.0) | car_makers : id (6, 4, 15), country (\"7\", \"3\", \"7\"), fullname (\"American Motor Company\", \"General Motors\", \"Saab\"), maker (\"subaru\", \"toyota\", \"honda\") | car_names : makeid (243, 75, 302), make (\"mercury monarch ghia\", \"volvo 144ea\", \"plymouth valiant\"), model (\"mercury\", \"buick\", \"honda\") | countries : countryname (\"new zealand\", \"russia\", \"sweden\"), continent (5, 1, 2), countryid (13, 2, 8) | continents : contid (3, 5, 2), continent (\"america\", \"australia\", \"australia\") | auto_data : year (1981, 1975, 1977), cylinders (4, 8, 8), weight (3211, 3880, 2391), accelerate (19.0, 17.4, 11.6), mpg (\"27.4\", \"16.5\", \"23.9\"), horsepower (\"129\", \"129\", \"116\"), id (79, 182, 385), edispl (390.0, 91.0, 155.0)", + "schema_without_content": "model_list : maker , model , modelid | vehicle_data : year , cylinders , weight , accelerate , mpg , horsepower , id , edispl | car_makers : id , country , fullname , maker | car_names : makeid , make , model | countries : countryname , continent , countryid | continents : contid , continent | auto_data : year , cylinders , weight , accelerate , mpg , horsepower , id , edispl", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cars": "cars_data", + "cylinders": "cars_data.Cylinders", + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "for all of the 4 #cylinder cars# , which #model# has the most #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 4 order by t2.horsepower desc limit 1", + "schema_with_content": "vehicle_names : make (\"subaru dl\", \"ford granada gl\", \"mercedes benz 300d\"), model (\"buick\", \"mercury\", \"chrysler\"), makeid (111, 239, 64) | continents : continent (\"africa\", \"australia\", \"africa\"), contid (3, 3, 5) | car_makers : fullname (\"Triumph\", \"Triumph\", \"Peugeaut\"), maker (\"saab\", \"toyota\", \"opel\"), id (14, 14, 3), country (\"6\", \"4\", \"6\") | cars_data : horsepower (\"76\", \"113\", \"138\"), cylinders (6, 4, 6), mpg (\"24.2\", \"19.9\", \"32.8\"), year (1980, 1975, 1981), edispl (146.0, 89.0, 78.0), accelerate (21.5, 19.5, 21.9), weight (3988, 1968, 4312), id (103, 65, 376) | model_list : modelid (10, 32, 2), model (\"mercedes-benz\", \"chevrolet\", \"subaru\"), maker (9, 4, 19) | countries : countryid (5, 2, 6), countryname (\"japan\", \"korea\", \"egypt\"), continent (2, 3, 1) | car_models : make (\"subaru dl\", \"ford granada gl\", \"mercedes benz 300d\"), model (\"buick\", \"mercury\", \"chrysler\"), makeid (111, 239, 64)", + "schema_without_content": "vehicle_names : make , model , makeid | continents : continent , contid | car_makers : fullname , maker , id , country | cars_data : horsepower , cylinders , mpg , year , edispl , accelerate , weight , id | model_list : modelid , model , maker | countries : countryid , countryname , continent | car_models : make , model , makeid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "cylinder cars": "cars_data.Cylinders", + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "question": "for all of the 4 #cylinder cars# , which #model# has the most #horsepower# ?", + "db_id": "car_1", + "orig_query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.cylinders = 4 order by t2.horsepower desc limit 1", + "schema_with_content": "vehicle_data : accelerate (14.8, 20.4, 14.7), mpg (\"23\", \"44.3\", \"29.9\"), year (1970, 1977, 1976), edispl (135.0, 440.0, 440.0), weight (3012, 2979, 3160), id (384, 173, 166), horsepower (\"76\", \"225\", \"135\"), cylinders (4, 8, 4) | car_names : make (\"ford mustang\", \"ford torino (sw)\", \"chevrolet impala\"), model (\"saab\", \"dodge\", \"dodge\"), makeid (143, 9, 397) | auto_data : accelerate (14.8, 20.4, 14.7), mpg (\"23\", \"44.3\", \"29.9\"), year (1970, 1977, 1976), edispl (135.0, 440.0, 440.0), weight (3012, 2979, 3160), id (384, 173, 166), horsepower (\"76\", \"225\", \"135\"), cylinders (4, 8, 4) | countries : countryname (\"usa\", \"sweden\", \"australia\"), countryid (13, 4, 1), continent (4, 2, 3) | car_makers : id (19, 5, 14), maker (\"volvo\", \"saab\", \"amc\"), fullname (\"Hyundai\", \"Kia Motors\", \"Triumph\"), country (\"6\", \"7\", \"4\") | continents : contid (4, 4, 3), continent (\"america\", \"europe\", \"africa\") | model_list : modelid (22, 29, 20), model (\"mercury\", \"chrysler\", \"dodge\"), maker (21, 9, 3)", + "schema_without_content": "vehicle_data : accelerate , mpg , year , edispl , weight , id , horsepower , cylinders | car_names : make \", \"chevrolet impala\", model , makeid | auto_data : accelerate , mpg , year , edispl , weight , id , horsepower , cylinders | countries : countryname , countryid , continent | car_makers : id , maker , fullname , country | continents : contid , continent | model_list : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "cylinder cars": "cars_data.Cylinders", + "model": "car_names.Model", + "horsepower": "cars_data.Horsepower" + } + }, + { + "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_id": "car_1", + "orig_query": "select t2.makeid, t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders <= 3", + "schema_with_content": "cars_data : mpg (\"37.3\", \"44\", \"32.8\"), weight (2210, 3620, 1835), id (398, 166, 284), edispl (97.0, 72.0, 173.0), cylinders (3, 5, 8), year (1976, 1975, 1978), horsepower (\"142\", \"112\", \"85\"), accelerate (14.4, 18.2, 18.5) | vehicle_names : model (\"volvo\", \"honda\", \"dodge\"), makeid (357, 120, 50), make (\"buick opel isuzu deluxe\", \"pontiac firebird\", \"audi fox\") | car_makers : country (\"7\", \"5\", \"1\"), id (11, 23, 23), maker (\"opel\", \"gm\", \"peugeaut\"), fullname (\"Daimler Benz\", \"Subaru\", \"Fiat\") | countries : continent (2, 2, 5), countryid (5, 5, 15), countryname (\"australia\", \"nigeria\", \"korea\") | continents : contid (1, 1, 5), continent (\"australia\", \"asia\", \"europe\") | model_list : modelid (26, 29, 5), maker (17, 5, 18), model (\"amc\", \"mercedes\", \"fiat\") | car_models : model (\"volvo\", \"honda\", \"dodge\"), makeid (357, 120, 50), make (\"buick opel isuzu deluxe\", \"pontiac firebird\", \"audi fox\")", + "schema_without_content": "cars_data : mpg , weight , id , edispl , cylinders , year , horsepower , accelerate | vehicle_names : model , makeid , make | car_makers : country , id , maker , fullname | countries : continent , countryid , countryname | continents : contid , continent | model_list : modelid , maker , model | car_models : model , makeid , make", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "lowest horsepower": "cars_data.Horsepower", + "cylinders": "cars_data.Cylinders", + "car makeid": "car_names.MakeId", + "make name": "car_names.Make" + } + }, + { + "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_id": "car_1", + "orig_query": "select t2.makeid, t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders <= 3", + "schema_with_content": "model_list : model (\"ford\", \"chrysler\", \"hyundai\"), maker (5, 9, 1), modelid (2, 25, 1) | car_names : model (\"toyota\", \"datsun\", \"chevrolet\"), make (\"toyota tercel\", \"ford pinto\", \"plymouth fury gran sedan\"), makeid (366, 61, 76) | car_makers : country (\"4\", \"5\", \"3\"), maker (\"subaru\", \"fiat\", \"toyota\"), fullname (\"Chrysler\", \"Volvo\", \"Citroen\"), id (17, 16, 1) | countries : countryname (\"korea\", \"australia\", \"mexico\"), continent (4, 2, 3), countryid (13, 8, 12) | vehicle_data : year (1978, 1976, 1974), accelerate (9.0, 22.2, 18.5), cylinders (4, 4, 8), horsepower (\"93\", \"95\", \"63\"), weight (3070, 2430, 3820), edispl (97.0, 400.0, 198.0), id (282, 44, 405), mpg (\"25.8\", \"43.1\", \"17\") | auto_data : year (1978, 1976, 1974), accelerate (9.0, 22.2, 18.5), cylinders (4, 4, 8), horsepower (\"93\", \"95\", \"63\"), weight (3070, 2430, 3820), edispl (97.0, 400.0, 198.0), id (282, 44, 405), mpg (\"25.8\", \"43.1\", \"17\") | continents : continent (\"australia\", \"europe\", \"europe\"), contid (1, 4, 1)", + "schema_without_content": "model_list : model , maker , modelid | car_names : model , make , makeid | car_makers : country , maker , fullname , id | countries : countryname , continent , countryid | vehicle_data : year , accelerate , cylinders , horsepower , weight , edispl , id , mpg | auto_data : year , accelerate , cylinders , horsepower , weight , edispl , id , mpg | continents : continent , contid", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "lowest horsepower": "cars_data.Horsepower", + "cylinders": "cars_data.Cylinders", + "car makeid": "car_names.MakeId", + "make name": "car_names.Make" + } + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "car_names : makeid (87, 135, 149), model (\"hi\", \"honda\", \"amc\"), make (\"volkswagen scirocco\", \"amc concord d/l\", \"datsun 200-sx\") | auto_brands : country (\"3\", \"2\", \"8\"), maker (\"hyundai\", \"bmw\", \"opel\"), fullname (\"Renault\", \"General Motors\", \"Hyundai\"), id (12, 14, 4) | cars_data : edispl (168.0, 199.0, 168.0), mpg (\"18.1\", \"26.8\", \"24.2\"), cylinders (4, 8, 3), id (3, 260, 57), accelerate (11.1, 19.0, 24.8), horsepower (\"97\", \"98\", \"220\"), year (1976, 1976, 1976), weight (2380, 2592, 2228) | continents : continent (\"australia\", \"africa\", \"africa\"), contid (4, 1, 2) | countries : countryid (13, 15, 9), countryname (\"italy\", \"japan\", \"italy\"), continent (1, 3, 5) | manufacturers : country (\"3\", \"2\", \"8\"), maker (\"hyundai\", \"bmw\", \"opel\"), fullname (\"Renault\", \"General Motors\", \"Hyundai\"), id (12, 14, 4) | model_list : model (\"audi\", \"mazda\", \"volkswagen\"), maker (12, 21, 13), modelid (4, 23, 33)", + "schema_without_content": "car_names : makeid , model , make | auto_brands : country , maker , fullname , id | cars_data : edispl , mpg , cylinders , id , accelerate , horsepower , year , weight | continents : continent , contid | countries : countryid , countryname , continent | manufacturers : country , maker , fullname , id | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by": "car_makers.FullName" + } + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "vehicle_models : model (\"chrysler\", \"chevrolet\", \"amc\"), maker (5, 14, 20), modelid (28, 5, 6) | car_models : model (\"chrysler\", \"chevrolet\", \"amc\"), maker (5, 14, 20), modelid (28, 5, 6) | car_makers : id (4, 6, 6), fullname (\"Renault\", \"Subaru\", \"Subaru\"), maker (\"honda\", \"kia\", \"saab\"), country (\"2\", \"1\", \"2\") | cars_data : edispl (181.0, 173.0, 115.0), mpg (\"32.9\", \"34.7\", \"29\"), id (215, 322, 131), year (1977, 1970, 1980), cylinders (4, 5, 5), weight (2875, 2051, 2472), horsepower (\"71\", \"112\", \"150\"), accelerate (12.9, 16.1, 15.5) | countries : continent (1, 5, 4), countryname (\"egypt\", \"russia\", \"korea\"), countryid (13, 7, 15) | continents : contid (5, 4, 4), continent (\"australia\", \"australia\", \"australia\") | car_names : makeid (244, 295, 182), make (\"volkswagen rabbit custom\", \"datsun 200-sx\", \"ford granada gl\"), model (\"opel\", \"volvo\", \"chrysler\")", + "schema_without_content": "vehicle_models : model , maker , modelid | car_models : model , maker , modelid | car_makers : id , fullname , maker , country | cars_data : edispl , mpg , id , year , cylinders , weight , horsepower , accelerate | countries : continent , countryname , countryid | continents : contid , continent | car_names : makeid , make , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by": "car_makers.FullName" + } + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "car_makers : fullname (\"Nissan Motors\", \"Peugeaut\", \"Saab\"), id (11, 15, 1), country (\"4\", \"3\", \"5\"), maker (\"daimler benz\", \"volkswagen\", \"triumph\") | cars_data : cylinders (5, 5, 4), edispl (260.0, 90.0, 183.0), id (239, 331, 33), horsepower (\"175\", \"52\", \"103\"), accelerate (20.1, 19.9, 15.5), mpg (\"25.1\", \"33.7\", \"32.2\"), weight (2070, 3445, 4335), year (1982, 1978, 1979) | continents : contid (1, 3, 2), continent (\"america\", \"america\", \"africa\") | car_models : model (\"plymouth\", \" volkswagen\", \"datsun\"), makeid (360, 57, 119), make (\"plymouth reliant\", \"chevrolet vega (sw)\", \"plymouth horizon miser\") | vehicle_names : model (\"plymouth\", \" volkswagen\", \"datsun\"), makeid (360, 57, 119), make (\"plymouth reliant\", \"chevrolet vega (sw)\", \"plymouth horizon miser\") | model_list : modelid (25, 14, 10), maker (5, 3, 5), model (\"hi\", \"volvo\", \"renault\") | countries : countryid (4, 8, 15), countryname (\"usa\", \"egypt\", \"new zealand\"), continent (5, 5, 3)", + "schema_without_content": "car_makers : fullname , id , country , maker | cars_data : cylinders , edispl , id , horsepower , accelerate , mpg , weight , year | continents : contid , continent | car_models : model , makeid , make \", \"plymouth horizon miser\" | vehicle_names : model , makeid , make \", \"plymouth horizon miser\" | model_list : modelid , maker , model | countries : countryid , countryname , continent", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by": "car_makers.FullName" + } + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "car_names : makeid (182, 110, 314), make (\"hi 1200d\", \"mazda rx-7 gs\", \"pontiac grand prix\"), model (\"capri\", \"honda\", \"saab\") | countries : countryname (\"new zealand\", \"egypt\", \"korea\"), continent (4, 3, 4), countryid (12, 6, 4) | car_makers : fullname (\"Chrysler\", \"Volkswagen\", \"Subaru\"), country (\"6\", \"2\", \"8\"), id (6, 5, 6), maker (\"gm\", \"gm\", \"daimler benz\") | model_list : model (\"amc\", \"mercedes\", \"amc\"), maker (9, 12, 23), modelid (36, 10, 16) | continents : contid (3, 2, 4), continent (\"europe\", \"asia\", \"asia\") | auto_data : cylinders (5, 8, 8), horsepower (\"135\", \"208\", \"105\"), weight (2910, 4363, 3535), year (1973, 1978, 1980), edispl (71.0, 383.0, 105.0), id (148, 249, 308), mpg (\"33.8\", \"15.5\", \"37.3\"), accelerate (18.8, 16.7, 20.1) | vehicle_data : cylinders (5, 8, 8), horsepower (\"135\", \"208\", \"105\"), weight (2910, 4363, 3535), year (1973, 1978, 1980), edispl (71.0, 383.0, 105.0), id (148, 249, 308), mpg (\"33.8\", \"15.5\", \"37.3\"), accelerate (18.8, 16.7, 20.1)", + "schema_without_content": "car_names : makeid , make , model | countries : countryname , continent , countryid | car_makers : fullname , country , id , maker | model_list : model , maker , modelid | continents : contid , continent | auto_data : cylinders , horsepower , weight , year , edispl , id , mpg , accelerate | vehicle_data : cylinders , horsepower , weight , year , edispl , id , mpg , accelerate", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by": "car_makers.FullName" + } + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not #built by the ford motor company# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "auto_brands : id (8, 7, 13), fullname (\"Peugeaut\", \"Saab\", \"Volvo\"), maker (\"mazda\", \"peugeaut\", \"bmw\"), country (\"2\", \"3\", \"3\") | model_list : modelid (1, 15, 8), model (\"volvo\", \"hyundai\", \"cadillac\"), maker (4, 8, 6) | countries : countryid (8, 12, 3), continent (5, 1, 3), countryname (\"australia\", \"mexico\", \"germany\") | continents : contid (1, 5, 4), continent (\"america\", \"asia\", \"africa\") | cars_data : cylinders (4, 4, 3), year (1978, 1979, 1977), id (347, 33, 309), accelerate (13.9, 17.5, 17.2), mpg (\"32.7\", \"37.2\", \"34.7\"), horsepower (\"85\", \"230\", \"81\"), weight (2085, 3158, 1836), edispl (85.0, 383.0, 390.0) | car_names : make (\"volkswagen jetta\", \"ford galaxie 500\", \"renault 5 gtl\"), makeid (389, 326, 323), model (\"amc\", \"opel\", \"citroen\") | manufacturers : id (8, 7, 13), fullname (\"Peugeaut\", \"Saab\", \"Volvo\"), maker (\"mazda\", \"peugeaut\", \"bmw\"), country (\"2\", \"3\", \"3\")", + "schema_without_content": "auto_brands : id , fullname , maker , country | model_list : modelid , model , maker | countries : countryid , continent , countryname | continents : contid , continent | cars_data : cylinders , year , id , accelerate , mpg , horsepower , weight , edispl | car_names : make , makeid , model | manufacturers : id , fullname , maker , country", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "different models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by the Ford Motor Company": "car_makers.FullName" + } + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not #built by the ford motor company# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "car_models : model (\"hi\", \"renault\", \"cadillac\"), maker (4, 11, 8), modelid (16, 36, 23) | car_names : make (\"peugeot 504\", \"saab 99gle\", \"ford mustang boss 302\"), model (\"audi\", \"triumph\", \"mazda\"), makeid (54, 386, 82) | vehicle_models : model (\"hi\", \"renault\", \"cadillac\"), maker (4, 11, 8), modelid (16, 36, 23) | continents : contid (4, 3, 1), continent (\"america\", \"africa\", \"asia\") | cars_data : cylinders (3, 8, 4), accelerate (12.0, 12.6, 21.5), mpg (\"29.5\", \"27.2\", \"18.6\"), year (1974, 1974, 1977), weight (3425, 3520, 3365), id (279, 349, 308), horsepower (\"61\", \"120\", \"91\"), edispl (133.0, 250.0, 83.0) | countries : countryname (\"egypt\", \"mexico\", \"japan\"), countryid (14, 8, 11), continent (2, 1, 1) | car_makers : country (\"6\", \"1\", \"7\"), fullname (\"Hyundai\", \"Daimler Benz\", \"Peugeaut\"), id (2, 22, 21), maker (\"opel\", \"bmw\", \"gm\")", + "schema_without_content": "car_models : model , maker , modelid | car_names : make , model , makeid | vehicle_models : model , maker , modelid | continents : contid , continent | cars_data : cylinders , accelerate , mpg , year , weight , id , horsepower , edispl | countries : countryname , countryid , continent | car_makers : country , fullname , id , maker", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "different models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by the Ford Motor Company": "car_makers.FullName" + } + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not #built by the ford motor company# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "car_models : model (\"fiat\", \"pontiac\", \"audi\"), make (\"chevrolet chevelle malibu classic\", \"dodge colt (sw)\", \"amc rebel sst (sw)\"), makeid (52, 211, 190) | countries : countryid (12, 2, 13), continent (5, 5, 2), countryname (\"korea\", \"mexico\", \"russia\") | continents : continent (\"europe\", \"america\", \"europe\"), contid (1, 4, 4) | model_list : maker (5, 11, 23), modelid (2, 34, 2), model (\"mazda\", \"chrysler\", \"jeep\") | car_makers : id (2, 11, 15), fullname (\"General Motors\", \"Nissan Motors\", \"Peugeaut\"), country (\"6\", \"1\", \"4\"), maker (\"subaru\", \"chrysler\", \"daimler benz\") | vehicle_names : model (\"fiat\", \"pontiac\", \"audi\"), make (\"chevrolet chevelle malibu classic\", \"dodge colt (sw)\", \"amc rebel sst (sw)\"), makeid (52, 211, 190) | cars_data : id (189, 363, 126), weight (3730, 2300, 2582), year (1977, 1979, 1974), mpg (\"23.9\", \"46.6\", \"36.4\"), accelerate (24.8, 11.0, 16.5), horsepower (\"90\", \"62\", \"153\"), edispl (105.0, 145.0, 250.0), cylinders (3, 5, 3)", + "schema_without_content": "car_models : model , make \", \"amc rebel sst \", makeid | countries : countryid , continent , countryname | continents : continent , contid | model_list : maker , modelid , model | car_makers : id , fullname , country , maker | vehicle_names : model , make \", \"amc rebel sst \", makeid | cars_data : id , weight , year , mpg , accelerate , horsepower , edispl , cylinders", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "different models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by the Ford Motor Company": "car_makers.FullName" + } + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not #built by the ford motor company# ?", + "db_id": "car_1", + "orig_query": "select distinct t1.model from model_list as t1 join car_names as t2 on t1.model = t2.model join cars_data as t3 on t2.makeid = t3.id join car_makers as t4 on t1.maker = t4.id where t3.weight < 3500 and t4.fullname != 'Ford Motor Company'", + "schema_with_content": "countries : continent (3, 4, 4), countryid (13, 13, 10), countryname (\"sweden\", \"germany\", \"usa\") | auto_data : year (1976, 1977, 1975), accelerate (16.8, 13.4, 19.2), id (331, 5, 119), edispl (100.0, 119.0, 90.0), weight (4615, 1978, 2420), mpg (\"39.1\", \"16.9\", \"37\"), horsepower (\"65\", \"132\", \"135\"), cylinders (8, 5, 4) | continents : continent (\"america\", \"africa\", \"america\"), contid (3, 1, 5) | car_names : make (\"amc matador\", \"honda civic (auto)\", \"ford pinto runabout\"), makeid (244, 243, 191), model (\"mercedes-benz\", \"subaru\", \"chrysler\") | car_makers : country (\"4\", \"6\", \"1\"), fullname (\"Nissan Motors\", \"Kia Motors\", \"BMW\"), maker (\"hyundai\", \"fiat\", \"amc\"), id (13, 18, 23) | vehicle_data : year (1976, 1977, 1975), accelerate (16.8, 13.4, 19.2), id (331, 5, 119), edispl (100.0, 119.0, 90.0), weight (4615, 1978, 2420), mpg (\"39.1\", \"16.9\", \"37\"), horsepower (\"65\", \"132\", \"135\"), cylinders (8, 5, 4) | model_list : modelid (29, 20, 33), model (\"opel\", \"scion\", \"saab\"), maker (18, 23, 16)", + "schema_without_content": "countries : continent , countryid , countryname | auto_data : year , accelerate , id , edispl , weight , mpg , horsepower , cylinders | continents : continent , contid | car_names : make \", \"ford pinto runabout\", makeid , model | car_makers : country , fullname , maker , id | vehicle_data : year , accelerate , id , edispl , weight , mpg , horsepower , cylinders | model_list : modelid , model , maker", + "extra_map": null, + "extra_table_map": { + "cars_data": [ + "vehicle_data", + "auto_data" + ] + }, + "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_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "column_linking_gt": { + "different models": "model_list.Model", + "lighter than 3500": "cars_data.Weight", + "built by the Ford Motor Company": "car_makers.FullName" + } + }, + { + "question": "what are the #name of the countries# where there is not a single #car maker# ?", + "db_id": "car_1", + "orig_query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", + "schema_with_content": "car_names : makeid (62, 14, 315), make (\"pontiac astro\", \"chevrolet vega (sw)\", \"pontiac sunbird coupe\"), model (\"audi\", \"subaru\", \"bmw\") | cars_data : cylinders (6, 3, 3), mpg (\"16.9\", \"26.6\", \"23.5\"), weight (1834, 3761, 4080), id (315, 353, 190), edispl (110.0, 232.0, 171.0), horsepower (\"225\", \"148\", \"160\"), accelerate (18.1, 12.0, 12.9), year (1981, 1976, 1982) | continents : contid (2, 5, 5), continent (\"europe\", \"europe\", \"asia\") | car_makers : fullname (\"Fiat\", \"Fiat\", \"Opel\"), country (\"6\", \"1\", \"1\"), maker (\"opel\", \"fiat\", \"renault\"), id (20, 14, 1) | nation : countryname (\"france\", \"egypt\", \"new zealand\"), continent (4, 1, 4), countryid (5, 6, 5) | model_list : model (\"volkswagen\", \"subaru\", \"plymouth\"), maker (5, 1, 17), modelid (3, 36, 35) | state : countryname (\"france\", \"egypt\", \"new zealand\"), continent (4, 1, 4), countryid (5, 6, 5)", + "schema_without_content": "car_names : makeid , make \", \"pontiac sunbird coupe\", model | cars_data : cylinders , mpg , weight , id , edispl , horsepower , accelerate , year | continents : contid , continent | car_makers : fullname , country , maker , id | nation : countryname , continent , countryid | model_list : model , maker , modelid | state : countryname , continent , countryid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "name of the countries": "countries.CountryName", + "car maker": "car_makers" + } + }, + { + "question": "what are the #name of the countries# where there is not a single #car maker# ?", + "db_id": "car_1", + "orig_query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", + "schema_with_content": "continents : contid (1, 5, 4), continent (\"europe\", \"asia\", \"africa\") | car_names : make (\"plymouth sapporo\", \"buick estate wagon (sw)\", \"toyota corolla liftback\"), makeid (377, 321, 23), model (\"ford\", \"dodge\", \"plymouth\") | countries : continent (3, 2, 1), countryid (8, 9, 12), countryname (\"italy\", \"australia\", \"nigeria\") | manufacturers : id (18, 15, 21), fullname (\"Mazda\", \"Saab\", \"Triumph\"), country (\"4\", \"1\", \"6\"), maker (\"saab\", \"amc\", \"triumph\") | auto_brands : id (18, 15, 21), fullname (\"Mazda\", \"Saab\", \"Triumph\"), country (\"4\", \"1\", \"6\"), maker (\"saab\", \"amc\", \"triumph\") | cars_data : horsepower (\"85\", \"102\", \"130\"), accelerate (15.5, 16.4, 11.6), year (1973, 1975, 1974), weight (2379, 3630, 4295), mpg (\"20.3\", \"25.1\", \"21.5\"), id (71, 376, 179), cylinders (3, 5, 3), edispl (112.0, 199.0, 351.0) | model_list : model (\"amc\", \"subaru\", \"volvo\"), maker (4, 11, 6), modelid (10, 2, 4)", + "schema_without_content": "continents : contid , continent | car_names : make \", \"toyota corolla liftback\", makeid , model | countries : continent , countryid , countryname | manufacturers : id , fullname , country , maker | auto_brands : id , fullname , country , maker | cars_data : horsepower , accelerate , year , weight , mpg , id , cylinders , edispl | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the countries": "countries.CountryName", + "car maker": "car_makers" + } + }, + { + "question": "what are the #names of the countries# with no #car makers# ?", + "db_id": "car_1", + "orig_query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", + "schema_with_content": "nation : countryname (\"egypt\", \"france\", \"russia\"), countryid (12, 8, 6), continent (3, 3, 3) | model_list : model (\"mercury\", \"peugeot\", \"toyota\"), maker (21, 21, 20), modelid (27, 24, 14) | cars_data : id (203, 27, 369), weight (2565, 2310, 2335), edispl (104.0, 262.0, 113.0), year (1970, 1977, 1980), accelerate (15.7, 23.5, 17.1), mpg (\"31.9\", \"28.4\", \"30\"), cylinders (5, 6, 3), horsepower (\"149\", \"148\", \"133\") | car_names : make (\"fiat x1.9\", \"amc ambassador sst\", \"ford ltd\"), makeid (182, 22, 347), model (\"citroen\", \"volvo\", \"buick\") | continents : contid (5, 2, 1), continent (\"america\", \"asia\", \"africa\") | car_makers : id (17, 23, 9), maker (\"volvo\", \"bmw\", \"subaru\"), country (\"6\", \"5\", \"3\"), fullname (\"Chrysler\", \"Citroen\", \"Kia Motors\") | state : countryname (\"egypt\", \"france\", \"russia\"), countryid (12, 8, 6), continent (3, 3, 3)", + "schema_without_content": "nation : countryname , countryid , continent | model_list : model , maker , modelid | cars_data : id , weight , edispl , year , accelerate , mpg , cylinders , horsepower | car_names : make , makeid , model | continents : contid , continent | car_makers : id , maker , country , fullname | state : countryname , countryid , continent", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "names of the countries": "countries.CountryName", + "car makers": "car_makers" + } + }, + { + "question": "what are the #names of the countries# with no #car makers# ?", + "db_id": "car_1", + "orig_query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", + "schema_with_content": "manufacturers : maker (\"volvo\", \"fiat\", \"amc\"), id (12, 22, 13), country (\"1\", \"2\", \"4\"), fullname (\"Volvo\", \"Triumph\", \"Daimler Benz\") | car_names : model (\"toyota\", \"mercury\", \"toyota\"), make (\"volkswagen type 3\", \"peugeot 504 (sw)\", \"amc matador\"), makeid (218, 304, 109) | cars_data : mpg (\"33\", \"17.6\", \"31.3\"), weight (1940, 3955, 1925), edispl (83.0, 302.0, 200.0), accelerate (16.7, 20.7, 13.5), id (119, 349, 90), year (1977, 1975, 1971), horsepower (\"87\", \"58\", \"133\"), cylinders (6, 8, 4) | auto_brands : maker (\"volvo\", \"fiat\", \"amc\"), id (12, 22, 13), country (\"1\", \"2\", \"4\"), fullname (\"Volvo\", \"Triumph\", \"Daimler Benz\") | countries : countryname (\"mexico\", \"usa\", \"russia\"), continent (2, 1, 5), countryid (4, 7, 13) | model_list : maker (20, 11, 20), modelid (17, 30, 19), model (\"toyota\", \"volvo\", \"ford\") | continents : contid (5, 5, 4), continent (\"africa\", \"africa\", \"australia\")", + "schema_without_content": "manufacturers : maker , id , country , fullname | car_names : model , make \", \"amc matador\", makeid | cars_data : mpg , weight , edispl , accelerate , id , year , horsepower , cylinders | auto_brands : maker , id , country , fullname | countries : countryname , continent , countryid | model_list : maker , modelid , model | continents : contid , continent", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the countries": "countries.CountryName", + "car makers": "car_makers" + } + }, + { + "question": "what are the #ids# and #makers of all car makers# that produce at least 2 #models# and make more than 3 #cars# ?", + "db_id": "car_1", + "orig_query": "select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3", + "schema_with_content": "car_names : model (\"volkswagen\", \"nissan\", \"hi\"), makeid (253, 82, 378), make (\"volkswagen rabbit custom diesel\", \"amc concord\", \"subaru\") | countries : continent (1, 4, 2), countryid (13, 15, 14), countryname (\"new zealand\", \"mexico\", \"usa\") | continents : contid (3, 1, 5), continent (\"asia\", \"america\", \"australia\") | cars_data : year (1970, 1976, 1982), cylinders (4, 8, 4), edispl (454.0, 76.0, 96.0), mpg (\"21.1\", \"35.1\", \"25.8\"), id (79, 373, 171), accelerate (17.7, 12.8, 13.4), weight (3830, 3210, 3609), horsepower (\"92\", \"48\", \"68\") | model_list : model (\"scion\", \"hyundai\", \"saab\"), modelid (2, 3, 10), maker (15, 22, 13) | auto_brands : id (5, 5, 16), maker (\"volkswagen\", \"honda\", \"subaru\"), fullname (\"Nissan Motors\", \"American Motor Company\", \"BMW\"), country (\"2\", \"1\", \"2\") | manufacturers : id (5, 5, 16), maker (\"volkswagen\", \"honda\", \"subaru\"), fullname (\"Nissan Motors\", \"American Motor Company\", \"BMW\"), country (\"2\", \"1\", \"2\")", + "schema_without_content": "car_names : model , makeid , make | countries : continent , countryid , countryname | continents : contid , continent | cars_data : year , cylinders , edispl , mpg , id , accelerate , weight , horsepower | model_list : model , modelid , maker | auto_brands : id , maker , fullname , country | manufacturers : id , maker , fullname , country", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "car_makers.Id", + "makers of all car makers": "car_makers.Maker", + "models": "model_list.Model", + "cars": "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_id": "car_1", + "orig_query": "select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3", + "schema_with_content": "cars_data : accelerate (11.4, 13.0, 19.9), weight (1850, 1995, 2725), mpg (\"22.4\", \"30.5\", \"29.5\"), id (173, 161, 390), year (1980, 1978, 1977), cylinders (8, 3, 6), horsepower (\"68\", \"54\", \"148\"), edispl (96.0, 318.0, 181.0) | car_names : make (\"pontiac firebird\", \"toyota corona\", \"vw rabbit custom\"), model (\"triumph\", \"honda\", \"citroen\"), makeid (376, 148, 185) | car_makers : id (17, 9, 14), country (\"8\", \"2\", \"1\"), maker (\"fiat\", \"daimler benz\", \"daimler benz\"), fullname (\"Subaru\", \"Ford Motor Company\", \"Nissan Motors\") | continents : continent (\"america\", \"australia\", \"asia\"), contid (4, 4, 1) | vehicle_models : modelid (9, 23, 1), maker (19, 16, 10), model (\"jeep\", \"audi\", \"saab\") | countries : countryid (2, 15, 12), continent (5, 1, 4), countryname (\"sweden\", \"italy\", \"australia\") | car_models : modelid (9, 23, 1), maker (19, 16, 10), model (\"jeep\", \"audi\", \"saab\")", + "schema_without_content": "cars_data : accelerate , weight , mpg , id , year , cylinders , horsepower , edispl | car_names : make , model , makeid | car_makers : id , country , maker , fullname | continents : continent , contid | vehicle_models : modelid , maker , model | countries : countryid , continent , countryname | car_models : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "car_makers.Id", + "makers of all car makers": "car_makers.Maker", + "models": "model_list.Model", + "cars": "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_id": "car_1", + "orig_query": "select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3", + "schema_with_content": "cars_data : accelerate (16.1, 12.9, 17.6), year (1974, 1970, 1973), edispl (267.0, 104.0, 455.0), cylinders (8, 3, 3), weight (2595, 3155, 2226), id (201, 129, 338), horsepower (\"88\", \"122\", \"91\"), mpg (\"35\", \"33\", \"22.3\") | vehicle_names : model (\"plymouth\", \"mercury\", \"volkswagen\"), make (\"mazda glc custom l\", \"amc matador\", \"subaru dl\"), makeid (2, 339, 76) | continents : contid (4, 5, 2), continent (\"asia\", \"africa\", \"africa\") | car_makers : maker (\"daimler benz\", \"fiat\", \"triumph\"), fullname (\"Citroen\", \"Mazda\", \"Chrysler\"), country (\"3\", \"5\", \"7\"), id (2, 7, 13) | car_models : model (\"plymouth\", \"mercury\", \"volkswagen\"), make (\"mazda glc custom l\", \"amc matador\", \"subaru dl\"), makeid (2, 339, 76) | countries : countryid (10, 4, 15), countryname (\"korea\", \"egypt\", \"brazil\"), continent (2, 4, 2) | model_list : model (\"opel\", \"volkswagen\", \"cadillac\"), maker (21, 12, 13), modelid (29, 28, 34)", + "schema_without_content": "cars_data : accelerate , year , edispl , cylinders , weight , id , horsepower , mpg | vehicle_names : model , make , makeid | continents : contid , continent | car_makers : maker , fullname , country , id | car_models : model , make , makeid | countries : countryid , countryname , continent | model_list : model , maker , modelid", + "extra_map": null, + "extra_table_map": { + "car_names": [ + "car_models", + "vehicle_names" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "column_linking_gt": { + "ids": "car_makers.Id", + "makers of all car makers": "car_makers.Maker", + "models": "model_list.Model", + "cars": "car_names.Make" + } + }, + { + "question": "what are the #id# and #names of the countries# which have more than 3 #car makers# or produce the 'fiat' #model# ?", + "db_id": "car_1", + "orig_query": "select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat'", + "schema_with_content": "model_list : model (\"cadillac\", \"scion\", \"ford\"), maker (22, 8, 18), modelid (4, 32, 22) | car_names : make (\"chrysler cordoba\", \"plymouth reliant\", \"mazda glc custom\"), model (\"bmw\", \"renault\", \"mercedes\"), makeid (198, 282, 207) | state : countryid (12, 4, 3), continent (4, 4, 1), countryname (\"sweden\", \"brazil\", \"australia\") | car_makers : id (9, 18, 4), maker (\"triumph\", \"toyota\", \"nissan\"), fullname (\"Citroen\", \"Triumph\", \"Daimler Benz\"), country (\"5\", \"5\", \"2\") | nation : countryid (12, 4, 3), continent (4, 4, 1), countryname (\"sweden\", \"brazil\", \"australia\") | cars_data : horsepower (\"108\", \"145\", \"170\"), id (13, 213, 250), accelerate (16.9, 19.0, 14.4), cylinders (6, 5, 3), weight (3693, 2164, 3250), mpg (\"41.5\", \"28.4\", \"23.8\"), edispl (130.0, 130.0, 122.0), year (1979, 1980, 1982) | continents : continent (\"asia\", \"africa\", \"africa\"), contid (4, 2, 2)", + "schema_without_content": "model_list : model , maker , modelid | car_names : make , model , makeid | state : countryid , continent , countryname | car_makers : id , maker , fullname , country | nation : countryid , continent , countryname | cars_data : horsepower , id , accelerate , cylinders , weight , mpg , edispl , year | continents : continent , contid", + "extra_map": null, + "extra_table_map": { + "countries": [ + "nation", + "state" + ] + }, + "db_schema": { + "continents": [ + "contid", + "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" + ] + }, + "column_linking_gt": { + "id": "countries.CountryId", + "names of the countries": "countries.CountryName", + "car makers": "car_makers", + "model": "model_list.Model" + } + }, + { + "question": "what are the #id# and #names of the countries# which have more than 3 #car makers# or produce the 'fiat' #model# ?", + "db_id": "car_1", + "orig_query": "select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat'", + "schema_with_content": "continents : contid (3, 5, 2), continent (\"america\", \"africa\", \"asia\") | manufacturers : country (\"3\", \"5\", \"7\"), fullname (\"Volvo\", \"BMW\", \"Daimler Benz\"), id (5, 9, 14), maker (\"volvo\", \"ford\", \"chrysler\") | auto_brands : country (\"3\", \"5\", \"7\"), fullname (\"Volvo\", \"BMW\", \"Daimler Benz\"), id (5, 9, 14), maker (\"volvo\", \"ford\", \"chrysler\") | car_names : makeid (305, 155, 192), model (\"amc\", \"renault\", \"datsun\"), make (\"chevrolet chevelle malibu classic\", \"renault 18i\", \"plymouth fury iii\") | countries : countryname (\"uk\", \"japan\", \"france\"), continent (2, 1, 2), countryid (9, 10, 1) | model_list : modelid (20, 16, 9), maker (3, 16, 21), model (\"subaru\", \"pontiac\", \"mercury\") | cars_data : edispl (80.0, 98.0, 318.0), accelerate (12.2, 15.3, 17.1), cylinders (8, 3, 6), year (1978, 1974, 1976), weight (2671, 3785, 4657), id (158, 134, 230), horsepower (\"148\", \"98\", \"133\"), mpg (\"19.2\", \"19.1\", \"32.1\")", + "schema_without_content": "continents : contid , continent | manufacturers : country , fullname , id , maker | auto_brands : country , fullname , id , maker | car_names : makeid , model , make | countries : countryname , continent , countryid | model_list : modelid , maker , model | cars_data : edispl , accelerate , cylinders , year , weight , id , horsepower , mpg", + "extra_map": null, + "extra_table_map": { + "car_makers": [ + "manufacturers", + "auto_brands" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "countries.CountryId", + "names of the countries": "countries.CountryName", + "car makers": "car_makers", + "model": "model_list.Model" + } + }, + { + "question": "what are the #id# and #names of the countries# which have more than 3 #car makers# or produce the 'fiat' #model# ?", + "db_id": "car_1", + "orig_query": "select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid, t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat'", + "schema_with_content": "car_names : model (\"capri\", \"hi\", \"hi\"), makeid (199, 174, 197), make (\"audi 4000\", \"chevrolet nova\", \"mercedes-benz 240d\") | countries : continent (4, 1, 5), countryid (8, 3, 8), countryname (\"nigeria\", \"egypt\", \"sweden\") | continents : continent (\"america\", \"asia\", \"europe\"), contid (1, 1, 1) | car_makers : id (19, 16, 8), fullname (\"Volkswagen\", \"Ford Motor Company\", \"Renault\"), maker (\"mazda\", \"ford\", \"triumph\"), country (\"6\", \"3\", \"5\") | car_models : modelid (18, 5, 4), maker (14, 10, 11), model (\"jeep\", \"plymouth\", \"mercedes-benz\") | cars_data : year (1982, 1977, 1974), cylinders (8, 6, 4), accelerate (15.4, 18.2, 20.4), weight (3940, 2815, 3021), horsepower (\"98\", \"102\", \"152\"), mpg (\"15.5\", \"36.4\", \"16.9\"), edispl (163.0, 383.0, 68.0), id (290, 219, 352) | vehicle_models : modelid (18, 5, 4), maker (14, 10, 11), model (\"jeep\", \"plymouth\", \"mercedes-benz\")", + "schema_without_content": "car_names : model , makeid , make | countries : continent , countryid , countryname | continents : continent , contid | car_makers : id , fullname , maker , country | car_models : modelid , maker , model | cars_data : year , cylinders , accelerate , weight , horsepower , mpg , edispl , id | vehicle_models : modelid , maker , model", + "extra_map": null, + "extra_table_map": { + "model_list": [ + "car_models", + "vehicle_models" + ] + }, + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "countries.CountryId", + "names of the countries": "countries.CountryName", + "car makers": "car_makers", + "model": "model_list.Model" + } + }, + { + "question": "which #country# does #airline# \"jetblue airways\" belong to?", + "db_id": "flight_2", + "orig_query": "select country from airlines where airline = \"JetBlue Airways\"", + "schema_with_content": "flights : airline (1, 12, 4), destairport (\" ADR\", \" ALX\", \" ANW\"), sourceairport (\" EDF\", \" ASX\", \" ANP\"), flightno (1205, 890, 854) | carriers : country (\"USA\"), abbreviation (\"Frontier\", \"Continental\", \"Delta\"), uid (1, 3, 10), airline (\"Allegiant Air\", \"JetBlue Airways\", \"AirTran Airways\") | airports : airportcode (\"ABY\", \"ADM\", \"AHH\"), city (\"Arapahoe \", \"Alamosa \", \"Akiak \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Albany International \", \"Phillips AAF \", \"Ambler \") | aviation_companies : country (\"USA\"), abbreviation (\"Frontier\", \"Continental\", \"Delta\"), uid (1, 3, 10), airline (\"Allegiant Air\", \"JetBlue Airways\", \"AirTran Airways\")", + "schema_without_content": "flights : airline , destairport , sourceairport , flightno | carriers : country , abbreviation , uid , airline | airports : airportcode , city , countryabbrev , country , airportname | aviation_companies : country , abbreviation , uid , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "country": "airlines.Country", + "Airline": "airlines.Airline" + } + }, + { + "question": "what #country is jetblue airways# affiliated with?", + "db_id": "flight_2", + "orig_query": "select country from airlines where airline = \"JetBlue Airways\"", + "schema_with_content": "aviation_companies : country (\"USA\"), uid (11, 2, 5), airline (\"Frontier Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), abbreviation (\"JetBlue\", \"Northwest\", \"Virgin\") | carriers : country (\"USA\"), uid (11, 2, 5), airline (\"Frontier Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), abbreviation (\"JetBlue\", \"Northwest\", \"Virgin\") | flights : sourceairport (\" ALM\", \" OTS\", \" ABL\"), destairport (\" ANC\", \" ARX\", \" ALM\"), airline (1, 1, 9), flightno (782, 426, 562) | airports : countryabbrev (\"US \", \"US\"), airportcode (\"AIA\", \"AIA\", \"ARB\"), city (\"Arcata \", \"Akiak \", \"Ashland \"), country (\"United States \"), airportname (\"Aspen \", \"Aleneva \", \"Albany International \")", + "schema_without_content": "aviation_companies : country , uid , airline , abbreviation | carriers : country , uid , airline , abbreviation | flights : sourceairport , destairport , airline , flightno | airports : countryabbrev , airportcode , city , country , airportname", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "country is Jetblue Airways": "airlines.Country" + } + }, + { + "question": "what is the #abbreviation of airline# \"jetblue airways\"?", + "db_id": "flight_2", + "orig_query": "select abbreviation from airlines where airline = \"JetBlue Airways\"", + "schema_with_content": "flights : airline (1, 2, 10), destairport (\" CVO\", \" ABI\", \" AXG\"), flightno (835, 611, 824), sourceairport (\" OTS\", \" MMI\", \" ABY\") | aviation_companies : country (\"USA\"), uid (8, 11, 8), abbreviation (\"Northwest\", \"Northwest\", \"USAir\"), airline (\"AirTran Airways\", \"JetBlue Airways\", \"American Airlines\") | carriers : country (\"USA\"), uid (8, 11, 8), abbreviation (\"Northwest\", \"Northwest\", \"USAir\"), airline (\"AirTran Airways\", \"JetBlue Airways\", \"American Airlines\") | airports : countryabbrev (\"US \", \"US\"), airportname (\"Tradewind \", \"Ashland \", \"Algona \"), city (\"Alma \", \"Anchorage \", \"Akron/Canton \"), country (\"United States \"), airportcode (\"ADT\", \"ALE\", \"AMA\")", + "schema_without_content": "flights : airline , destairport , flightno , sourceairport | aviation_companies : country , uid , abbreviation , airline | carriers : country , uid , abbreviation , airline | airports : countryabbrev , airportname , city , country , airportcode", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "abbreviation of Airline": "airlines.Abbreviation" + } + }, + { + "question": "which #abbreviation# corresponds to #jetblue airways# ?", + "db_id": "flight_2", + "orig_query": "select abbreviation from airlines where airline = \"JetBlue Airways\"", + "schema_with_content": "flights : flightno (95, 561, 402), airline (1, 10, 12), destairport (\" ALX\", \" AHD\", \" TDW\"), sourceairport (\" APV\", \" AIV\", \" AEL\") | aviation_companies : abbreviation (\"JetBlue\", \"UAL\", \"Continental\"), country (\"USA\"), airline (\"Southwest Airlines\", \"Allegiant Air\", \"United Airlines\"), uid (10, 7, 9) | carriers : abbreviation (\"JetBlue\", \"UAL\", \"Continental\"), country (\"USA\"), airline (\"Southwest Airlines\", \"Allegiant Air\", \"United Airlines\"), uid (10, 7, 9) | airports : countryabbrev (\"US \", \"US\"), airportname (\"Albany International \", \"Amchitka \", \"Astoria \"), city (\"Anguilla \", \"Akiachak \", \"Amook \"), airportcode (\"ANN\", \"ALE\", \"LTS\"), country (\"United States \")", + "schema_without_content": "flights : flightno , airline , destairport , sourceairport | aviation_companies : abbreviation , country , airline , uid | carriers : abbreviation , country , airline , uid | airports : countryabbrev , airportname , city , airportcode , country", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "abbreviation": "airlines.Abbreviation", + "Jetblue Airways": "airlines.Airline" + } + }, + { + "question": "list all #airline names# and their #abbreviations in \"usa\"# .", + "db_id": "flight_2", + "orig_query": "select airline, abbreviation from airlines where country = \"USA\"", + "schema_with_content": "aviation_companies : abbreviation (\"Allegiant\", \"USAir\", \"Southwest\"), airline (\"Northwest Airlines\", \"American Airlines\", \"Northwest Airlines\"), country (\"USA\"), uid (1, 11, 10) | airports : airportcode (\"AIK\", \"ATS\", \"ANV\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Andrews \", \"Anaktuvuk \", \"Fulton International \"), city (\"Anaktuvuk \", \"Adrian \", \"Alpena \") | carriers : abbreviation (\"Allegiant\", \"USAir\", \"Southwest\"), airline (\"Northwest Airlines\", \"American Airlines\", \"Northwest Airlines\"), country (\"USA\"), uid (1, 11, 10) | flights : destairport (\" AXN\", \" ANP\", \" AXX\"), sourceairport (\" ATS\", \" AOS\", \" APN\"), flightno (1427, 1257, 390), airline (11, 1, 3)", + "schema_without_content": "aviation_companies : abbreviation , airline , country , uid | airports : airportcode , countryabbrev , country , airportname , city | carriers : abbreviation , airline , country , uid | flights : destairport , sourceairport , flightno , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline names": "airlines.Airline", + "abbreviations in \"USA\"": "airlines.Abbreviation" + } + }, + { + "question": "what are the #airline names# and #abbreviations for airlines in the usa# ?", + "db_id": "flight_2", + "orig_query": "select airline, abbreviation from airlines where country = \"USA\"", + "schema_with_content": "airports : airportcode (\"APV\", \"AAF\", \"AHT\"), country (\"United States \"), city (\"Ada \", \"Alitak \", \"Ashley \"), airportname (\"Rick Husband Amarillo International \", \"Alpine \", \"Ada \"), countryabbrev (\"US \", \"US\") | carriers : uid (4, 7, 11), country (\"USA\"), airline (\"Delta Airlines\", \"Continental Airlines\", \"United Airlines\"), abbreviation (\"UAL\", \"Continental\", \"USAir\") | flights : flightno (787, 1191, 898), sourceairport (\" ATW\", \" ALM\", \" AXN\"), destairport (\" AQY\", \" MMI\", \" AED\"), airline (6, 12, 10) | aviation_companies : uid (4, 7, 11), country (\"USA\"), airline (\"Delta Airlines\", \"Continental Airlines\", \"United Airlines\"), abbreviation (\"UAL\", \"Continental\", \"USAir\")", + "schema_without_content": "airports : airportcode , country , city , airportname , countryabbrev | carriers : uid , country , airline , abbreviation | flights : flightno , sourceairport , destairport , airline | aviation_companies : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline names": "airlines.Airline", + "abbreviations for airlines in the USA": "airlines.Abbreviation" + } + }, + { + "question": "list the #airport code# and #name in the city# of anthony.", + "db_id": "flight_2", + "orig_query": "select airportcode, airportname from airports where city = \"Anthony\"", + "schema_with_content": "flights : destairport (\" ALN\", \" AKK\", \" AKC\"), sourceairport (\" ANA\", \" OTS\", \" ALB\"), flightno (1274, 504, 490), airline (10, 6, 3) | departure_points : country (\"United States \"), airportcode (\"KKI\", \"ABL\", \"ALS\"), countryabbrev (\"US \", \"US\"), airportname (\"Outagamie County \", \"Albany \", \"Spb \"), city (\"Antlers \", \"Angola \", \"Albany \") | airlines : abbreviation (\"USAir\", \"Frontier\", \"Frontier\"), country (\"USA\"), uid (4, 2, 9), airline (\"Allegiant Air\", \"American Airlines\", \"Northwest Airlines\") | arrival_points : country (\"United States \"), airportcode (\"KKI\", \"ABL\", \"ALS\"), countryabbrev (\"US \", \"US\"), airportname (\"Outagamie County \", \"Albany \", \"Spb \"), city (\"Antlers \", \"Angola \", \"Albany \")", + "schema_without_content": "flights : destairport , sourceairport , flightno , airline | departure_points : country , airportcode , countryabbrev , airportname , city | airlines : abbreviation , country , uid , airline | arrival_points : country , airportcode , countryabbrev , airportname , city", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airport code": "airports.AirportCode", + "name in the city": "airports.AirportName" + } + }, + { + "question": "give the #airport code# and #airport name# corresonding to the #city# anthony.", + "db_id": "flight_2", + "orig_query": "select airportcode, airportname from airports where city = \"Anthony\"", + "schema_with_content": "departure_points : airportcode (\"AXB\", \"AKI\", \"APG\"), airportname (\"Zahns \", \"Alpine \", \"Colorado Plains Regional Airport \"), city (\"Akutan \", \"Alyeska \", \"Akron/Canton OH \"), country (\"United States \"), countryabbrev (\"US \", \"US\") | airlines : airline (\"AirTran Airways\", \"Delta Airlines\", \"American Airlines\"), uid (7, 4, 10), abbreviation (\"AirTran\", \"American\", \"USAir\"), country (\"USA\") | arrival_points : airportcode (\"AXB\", \"AKI\", \"APG\"), airportname (\"Zahns \", \"Alpine \", \"Colorado Plains Regional Airport \"), city (\"Akutan \", \"Alyeska \", \"Akron/Canton OH \"), country (\"United States \"), countryabbrev (\"US \", \"US\") | flights : destairport (\" NDV\", \" AKK\", \" AXS\"), sourceairport (\" EDF\", \" ADM\", \" AIB\"), airline (6, 11, 6), flightno (989, 69, 1163)", + "schema_without_content": "departure_points : airportcode , airportname , city , country , countryabbrev | airlines : airline , uid , abbreviation , country | arrival_points : airportcode , airportname , city , country , countryabbrev | flights : destairport , sourceairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airport code": "airports.AirportCode", + "airport name": "airports.AirportName", + "city": "airports.City" + } + }, + { + "question": "which #airline# has #abbreviation# 'ual'?", + "db_id": "flight_2", + "orig_query": "select airline from airlines where abbreviation = \"UAL\"", + "schema_with_content": "airports : city (\" Anniston AL \", \"Alakanuk \", \"Albert Lea \"), airportcode (\"AOS\", \"AHF\", \"APG\"), country (\"United States \"), airportname (\"Alexandria International \", \"Aleneva \", \"Esler Field \"), countryabbrev (\"US \", \"US\") | aviation_companies : country (\"USA\"), airline (\"Northwest Airlines\", \"United Airlines\", \"Allegiant Air\"), abbreviation (\"JetBlue\", \"Southwest\", \"JetBlue\"), uid (2, 12, 12) | carriers : country (\"USA\"), airline (\"Northwest Airlines\", \"United Airlines\", \"Allegiant Air\"), abbreviation (\"JetBlue\", \"Southwest\", \"JetBlue\"), uid (2, 12, 12) | flights : airline (9, 8, 3), sourceairport (\" ATO\", \" MMI\", \" ALS\"), destairport (\" ASY\", \" AST\", \" AIA\"), flightno (302, 909, 149)", + "schema_without_content": "airports : city , airportcode , country , airportname , countryabbrev | aviation_companies : country , airline , abbreviation , uid | carriers : country , airline , abbreviation , uid | flights : airline , sourceairport , destairport , flightno", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline": "airlines.Airline", + "abbreviation": "airlines.Abbreviation" + } + }, + { + "question": "give the #airline with abbreviation# 'ual'.", + "db_id": "flight_2", + "orig_query": "select airline from airlines where abbreviation = \"UAL\"", + "schema_with_content": "aviation_companies : airline (\"Virgin America\", \"American Airlines\", \"Southwest Airlines\"), uid (9, 1, 5), country (\"USA\"), abbreviation (\"Southwest\", \"USAir\", \"Virgin\") | flights : flightno (491, 1211, 264), airline (1, 11, 9), destairport (\" NDV\", \" AHN\", \" VJI\"), sourceairport (\" AKI\", \" NAB\", \" ABQ\") | airports : airportcode (\"AXS\", \"WKK\", \"AID\"), countryabbrev (\"US \", \"US\"), airportname (\"Alpena County Regional \", \"Adak Island Ns \", \"Ames \"), city (\"Adak Island \", \"Athens \", \"Aspen \"), country (\"United States \") | carriers : airline (\"Virgin America\", \"American Airlines\", \"Southwest Airlines\"), uid (9, 1, 5), country (\"USA\"), abbreviation (\"Southwest\", \"USAir\", \"Virgin\")", + "schema_without_content": "aviation_companies : airline , uid , country , abbreviation | flights : flightno , airline , destairport , sourceairport | airports : airportcode , countryabbrev , airportname , city , country | carriers : airline , uid , country , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline with abbreviation": "airlines.Airline" + } + }, + { + "question": "how many #airlines# are #from usa# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines where country = \"USA\"", + "schema_with_content": "flights : airline (1, 8, 7), destairport (\" APG\", \" AHF\", \" ANI\"), flightno (403, 1010, 88), sourceairport (\" AKK\", \" ABR\", \" TDW\") | airports : airportcode (\"APN\", \"RLI\", \"AOS\"), countryabbrev (\"US \", \"US\"), city (\"Alton \", \"Amityville \", \"Albuquerque \"), airportname (\"Alitak SPB \", \"Anniston Metropolitan \", \"Anita Bay \"), country (\"United States \") | carriers : country (\"USA\"), airline (\"Frontier Airlines\", \"Continental Airlines\", \"Southwest Airlines\"), uid (5, 12, 9), abbreviation (\"Allegiant\", \"UAL\", \"AirTran\") | aviation_companies : country (\"USA\"), airline (\"Frontier Airlines\", \"Continental Airlines\", \"Southwest Airlines\"), uid (5, 12, 9), abbreviation (\"Allegiant\", \"UAL\", \"AirTran\")", + "schema_without_content": "flights : airline , destairport , flightno , sourceairport | airports : airportcode , countryabbrev , city , airportname , country | carriers : country , airline , uid , abbreviation | aviation_companies : country , airline , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines", + "from USA": "airlines.Country" + } + }, + { + "question": "return the #number of airlines in the usa# .", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines where country = \"USA\"", + "schema_with_content": "airports : city (\"Alakanuk \", \"Aspen \", \"Anacostia \"), countryabbrev (\"US \", \"US\"), airportcode (\"AHH\", \"AFO\", \"ANQ\"), airportname (\"Anthony \", \"Ashley \", \"Antlers \"), country (\"United States \") | carriers : airline (\"Northwest Airlines\", \"AirTran Airways\", \"JetBlue Airways\"), country (\"USA\"), uid (6, 12, 9), abbreviation (\"Northwest\", \"Virgin\", \"Allegiant\") | flights : sourceairport (\" AET\", \" ADR\", \" VJI\"), destairport (\" ALZ\", \" ALZ\", \" APV\"), flightno (980, 253, 730), airline (12, 1, 12) | aviation_companies : airline (\"Northwest Airlines\", \"AirTran Airways\", \"JetBlue Airways\"), country (\"USA\"), uid (6, 12, 9), abbreviation (\"Northwest\", \"Virgin\", \"Allegiant\")", + "schema_without_content": "airports : city , countryabbrev , airportcode , airportname , country | carriers : airline , country , uid , abbreviation | flights : sourceairport , destairport , flightno , airline | aviation_companies : airline , country , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "number of airlines in the USA": "airlines.uid" + } + }, + { + "question": "which #city# and #country is the alton airport# at?", + "db_id": "flight_2", + "orig_query": "select city, country from airports where airportname = \"Alton\"", + "schema_with_content": "arrival_points : countryabbrev (\"US \", \"US\"), airportname (\"Aspen \", \"Alliance \", \"Outagamie County \"), city (\"Angel Fire \", \"Alitak \", \"Amchitka \"), country (\"United States \"), airportcode (\"ABI\", \"ATE\", \"AHD\") | departure_points : countryabbrev (\"US \", \"US\"), airportname (\"Aspen \", \"Alliance \", \"Outagamie County \"), city (\"Angel Fire \", \"Alitak \", \"Amchitka \"), country (\"United States \"), airportcode (\"ABI\", \"ATE\", \"AHD\") | flights : destairport (\" AEX\", \" AXS\", \" AKK\"), sourceairport (\" AGN\", \" AFO\", \" ADT\"), flightno (1081, 1080, 547), airline (10, 1, 5) | airlines : country (\"USA\"), abbreviation (\"Delta\", \"Allegiant\", \"Virgin\"), uid (3, 7, 9), airline (\"Virgin America\", \"Frontier Airlines\", \"Northwest Airlines\")", + "schema_without_content": "arrival_points : countryabbrev , airportname , city , country , airportcode | departure_points : countryabbrev , airportname , city , country , airportcode | flights : destairport , sourceairport , flightno , airline | airlines : country , abbreviation , uid , airline", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "country is the Alton airport": "airports.Country" + } + }, + { + "question": "give the #city# and #country for the alton airport# .", + "db_id": "flight_2", + "orig_query": "select city, country from airports where airportname = \"Alton\"", + "schema_with_content": "flights : airline (9, 2, 12), sourceairport (\" AEX\", \" ANI\", \" ABL\"), destairport (\" APG\", \" ABL\", \" AXN\"), flightno (369, 681, 302) | departure_points : countryabbrev (\"US \", \"US\"), airportcode (\"ANB\", \"ALZ\", \"AQY\"), airportname (\"Alton \", \"Athens \", \"Alpine \"), country (\"United States \"), city (\"Amery \", \"Annapolis \", \"Akutan \") | airlines : country (\"USA\"), uid (3, 11, 5), airline (\"Continental Airlines\", \"Allegiant Air\", \"Virgin America\"), abbreviation (\"Allegiant\", \"Allegiant\", \"Frontier\") | arrival_points : countryabbrev (\"US \", \"US\"), airportcode (\"ANB\", \"ALZ\", \"AQY\"), airportname (\"Alton \", \"Athens \", \"Alpine \"), country (\"United States \"), city (\"Amery \", \"Annapolis \", \"Akutan \")", + "schema_without_content": "flights : airline , sourceairport , destairport , flightno | departure_points : countryabbrev , airportcode , airportname , country , city | airlines : country , uid , airline , abbreviation | arrival_points : countryabbrev , airportcode , airportname , country , city", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "country for the Alton airport": "airports.Country" + } + }, + { + "question": "what is the #airport name for airport 'ako'# ?", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode = \"AKO\"", + "schema_with_content": "flights : flightno (399, 1057, 591), sourceairport (\" OTS\", \" AOS\", \" AGN\"), airline (5, 9, 3), destairport (\" ALX\", \" RLI\", \" AST\") | arrival_points : country (\"United States \"), airportcode (\"ALS\", \"AET\", \"ADG\"), airportname (\"Alakanuk \", \"Albert Lea \", \"Municipal \"), city (\"Annette Island \", \"Aberdeen \", \"Aleneva \"), countryabbrev (\"US \", \"US\") | departure_points : country (\"United States \"), airportcode (\"ALS\", \"AET\", \"ADG\"), airportname (\"Alakanuk \", \"Albert Lea \", \"Municipal \"), city (\"Annette Island \", \"Aberdeen \", \"Aleneva \"), countryabbrev (\"US \", \"US\") | airlines : abbreviation (\"American\", \"UAL\", \"JetBlue\"), uid (4, 9, 5), airline (\"JetBlue Airways\", \"Frontier Airlines\", \"Southwest Airlines\"), country (\"USA\")", + "schema_without_content": "flights : flightno , sourceairport , airline , destairport | arrival_points : country , airportcode , airportname , city , countryabbrev | departure_points : country , airportcode , airportname , city , countryabbrev | airlines : abbreviation , uid , airline , country", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airport name for airport 'AKO'": "airports.AirportName" + } + }, + { + "question": "return the #name of the airport with code# 'ako'.", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode = \"AKO\"", + "schema_with_content": "arrival_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"George Downer \", \"George Downer \", \"Amook \"), airportcode (\"APG\", \"ADT\", \"AKK\"), city (\"Akutan \", \"Ada \", \"Arapahoe \") | departure_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"George Downer \", \"George Downer \", \"Amook \"), airportcode (\"APG\", \"ADT\", \"AKK\"), city (\"Akutan \", \"Ada \", \"Arapahoe \") | flights : airline (1, 1, 10), flightno (451, 827, 657), sourceairport (\" AED\", \" ALB\", \" AXB\"), destairport (\" AIK\", \" KQA\", \" AKC\") | airlines : uid (12, 10, 2), country (\"USA\"), airline (\"US Airways\", \"Allegiant Air\", \"American Airlines\"), abbreviation (\"Delta\", \"Continental\", \"Frontier\")", + "schema_without_content": "arrival_points : countryabbrev , country , airportname , airportcode , city | departure_points : countryabbrev , country , airportname , airportcode , city | flights : airline , flightno , sourceairport , destairport | airlines : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "name of the airport with code": "airports.AirportName" + } + }, + { + "question": "what are #airport names at city# 'aberdeen'?", + "db_id": "flight_2", + "orig_query": "select airportname from airports where city = \"Aberdeen\"", + "schema_with_content": "flights : destairport (\" AQY\", \" ALB\", \" HMN\"), sourceairport (\" QAW\", \" VJI\", \" APN\"), flightno (64, 1374, 133), airline (11, 2, 9) | airlines : country (\"USA\"), abbreviation (\"JetBlue\", \"Continental\", \"USAir\"), airline (\"Allegiant Air\", \"Virgin America\", \"US Airways\"), uid (3, 6, 5) | departure_points : airportcode (\"AND\", \"AGN\", \"AIB\"), airportname (\"Alton \", \"Ohio University \", \"Ardmore Municipal Arpt \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Ainsworth \", \"Anthony \", \"Akron CO \") | arrival_points : airportcode (\"AND\", \"AGN\", \"AIB\"), airportname (\"Alton \", \"Ohio University \", \"Ardmore Municipal Arpt \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Ainsworth \", \"Anthony \", \"Akron CO \")", + "schema_without_content": "flights : destairport , sourceairport , flightno , airline | airlines : country , abbreviation , airline , uid | departure_points : airportcode , airportname , countryabbrev , country , city | arrival_points : airportcode , airportname , countryabbrev , country , city", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airport names at City": "airports.AirportName" + } + }, + { + "question": "what are the #names of airports in aberdeen# ?", + "db_id": "flight_2", + "orig_query": "select airportname from airports where city = \"Aberdeen\"", + "schema_with_content": "arrival_points : countryabbrev (\"US \", \"US\"), city (\"Ambler \", \"Anvik \", \"Appleton \"), country (\"United States \"), airportcode (\"AXS\", \"ADG\", \"AIK\"), airportname (\"Alpine \", \"Alexandria Bay \", \"Allakaket \") | departure_points : countryabbrev (\"US \", \"US\"), city (\"Ambler \", \"Anvik \", \"Appleton \"), country (\"United States \"), airportcode (\"AXS\", \"ADG\", \"AIK\"), airportname (\"Alpine \", \"Alexandria Bay \", \"Allakaket \") | airlines : airline (\"Virgin America\", \"AirTran Airways\", \"American Airlines\"), abbreviation (\"Allegiant\", \"Delta\", \"Southwest\"), country (\"USA\"), uid (4, 3, 2) | flights : destairport (\" AHD\", \" LTS\", \" NDV\"), sourceairport (\" EDF\", \" EDF\", \" ANY\"), airline (8, 4, 10), flightno (278, 568, 326)", + "schema_without_content": "arrival_points : countryabbrev , city , country , airportcode , airportname | departure_points : countryabbrev , city , country , airportcode , airportname | airlines : airline , abbreviation , country , uid | flights : destairport , sourceairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "names of airports in Aberdeen": "airports.AirportName" + } + }, + { + "question": "how many #flights depart from# 'apg'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights where sourceairport = \"APG\"", + "schema_with_content": "airlines : uid (10, 10, 12), abbreviation (\"AirTran\", \"AirTran\", \"Northwest\"), airline (\"Southwest Airlines\", \"American Airlines\", \"US Airways\"), country (\"USA\") | journeys : sourceairport (\" HMN\", \" ADM\", \" WKK\"), destairport (\" HMN\", \" AYZ\", \" ARC\"), flightno (6, 1044, 18), airline (4, 6, 6) | routes : sourceairport (\" HMN\", \" ADM\", \" WKK\"), destairport (\" HMN\", \" AYZ\", \" ARC\"), flightno (6, 1044, 18), airline (4, 6, 6) | airports : city (\"Afton \", \"Alitak \", \"Ada \"), countryabbrev (\"US \", \"US\"), airportname (\"Esler Field \", \"Anacortes \", \"Alakanuk \"), airportcode (\"LTS\", \"AIK\", \"ABL\"), country (\"United States \")", + "schema_without_content": "airlines : uid , abbreviation , airline , country | journeys : sourceairport , destairport , flightno , airline | routes : sourceairport , destairport , flightno , airline | airports : city , countryabbrev , airportname , airportcode , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights depart from": "flights.SourceAirport" + } + }, + { + "question": "count the number of #flights departing from# 'apg'.", + "db_id": "flight_2", + "orig_query": "select count(*) from flights where sourceairport = \"APG\"", + "schema_with_content": "routes : sourceairport (\" AKK\", \" ARC\", \" ABR\"), destairport (\" AHT\", \" AXS\", \" APN\"), airline (10, 3, 8), flightno (7, 859, 227) | journeys : sourceairport (\" AKK\", \" ARC\", \" ABR\"), destairport (\" AHT\", \" AXS\", \" APN\"), airline (10, 3, 8), flightno (7, 859, 227) | airports : city (\"Alpine \", \"Apalachicola \", \" Ann Arbor MI \"), airportcode (\"AXS\", \"AUK\", \"ATO\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Elmendorf Afb \", \"Antlers \", \"Annette Island \") | airlines : uid (12, 5, 9), abbreviation (\"Allegiant\", \"Delta\", \"Continental\"), country (\"USA\"), airline (\"United Airlines\", \"Northwest Airlines\", \"US Airways\")", + "schema_without_content": "routes : sourceairport , destairport , airline , flightno | journeys : sourceairport , destairport , airline , flightno | airports : city , airportcode , country , countryabbrev , airportname | airlines : uid , abbreviation , country , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights departing from": "flights.SourceAirport" + } + }, + { + "question": "how many #flights# have #destination# ato?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights where destairport = \"ATO\"", + "schema_with_content": "journeys : destairport (\" ANV\", \" ANW\", \" ALZ\"), airline (5, 3, 1), sourceairport (\" ANB\", \" AKI\", \" ANC\"), flightno (264, 323, 1076) | airlines : abbreviation (\"Continental\", \"UAL\", \"Continental\"), uid (10, 2, 6), airline (\"Southwest Airlines\", \"AirTran Airways\", \"Frontier Airlines\"), country (\"USA\") | airports : airportcode (\"ANB\", \"AKK\", \"AQY\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Albany \", \"Anacortes \", \"Anguilla \"), airportname (\"Ardmore Municipal Arpt \", \"Athens \", \"USN Heliport \") | routes : destairport (\" ANV\", \" ANW\", \" ALZ\"), airline (5, 3, 1), sourceairport (\" ANB\", \" AKI\", \" ANC\"), flightno (264, 323, 1076)", + "schema_without_content": "journeys : destairport , airline , sourceairport , flightno | airlines : abbreviation , uid , airline , country | airports : airportcode , countryabbrev , country , city , airportname | routes : destairport , airline , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights": "flights", + "destination": "flights.DestAirport" + } + }, + { + "question": "count the number of #flights# into ato.", + "db_id": "flight_2", + "orig_query": "select count(*) from flights where destairport = \"ATO\"", + "schema_with_content": "airports : airportname (\"Adak Island Ns \", \"Aleknagik \", \"Anita Bay \"), city (\"Amchitka \", \"Angola \", \"Anaheim \"), airportcode (\"ESF\", \"ABR\", \"ANW\"), countryabbrev (\"US \", \"US\"), country (\"United States \") | routes : sourceairport (\" ASE\", \" ABY\", \" ADK\"), destairport (\" AKI\", \" AMN\", \" APG\"), flightno (902, 488, 1162), airline (7, 8, 2) | airlines : abbreviation (\"UAL\", \"JetBlue\", \"JetBlue\"), airline (\"Northwest Airlines\", \"Delta Airlines\", \"Continental Airlines\"), country (\"USA\"), uid (5, 5, 7) | journeys : sourceairport (\" ASE\", \" ABY\", \" ADK\"), destairport (\" AKI\", \" AMN\", \" APG\"), flightno (902, 488, 1162), airline (7, 8, 2)", + "schema_without_content": "airports : airportname , city , airportcode , countryabbrev , country | routes : sourceairport , destairport , flightno , airline | airlines : abbreviation , airline , country , uid | journeys : sourceairport , destairport , flightno , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights": "flights", + "DestAirport": "flights.DestAirport" + } + }, + { + "question": "how many #flights depart from city aberdeen# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "departure_points : city (\"Antlers \", \"Amook \", \"Aspen \"), countryabbrev (\"US \", \"US\"), airportcode (\"VJI\", \"AIK\", \"TDW\"), airportname (\"Ames \", \"Aniak \", \"McMinn County \"), country (\"United States \") | arrival_points : city (\"Antlers \", \"Amook \", \"Aspen \"), countryabbrev (\"US \", \"US\"), airportcode (\"VJI\", \"AIK\", \"TDW\"), airportname (\"Ames \", \"Aniak \", \"McMinn County \"), country (\"United States \") | flights : destairport (\" ARX\", \" RFK\", \" ESF\"), airline (6, 3, 1), flightno (921, 735, 251), sourceairport (\" AKP\", \" AHD\", \" APG\") | airlines : uid (2, 5, 10), country (\"USA\"), airline (\"United Airlines\", \"Virgin America\", \"Delta Airlines\"), abbreviation (\"Northwest\", \"Delta\", \"UAL\")", + "schema_without_content": "departure_points : city , countryabbrev , airportcode , airportname , country | arrival_points : city , countryabbrev , airportcode , airportname , country | flights : destairport , airline , flightno , sourceairport | airlines : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights depart from City Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "how many #flights depart from city aberdeen# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "routes : flightno (825, 1137, 1128), airline (11, 8, 5), destairport (\" AHH\", \" VJI\", \" AXB\"), sourceairport (\" AGN\", \" ATS\", \" AFO\") | airports : airportcode (\"ASX\", \"APG\", \"OTS\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Aniak \", \"Abilene \", \"Annapolis \"), airportname (\"Spb \", \"Anderson \", \"Ft Mcclellan Bus Trml \") | airlines : abbreviation (\"JetBlue\", \"AirTran\", \"USAir\"), country (\"USA\"), airline (\"Southwest Airlines\", \"Northwest Airlines\", \"Continental Airlines\"), uid (10, 3, 1) | journeys : flightno (825, 1137, 1128), airline (11, 8, 5), destairport (\" AHH\", \" VJI\", \" AXB\"), sourceairport (\" AGN\", \" ATS\", \" AFO\")", + "schema_without_content": "routes : flightno , airline , destairport , sourceairport | airports : airportcode , countryabbrev , country , city , airportname | airlines : abbreviation , country , airline , uid | journeys : flightno , airline , destairport , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights depart from City Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "return the #number of flights departing from aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "arrival_points : airportname (\"Tradewind \", \"Gratiot Community \", \"Anvik \"), city (\" Aliceville AL \", \"Anderson \", \"Alice \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"MMI\", \"AND\", \"MMI\") | airlines : country (\"USA\"), abbreviation (\"UAL\", \"USAir\", \"Southwest\"), uid (2, 6, 4), airline (\"American Airlines\", \"Northwest Airlines\", \"Delta Airlines\") | departure_points : airportname (\"Tradewind \", \"Gratiot Community \", \"Anvik \"), city (\" Aliceville AL \", \"Anderson \", \"Alice \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"MMI\", \"AND\", \"MMI\") | flights : sourceairport (\" AST\", \" AYZ\", \" ARB\"), airline (1, 9, 5), flightno (3, 1172, 809), destairport (\" ABL\", \" AET\", \" AHT\")", + "schema_without_content": "arrival_points : airportname , city , countryabbrev , country , airportcode | airlines : country , abbreviation , uid , airline | departure_points : airportname , city , countryabbrev , country , airportcode | flights : sourceairport , airline , flightno , destairport", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "number of flights departing from Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "return the #number of flights departing from aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "routes : airline (7, 11, 10), destairport (\" ANC\", \" AHT\", \" ALZ\"), flightno (1127, 120, 179), sourceairport (\" MRI\", \" ALI\", \" ARC\") | airports : airportcode (\"MRI\", \"MRI\", \"AID\"), airportname (\"Downtown \", \"Albert Lea \", \"Anvik \"), city (\"Alpena \", \"Arctic Village \", \"Adrian \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | journeys : airline (7, 11, 10), destairport (\" ANC\", \" AHT\", \" ALZ\"), flightno (1127, 120, 179), sourceairport (\" MRI\", \" ALI\", \" ARC\") | airlines : country (\"USA\"), airline (\"Frontier Airlines\", \"Continental Airlines\", \"Allegiant Air\"), uid (11, 5, 11), abbreviation (\"Virgin\", \"JetBlue\", \"Continental\")", + "schema_without_content": "routes : airline , destairport , flightno , sourceairport | airports : airportcode , airportname , city , countryabbrev , country | journeys : airline , destairport , flightno , sourceairport | airlines : country , airline , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of flights departing from Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "how many #flights arriving in aberdeen city# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "arrival_points : country (\"United States \"), airportname (\"Alyeska \", \"USN Heliport \", \"Municipal \"), airportcode (\"AOS\", \"WKK\", \"AKP\"), countryabbrev (\"US \", \"US\"), city (\"Altus \", \" Neptune \", \"Anderson \") | flights : sourceairport (\" ABL\", \" ALS\", \" RLI\"), destairport (\" ANA\", \" KKI\", \" LTS\"), flightno (704, 516, 1364), airline (11, 5, 2) | departure_points : country (\"United States \"), airportname (\"Alyeska \", \"USN Heliport \", \"Municipal \"), airportcode (\"AOS\", \"WKK\", \"AKP\"), countryabbrev (\"US \", \"US\"), city (\"Altus \", \" Neptune \", \"Anderson \") | airlines : uid (9, 7, 5), abbreviation (\"Frontier\", \"JetBlue\", \"AirTran\"), airline (\"AirTran Airways\", \"American Airlines\", \"AirTran Airways\"), country (\"USA\")", + "schema_without_content": "arrival_points : country , airportname , airportcode , countryabbrev , city | flights : sourceairport , destairport , flightno , airline | departure_points : country , airportname , airportcode , countryabbrev , city | airlines : uid , abbreviation , airline , country", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights arriving in Aberdeen city": "flights.DestAirport" + } + }, + { + "question": "how many #flights arriving in aberdeen city# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "airports : city (\"Ardmore \", \"Alakanuk \", \"Artesia \"), airportcode (\"ATO\", \"KQA\", \"ADK\"), countryabbrev (\"US \", \"US\"), airportname (\"Merrill Field \", \"Alliance \", \"Alexandria Bay \"), country (\"United States \") | airlines : uid (2, 12, 2), abbreviation (\"Delta\", \"Northwest\", \"Northwest\"), airline (\"United Airlines\", \"Allegiant Air\", \"Delta Airlines\"), country (\"USA\") | routes : airline (10, 5, 12), flightno (414, 1088, 1477), sourceairport (\" WKK\", \" HMN\", \" ALM\"), destairport (\" AIV\", \" ACV\", \" ANN\") | journeys : airline (10, 5, 12), flightno (414, 1088, 1477), sourceairport (\" WKK\", \" HMN\", \" ALM\"), destairport (\" AIV\", \" ACV\", \" ANN\")", + "schema_without_content": "airports : city , airportcode , countryabbrev , airportname , country | airlines : uid , abbreviation , airline , country | routes : airline , flightno , sourceairport , destairport | journeys : airline , flightno , sourceairport , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights arriving in Aberdeen city": "flights.DestAirport" + } + }, + { + "question": "return the #number of flights arriving in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "flights : airline (7, 6, 4), sourceairport (\" ANQ\", \" ATO\", \" AMN\"), flightno (1348, 1078, 819), destairport (\" ADK\", \" AXB\", \" HMN\") | departure_points : countryabbrev (\"US \", \"US\"), city (\"Aleneva \", \"Ashley \", \"Ames \"), country (\"United States \"), airportcode (\"ANC\", \"AET\", \"APG\"), airportname (\"Athens \", \"International \", \"Albert Lea \") | arrival_points : countryabbrev (\"US \", \"US\"), city (\"Aleneva \", \"Ashley \", \"Ames \"), country (\"United States \"), airportcode (\"ANC\", \"AET\", \"APG\"), airportname (\"Athens \", \"International \", \"Albert Lea \") | airlines : abbreviation (\"USAir\", \"UAL\", \"JetBlue\"), uid (7, 11, 3), airline (\"Northwest Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), country (\"USA\")", + "schema_without_content": "flights : airline , sourceairport , flightno , destairport | departure_points : countryabbrev , city , country , airportcode , airportname | arrival_points : countryabbrev , city , country , airportcode , airportname | airlines : abbreviation , uid , airline , country", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "number of flights arriving in Aberdeen": "flights" + } + }, + { + "question": "return the #number of flights arriving in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "routes : flightno (10, 628, 708), destairport (\" AXX\", \" AHD\", \" ANP\"), airline (10, 9, 7), sourceairport (\" DYS\", \" AFO\", \" ALM\") | journeys : flightno (10, 628, 708), destairport (\" AXX\", \" AHD\", \" ANP\"), airline (10, 9, 7), sourceairport (\" DYS\", \" AFO\", \" ALM\") | airports : countryabbrev (\"US \", \"US\"), airportcode (\"ANN\", \"AHN\", \"AFO\"), airportname (\"Rick Husband Amarillo International \", \"Anniston Metropolitan \", \"Alpena County Regional \"), city (\"Akiachak \", \"Andrews \", \"Albuquerque \"), country (\"United States \") | airlines : airline (\"Southwest Airlines\", \"Continental Airlines\", \"Northwest Airlines\"), uid (10, 6, 9), country (\"USA\"), abbreviation (\"Frontier\", \"JetBlue\", \"AirTran\")", + "schema_without_content": "routes : flightno , destairport , airline , sourceairport | journeys : flightno , destairport , airline , sourceairport | airports : countryabbrev , airportcode , airportname , city , country | airlines : airline , uid , country , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of flights arriving in Aberdeen": "flights" + } + }, + { + "question": "how many #flights depart from city# 'aberdeen' and have #destination city# 'ashley'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airports as t3 on t1.sourceairport = t3.airportcode where t2.city = \"Ashley\" and t3.city = \"Aberdeen\"", + "schema_with_content": "airlines : uid (12, 8, 3), abbreviation (\"JetBlue\", \"Virgin\", \"Virgin\"), country (\"USA\"), airline (\"Allegiant Air\", \"Virgin America\", \"Virgin America\") | arrival_points : city (\"Anaheim \", \"Anvik \", \"Ashland \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"ADG\", \"AXG\", \"ANI\"), airportname (\"Amchitka \", \"Aniak \", \"Alexandria \") | flights : destairport (\" ASY\", \" ATS\", \" ADG\"), sourceairport (\" CVO\", \" APG\", \" AUK\"), flightno (63, 382, 956), airline (8, 6, 8) | departure_points : city (\"Anaheim \", \"Anvik \", \"Ashland \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"ADG\", \"AXG\", \"ANI\"), airportname (\"Amchitka \", \"Aniak \", \"Alexandria \")", + "schema_without_content": "airlines : uid , abbreviation , country , airline | arrival_points : city , countryabbrev , country , airportcode , airportname | flights : destairport , sourceairport , flightno , airline | departure_points : city , countryabbrev , country , airportcode , airportname", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights depart from City": "flights", + "destination City": "airports.City" + } + }, + { + "question": "how many #flights depart from city# 'aberdeen' and have #destination city# 'ashley'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airports as t3 on t1.sourceairport = t3.airportcode where t2.city = \"Ashley\" and t3.city = \"Aberdeen\"", + "schema_with_content": "airports : airportname (\"Astoria \", \"Tri-State Steuben Cty \", \"Arcata \"), city (\"Amery \", \" Amarillo \", \"Albany \"), countryabbrev (\"US \", \"US\"), airportcode (\"ANC\", \"AYZ\", \"AIV\"), country (\"United States \") | airlines : abbreviation (\"Continental\", \"Northwest\", \"Southwest\"), uid (3, 8, 9), airline (\"United Airlines\", \"American Airlines\", \"AirTran Airways\"), country (\"USA\") | routes : destairport (\" AKI\", \" ABY\", \" KKI\"), flightno (575, 251, 219), sourceairport (\" AXG\", \" AMW\", \" CVO\"), airline (12, 12, 7) | journeys : destairport (\" AKI\", \" ABY\", \" KKI\"), flightno (575, 251, 219), sourceairport (\" AXG\", \" AMW\", \" CVO\"), airline (12, 12, 7)", + "schema_without_content": "airports : airportname , city , countryabbrev , airportcode , country | airlines : abbreviation , uid , airline , country | routes : destairport , flightno , sourceairport , airline | journeys : destairport , flightno , sourceairport , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights depart from City": "flights", + "destination City": "airports.City" + } + }, + { + "question": "how many #flights fly from aberdeen to ashley# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airports as t3 on t1.sourceairport = t3.airportcode where t2.city = \"Ashley\" and t3.city = \"Aberdeen\"", + "schema_with_content": "departure_points : city (\" Neptune \", \" Alexandria LA \", \" Ann Arbor MI \"), country (\"United States \"), airportname (\"Aniak \", \"Phillips AAF \", \"Anderson \"), countryabbrev (\"US \", \"US\"), airportcode (\"AFO\", \"WKK\", \"ATE\") | airlines : country (\"USA\"), uid (3, 3, 1), abbreviation (\"UAL\", \"Northwest\", \"Delta\"), airline (\"Northwest Airlines\", \"American Airlines\", \"American Airlines\") | arrival_points : city (\" Neptune \", \" Alexandria LA \", \" Ann Arbor MI \"), country (\"United States \"), airportname (\"Aniak \", \"Phillips AAF \", \"Anderson \"), countryabbrev (\"US \", \"US\"), airportcode (\"AFO\", \"WKK\", \"ATE\") | flights : sourceairport (\" AHH\", \" ESF\", \" AHF\"), airline (3, 9, 1), destairport (\" AND\", \" AIA\", \" AFO\"), flightno (108, 22, 179)", + "schema_without_content": "departure_points : city , country , airportname , countryabbrev , airportcode | airlines : country , uid , abbreviation , airline | arrival_points : city , country , airportname , countryabbrev , airportcode | flights : sourceairport , airline , destairport , flightno", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights fly from Aberdeen to Ashley": "flights.SourceAirport" + } + }, + { + "question": "how many #flights fly from aberdeen to ashley# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airports as t3 on t1.sourceairport = t3.airportcode where t2.city = \"Ashley\" and t3.city = \"Aberdeen\"", + "schema_with_content": "journeys : sourceairport (\" AXB\", \" ANW\", \" DYS\"), flightno (560, 971, 636), airline (7, 1, 4), destairport (\" QAW\", \" AMN\", \" ADK\") | airports : country (\"United States \"), city (\"Alyeska \", \"Alton \", \"Aspen \"), countryabbrev (\"US \", \"US\"), airportname (\"Angel Fire \", \"Alexandria Bay \", \"Gratiot Community \"), airportcode (\"AKI\", \"ANC\", \"AHN\") | airlines : airline (\"Southwest Airlines\", \"American Airlines\", \"Delta Airlines\"), abbreviation (\"Allegiant\", \"USAir\", \"Delta\"), uid (8, 4, 3), country (\"USA\") | routes : sourceairport (\" AXB\", \" ANW\", \" DYS\"), flightno (560, 971, 636), airline (7, 1, 4), destairport (\" QAW\", \" AMN\", \" ADK\")", + "schema_without_content": "journeys : sourceairport , flightno , airline , destairport | airports : country , city , countryabbrev , airportname , airportcode | airlines : airline , abbreviation , uid , country | routes : sourceairport , flightno , airline , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights fly from Aberdeen to Ashley": "flights.SourceAirport" + } + }, + { + "question": "how many #flights# does #airline# 'jetblue airways' have?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"JetBlue Airways\"", + "schema_with_content": "airports : airportcode (\"AMA\", \"AXS\", \"AED\"), country (\"United States \"), city (\"Andrews \", \"Aberdeen \", \"Andrews \"), countryabbrev (\"US \", \"US\"), airportname (\"Angel Fire \", \"Ames \", \"Akutan \") | aviation_companies : uid (8, 3, 11), abbreviation (\"Southwest\", \"Frontier\", \"Frontier\"), country (\"USA\"), airline (\"Southwest Airlines\", \"JetBlue Airways\", \"US Airways\") | flights : airline (1, 2, 5), destairport (\" HMN\", \" AMA\", \" VJI\"), sourceairport (\" ANP\", \" ALS\", \" APN\"), flightno (625, 127, 1150) | carriers : uid (8, 3, 11), abbreviation (\"Southwest\", \"Frontier\", \"Frontier\"), country (\"USA\"), airline (\"Southwest Airlines\", \"JetBlue Airways\", \"US Airways\")", + "schema_without_content": "airports : airportcode , country , city , countryabbrev , airportname | aviation_companies : uid , abbreviation , country , airline | flights : airline , destairport , sourceairport , flightno | carriers : uid , abbreviation , country , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "flights": "flights", + "airline": "airlines.Airline" + } + }, + { + "question": "how many #flights# does #airline# 'jetblue airways' have?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"JetBlue Airways\"", + "schema_with_content": "routes : airline (7, 2, 2), destairport (\" NDV\", \" ASY\", \" AQY\"), flightno (195, 1186, 1056), sourceairport (\" ADR\", \" AIA\", \" ASE\") | airports : airportcode (\"ADK\", \"ANP\", \"ALI\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Akutan \", \"Abingdon \", \"Artesia \"), airportname (\"Ardmore Municipal Arpt \", \"US Army Heliport \", \"Aleknagik \") | journeys : airline (7, 2, 2), destairport (\" NDV\", \" ASY\", \" AQY\"), flightno (195, 1186, 1056), sourceairport (\" ADR\", \" AIA\", \" ASE\") | airlines : airline (\"US Airways\", \"JetBlue Airways\", \"Virgin America\"), abbreviation (\"AirTran\", \"American\", \"Virgin\"), uid (11, 9, 10), country (\"USA\")", + "schema_without_content": "routes : airline , destairport , flightno , sourceairport | airports : airportcode , countryabbrev , country , city , airportname | journeys : airline , destairport , flightno , sourceairport | airlines : airline , abbreviation , uid , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights": "flights", + "airline": "airlines.Airline" + } + }, + { + "question": "give the #number of jetblue airways flights# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"JetBlue Airways\"", + "schema_with_content": "flights : sourceairport (\" ASY\", \" ANV\", \" ATS\"), destairport (\" AHT\", \" AKK\", \" ABR\"), flightno (545, 1127, 1275), airline (10, 3, 11) | airports : country (\"United States \"), countryabbrev (\"US \", \"US\"), airportcode (\"APV\", \"AET\", \"ARB\"), airportname (\"Ainsworth \", \"Merrill Field \", \"Dougherty County \"), city (\"Aiken \", \"Akron CO \", \" Neptune \") | aviation_companies : uid (4, 4, 3), country (\"USA\"), abbreviation (\"Allegiant\", \"Allegiant\", \"Northwest\"), airline (\"American Airlines\", \"Northwest Airlines\", \"Southwest Airlines\") | carriers : uid (4, 4, 3), country (\"USA\"), abbreviation (\"Allegiant\", \"Allegiant\", \"Northwest\"), airline (\"American Airlines\", \"Northwest Airlines\", \"Southwest Airlines\")", + "schema_without_content": "flights : sourceairport , destairport , flightno , airline | airports : country , countryabbrev , airportcode , airportname , city | aviation_companies : uid , country , abbreviation , airline | carriers : uid , country , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "number of Jetblue Airways flights": "flights" + } + }, + { + "question": "give the #number of jetblue airways flights# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"JetBlue Airways\"", + "schema_with_content": "routes : airline (4, 6, 7), sourceairport (\" AED\", \" AAF\", \" KQA\"), flightno (225, 1251, 4), destairport (\" AEX\", \" ABI\", \" ABR\") | airports : airportcode (\"APN\", \"ARC\", \"ATS\"), city (\"Alexandria \", \"Adak Island \", \"Altus \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Andrews \", \"Astoria \", \"Anvik \") | journeys : airline (4, 6, 7), sourceairport (\" AED\", \" AAF\", \" KQA\"), flightno (225, 1251, 4), destairport (\" AEX\", \" ABI\", \" ABR\") | airlines : uid (5, 1, 6), country (\"USA\"), abbreviation (\"UAL\", \"Continental\", \"Allegiant\"), airline (\"Continental Airlines\", \"AirTran Airways\", \"United Airlines\")", + "schema_without_content": "routes : airline , sourceairport , flightno , destairport | airports : airportcode , city , country , countryabbrev , airportname | journeys : airline , sourceairport , flightno , destairport | airlines : uid , country , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of Jetblue Airways flights": "flights" + } + }, + { + "question": "how many 'united airlines' #flights# go to #airport# 'asy'?", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.destairport = \"ASY\"", + "schema_with_content": "flights : airline (12, 4, 3), destairport (\" AHT\", \" AHH\", \" AKO\"), sourceairport (\" AKI\", \" ALI\", \" ANB\"), flightno (556, 265, 1419) | airports : airportcode (\"AFO\", \"AIB\", \"ANQ\"), airportname (\"Rick Husband Amarillo International \", \"Alexandria Bay \", \"Albuquerque International \"), city (\"Anguilla \", \"Amarillo \", \"Anguilla \"), country (\"United States \"), countryabbrev (\"US \", \"US\") | aviation_companies : abbreviation (\"Northwest\", \"Delta\", \"Allegiant\"), uid (5, 8, 2), country (\"USA\"), airline (\"Southwest Airlines\", \"Virgin America\", \"JetBlue Airways\") | carriers : abbreviation (\"Northwest\", \"Delta\", \"Allegiant\"), uid (5, 8, 2), country (\"USA\"), airline (\"Southwest Airlines\", \"Virgin America\", \"JetBlue Airways\")", + "schema_without_content": "flights : airline , destairport , sourceairport , flightno | airports : airportcode , airportname , city , country , countryabbrev | aviation_companies : abbreviation , uid , country , airline | carriers : abbreviation , uid , country , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "flights": "flights", + "Airport": "airports.AirportCode", + "United Airlines": "airlines.Airline", + "ASY": "flights.DestAirport" + } + }, + { + "question": "how many 'united airlines' #flights# go to #airport# 'asy'?", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.destairport = \"ASY\"", + "schema_with_content": "journeys : airline (11, 4, 5), flightno (919, 3, 1061), destairport (\" AGN\", \" ALS\", \" ATO\"), sourceairport (\" ATS\", \" AND\", \" AXX\") | airports : airportname (\"Ambler \", \"Ambler \", \"Aspen \"), countryabbrev (\"US \", \"US\"), city (\"Annette Island \", \"Alitak \", \"Apple Valley \"), country (\"United States \"), airportcode (\"RLI\", \"AIB\", \"AIK\") | routes : airline (11, 4, 5), flightno (919, 3, 1061), destairport (\" AGN\", \" ALS\", \" ATO\"), sourceairport (\" ATS\", \" AND\", \" AXX\") | airlines : abbreviation (\"Frontier\", \"UAL\", \"Northwest\"), airline (\"Southwest Airlines\", \"Continental Airlines\", \"JetBlue Airways\"), country (\"USA\"), uid (7, 12, 4)", + "schema_without_content": "journeys : airline , flightno , destairport , sourceairport | airports : airportname , countryabbrev , city , country , airportcode | routes : airline , flightno , destairport , sourceairport | airlines : abbreviation , airline , country , uid", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights": "flights", + "Airport": "airports.AirportCode", + "United Airlines": "airlines.Airline", + "ASY": "flights.DestAirport" + } + }, + { + "question": "count the #number of united airlines flights# arriving in #asy airport# .", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.destairport = \"ASY\"", + "schema_with_content": "carriers : country (\"USA\"), uid (3, 11, 10), airline (\"Virgin America\", \"Northwest Airlines\", \"US Airways\"), abbreviation (\"Frontier\", \"American\", \"Frontier\") | flights : airline (4, 4, 2), destairport (\" RFK\", \" AHT\", \" LTS\"), sourceairport (\" AXS\", \" NDV\", \" ALS\"), flightno (838, 351, 833) | airports : airportname (\"Aleknagik \", \"Anthony \", \"Anthony \"), airportcode (\"ALZ\", \"TDW\", \"AYZ\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Arlington Heights \", \" Alexandria LA \", \"Aleknagik \") | aviation_companies : country (\"USA\"), uid (3, 11, 10), airline (\"Virgin America\", \"Northwest Airlines\", \"US Airways\"), abbreviation (\"Frontier\", \"American\", \"Frontier\")", + "schema_without_content": "carriers : country , uid , airline , abbreviation | flights : airline , destairport , sourceairport , flightno | airports : airportname , airportcode , country , countryabbrev , city | aviation_companies : country , uid , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "number of United Airlines flights": "flights.FlightNo", + "ASY Airport": "airports.AirportCode" + } + }, + { + "question": "count the #number of united airlines flights# arriving in #asy airport# .", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.destairport = \"ASY\"", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), airportname (\"Asbury Park \", \"US Army Heliport \", \"US Army Heliport \"), city (\"Akiachak \", \"Apalachicola \", \" Aliceville AL \"), country (\"United States \"), airportcode (\"ADG\", \"ADR\", \"AHD\") | routes : airline (6, 5, 10), destairport (\" ANA\", \" ANB\", \" ANQ\"), sourceairport (\" AHN\", \" AYZ\", \" JLH\"), flightno (935, 427, 536) | airlines : abbreviation (\"AirTran\", \"Northwest\", \"Continental\"), country (\"USA\"), airline (\"United Airlines\", \"Northwest Airlines\", \"Continental Airlines\"), uid (7, 7, 4) | journeys : airline (6, 5, 10), destairport (\" ANA\", \" ANB\", \" ANQ\"), sourceairport (\" AHN\", \" AYZ\", \" JLH\"), flightno (935, 427, 536)", + "schema_without_content": "airports : countryabbrev , airportname , city , country , airportcode | routes : airline , destairport , sourceairport , flightno | airlines : abbreviation , country , airline , uid | journeys : airline , destairport , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of United Airlines flights": "flights.FlightNo", + "ASY Airport": "airports.AirportCode" + } + }, + { + "question": "how many 'united airlines' #flights depart from airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.sourceairport = \"AHD\"", + "schema_with_content": "airports : city (\"Afton \", \"Adrian \", \"Amityville \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Ames \", \"Ainsworth \", \"Anacortes \"), airportcode (\"RFK\", \"AIA\", \"AXX\") | carriers : airline (\"Virgin America\", \"United Airlines\", \"Northwest Airlines\"), country (\"USA\"), uid (6, 8, 11), abbreviation (\"UAL\", \"UAL\", \"Allegiant\") | flights : airline (12, 2, 10), flightno (261, 498, 28), destairport (\" ATS\", \" ACV\", \" AID\"), sourceairport (\" AXX\", \" AMW\", \" AGN\") | aviation_companies : airline (\"Virgin America\", \"United Airlines\", \"Northwest Airlines\"), country (\"USA\"), uid (6, 8, 11), abbreviation (\"UAL\", \"UAL\", \"Allegiant\")", + "schema_without_content": "airports : city , country , countryabbrev , airportname , airportcode | carriers : airline , country , uid , abbreviation | flights : airline , flightno , destairport , sourceairport | aviation_companies : airline , country , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "flights depart from Airport": "flights.SourceAirport", + "United Airlines": "airlines.Airline" + } + }, + { + "question": "how many 'united airlines' #flights depart from airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.sourceairport = \"AHD\"", + "schema_with_content": "journeys : destairport (\" ABR\", \" KQA\", \" AYZ\"), sourceairport (\" ALI\", \" AEL\", \" AUK\"), flightno (100, 505, 206), airline (5, 3, 3) | airlines : country (\"USA\"), airline (\"Continental Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), uid (1, 4, 11), abbreviation (\"Virgin\", \"Virgin\", \"Southwest\") | routes : destairport (\" ABR\", \" KQA\", \" AYZ\"), sourceairport (\" ALI\", \" AEL\", \" AUK\"), flightno (100, 505, 206), airline (5, 3, 3) | airports : airportname (\"Virginia Highlands \", \"Akutan \", \"International \"), airportcode (\"RFK\", \"AQY\", \"JLH\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Albany \", \" Alexander City AL \", \"Alexandria \")", + "schema_without_content": "journeys : destairport , sourceairport , flightno , airline | airlines : country , airline , uid , abbreviation | routes : destairport , sourceairport , flightno , airline | airports : airportname , airportcode , countryabbrev , country , city", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights depart from Airport": "flights.SourceAirport", + "United Airlines": "airlines.Airline" + } + }, + { + "question": "return the #number of united airlines flights leaving from ahd airport# .", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.sourceairport = \"AHD\"", + "schema_with_content": "aviation_companies : uid (9, 6, 9), airline (\"US Airways\", \"AirTran Airways\", \"United Airlines\"), country (\"USA\"), abbreviation (\"Delta\", \"American\", \"Southwest\") | flights : flightno (167, 144, 620), airline (7, 10, 12), sourceairport (\" AIA\", \" AKC\", \" ALN\"), destairport (\" APV\", \" ASE\", \" ALZ\") | airports : city (\"Aspen \", \"Albuquerque \", \"Arapahoe \"), airportcode (\"ADG\", \"AET\", \"VJI\"), airportname (\"Lee \", \"Amook \", \"Aleknagik \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | carriers : uid (9, 6, 9), airline (\"US Airways\", \"AirTran Airways\", \"United Airlines\"), country (\"USA\"), abbreviation (\"Delta\", \"American\", \"Southwest\")", + "schema_without_content": "aviation_companies : uid , airline , country , abbreviation | flights : flightno , airline , sourceairport , destairport | airports : city , airportcode , airportname , countryabbrev , country | carriers : uid , airline , country , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "number of United Airlines flights leaving from AHD Airport": "flights.FlightNo" + } + }, + { + "question": "return the #number of united airlines flights leaving from ahd airport# .", + "db_id": "flight_2", + "orig_query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"United Airlines\" and t2.sourceairport = \"AHD\"", + "schema_with_content": "airlines : uid (4, 9, 7), country (\"USA\"), airline (\"Northwest Airlines\", \"Delta Airlines\", \"Virgin America\"), abbreviation (\"UAL\", \"Northwest\", \"Southwest\") | routes : destairport (\" ADR\", \" ATS\", \" ANN\"), sourceairport (\" ANY\", \" ESF\", \" ANY\"), airline (10, 5, 9), flightno (1361, 809, 1231) | airports : airportname (\"Ainsworth \", \"Holloman AFB \", \"Albuquerque International \"), airportcode (\"WKK\", \"ALS\", \"AHT\"), city (\"Alice \", \"Arlington Heights \", \"Albert Lea \"), country (\"United States \"), countryabbrev (\"US \", \"US\") | journeys : destairport (\" ADR\", \" ATS\", \" ANN\"), sourceairport (\" ANY\", \" ESF\", \" ANY\"), airline (10, 5, 9), flightno (1361, 809, 1231)", + "schema_without_content": "airlines : uid , country , airline , abbreviation | routes : destairport , sourceairport , airline , flightno | airports : airportname , airportcode , city , country , countryabbrev | journeys : destairport , sourceairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of United Airlines flights leaving from AHD Airport": "flights.FlightNo" + } + }, + { + "question": "how many #united airlines flights# go to #city# 'aberdeen'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "carriers : uid (7, 9, 1), country (\"USA\"), abbreviation (\"JetBlue\", \"UAL\", \"Delta\"), airline (\"Delta Airlines\", \"Virgin America\", \"American Airlines\") | aviation_companies : uid (7, 9, 1), country (\"USA\"), abbreviation (\"JetBlue\", \"UAL\", \"Delta\"), airline (\"Delta Airlines\", \"Virgin America\", \"American Airlines\") | flights : sourceairport (\" ASY\", \" NDV\", \" ANQ\"), flightno (1324, 82, 767), destairport (\" ATW\", \" ALI\", \" ADT\"), airline (11, 3, 2) | airports : city (\"Alliance \", \"Arctic Village \", \"Akron CO \"), countryabbrev (\"US \", \"US\"), airportname (\"Anaktuvuk \", \"Aleneva \", \"USN Heliport \"), country (\"United States \"), airportcode (\"ATW\", \"AKC\", \"KQA\")", + "schema_without_content": "carriers : uid , country , abbreviation , airline | aviation_companies : uid , country , abbreviation , airline | flights : sourceairport , flightno , destairport , airline | airports : city , countryabbrev , airportname , country , airportcode", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "United Airlines flights": "airlines.Airline", + "City": "airports.City", + "Aberdeen": "airports.City" + } + }, + { + "question": "how many #united airlines flights# go to #city# 'aberdeen'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "airlines : country (\"USA\"), abbreviation (\"Frontier\", \"JetBlue\", \"Virgin\"), airline (\"US Airways\", \"Southwest Airlines\", \"AirTran Airways\"), uid (5, 7, 10) | departure_points : airportcode (\"VJI\", \"AYZ\", \"ALI\"), city (\"Albany \", \"Arlington Heights \", \"Alexandria Bay \"), countryabbrev (\"US \", \"US\"), airportname (\"Ted Stevens Anchorage International Airport \", \"Akutan \", \"Alexandria \"), country (\"United States \") | arrival_points : airportcode (\"VJI\", \"AYZ\", \"ALI\"), city (\"Albany \", \"Arlington Heights \", \"Alexandria Bay \"), countryabbrev (\"US \", \"US\"), airportname (\"Ted Stevens Anchorage International Airport \", \"Akutan \", \"Alexandria \"), country (\"United States \") | flights : flightno (1061, 485, 592), airline (4, 6, 9), sourceairport (\" AKP\", \" CVO\", \" AXX\"), destairport (\" AOS\", \" ALN\", \" ANW\")", + "schema_without_content": "airlines : country , abbreviation , airline , uid | departure_points : airportcode , city , countryabbrev , airportname , country | arrival_points : airportcode , city , countryabbrev , airportname , country | flights : flightno , airline , sourceairport , destairport", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "United Airlines flights": "airlines.Airline", + "City": "airports.City", + "Aberdeen": "airports.City" + } + }, + { + "question": "how many #united airlines flights# go to #city# 'aberdeen'?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "journeys : sourceairport (\" ALS\", \" ANQ\", \" ALS\"), destairport (\" ALI\", \" AED\", \" APG\"), flightno (927, 1298, 1242), airline (9, 10, 9) | airlines : abbreviation (\"Southwest\", \"Southwest\", \"UAL\"), uid (1, 6, 5), country (\"USA\"), airline (\"AirTran Airways\", \"Allegiant Air\", \"Frontier Airlines\") | routes : sourceairport (\" ALS\", \" ANQ\", \" ALS\"), destairport (\" ALI\", \" AED\", \" APG\"), flightno (927, 1298, 1242), airline (9, 10, 9) | airports : city (\"Amityville \", \"Anacortes \", \"Antlers \"), airportname (\"Orange County Steel Salvage Heliport \", \"Albuquerque International \", \"Akhiok SPB \"), airportcode (\"AAF\", \"CAK\", \"EDF\"), countryabbrev (\"US \", \"US\"), country (\"United States \")", + "schema_without_content": "journeys : sourceairport , destairport , flightno , airline | airlines : abbreviation , uid , country , airline | routes : sourceairport , destairport , flightno , airline | airports : city , airportname , airportcode , countryabbrev , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "United Airlines flights": "airlines.Airline", + "City": "airports.City", + "Aberdeen": "airports.City" + } + }, + { + "question": "count the #number of united airlines flights that arrive in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "aviation_companies : uid (7, 9, 10), country (\"USA\"), airline (\"American Airlines\", \"Delta Airlines\", \"Virgin America\"), abbreviation (\"UAL\", \"USAir\", \"Northwest\") | airports : airportname (\"Esler Field \", \"Alitak SPB \", \"Amchitka \"), airportcode (\"ALM\", \"AXG\", \"AEX\"), countryabbrev (\"US \", \"US\"), city (\"Ames \", \"Alamosa \", \"Aspen \"), country (\"United States \") | flights : airline (11, 6, 10), flightno (1271, 1535, 1030), destairport (\" HMN\", \" ANA\", \" ARX\"), sourceairport (\" APG\", \" AXS\", \" ABR\") | carriers : uid (7, 9, 10), country (\"USA\"), airline (\"American Airlines\", \"Delta Airlines\", \"Virgin America\"), abbreviation (\"UAL\", \"USAir\", \"Northwest\")", + "schema_without_content": "aviation_companies : uid , country , airline , abbreviation | airports : airportname , airportcode , countryabbrev , city , country | flights : airline , flightno , destairport , sourceairport | carriers : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "number of United Airlines flights that arrive in Aberdeen": "flights" + } + }, + { + "question": "count the #number of united airlines flights that arrive in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "airlines : uid (11, 11, 10), abbreviation (\"UAL\", \"USAir\", \"JetBlue\"), country (\"USA\"), airline (\"US Airways\", \"Delta Airlines\", \"Northwest Airlines\") | arrival_points : city (\"Alakanuk \", \"Adak Island \", \"Allakaket \"), airportcode (\"ADG\", \"ABR\", \"AMN\"), airportname (\"NAS \", \"Reilly AHP \", \"Alyeska \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | departure_points : city (\"Alakanuk \", \"Adak Island \", \"Allakaket \"), airportcode (\"ADG\", \"ABR\", \"AMN\"), airportname (\"NAS \", \"Reilly AHP \", \"Alyeska \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | flights : flightno (153, 787, 1232), destairport (\" NGZ\", \" ANC\", \" AND\"), sourceairport (\" AHT\", \" AIK\", \" ANY\"), airline (10, 8, 11)", + "schema_without_content": "airlines : uid , abbreviation , country , airline | arrival_points : city , airportcode , airportname , countryabbrev , country | departure_points : city , airportcode , airportname , countryabbrev , country | flights : flightno , destairport , sourceairport , airline", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "number of United Airlines flights that arrive in Aberdeen": "flights" + } + }, + { + "question": "count the #number of united airlines flights that arrive in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode join airlines as t3 on t3.uid = t1.airline where t2.city = \"Aberdeen\" and t3.airline = \"United Airlines\"", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), city (\" Anniston AL \", \"Aleknagik \", \"Ainsworth \"), country (\"United States \"), airportname (\"George Downer \", \"Ohio University \", \"Alexandria International \"), airportcode (\"HMN\", \"AKO\", \"AEX\") | journeys : flightno (351, 26, 1357), airline (9, 3, 2), sourceairport (\" AKI\", \" ANA\", \" MRI\"), destairport (\" ASX\", \" ADR\", \" ABI\") | routes : flightno (351, 26, 1357), airline (9, 3, 2), sourceairport (\" AKI\", \" ANA\", \" MRI\"), destairport (\" ASX\", \" ADR\", \" ABI\") | airlines : country (\"USA\"), abbreviation (\"Allegiant\", \"Allegiant\", \"Southwest\"), uid (12, 8, 6), airline (\"Frontier Airlines\", \"Continental Airlines\", \"Virgin America\")", + "schema_without_content": "airports : countryabbrev , city , country , airportname , airportcode | journeys : flightno , airline , sourceairport , destairport | routes : flightno , airline , sourceairport , destairport | airlines : country , abbreviation , uid , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "number of United Airlines flights that arrive in Aberdeen": "flights" + } + }, + { + "question": "which #city# has most number of #arriving flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.destairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "departure_points : country (\"United States \"), city (\"Alliance \", \"Ada \", \"Apple Valley \"), countryabbrev (\"US \", \"US\"), airportcode (\"ATE\", \"ACV\", \"MMI\"), airportname (\"Angoon \", \"Ted Stevens Anchorage International Airport \", \"Astoria \") | airlines : country (\"USA\"), airline (\"United Airlines\", \"United Airlines\", \"Delta Airlines\"), abbreviation (\"Virgin\", \"Northwest\", \"UAL\"), uid (6, 11, 2) | flights : destairport (\" AID\", \" AIA\", \" ANQ\"), airline (4, 6, 7), flightno (863, 1069, 564), sourceairport (\" ATO\", \" ANP\", \" MMI\") | arrival_points : country (\"United States \"), city (\"Alliance \", \"Ada \", \"Apple Valley \"), countryabbrev (\"US \", \"US\"), airportcode (\"ATE\", \"ACV\", \"MMI\"), airportname (\"Angoon \", \"Ted Stevens Anchorage International Airport \", \"Astoria \")", + "schema_without_content": "departure_points : country , city , countryabbrev , airportcode , airportname | airlines : country , airline , abbreviation , uid | flights : destairport , airline , flightno , sourceairport | arrival_points : country , city , countryabbrev , airportcode , airportname", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "arriving flights": "flights.DestAirport" + } + }, + { + "question": "which #city# has most number of #arriving flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.destairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), airportname (\"Asbury Park \", \"Ohio University \", \"Ashland \"), airportcode (\"ANW\", \"AED\", \"NDV\"), city (\"Albany \", \"Anaktuvuk \", \"Aspen \"), country (\"United States \") | journeys : sourceairport (\" ABI\", \" ADG\", \" AIK\"), flightno (451, 585, 1011), airline (5, 9, 3), destairport (\" RFK\", \" AKK\", \" AKK\") | routes : sourceairport (\" ABI\", \" ADG\", \" AIK\"), flightno (451, 585, 1011), airline (5, 9, 3), destairport (\" RFK\", \" AKK\", \" AKK\") | airlines : uid (3, 9, 12), airline (\"Virgin America\", \"Virgin America\", \"JetBlue Airways\"), abbreviation (\"Southwest\", \"USAir\", \"UAL\"), country (\"USA\")", + "schema_without_content": "airports : countryabbrev , airportname , airportcode , city , country | journeys : sourceairport , flightno , airline , destairport | routes : sourceairport , flightno , airline , destairport | airlines : uid , airline , abbreviation , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "arriving flights": "flights.DestAirport" + } + }, + { + "question": "which #city# has the most frequent #destination airport# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.destairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "departure_points : airportcode (\"AXX\", \"ANQ\", \"AQY\"), city (\"Alexandria \", \" Amarillo \", \" Neptune \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Tradewind \", \"Spb \", \"Tradewind \") | arrival_points : airportcode (\"AXX\", \"ANQ\", \"AQY\"), city (\"Alexandria \", \" Amarillo \", \" Neptune \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Tradewind \", \"Spb \", \"Tradewind \") | flights : flightno (124, 1329, 122), sourceairport (\" APV\", \" AKK\", \" AXG\"), airline (2, 3, 12), destairport (\" ANP\", \" CVO\", \" AKI\") | airlines : country (\"USA\"), airline (\"Delta Airlines\", \"Northwest Airlines\", \"Northwest Airlines\"), uid (4, 12, 4), abbreviation (\"Allegiant\", \"Virgin\", \"UAL\")", + "schema_without_content": "departure_points : airportcode , city , countryabbrev , country , airportname | arrival_points : airportcode , city , countryabbrev , country , airportname | flights : flightno , sourceairport , airline , destairport | airlines : country , airline , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "destination airport": "flights.DestAirport" + } + }, + { + "question": "which #city# has the most frequent #destination airport# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.destairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "routes : destairport (\" APV\", \" APN\", \" ADT\"), sourceairport (\" AKO\", \" AIK\", \" AXG\"), flightno (194, 341, 581), airline (5, 11, 5) | journeys : destairport (\" APV\", \" APN\", \" ADT\"), sourceairport (\" AKO\", \" AIK\", \" AXG\"), flightno (194, 341, 581), airline (5, 11, 5) | airlines : airline (\"AirTran Airways\", \"Delta Airlines\", \"JetBlue Airways\"), abbreviation (\"Allegiant\", \"Northwest\", \"American\"), uid (1, 6, 6), country (\"USA\") | airports : countryabbrev (\"US \", \"US\"), airportname (\"Orange County Steel Salvage Heliport \", \"Alexandria International \", \"Dougherty County \"), city (\"Arctic Village \", \" Anniston AL \", \"Aberdeen \"), country (\"United States \"), airportcode (\"LTS\", \"APN\", \"ANN\")", + "schema_without_content": "routes : destairport , sourceairport , flightno , airline | journeys : destairport , sourceairport , flightno , airline | airlines : airline , abbreviation , uid , country | airports : countryabbrev , airportname , city , country , airportcode", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "destination airport": "flights.DestAirport" + } + }, + { + "question": "which #city# has most number of #departing flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.sourceairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "airlines : abbreviation (\"Continental\", \"JetBlue\", \"Northwest\"), airline (\"Frontier Airlines\", \"Continental Airlines\", \"Northwest Airlines\"), uid (7, 10, 9), country (\"USA\") | departure_points : country (\"United States \"), airportcode (\"AKP\", \"AND\", \"AED\"), airportname (\"Esler Field \", \"Zahns \", \"Holloman AFB \"), city (\"Alliance \", \"Adrian \", \"Akron CO \"), countryabbrev (\"US \", \"US\") | arrival_points : country (\"United States \"), airportcode (\"AKP\", \"AND\", \"AED\"), airportname (\"Esler Field \", \"Zahns \", \"Holloman AFB \"), city (\"Alliance \", \"Adrian \", \"Akron CO \"), countryabbrev (\"US \", \"US\") | flights : destairport (\" AIK\", \" AID\", \" APG\"), airline (6, 5, 7), sourceairport (\" APG\", \" KQA\", \" AYZ\"), flightno (809, 1245, 1118)", + "schema_without_content": "airlines : abbreviation , airline , uid , country | departure_points : country , airportcode , airportname , city , countryabbrev | arrival_points : country , airportcode , airportname , city , countryabbrev | flights : destairport , airline , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "departing flights": "flights.SourceAirport" + } + }, + { + "question": "which #city# has most number of #departing flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.sourceairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "airlines : country (\"USA\"), abbreviation (\"Northwest\", \"Continental\", \"Northwest\"), uid (5, 7, 1), airline (\"Continental Airlines\", \"Continental Airlines\", \"US Airways\") | journeys : flightno (264, 644, 1159), airline (8, 7, 5), sourceairport (\" TDW\", \" ANV\", \" ALZ\"), destairport (\" ATE\", \" ANI\", \" AHH\") | routes : flightno (264, 644, 1159), airline (8, 7, 5), sourceairport (\" TDW\", \" ANV\", \" ALZ\"), destairport (\" ATE\", \" ANI\", \" AHH\") | airports : airportname (\"Adak Island Ns \", \"Lee \", \"US Army Heliport \"), airportcode (\"ADT\", \"ALZ\", \"ALX\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Alexandria \", \"Anderson \", \"Akhiok \")", + "schema_without_content": "airlines : country , abbreviation , uid , airline | journeys : flightno , airline , sourceairport , destairport | routes : flightno , airline , sourceairport , destairport | airports : airportname , airportcode , country , countryabbrev , city", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "departing flights": "flights.SourceAirport" + } + }, + { + "question": "which #city# is the most frequent #source airport# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.sourceairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "airlines : country (\"USA\"), airline (\"Frontier Airlines\", \"Northwest Airlines\", \"JetBlue Airways\"), abbreviation (\"Northwest\", \"Delta\", \"American\"), uid (12, 6, 1) | departure_points : country (\"United States \"), airportcode (\"ANC\", \"ABY\", \"ALI\"), countryabbrev (\"US \", \"US\"), airportname (\"Arctic Village \", \"Albany \", \"Ainsworth \"), city (\"Ainsworth \", \"Adak Island \", \"Apple Valley \") | arrival_points : country (\"United States \"), airportcode (\"ANC\", \"ABY\", \"ALI\"), countryabbrev (\"US \", \"US\"), airportname (\"Arctic Village \", \"Albany \", \"Ainsworth \"), city (\"Ainsworth \", \"Adak Island \", \"Apple Valley \") | flights : airline (4, 10, 7), destairport (\" AKC\", \" ANA\", \" ABR\"), sourceairport (\" ATO\", \" ATW\", \" AND\"), flightno (193, 821, 199)", + "schema_without_content": "airlines : country , airline , abbreviation , uid | departure_points : country , airportcode , countryabbrev , airportname , city | arrival_points : country , airportcode , countryabbrev , airportname , city | flights : airline , destairport , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "source airport": "flights.SourceAirport" + } + }, + { + "question": "which #city# is the most frequent #source airport# ?", + "db_id": "flight_2", + "orig_query": "select t1.city from airports as t1 join flights as t2 on t1.airportcode = t2.sourceairport group by t1.city order by count(*) desc limit 1", + "schema_with_content": "airlines : country (\"USA\"), abbreviation (\"Virgin\", \"Frontier\", \"American\"), airline (\"JetBlue Airways\", \"Frontier Airlines\", \"Virgin America\"), uid (3, 5, 5) | routes : sourceairport (\" ALS\", \" CAK\", \" ARX\"), airline (5, 11, 11), destairport (\" TDW\", \" AHN\", \" ALE\"), flightno (226, 1162, 624) | journeys : sourceairport (\" ALS\", \" CAK\", \" ARX\"), airline (5, 11, 11), destairport (\" TDW\", \" AHN\", \" ALE\"), flightno (226, 1162, 624) | airports : countryabbrev (\"US \", \"US\"), airportcode (\"ESF\", \"RFK\", \"ATW\"), city (\"Artesia \", \"Adrian \", \"Aspen \"), airportname (\"Ted Stevens Anchorage International Airport \", \"Thomas C Russell Fld \", \"Alpine \"), country (\"United States \")", + "schema_without_content": "airlines : country , abbreviation , airline , uid | routes : sourceairport , airline , destairport , flightno | journeys : sourceairport , airline , destairport , flightno | airports : countryabbrev , airportcode , city , airportname , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "city": "airports.City", + "source airport": "flights.SourceAirport" + } + }, + { + "question": "what is the #code of airport# that has the highest number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) desc limit 1", + "schema_with_content": "departure_points : city (\" Aliceville AL \", \"Ada \", \"Ainsworth \"), country (\"United States \"), airportname (\"Ashley \", \"Aniak \", \"Akron/canton Regional \"), airportcode (\"AOS\", \"AIK\", \"AKK\"), countryabbrev (\"US \", \"US\") | airlines : abbreviation (\"UAL\", \"American\", \"American\"), uid (10, 10, 3), airline (\"Allegiant Air\", \"Allegiant Air\", \"AirTran Airways\"), country (\"USA\") | flights : airline (6, 5, 12), sourceairport (\" AMW\", \" AUK\", \" MRI\"), destairport (\" TDW\", \" ANQ\", \" ASE\"), flightno (968, 1027, 1118) | arrival_points : city (\" Aliceville AL \", \"Ada \", \"Ainsworth \"), country (\"United States \"), airportname (\"Ashley \", \"Aniak \", \"Akron/canton Regional \"), airportcode (\"AOS\", \"AIK\", \"AKK\"), countryabbrev (\"US \", \"US\")", + "schema_without_content": "departure_points : city , country , airportname , airportcode , countryabbrev | airlines : abbreviation , uid , airline , country | flights : airline , sourceairport , destairport , flightno | arrival_points : city , country , airportname , airportcode , countryabbrev", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "code of airport": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "what is the #code of airport# that has the highest number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) desc limit 1", + "schema_with_content": "routes : airline (10, 1, 1), sourceairport (\" AHF\", \" ARB\", \" AGN\"), flightno (1056, 882, 342), destairport (\" AUK\", \" ABQ\", \" CVO\") | airports : airportcode (\"ASX\", \"RFK\", \"KQA\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Alyeska \", \"Aniak \", \"Spb \"), city (\"Aiken \", \"Annapolis \", \"Anderson \") | airlines : airline (\"Virgin America\", \"Allegiant Air\", \"Frontier Airlines\"), uid (6, 1, 5), country (\"USA\"), abbreviation (\"Northwest\", \"Continental\", \"Virgin\") | journeys : airline (10, 1, 1), sourceairport (\" AHF\", \" ARB\", \" AGN\"), flightno (1056, 882, 342), destairport (\" AUK\", \" ABQ\", \" CVO\")", + "schema_without_content": "routes : airline , sourceairport , flightno , destairport | airports : airportcode , country , countryabbrev , airportname , city | airlines : airline , uid , country , abbreviation | journeys : airline , sourceairport , flightno , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "code of airport": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "what is the #airport code# of the airport with the most #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) desc limit 1", + "schema_with_content": "airlines : country (\"USA\"), uid (3, 6, 8), abbreviation (\"Delta\", \"Continental\", \"Frontier\"), airline (\"US Airways\", \"AirTran Airways\", \"Southwest Airlines\") | departure_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Angel Fire \", \"Akhiok \", \"Ainsworth \"), airportcode (\"AUK\", \"HMN\", \"AMN\"), airportname (\"Andrews \", \"Anita Bay \", \"Alpine \") | arrival_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Angel Fire \", \"Akhiok \", \"Ainsworth \"), airportcode (\"AUK\", \"HMN\", \"AMN\"), airportname (\"Andrews \", \"Anita Bay \", \"Alpine \") | flights : airline (12, 2, 4), flightno (1390, 981, 1329), destairport (\" AHH\", \" AET\", \" AHN\"), sourceairport (\" ATO\", \" ANC\", \" AFO\")", + "schema_without_content": "airlines : country , uid , abbreviation , airline | departure_points : countryabbrev , country , city , airportcode , airportname | arrival_points : countryabbrev , country , city , airportcode , airportname | flights : airline , flightno , destairport , sourceairport", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airport code": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "what is the #airport code# of the airport with the most #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) desc limit 1", + "schema_with_content": "airports : airportname (\"Fulton International \", \"Albany NAS \", \"Albany \"), countryabbrev (\"US \", \"US\"), airportcode (\"ATO\", \"AHN\", \"ANI\"), country (\"United States \"), city (\"Akron/Canton OH \", \"Altus \", \"Alakanuk \") | journeys : sourceairport (\" RLI\", \" AYZ\", \" ANB\"), airline (3, 11, 7), flightno (1274, 1173, 1248), destairport (\" ALB\", \" ANY\", \" ARB\") | routes : sourceairport (\" RLI\", \" AYZ\", \" ANB\"), airline (3, 11, 7), flightno (1274, 1173, 1248), destairport (\" ALB\", \" ANY\", \" ARB\") | airlines : uid (12, 7, 9), airline (\"Virgin America\", \"Virgin America\", \"Allegiant Air\"), country (\"USA\"), abbreviation (\"AirTran\", \"Frontier\", \"Southwest\")", + "schema_without_content": "airports : airportname , countryabbrev , airportcode , country , city | journeys : sourceairport , airline , flightno , destairport | routes : sourceairport , airline , flightno , destairport | airlines : uid , airline , country , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airport code": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "what is the #code of airport# that has fewest number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) limit 1", + "schema_with_content": "departure_points : airportcode (\"ADK\", \"APN\", \"ALM\"), countryabbrev (\"US \", \"US\"), airportname (\"Alexandria Bay \", \"Lee \", \"Aleneva \"), city (\"Anchorage \", \"Anguilla \", \"Akutan \"), country (\"United States \") | flights : sourceairport (\" ANC\", \" AUK\", \" AIA\"), destairport (\" AKI\", \" AED\", \" AID\"), flightno (120, 775, 1335), airline (11, 7, 1) | arrival_points : airportcode (\"ADK\", \"APN\", \"ALM\"), countryabbrev (\"US \", \"US\"), airportname (\"Alexandria Bay \", \"Lee \", \"Aleneva \"), city (\"Anchorage \", \"Anguilla \", \"Akutan \"), country (\"United States \") | airlines : abbreviation (\"Allegiant\", \"Southwest\", \"AirTran\"), airline (\"US Airways\", \"Delta Airlines\", \"JetBlue Airways\"), uid (2, 1, 11), country (\"USA\")", + "schema_without_content": "departure_points : airportcode , countryabbrev , airportname , city , country | flights : sourceairport , destairport , flightno , airline | arrival_points : airportcode , countryabbrev , airportname , city , country | airlines : abbreviation , airline , uid , country", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "code of airport": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "what is the #code of airport# that has fewest number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) limit 1", + "schema_with_content": "journeys : airline (7, 4, 8), destairport (\" AET\", \" AIB\", \" WKK\"), flightno (832, 369, 1012), sourceairport (\" OTS\", \" ARC\", \" KKI\") | airports : country (\"United States \"), airportcode (\"ABL\", \"AIB\", \"ABI\"), city (\"Alliance \", \"Ambler \", \"Ada \"), countryabbrev (\"US \", \"US\"), airportname (\"Albany \", \"Lenawee County \", \"Allakaket \") | routes : airline (7, 4, 8), destairport (\" AET\", \" AIB\", \" WKK\"), flightno (832, 369, 1012), sourceairport (\" OTS\", \" ARC\", \" KKI\") | airlines : uid (10, 10, 7), country (\"USA\"), airline (\"Virgin America\", \"Virgin America\", \"AirTran Airways\"), abbreviation (\"USAir\", \"Northwest\", \"AirTran\")", + "schema_without_content": "journeys : airline , destairport , flightno , sourceairport | airports : country , airportcode , city , countryabbrev , airportname | routes : airline , destairport , flightno , sourceairport | airlines : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "code of airport": "airports.AirportCode", + "flights": "flights" + } + }, + { + "question": "give the #code of the airport# with the least flights.", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) limit 1", + "schema_with_content": "departure_points : airportcode (\"AXS\", \"AXG\", \"ATW\"), airportname (\"Outagamie County \", \"Orange County Steel Salvage Heliport \", \"Holloman AFB \"), countryabbrev (\"US \", \"US\"), city (\"Alpena \", \" Ann Arbor MI \", \"Anacortes \"), country (\"United States \") | flights : sourceairport (\" ABL\", \" ALE\", \" VJI\"), airline (1, 4, 1), destairport (\" TDW\", \" AIV\", \" OTS\"), flightno (1031, 550, 784) | arrival_points : airportcode (\"AXS\", \"AXG\", \"ATW\"), airportname (\"Outagamie County \", \"Orange County Steel Salvage Heliport \", \"Holloman AFB \"), countryabbrev (\"US \", \"US\"), city (\"Alpena \", \" Ann Arbor MI \", \"Anacortes \"), country (\"United States \") | airlines : abbreviation (\"Allegiant\", \"UAL\", \"Delta\"), country (\"USA\"), uid (4, 8, 9), airline (\"Southwest Airlines\", \"JetBlue Airways\", \"Continental Airlines\")", + "schema_without_content": "departure_points : airportcode , airportname , countryabbrev , city , country | flights : sourceairport , airline , destairport , flightno | arrival_points : airportcode , airportname , countryabbrev , city , country | airlines : abbreviation , country , uid , airline", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "code of the airport": "airports.AirportCode" + } + }, + { + "question": "give the #code of the airport# with the least flights.", + "db_id": "flight_2", + "orig_query": "select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) limit 1", + "schema_with_content": "airlines : country (\"USA\"), airline (\"JetBlue Airways\", \"Virgin America\", \"Northwest Airlines\"), abbreviation (\"Southwest\", \"Delta\", \"American\"), uid (7, 10, 7) | journeys : flightno (149, 401, 308), sourceairport (\" ATW\", \" AKC\", \" AST\"), airline (1, 11, 4), destairport (\" AMN\", \" AND\", \" DYS\") | routes : flightno (149, 401, 308), sourceairport (\" ATW\", \" AKC\", \" AST\"), airline (1, 11, 4), destairport (\" AMN\", \" AND\", \" DYS\") | airports : airportcode (\"AEX\", \"ANV\", \"ANN\"), countryabbrev (\"US \", \"US\"), city (\"Akhiok \", \"Angola \", \"Aleneva \"), airportname (\"Alton \", \"Ohio University \", \"Albany \"), country (\"United States \")", + "schema_without_content": "airlines : country , airline , abbreviation , uid | journeys : flightno , sourceairport , airline , destairport | routes : flightno , sourceairport , airline , destairport | airports : airportcode , countryabbrev , city , airportname , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "code of the airport": "airports.AirportCode" + } + }, + { + "question": "which #airline# has most number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) desc limit 1", + "schema_with_content": "flights : destairport (\" AKC\", \" JLH\", \" AAF\"), airline (2, 4, 10), sourceairport (\" ANW\", \" ESF\", \" ANI\"), flightno (1300, 1089, 694) | aviation_companies : airline (\"Continental Airlines\", \"Southwest Airlines\", \"Allegiant Air\"), uid (5, 10, 1), abbreviation (\"UAL\", \"AirTran\", \"Southwest\"), country (\"USA\") | carriers : airline (\"Continental Airlines\", \"Southwest Airlines\", \"Allegiant Air\"), uid (5, 10, 1), abbreviation (\"UAL\", \"AirTran\", \"Southwest\"), country (\"USA\") | airports : country (\"United States \"), airportcode (\"ALZ\", \"ARC\", \"AKI\"), countryabbrev (\"US \", \"US\"), city (\"Astoria \", \"Anguilla \", \"Alliance \"), airportname (\"Apple Valley \", \"Reilly AHP \", \"Ames \")", + "schema_without_content": "flights : destairport , airline , sourceairport , flightno | aviation_companies : airline , uid , abbreviation , country | carriers : airline , uid , abbreviation , country | airports : country , airportcode , countryabbrev , city , airportname", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "which #airline# has most number of #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) desc limit 1", + "schema_with_content": "airports : country (\"United States \"), airportname (\"Alpine \", \"Ashland \", \"Alexandria International \"), city (\"Adrian \", \"Alliance \", \"Annapolis \"), countryabbrev (\"US \", \"US\"), airportcode (\"AHT\", \"ALM\", \"AHF\") | routes : flightno (178, 361, 132), destairport (\" AND\", \" MMI\", \" AKC\"), sourceairport (\" AIA\", \" ARB\", \" ABY\"), airline (12, 12, 2) | airlines : country (\"USA\"), airline (\"Frontier Airlines\", \"JetBlue Airways\", \"United Airlines\"), abbreviation (\"Frontier\", \"Delta\", \"Allegiant\"), uid (5, 10, 8) | journeys : flightno (178, 361, 132), destairport (\" AND\", \" MMI\", \" AKC\"), sourceairport (\" AIA\", \" ARB\", \" ABY\"), airline (12, 12, 2)", + "schema_without_content": "airports : country , airportname , city , countryabbrev , airportcode | routes : flightno , destairport , sourceairport , airline | airlines : country , airline , abbreviation , uid | journeys : flightno , destairport , sourceairport , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airline": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "what #airline# serves the most #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) desc limit 1", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), airportname (\"Zahns \", \"Holloman AFB \", \"Alyeska \"), airportcode (\"ASY\", \"ADK\", \"AXN\"), country (\"United States \"), city (\"Adak Island \", \"Alpena \", \" Alexandria LA \") | flights : flightno (1155, 737, 680), sourceairport (\" KKI\", \" ALN\", \" AKK\"), airline (5, 9, 2), destairport (\" AIB\", \" AFO\", \" EDF\") | carriers : country (\"USA\"), uid (7, 11, 10), abbreviation (\"UAL\", \"Virgin\", \"UAL\"), airline (\"Continental Airlines\", \"American Airlines\", \"Southwest Airlines\") | aviation_companies : country (\"USA\"), uid (7, 11, 10), abbreviation (\"UAL\", \"Virgin\", \"UAL\"), airline (\"Continental Airlines\", \"American Airlines\", \"Southwest Airlines\")", + "schema_without_content": "airports : countryabbrev , airportname , airportcode , country , city | flights : flightno , sourceairport , airline , destairport | carriers : country , uid , abbreviation , airline | aviation_companies : country , uid , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airline": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "what #airline# serves the most #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) desc limit 1", + "schema_with_content": "airlines : abbreviation (\"American\", \"Frontier\", \"Delta\"), country (\"USA\"), airline (\"American Airlines\", \"American Airlines\", \"United Airlines\"), uid (5, 3, 8) | airports : airportcode (\"AXX\", \"ARX\", \"WKK\"), airportname (\"Alpena County Regional \", \"Merrill Field \", \"George Downer \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Alyeska \", \"Astoria \", \"Apple Valley \") | journeys : airline (4, 8, 1), destairport (\" LTS\", \" ESF\", \" CVO\"), sourceairport (\" ADK\", \" APV\", \" AIA\"), flightno (904, 548, 1245) | routes : airline (4, 8, 1), destairport (\" LTS\", \" ESF\", \" CVO\"), sourceairport (\" ADK\", \" APV\", \" AIA\"), flightno (904, 548, 1245)", + "schema_without_content": "airlines : abbreviation , country , airline , uid | airports : airportcode , airportname , countryabbrev , country , city | journeys : airline , destairport , sourceairport , flightno | routes : airline , destairport , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airline": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "find the #abbreviation# and #country of the airline# that has fewest number of flights?", + "db_id": "flight_2", + "orig_query": "select t1.abbreviation, t1.country from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) limit 1", + "schema_with_content": "aviation_companies : abbreviation (\"Delta\", \"Frontier\", \"Virgin\"), country (\"USA\"), uid (8, 10, 5), airline (\"AirTran Airways\", \"Northwest Airlines\", \"Northwest Airlines\") | airports : countryabbrev (\"US \", \"US\"), airportcode (\"AKP\", \"RFK\", \"QAW\"), city (\" Anniston AL \", \" Aliceville AL \", \"Albert Lea \"), airportname (\"Alton \", \"Amchitka \", \"Apple Valley \"), country (\"United States \") | carriers : abbreviation (\"Delta\", \"Frontier\", \"Virgin\"), country (\"USA\"), uid (8, 10, 5), airline (\"AirTran Airways\", \"Northwest Airlines\", \"Northwest Airlines\") | flights : flightno (574, 793, 488), destairport (\" ADM\", \" AMA\", \" AIV\"), sourceairport (\" APV\", \" LTS\", \" AKK\"), airline (6, 10, 8)", + "schema_without_content": "aviation_companies : abbreviation , country , uid , airline | airports : countryabbrev , airportcode , city , airportname , country | carriers : abbreviation , country , uid , airline | flights : flightno , destairport , sourceairport , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "abbreviation": "airlines.Abbreviation", + "country of the airline": "airlines.Country" + } + }, + { + "question": "find the #abbreviation# and #country of the airline# that has fewest number of flights?", + "db_id": "flight_2", + "orig_query": "select t1.abbreviation, t1.country from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) limit 1", + "schema_with_content": "airlines : country (\"USA\"), airline (\"Frontier Airlines\", \"AirTran Airways\", \"AirTran Airways\"), uid (10, 7, 2), abbreviation (\"Southwest\", \"AirTran\", \"Northwest\") | journeys : airline (6, 6, 5), sourceairport (\" AIA\", \" ARX\", \" ABY\"), flightno (812, 951, 995), destairport (\" AIV\", \" APV\", \" ANN\") | routes : airline (6, 6, 5), sourceairport (\" AIA\", \" ARX\", \" ABY\"), flightno (812, 951, 995), destairport (\" AIV\", \" APV\", \" ANN\") | airports : airportcode (\"AIK\", \"AHT\", \"AHN\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Aspen \", \"Anchorage \", \"Alpine \"), airportname (\"Aspen \", \"Ashley \", \"Albuquerque International \")", + "schema_without_content": "airlines : country , airline , uid , abbreviation | journeys : airline , sourceairport , flightno , destairport | routes : airline , sourceairport , flightno , destairport | airports : airportcode , country , countryabbrev , city , airportname", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "abbreviation": "airlines.Abbreviation", + "country of the airline": "airlines.Country" + } + }, + { + "question": "what is the #abbreviation# of the airilne has the fewest #flights# and what #country# is it in?", + "db_id": "flight_2", + "orig_query": "select t1.abbreviation, t1.country from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) limit 1", + "schema_with_content": "carriers : abbreviation (\"USAir\", \"Allegiant\", \"American\"), country (\"USA\"), airline (\"Southwest Airlines\", \"Virgin America\", \"Frontier Airlines\"), uid (4, 9, 2) | flights : sourceairport (\" KQA\", \" ALB\", \" AMN\"), airline (2, 6, 9), flightno (399, 815, 866), destairport (\" ANV\", \" NDV\", \" ABL\") | aviation_companies : abbreviation (\"USAir\", \"Allegiant\", \"American\"), country (\"USA\"), airline (\"Southwest Airlines\", \"Virgin America\", \"Frontier Airlines\"), uid (4, 9, 2) | airports : airportname (\"Anderson \", \"USN Heliport \", \"Spb \"), countryabbrev (\"US \", \"US\"), city (\"Alameda \", \"Annapolis \", \"Anthony \"), airportcode (\"AQY\", \"AID\", \"ATE\"), country (\"United States \")", + "schema_without_content": "carriers : abbreviation , country , airline , uid | flights : sourceairport , airline , flightno , destairport | aviation_companies : abbreviation , country , airline , uid | airports : airportname , countryabbrev , city , airportcode , country", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "abbreviation": "airlines.Abbreviation", + "flights": "flights", + "country": "airlines.Country", + "airline": "airlines" + } + }, + { + "question": "what is the #abbreviation# of the airilne has the fewest #flights# and what #country# is it in?", + "db_id": "flight_2", + "orig_query": "select t1.abbreviation, t1.country from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline order by count(*) limit 1", + "schema_with_content": "journeys : destairport (\" AMA\", \" ANA\", \" ADG\"), airline (11, 3, 9), flightno (899, 543, 1054), sourceairport (\" ADR\", \" ASY\", \" AIV\") | airlines : country (\"USA\"), uid (5, 2, 7), abbreviation (\"AirTran\", \"AirTran\", \"Delta\"), airline (\"Southwest Airlines\", \"Delta Airlines\", \"Continental Airlines\") | airports : airportcode (\"JLH\", \"ADK\", \"AIA\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Rick Husband Amarillo International \", \"Alitak SPB \", \"Ainsworth \"), city (\"Aiken \", \"Angel Fire \", \"Artesia \") | routes : destairport (\" AMA\", \" ANA\", \" ADG\"), airline (11, 3, 9), flightno (899, 543, 1054), sourceairport (\" ADR\", \" ASY\", \" AIV\")", + "schema_without_content": "journeys : destairport , airline , flightno , sourceairport | airlines : country , uid , abbreviation , airline | airports : airportcode , countryabbrev , country , airportname , city | routes : destairport , airline , flightno , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "abbreviation": "airlines.Abbreviation", + "flights": "flights", + "country": "airlines.Country", + "airline": "airlines" + } + }, + { + "question": "what are #airlines# that have some #flight departing from airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"AHD\"", + "schema_with_content": "flights : airline (6, 4, 4), flightno (562, 351, 260), sourceairport (\" AIA\", \" ABI\", \" ASY\"), destairport (\" AAF\", \" ANI\", \" AHD\") | aviation_companies : uid (1, 3, 11), abbreviation (\"USAir\", \"USAir\", \"Continental\"), country (\"USA\"), airline (\"Allegiant Air\", \"American Airlines\", \"Allegiant Air\") | airports : country (\"United States \"), airportcode (\"DYS\", \"CVO\", \"EDF\"), airportname (\"Adak Island Ns \", \"Aleknagik \", \"Rollang Field \"), countryabbrev (\"US \", \"US\"), city (\"Anthony \", \"Akron CO \", \"Akhiok \") | carriers : uid (1, 3, 11), abbreviation (\"USAir\", \"USAir\", \"Continental\"), country (\"USA\"), airline (\"Allegiant Air\", \"American Airlines\", \"Allegiant Air\")", + "schema_without_content": "flights : airline , flightno , sourceairport , destairport | aviation_companies : uid , abbreviation , country , airline | airports : country , airportcode , airportname , countryabbrev , city | carriers : uid , abbreviation , country , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flight departing from airport": "flights.SourceAirport" + } + }, + { + "question": "what are #airlines# that have some #flight departing from airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"AHD\"", + "schema_with_content": "routes : sourceairport (\" APG\", \" AED\", \" ANB\"), flightno (109, 1216, 99), airline (3, 2, 12), destairport (\" MMI\", \" ATE\", \" AND\") | airports : countryabbrev (\"US \", \"US\"), city (\"Alyeska \", \"Arapahoe \", \"Ardmore \"), country (\"United States \"), airportname (\"Colorado Plains Regional Airport \", \"McMinn County \", \"Akron/canton Regional \"), airportcode (\"AHD\", \"HMN\", \"RFK\") | airlines : country (\"USA\"), airline (\"JetBlue Airways\", \"Continental Airlines\", \"Northwest Airlines\"), abbreviation (\"USAir\", \"Frontier\", \"Delta\"), uid (7, 2, 10) | journeys : sourceairport (\" APG\", \" AED\", \" ANB\"), flightno (109, 1216, 99), airline (3, 2, 12), destairport (\" MMI\", \" ATE\", \" AND\")", + "schema_without_content": "routes : sourceairport , flightno , airline , destairport | airports : countryabbrev , city , country , airportname , airportcode | airlines : country , airline , abbreviation , uid | journeys : sourceairport , flightno , airline , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flight departing from airport": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have a flight with #source airport# ahd?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"AHD\"", + "schema_with_content": "aviation_companies : country (\"USA\"), uid (8, 8, 2), airline (\"Virgin America\", \"Allegiant Air\", \"American Airlines\"), abbreviation (\"USAir\", \"Allegiant\", \"Allegiant\") | carriers : country (\"USA\"), uid (8, 8, 2), airline (\"Virgin America\", \"Allegiant Air\", \"American Airlines\"), abbreviation (\"USAir\", \"Allegiant\", \"Allegiant\") | flights : flightno (158, 1226, 1225), sourceairport (\" AND\", \" JLH\", \" AXX\"), airline (3, 11, 9), destairport (\" AMW\", \" CAK\", \" ATO\") | airports : country (\"United States \"), airportname (\"Anaktuvuk \", \"Rollang Field \", \"Albany \"), city (\"Anacostia \", \"Angoon \", \"Artesia \"), countryabbrev (\"US \", \"US\"), airportcode (\"ALN\", \"ADK\", \"ALB\")", + "schema_without_content": "aviation_companies : country , uid , airline , abbreviation | carriers : country , uid , airline , abbreviation | flights : flightno , sourceairport , airline , destairport | airports : country , airportname , city , countryabbrev , airportcode", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "source airport": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have a flight with #source airport# ahd?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"AHD\"", + "schema_with_content": "journeys : sourceairport (\" APN\", \" RFK\", \" ATW\"), destairport (\" AFO\", \" AHN\", \" AUK\"), airline (12, 6, 5), flightno (893, 1132, 1173) | airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Ashley \", \"Arctic Village \", \"Ambler \"), city (\"Ambler \", \"Angola \", \"Alyeska \"), airportcode (\"NGZ\", \"ALN\", \"LTS\") | airlines : country (\"USA\"), airline (\"American Airlines\", \"AirTran Airways\", \"American Airlines\"), uid (4, 5, 6), abbreviation (\"JetBlue\", \"Virgin\", \"Allegiant\") | routes : sourceairport (\" APN\", \" RFK\", \" ATW\"), destairport (\" AFO\", \" AHN\", \" AUK\"), airline (12, 6, 5), flightno (893, 1132, 1173)", + "schema_without_content": "journeys : sourceairport , destairport , airline , flightno | airports : countryabbrev , country , airportname , city , airportcode | airlines : country , airline , uid , abbreviation | routes : sourceairport , destairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "source airport": "flights.SourceAirport" + } + }, + { + "question": "what are #airlines# that have #flights# arriving at #airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.destairport = \"AHD\"", + "schema_with_content": "aviation_companies : abbreviation (\"Southwest\", \"Northwest\", \"Continental\"), uid (3, 1, 7), airline (\"Delta Airlines\", \"US Airways\", \"Southwest Airlines\"), country (\"USA\") | flights : sourceairport (\" ABR\", \" VJI\", \" AKI\"), destairport (\" AAF\", \" ABR\", \" CVO\"), flightno (932, 859, 490), airline (10, 1, 10) | airports : airportname (\"Algona \", \"Akutan \", \"Arcata \"), airportcode (\"AHF\", \"ANP\", \"ALI\"), country (\"United States \"), city (\" Anniston AL \", \"Akron/Canton \", \"Anacortes \"), countryabbrev (\"US \", \"US\") | carriers : abbreviation (\"Southwest\", \"Northwest\", \"Continental\"), uid (3, 1, 7), airline (\"Delta Airlines\", \"US Airways\", \"Southwest Airlines\"), country (\"USA\")", + "schema_without_content": "aviation_companies : abbreviation , uid , airline , country | flights : sourceairport , destairport , flightno , airline | airports : airportname , airportcode , country , city , countryabbrev | carriers : abbreviation , uid , airline , country", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights", + "airport": "flights.DestAirport" + } + }, + { + "question": "what are #airlines# that have #flights# arriving at #airport# 'ahd'?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.destairport = \"AHD\"", + "schema_with_content": "journeys : destairport (\" AIK\", \" ANP\", \" EDF\"), flightno (1206, 1257, 1274), sourceairport (\" ATS\", \" RLI\", \" KKI\"), airline (6, 10, 1) | routes : destairport (\" AIK\", \" ANP\", \" EDF\"), flightno (1206, 1257, 1274), sourceairport (\" ATS\", \" RLI\", \" KKI\"), airline (6, 10, 1) | airlines : abbreviation (\"Delta\", \"Delta\", \"Allegiant\"), uid (3, 1, 11), airline (\"US Airways\", \"AirTran Airways\", \"Delta Airlines\"), country (\"USA\") | airports : city (\"Albany \", \"Amery \", \"Anaktuvuk \"), airportcode (\"VJI\", \"LTS\", \"AHF\"), airportname (\"Fulton International \", \"Annette Island \", \"Anaktuvuk \"), countryabbrev (\"US \", \"US\"), country (\"United States \")", + "schema_without_content": "journeys : destairport , flightno , sourceairport , airline | routes : destairport , flightno , sourceairport , airline | airlines : abbreviation , uid , airline , country | airports : city , airportcode , airportname , countryabbrev , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights", + "airport": "flights.DestAirport" + } + }, + { + "question": "which #airlines# have a flight with #destination airport# ahd?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.destairport = \"AHD\"", + "schema_with_content": "carriers : airline (\"Frontier Airlines\", \"Northwest Airlines\", \"Frontier Airlines\"), uid (8, 11, 2), country (\"USA\"), abbreviation (\"Northwest\", \"Continental\", \"Delta\") | aviation_companies : airline (\"Frontier Airlines\", \"Northwest Airlines\", \"Frontier Airlines\"), uid (8, 11, 2), country (\"USA\"), abbreviation (\"Northwest\", \"Continental\", \"Delta\") | airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"ANQ\", \"ADG\", \"AIB\"), city (\"Athens \", \"Alma \", \"Angola \"), airportname (\"Anita Bay \", \"Dougherty County \", \"Alitak SPB \") | flights : destairport (\" TDW\", \" ASX\", \" ARC\"), sourceairport (\" AXX\", \" ANW\", \" NDV\"), airline (3, 11, 11), flightno (604, 158, 1050)", + "schema_without_content": "carriers : airline , uid , country , abbreviation | aviation_companies : airline , uid , country , abbreviation | airports : countryabbrev , country , airportcode , city , airportname | flights : destairport , sourceairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "destination airport": "flights.DestAirport" + } + }, + { + "question": "which #airlines# have a flight with #destination airport# ahd?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.destairport = \"AHD\"", + "schema_with_content": "journeys : destairport (\" ANV\", \" ASX\", \" AKI\"), flightno (454, 1050, 859), airline (1, 12, 8), sourceairport (\" TDW\", \" AHD\", \" APN\") | airports : airportcode (\"HMN\", \"AKC\", \"AIB\"), airportname (\"Alpine \", \"Astoria \", \"Alton \"), city (\"Arcata \", \"Alma \", \" Neptune \"), country (\"United States \"), countryabbrev (\"US \", \"US\") | routes : destairport (\" ANV\", \" ASX\", \" AKI\"), flightno (454, 1050, 859), airline (1, 12, 8), sourceairport (\" TDW\", \" AHD\", \" APN\") | airlines : country (\"USA\"), airline (\"Continental Airlines\", \"JetBlue Airways\", \"JetBlue Airways\"), uid (9, 10, 9), abbreviation (\"JetBlue\", \"Southwest\", \"AirTran\")", + "schema_without_content": "journeys : destairport , flightno , airline , sourceairport | airports : airportcode , airportname , city , country , countryabbrev | routes : destairport , flightno , airline , sourceairport | airlines : country , airline , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "destination airport": "flights.DestAirport" + } + }, + { + "question": "find all #airlines# that have #flights# from both #airports 'apg'# and 'cvo'.", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\" intersect select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\"", + "schema_with_content": "airports : airportname (\"Amchitka \", \"Albuquerque International \", \"Andrews \"), airportcode (\"ABL\", \"ASX\", \"ADR\"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Abilene \", \"Amchitka \", \"Ainsworth \") | aviation_companies : country (\"USA\"), uid (4, 1, 8), abbreviation (\"AirTran\", \"JetBlue\", \"Continental\"), airline (\"Delta Airlines\", \"United Airlines\", \"Allegiant Air\") | flights : airline (7, 7, 8), flightno (126, 1357, 1037), destairport (\" ALZ\", \" ALM\", \" MMI\"), sourceairport (\" TDW\", \" AID\", \" AEX\") | carriers : country (\"USA\"), uid (4, 1, 8), abbreviation (\"AirTran\", \"JetBlue\", \"Continental\"), airline (\"Delta Airlines\", \"United Airlines\", \"Allegiant Air\")", + "schema_without_content": "airports : airportname , airportcode , countryabbrev , country , city | aviation_companies : country , uid , abbreviation , airline | flights : airline , flightno , destairport , sourceairport | carriers : country , uid , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines", + "flights": "flights.SourceAirport", + "airports 'APG'": "flights.SourceAirport", + "airports 'CVO'": "flights.SourceAirport" + } + }, + { + "question": "find all #airlines# that have #flights# from both #airports 'apg'# and 'cvo'.", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\" intersect select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\"", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), city (\"Antlers \", \"Alamosa \", \"Arapahoe \"), airportname (\"Anacortes \", \"Alexandria International \", \"Dougherty County \"), airportcode (\"AET\", \"AXX\", \"ADK\"), country (\"United States \") | journeys : sourceairport (\" ESF\", \" AFO\", \" ANN\"), flightno (658, 90, 271), destairport (\" ALN\", \" AOS\", \" ADM\"), airline (3, 4, 3) | routes : sourceairport (\" ESF\", \" AFO\", \" ANN\"), flightno (658, 90, 271), destairport (\" ALN\", \" AOS\", \" ADM\"), airline (3, 4, 3) | airlines : uid (9, 4, 10), country (\"USA\"), abbreviation (\"Northwest\", \"UAL\", \"JetBlue\"), airline (\"American Airlines\", \"Continental Airlines\", \"Delta Airlines\")", + "schema_without_content": "airports : countryabbrev , city , airportname , airportcode , country | journeys : sourceairport , flightno , destairport , airline | routes : sourceairport , flightno , destairport , airline | airlines : uid , country , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines", + "flights": "flights.SourceAirport", + "airports 'APG'": "flights.SourceAirport", + "airports 'CVO'": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have #departing flights# from both #apg# and #cvo# airports?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\" intersect select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\"", + "schema_with_content": "aviation_companies : country (\"USA\"), airline (\"American Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), uid (6, 6, 6), abbreviation (\"Allegiant\", \"Southwest\", \"American\") | airports : airportcode (\"AXN\", \"ANQ\", \"AET\"), city (\"Alamogordo \", \"Alpine \", \"Alliance \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Akiak \", \"Akron/canton Regional \", \"Downtown \") | flights : flightno (546, 627, 358), airline (7, 4, 2), destairport (\" AHT\", \" ANN\", \" AIB\"), sourceairport (\" ABY\", \" ANC\", \" AED\") | carriers : country (\"USA\"), airline (\"American Airlines\", \"Northwest Airlines\", \"Allegiant Air\"), uid (6, 6, 6), abbreviation (\"Allegiant\", \"Southwest\", \"American\")", + "schema_without_content": "aviation_companies : country , airline , uid , abbreviation | airports : airportcode , city , country , countryabbrev , airportname | flights : flightno , airline , destairport , sourceairport | carriers : country , airline , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "departing flights": "flights.SourceAirport", + "APG": "flights.SourceAirport", + "CVO": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have #departing flights# from both #apg# and #cvo# airports?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\" intersect select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\"", + "schema_with_content": "journeys : destairport (\" ATE\", \" ANQ\", \" ALZ\"), airline (6, 4, 1), flightno (71, 1254, 983), sourceairport (\" ESF\", \" AXN\", \" APG\") | airports : airportname (\"Artesia \", \"Aleneva \", \"Outagamie County \"), city (\"Arcata \", \"Amery \", \"Alamosa \"), airportcode (\"AKP\", \"ADR\", \"ABI\"), countryabbrev (\"US \", \"US\"), country (\"United States \") | airlines : airline (\"JetBlue Airways\", \"AirTran Airways\", \"Continental Airlines\"), country (\"USA\"), abbreviation (\"USAir\", \"American\", \"Southwest\"), uid (8, 12, 3) | routes : destairport (\" ATE\", \" ANQ\", \" ALZ\"), airline (6, 4, 1), flightno (71, 1254, 983), sourceairport (\" ESF\", \" AXN\", \" APG\")", + "schema_without_content": "journeys : destairport , airline , flightno , sourceairport | airports : airportname , city , airportcode , countryabbrev , country | airlines : airline , country , abbreviation , uid | routes : destairport , airline , flightno , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "departing flights": "flights.SourceAirport", + "APG": "flights.SourceAirport", + "CVO": "flights.SourceAirport" + } + }, + { + "question": "find all #airlines# that have #flights# from #airport 'cvo'# but not from 'apg'.", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\" except select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\"", + "schema_with_content": "carriers : uid (2, 7, 7), abbreviation (\"Northwest\", \"Allegiant\", \"Southwest\"), airline (\"Southwest Airlines\", \"JetBlue Airways\", \"Delta Airlines\"), country (\"USA\") | flights : airline (7, 6, 7), destairport (\" ABL\", \" ALX\", \" APV\"), flightno (829, 1253, 546), sourceairport (\" ANP\", \" TDW\", \" ANB\") | airports : country (\"United States \"), airportcode (\"RFK\", \"TDW\", \"ARB\"), airportname (\"Angel Fire \", \"Ada \", \"Esler Field \"), city (\"Anaktuvuk \", \"Alexandria Bay \", \"Alexandria \"), countryabbrev (\"US \", \"US\") | aviation_companies : uid (2, 7, 7), abbreviation (\"Northwest\", \"Allegiant\", \"Southwest\"), airline (\"Southwest Airlines\", \"JetBlue Airways\", \"Delta Airlines\"), country (\"USA\")", + "schema_without_content": "carriers : uid , abbreviation , airline , country | flights : airline , destairport , flightno , sourceairport | airports : country , airportcode , airportname , city , countryabbrev | aviation_companies : uid , abbreviation , airline , country", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines", + "flights": "flights", + "airport 'CVO'": "flights.SourceAirport", + "airport 'APG'": "flights.SourceAirport" + } + }, + { + "question": "find all #airlines# that have #flights# from #airport 'cvo'# but not from 'apg'.", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\" except select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\"", + "schema_with_content": "journeys : flightno (69, 790, 179), sourceairport (\" ANP\", \" AXG\", \" ADM\"), airline (9, 3, 10), destairport (\" LTS\", \" NGZ\", \" AIV\") | airlines : airline (\"American Airlines\", \"American Airlines\", \"Continental Airlines\"), uid (3, 11, 6), country (\"USA\"), abbreviation (\"Frontier\", \"AirTran\", \"Virgin\") | routes : flightno (69, 790, 179), sourceairport (\" ANP\", \" AXG\", \" ADM\"), airline (9, 3, 10), destairport (\" LTS\", \" NGZ\", \" AIV\") | airports : airportcode (\"AED\", \"NAB\", \"ABL\"), countryabbrev (\"US \", \"US\"), city (\"Amityville \", \"Ainsworth \", \"Arcata \"), airportname (\"Alakanuk \", \"Ambler \", \"Anacortes \"), country (\"United States \")", + "schema_without_content": "journeys : flightno , sourceairport , airline , destairport | airlines : airline , uid , country , abbreviation | routes : flightno , sourceairport , airline , destairport | airports : airportcode , countryabbrev , city , airportname , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines", + "flights": "flights", + "airport 'CVO'": "flights.SourceAirport", + "airport 'APG'": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have #departures from cvo# but not from #apg# airports?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\" except select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\"", + "schema_with_content": "airports : airportname (\"NAS \", \"Alyeska \", \"Aleknagik \"), airportcode (\"ATO\", \"MMI\", \"ANN\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Anderson \", \"Albert Lea \", \"Arcata \") | carriers : airline (\"Northwest Airlines\", \"United Airlines\", \"Southwest Airlines\"), country (\"USA\"), abbreviation (\"American\", \"USAir\", \"Southwest\"), uid (3, 10, 9) | flights : destairport (\" AFO\", \" ALI\", \" AGN\"), sourceairport (\" ATO\", \" AIA\", \" ABY\"), airline (12, 10, 6), flightno (122, 708, 157) | aviation_companies : airline (\"Northwest Airlines\", \"United Airlines\", \"Southwest Airlines\"), country (\"USA\"), abbreviation (\"American\", \"USAir\", \"Southwest\"), uid (3, 10, 9)", + "schema_without_content": "airports : airportname , airportcode , country , countryabbrev , city | carriers : airline , country , abbreviation , uid | flights : destairport , sourceairport , airline , flightno | aviation_companies : airline , country , abbreviation , uid", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "departures from CVO": "flights.SourceAirport", + "APG": "flights.SourceAirport" + } + }, + { + "question": "which #airlines# have #departures from cvo# but not from #apg# airports?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"CVO\" except select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"APG\"", + "schema_with_content": "routes : flightno (1349, 640, 58), airline (12, 10, 11), sourceairport (\" AIV\", \" AXX\", \" AKK\"), destairport (\" AXB\", \" AHN\", \" ADK\") | airlines : abbreviation (\"Virgin\", \"Northwest\", \"JetBlue\"), uid (1, 9, 8), country (\"USA\"), airline (\"AirTran Airways\", \"JetBlue Airways\", \"Continental Airlines\") | journeys : flightno (1349, 640, 58), airline (12, 10, 11), sourceairport (\" AIV\", \" AXX\", \" AKK\"), destairport (\" AXB\", \" AHN\", \" ADK\") | airports : airportcode (\"ABI\", \"APV\", \"ALB\"), countryabbrev (\"US \", \"US\"), airportname (\"Anderson \", \"Ft Mcclellan Bus Trml \", \"Rollang Field \"), city (\"Alton \", \" Alexandria LA \", \"Alpine \"), country (\"United States \")", + "schema_without_content": "routes : flightno , airline , sourceairport , destairport | airlines : abbreviation , uid , country , airline | journeys : flightno , airline , sourceairport , destairport | airports : airportcode , countryabbrev , airportname , city , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "departures from CVO": "flights.SourceAirport", + "APG": "flights.SourceAirport" + } + }, + { + "question": "find all #airlines# that have at least 10 #flights# .", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", + "schema_with_content": "carriers : abbreviation (\"Northwest\", \"Frontier\", \"Northwest\"), uid (1, 5, 8), country (\"USA\"), airline (\"Delta Airlines\", \"JetBlue Airways\", \"Southwest Airlines\") | aviation_companies : abbreviation (\"Northwest\", \"Frontier\", \"Northwest\"), uid (1, 5, 8), country (\"USA\"), airline (\"Delta Airlines\", \"JetBlue Airways\", \"Southwest Airlines\") | flights : destairport (\" AOS\", \" ALB\", \" ANP\"), sourceairport (\" ABL\", \" AOS\", \" APN\"), airline (2, 8, 4), flightno (7, 409, 340) | airports : city (\"Amityville \", \"Albert Lea \", \"Aiken \"), airportcode (\"AID\", \"AXX\", \"NDV\"), countryabbrev (\"US \", \"US\"), airportname (\"Albert Lea \", \"Ardmore Municipal Arpt \", \"Arcata \"), country (\"United States \")", + "schema_without_content": "carriers : abbreviation , uid , country , airline | aviation_companies : abbreviation , uid , country , airline | flights : destairport , sourceairport , airline , flightno | airports : city , airportcode , countryabbrev , airportname , country", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "find all #airlines# that have at least 10 #flights# .", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", + "schema_with_content": "routes : flightno (624, 816, 368), airline (1, 5, 9), destairport (\" QAW\", \" ABY\", \" ABI\"), sourceairport (\" ALN\", \" ATE\", \" ANI\") | journeys : flightno (624, 816, 368), airline (1, 5, 9), destairport (\" QAW\", \" ABY\", \" ABI\"), sourceairport (\" ALN\", \" ATE\", \" ANI\") | airlines : airline (\"Southwest Airlines\", \"Virgin America\", \"American Airlines\"), abbreviation (\"Northwest\", \"AirTran\", \"JetBlue\"), country (\"USA\"), uid (3, 5, 6) | airports : airportname (\"Amook \", \"Dyess AFB \", \"Anaktuvuk \"), airportcode (\"ASY\", \"OTS\", \"NGZ\"), countryabbrev (\"US \", \"US\"), city (\"Aiken \", \"Aniak \", \"Allakaket \"), country (\"United States \")", + "schema_without_content": "routes : flightno , airline , destairport , sourceairport | journeys : flightno , airline , destairport , sourceairport | airlines : airline , abbreviation , country , uid | airports : airportname , airportcode , countryabbrev , city , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "which #airlines# have at least 10 #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", + "schema_with_content": "aviation_companies : abbreviation (\"JetBlue\", \"Delta\", \"USAir\"), country (\"USA\"), airline (\"Delta Airlines\", \"Northwest Airlines\", \"Southwest Airlines\"), uid (8, 7, 3) | flights : sourceairport (\" AEL\", \" ALZ\", \" AIK\"), airline (11, 4, 7), destairport (\" NAB\", \" ADR\", \" VJI\"), flightno (1071, 372, 84) | airports : airportname (\"Rick Husband Amarillo International \", \"Ada \", \"Anderson \"), country (\"United States \"), airportcode (\"WKK\", \"AHN\", \"AID\"), city (\"Alpena \", \"Anaktuvuk \", \"Ambler \"), countryabbrev (\"US \", \"US\") | carriers : abbreviation (\"JetBlue\", \"Delta\", \"USAir\"), country (\"USA\"), airline (\"Delta Airlines\", \"Northwest Airlines\", \"Southwest Airlines\"), uid (8, 7, 3)", + "schema_without_content": "aviation_companies : abbreviation , country , airline , uid | flights : sourceairport , airline , destairport , flightno | airports : airportname , country , airportcode , city , countryabbrev | carriers : abbreviation , country , airline , uid", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "which #airlines# have at least 10 #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", + "schema_with_content": "airports : airportcode (\"ADT\", \"ATO\", \"NGZ\"), countryabbrev (\"US \", \"US\"), airportname (\"Ohio University \", \"Adak Island Ns \", \"Anaktuvuk \"), country (\"United States \"), city (\"Ambler \", \"Anthony \", \" Aliceville AL \") | airlines : airline (\"Allegiant Air\", \"Continental Airlines\", \"AirTran Airways\"), abbreviation (\"Allegiant\", \"American\", \"Northwest\"), uid (9, 1, 1), country (\"USA\") | routes : sourceairport (\" AXG\", \" KQA\", \" ATS\"), flightno (774, 207, 1347), airline (6, 11, 11), destairport (\" AET\", \" AND\", \" ALS\") | journeys : sourceairport (\" AXG\", \" KQA\", \" ATS\"), flightno (774, 207, 1347), airline (6, 11, 11), destairport (\" AET\", \" AND\", \" ALS\")", + "schema_without_content": "airports : airportcode , countryabbrev , airportname , country , city | airlines : airline , abbreviation , uid , country | routes : sourceairport , flightno , airline , destairport | journeys : sourceairport , flightno , airline , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "find all #airlines# that have fewer than 200 #flights# .", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) < 200", + "schema_with_content": "flights : airline (6, 2, 3), flightno (889, 276, 1534), sourceairport (\" AID\", \" ACV\", \" RLI\"), destairport (\" ABL\", \" KQA\", \" APV\") | airports : city (\"Albert Lea \", \"Amery \", \"Anderson \"), airportcode (\"AIK\", \"AXG\", \"AEX\"), airportname (\"Merrill Field \", \"Spb \", \"Orange County Steel Salvage Heliport \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | aviation_companies : airline (\"Virgin America\", \"JetBlue Airways\", \"US Airways\"), country (\"USA\"), uid (5, 11, 5), abbreviation (\"USAir\", \"Continental\", \"Frontier\") | carriers : airline (\"Virgin America\", \"JetBlue Airways\", \"US Airways\"), country (\"USA\"), uid (5, 11, 5), abbreviation (\"USAir\", \"Continental\", \"Frontier\")", + "schema_without_content": "flights : airline , flightno , sourceairport , destairport | airports : city , airportcode , airportname , countryabbrev , country | aviation_companies : airline , country , uid , abbreviation | carriers : airline , country , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "find all #airlines# that have fewer than 200 #flights# .", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) < 200", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Elmendorf Afb \", \"Albany \", \"Algona \"), airportcode (\"AIV\", \"AHD\", \"AXB\"), city (\"Anvik \", \"Afton \", \"Abilene \") | airlines : abbreviation (\"Virgin\", \"Virgin\", \"Continental\"), airline (\"Southwest Airlines\", \"Southwest Airlines\", \"Delta Airlines\"), uid (3, 1, 6), country (\"USA\") | routes : sourceairport (\" ALS\", \" ANV\", \" NAB\"), flightno (892, 1141, 656), destairport (\" ADK\", \" ANW\", \" ANA\"), airline (4, 3, 1) | journeys : sourceairport (\" ALS\", \" ANV\", \" NAB\"), flightno (892, 1141, 656), destairport (\" ADK\", \" ANW\", \" ANA\"), airline (4, 3, 1)", + "schema_without_content": "airports : countryabbrev , country , airportname , airportcode , city | airlines : abbreviation , airline , uid , country | routes : sourceairport , flightno , destairport , airline | journeys : sourceairport , flightno , destairport , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "which #airlines# have less than 200 #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) < 200", + "schema_with_content": "carriers : uid (11, 9, 6), country (\"USA\"), airline (\"Frontier Airlines\", \"Virgin America\", \"JetBlue Airways\"), abbreviation (\"American\", \"Virgin\", \"Delta\") | airports : airportname (\"Fulton International \", \"Akron/canton Regional \", \"McMinn County \"), airportcode (\"AOS\", \"ABI\", \"CVO\"), countryabbrev (\"US \", \"US\"), city (\"Aiken \", \" Amarillo \", \"Annapolis \"), country (\"United States \") | flights : airline (7, 8, 5), sourceairport (\" KKI\", \" NAB\", \" ALN\"), destairport (\" AFO\", \" LTS\", \" HMN\"), flightno (133, 122, 1139) | aviation_companies : uid (11, 9, 6), country (\"USA\"), airline (\"Frontier Airlines\", \"Virgin America\", \"JetBlue Airways\"), abbreviation (\"American\", \"Virgin\", \"Delta\")", + "schema_without_content": "carriers : uid , country , airline , abbreviation | airports : airportname , airportcode , countryabbrev , city , country | flights : airline , sourceairport , destairport , flightno | aviation_companies : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "which #airlines# have less than 200 #flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) < 200", + "schema_with_content": "airports : airportcode (\"ANQ\", \"ANP\", \"AIA\"), country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Alexandria Bay \", \"Ainsworth \", \"Asbury Park \"), city (\"Amook \", \"Aspen \", \"Adrian \") | routes : destairport (\" ATS\", \" HMN\", \" ALB\"), flightno (1375, 813, 1427), sourceairport (\" MRI\", \" ANA\", \" ANP\"), airline (2, 2, 10) | journeys : destairport (\" ATS\", \" HMN\", \" ALB\"), flightno (1375, 813, 1427), sourceairport (\" MRI\", \" ANA\", \" ANP\"), airline (2, 2, 10) | airlines : uid (8, 4, 10), abbreviation (\"Southwest\", \"Delta\", \"Frontier\"), airline (\"Northwest Airlines\", \"Continental Airlines\", \"US Airways\"), country (\"USA\")", + "schema_without_content": "airports : airportcode , country , countryabbrev , airportname , city | routes : destairport , flightno , sourceairport , airline | journeys : destairport , flightno , sourceairport , airline | airlines : uid , abbreviation , airline , country", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airlines": "airlines.Airline", + "flights": "flights" + } + }, + { + "question": "what are #flight numbers of airline# \"united airlines\"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"United Airlines\"", + "schema_with_content": "flights : destairport (\" ABR\", \" AXX\", \" RFK\"), sourceairport (\" AGN\", \" ABI\", \" NAB\"), airline (11, 6, 3), flightno (705, 991, 943) | carriers : airline (\"Continental Airlines\", \"Virgin America\", \"United Airlines\"), abbreviation (\"Continental\", \"American\", \"UAL\"), country (\"USA\"), uid (5, 7, 2) | aviation_companies : airline (\"Continental Airlines\", \"Virgin America\", \"United Airlines\"), abbreviation (\"Continental\", \"American\", \"UAL\"), country (\"USA\"), uid (5, 7, 2) | airports : airportcode (\"DYS\", \"ADG\", \"ANY\"), countryabbrev (\"US \", \"US\"), airportname (\"US Army Heliport \", \"Akutan \", \"Anaktuvuk \"), country (\"United States \"), city (\"Aspen \", \"Anchorage \", \"Anacortes \")", + "schema_without_content": "flights : destairport , sourceairport , airline , flightno | carriers : airline , abbreviation , country , uid | aviation_companies : airline , abbreviation , country , uid | airports : airportcode , countryabbrev , airportname , country , city", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "flight numbers of Airline": "flights.FlightNo" + } + }, + { + "question": "what are #flight numbers of airline# \"united airlines\"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"United Airlines\"", + "schema_with_content": "journeys : sourceairport (\" ANV\", \" CVO\", \" ABY\"), flightno (920, 293, 1231), airline (1, 10, 3), destairport (\" ADR\", \" ADM\", \" AEL\") | routes : sourceairport (\" ANV\", \" CVO\", \" ABY\"), flightno (920, 293, 1231), airline (1, 10, 3), destairport (\" ADR\", \" ADM\", \" AEL\") | airports : city (\"Aiken \", \"Alton \", \"Anthony \"), country (\"United States \"), airportcode (\"AKC\", \"WKK\", \"ANA\"), airportname (\"Zahns \", \"USN Heliport \", \"Alexandria International \"), countryabbrev (\"US \", \"US\") | airlines : airline (\"JetBlue Airways\", \"AirTran Airways\", \"Southwest Airlines\"), country (\"USA\"), uid (9, 4, 5), abbreviation (\"Allegiant\", \"American\", \"Allegiant\")", + "schema_without_content": "journeys : sourceairport , flightno , airline , destairport | routes : sourceairport , flightno , airline , destairport | airports : city , country , airportcode , airportname , countryabbrev | airlines : airline , country , uid , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers of Airline": "flights.FlightNo" + } + }, + { + "question": "which #flight numbers# correspond to #united airlines flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"United Airlines\"", + "schema_with_content": "aviation_companies : country (\"USA\"), airline (\"United Airlines\", \"Frontier Airlines\", \"JetBlue Airways\"), uid (3, 5, 4), abbreviation (\"UAL\", \"Southwest\", \"Southwest\") | carriers : country (\"USA\"), airline (\"United Airlines\", \"Frontier Airlines\", \"JetBlue Airways\"), uid (3, 5, 4), abbreviation (\"UAL\", \"Southwest\", \"Southwest\") | flights : airline (4, 4, 1), sourceairport (\" EDF\", \" ABL\", \" ALI\"), destairport (\" CVO\", \" AKO\", \" AKK\"), flightno (443, 645, 109) | airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Virginia Highlands \", \"Holloman AFB \", \"Andrews \"), city (\"Akiachak \", \"Akron/Canton OH \", \"Anaktuvuk \"), airportcode (\"ESF\", \"AET\", \"AHF\")", + "schema_without_content": "aviation_companies : country , airline , uid , abbreviation | carriers : country , airline , uid , abbreviation | flights : airline , sourceairport , destairport , flightno | airports : countryabbrev , country , airportname , city , airportcode", + "extra_map": null, + "extra_table_map": { + "airlines": [ + "carriers", + "aviation_companies" + ] + }, + "db_schema": { + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "United Airlines flights": "airlines.Airline" + } + }, + { + "question": "which #flight numbers# correspond to #united airlines flights# ?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"United Airlines\"", + "schema_with_content": "routes : destairport (\" APV\", \" ANV\", \" ALX\"), flightno (1162, 311, 284), airline (11, 8, 6), sourceairport (\" AHH\", \" KKI\", \" AIB\") | airlines : airline (\"Continental Airlines\", \"Continental Airlines\", \"Continental Airlines\"), uid (6, 4, 7), country (\"USA\"), abbreviation (\"Virgin\", \"Frontier\", \"Allegiant\") | journeys : destairport (\" APV\", \" ANV\", \" ALX\"), flightno (1162, 311, 284), airline (11, 8, 6), sourceairport (\" AHH\", \" KKI\", \" AIB\") | airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"Andrews \", \"Albany NAS \", \"Merrill Field \"), airportcode (\"AFO\", \"ANQ\", \"AAF\"), city (\"Ada \", \"Alyeska \", \"Astoria \")", + "schema_without_content": "routes : destairport , flightno , airline , sourceairport | airlines : airline , uid , country , abbreviation | journeys : destairport , flightno , airline , sourceairport | airports : countryabbrev , country , airportname , airportcode , city", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "United Airlines flights": "airlines.Airline" + } + }, + { + "question": "what are #flight numbers# of flights #departing from airport# \"apg\"?", + "db_id": "flight_2", + "orig_query": "select flightno from flights where sourceairport = \"APG\"", + "schema_with_content": "routes : destairport (\" ALI\", \" APN\", \" AKP\"), airline (6, 2, 3), sourceairport (\" ANA\", \" AEL\", \" AAF\"), flightno (524, 1132, 827) | journeys : destairport (\" ALI\", \" APN\", \" AKP\"), airline (6, 2, 3), sourceairport (\" ANA\", \" AEL\", \" AAF\"), flightno (524, 1132, 827) | airports : country (\"United States \"), city (\"Allakaket \", \"Antlers \", \"Anacostia \"), airportcode (\"AED\", \"ATE\", \"EDF\"), countryabbrev (\"US \", \"US\"), airportname (\"Andrews \", \"Ambler \", \"Alyeska \") | airlines : airline (\"AirTran Airways\", \"Frontier Airlines\", \"JetBlue Airways\"), uid (11, 7, 10), country (\"USA\"), abbreviation (\"Delta\", \"Southwest\", \"Southwest\")", + "schema_without_content": "routes : destairport , airline , sourceairport , flightno | journeys : destairport , airline , sourceairport , flightno | airports : country , city , airportcode , countryabbrev , airportname | airlines : airline , uid , country , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "departing from Airport": "flights.SourceAirport" + } + }, + { + "question": "give the #flight numbers# of flights #leaving from# apg.", + "db_id": "flight_2", + "orig_query": "select flightno from flights where sourceairport = \"APG\"", + "schema_with_content": "airports : city (\"Akiachak \", \"Ainsworth \", \"Alamosa \"), airportcode (\"KKI\", \"AET\", \"ADM\"), airportname (\"Dougherty County \", \"Anaktuvuk \", \"Asbury Park \"), countryabbrev (\"US \", \"US\"), country (\"United States \") | airlines : uid (2, 7, 1), country (\"USA\"), airline (\"Virgin America\", \"Southwest Airlines\", \"US Airways\"), abbreviation (\"American\", \"Northwest\", \"Virgin\") | routes : flightno (870, 119, 815), airline (1, 2, 11), destairport (\" AID\", \" AQY\", \" RFK\"), sourceairport (\" ANQ\", \" AIK\", \" ANQ\") | journeys : flightno (870, 119, 815), airline (1, 2, 11), destairport (\" AID\", \" AQY\", \" RFK\"), sourceairport (\" ANQ\", \" AIK\", \" ANQ\")", + "schema_without_content": "airports : city , airportcode , airportname , countryabbrev , country | airlines : uid , country , airline , abbreviation | routes : flightno , airline , destairport , sourceairport | journeys : flightno , airline , destairport , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "leaving from": "flights.SourceAirport" + } + }, + { + "question": "what are #flight numbers of flights arriving at airport# \"apg\"?", + "db_id": "flight_2", + "orig_query": "select flightno from flights where destairport = \"APG\"", + "schema_with_content": "journeys : destairport (\" AGN\", \" AHN\", \" APN\"), flightno (126, 840, 244), airline (1, 6, 3), sourceairport (\" ANN\", \" ALS\", \" ATO\") | routes : destairport (\" AGN\", \" AHN\", \" APN\"), flightno (126, 840, 244), airline (1, 6, 3), sourceairport (\" ANN\", \" ALS\", \" ATO\") | airports : city (\"Akiachak \", \"Alliance \", \"Apple Valley \"), airportname (\"Anvik \", \"Anderson \", \"Fulton International \"), airportcode (\"EDF\", \"ADR\", \"NGZ\"), country (\"United States \"), countryabbrev (\"US \", \"US\") | airlines : uid (5, 3, 10), country (\"USA\"), airline (\"Allegiant Air\", \"US Airways\", \"US Airways\"), abbreviation (\"AirTran\", \"USAir\", \"UAL\")", + "schema_without_content": "journeys : destairport , flightno , airline , sourceairport | routes : destairport , flightno , airline , sourceairport | airports : city , airportname , airportcode , country , countryabbrev | airlines : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers of flights arriving at Airport": "flights.FlightNo" + } + }, + { + "question": "give the #flight numbers of flights landing# at apg.", + "db_id": "flight_2", + "orig_query": "select flightno from flights where destairport = \"APG\"", + "schema_with_content": "airlines : country (\"USA\"), uid (2, 6, 10), airline (\"Continental Airlines\", \"American Airlines\", \"US Airways\"), abbreviation (\"USAir\", \"Delta\", \"Allegiant\") | routes : airline (10, 10, 8), flightno (900, 265, 780), sourceairport (\" NGZ\", \" AIB\", \" ACV\"), destairport (\" AST\", \" MMI\", \" ALX\") | airports : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportname (\"US Army Heliport \", \"Apple Valley \", \"Ohio University \"), city (\"Alton \", \"Arcata \", \"Akiak \"), airportcode (\"AMA\", \"ACV\", \"ALE\") | journeys : airline (10, 10, 8), flightno (900, 265, 780), sourceairport (\" NGZ\", \" AIB\", \" ACV\"), destairport (\" AST\", \" MMI\", \" ALX\")", + "schema_without_content": "airlines : country , uid , airline , abbreviation | routes : airline , flightno , sourceairport , destairport | airports : countryabbrev , country , airportname , city , airportcode | journeys : airline , flightno , sourceairport , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers of flights landing": "flights.FlightNo" + } + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "flights : destairport (\" ALE\", \" AED\", \" AUK\"), airline (5, 6, 8), flightno (1232, 983, 635), sourceairport (\" AHD\", \" AXS\", \" JLH\") | airlines : uid (1, 5, 10), abbreviation (\"Delta\", \"AirTran\", \"Delta\"), airline (\"American Airlines\", \"AirTran Airways\", \"Northwest Airlines\"), country (\"USA\") | departure_points : airportname (\"Arctic Village \", \"Ardmore Municipal Arpt \", \"International \"), city (\"Akron/Canton OH \", \"Anacortes \", \"Antlers \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"KKI\", \"MRI\", \"JLH\") | arrival_points : airportname (\"Arctic Village \", \"Ardmore Municipal Arpt \", \"International \"), city (\"Akron/Canton OH \", \"Anacortes \", \"Antlers \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"KKI\", \"MRI\", \"JLH\")", + "schema_without_content": "flights : destairport , airline , flightno , sourceairport | airlines : uid , abbreviation , airline , country | departure_points : airportname , city , countryabbrev , country , airportcode | arrival_points : airportname , city , countryabbrev , country , airportcode", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "departing from City": "airports.City" + } + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "airports : airportname (\"Athens \", \"Albany \", \"Aleneva \"), country (\"United States \"), airportcode (\"ANP\", \"AXG\", \"AND\"), countryabbrev (\"US \", \"US\"), city (\"Anchorage \", \"Andrews \", \"Annapolis \") | airlines : country (\"USA\"), abbreviation (\"AirTran\", \"Southwest\", \"Frontier\"), uid (10, 9, 8), airline (\"AirTran Airways\", \"Continental Airlines\", \"American Airlines\") | journeys : sourceairport (\" CVO\", \" AAF\", \" ALM\"), destairport (\" NDV\", \" TDW\", \" LTS\"), airline (9, 3, 12), flightno (1076, 1346, 175) | routes : sourceairport (\" CVO\", \" AAF\", \" ALM\"), destairport (\" NDV\", \" TDW\", \" LTS\"), airline (9, 3, 12), flightno (1076, 1346, 175)", + "schema_without_content": "airports : airportname , country , airportcode , countryabbrev , city | airlines : country , abbreviation , uid , airline | journeys : sourceairport , destairport , airline , flightno | routes : sourceairport , destairport , airline , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "departing from City": "airports.City" + } + }, + { + "question": "give the #flight numbers# of flights #leaving from aberdeen# .", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "flights : airline (1, 4, 6), flightno (18, 15, 1285), sourceairport (\" VJI\", \" ADG\", \" AKK\"), destairport (\" QAW\", \" NGZ\", \" AHH\") | arrival_points : airportname (\"Aniak \", \"Alexandria International \", \"Arctic Village \"), airportcode (\"AGN\", \"NDV\", \"AUK\"), country (\"United States \"), city (\"Albuquerque \", \"Ames \", \"Artesia \"), countryabbrev (\"US \", \"US\") | departure_points : airportname (\"Aniak \", \"Alexandria International \", \"Arctic Village \"), airportcode (\"AGN\", \"NDV\", \"AUK\"), country (\"United States \"), city (\"Albuquerque \", \"Ames \", \"Artesia \"), countryabbrev (\"US \", \"US\") | airlines : country (\"USA\"), abbreviation (\"Northwest\", \"UAL\", \"Northwest\"), airline (\"JetBlue Airways\", \"JetBlue Airways\", \"Allegiant Air\"), uid (5, 7, 3)", + "schema_without_content": "flights : airline , flightno , sourceairport , destairport | arrival_points : airportname , airportcode , country , city , countryabbrev | departure_points : airportname , airportcode , country , city , countryabbrev | airlines : country , abbreviation , airline , uid", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "leaving from Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "give the #flight numbers# of flights #leaving from aberdeen# .", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "journeys : flightno (113, 741, 134), airline (2, 12, 6), sourceairport (\" ADK\", \" AIK\", \" AND\"), destairport (\" ASE\", \" ACV\", \" DYS\") | airlines : airline (\"Northwest Airlines\", \"Frontier Airlines\", \"US Airways\"), abbreviation (\"Delta\", \"USAir\", \"JetBlue\"), country (\"USA\"), uid (5, 9, 8) | airports : airportname (\"Phillips AAF \", \"Andrews \", \"Alakanuk \"), countryabbrev (\"US \", \"US\"), country (\"United States \"), city (\"Amchitka \", \"Alton \", \"Albert Lea \"), airportcode (\"APG\", \"ADK\", \"ATS\") | routes : flightno (113, 741, 134), airline (2, 12, 6), sourceairport (\" ADK\", \" AIK\", \" AND\"), destairport (\" ASE\", \" ACV\", \" DYS\")", + "schema_without_content": "journeys : flightno , airline , sourceairport , destairport | airlines : airline , abbreviation , country , uid | airports : airportname , countryabbrev , country , city , airportcode | routes : flightno , airline , sourceairport , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "leaving from Aberdeen": "flights.SourceAirport" + } + }, + { + "question": "what are #flight numbers of flights arriving at city# \"aberdeen\"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "arrival_points : airportname (\"Akiak \", \"Alakanuk \", \"Gratiot Community \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Anderson \", \"Annapolis \", \"Alpena \"), airportcode (\"ACV\", \"RFK\", \"ATE\") | flights : airline (2, 5, 12), flightno (919, 1217, 265), sourceairport (\" KKI\", \" APG\", \" ESF\"), destairport (\" AMA\", \" ALM\", \" RFK\") | airlines : abbreviation (\"Allegiant\", \"JetBlue\", \"Frontier\"), uid (2, 10, 6), airline (\"Northwest Airlines\", \"American Airlines\", \"US Airways\"), country (\"USA\") | departure_points : airportname (\"Akiak \", \"Alakanuk \", \"Gratiot Community \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Anderson \", \"Annapolis \", \"Alpena \"), airportcode (\"ACV\", \"RFK\", \"ATE\")", + "schema_without_content": "arrival_points : airportname , country , countryabbrev , city , airportcode | flights : airline , flightno , sourceairport , destairport | airlines : abbreviation , uid , airline , country | departure_points : airportname , country , countryabbrev , city , airportcode", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flight numbers of flights arriving at City": "flights.FlightNo" + } + }, + { + "question": "what are #flight numbers of flights arriving at city# \"aberdeen\"?", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "routes : destairport (\" ARX\", \" ATE\", \" KKI\"), airline (12, 3, 12), flightno (1136, 1136, 1154), sourceairport (\" AUK\", \" ADT\", \" AHH\") | airlines : abbreviation (\"Northwest\", \"American\", \"AirTran\"), airline (\"AirTran Airways\", \"US Airways\", \"United Airlines\"), country (\"USA\"), uid (6, 11, 1) | airports : city (\"Alma \", \"Aiken \", \"Adak Island \"), airportname (\"Angoon \", \"Lenawee County \", \"Alton \"), airportcode (\"AKK\", \"MRI\", \"ALS\"), countryabbrev (\"US \", \"US\"), country (\"United States \") | journeys : destairport (\" ARX\", \" ATE\", \" KKI\"), airline (12, 3, 12), flightno (1136, 1136, 1154), sourceairport (\" AUK\", \" ADT\", \" AHH\")", + "schema_without_content": "routes : destairport , airline , flightno , sourceairport | airlines : abbreviation , airline , country , uid | airports : city , airportname , airportcode , countryabbrev , country | journeys : destairport , airline , flightno , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers of flights arriving at City": "flights.FlightNo" + } + }, + { + "question": "give the #flight numbers# of flights #arriving in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "arrival_points : country (\"United States \"), airportname (\"Akutan \", \"Lee \", \"Albuquerque International \"), countryabbrev (\"US \", \"US\"), city (\"Artesia \", \"Arapahoe \", \"Alamogordo \"), airportcode (\"ATE\", \"AXG\", \"ANV\") | departure_points : country (\"United States \"), airportname (\"Akutan \", \"Lee \", \"Albuquerque International \"), countryabbrev (\"US \", \"US\"), city (\"Artesia \", \"Arapahoe \", \"Alamogordo \"), airportcode (\"ATE\", \"AXG\", \"ANV\") | airlines : abbreviation (\"Virgin\", \"USAir\", \"Frontier\"), uid (3, 7, 2), airline (\"Allegiant Air\", \"American Airlines\", \"Southwest Airlines\"), country (\"USA\") | flights : airline (10, 12, 6), sourceairport (\" CAK\", \" AUK\", \" AEL\"), flightno (359, 469, 285), destairport (\" ACV\", \" CAK\", \" NAB\")", + "schema_without_content": "arrival_points : country , airportname , countryabbrev , city , airportcode | departure_points : country , airportname , countryabbrev , city , airportcode | airlines : abbreviation , uid , airline , country | flights : airline , sourceairport , flightno , destairport", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "arriving in Aberdeen": "airports.City" + } + }, + { + "question": "give the #flight numbers# of flights #arriving in aberdeen# .", + "db_id": "flight_2", + "orig_query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\"", + "schema_with_content": "airports : countryabbrev (\"US \", \"US\"), airportcode (\"AHN\", \"OTS\", \"AMA\"), country (\"United States \"), city (\" Amarillo \", \"Alameda \", \"Alexandria Bay \"), airportname (\"Albert Lea \", \"Lenawee County \", \"Anacortes \") | airlines : abbreviation (\"Northwest\", \"Virgin\", \"USAir\"), country (\"USA\"), airline (\"Allegiant Air\", \"Allegiant Air\", \"Southwest Airlines\"), uid (4, 2, 6) | journeys : destairport (\" AEX\", \" ESF\", \" AIB\"), flightno (855, 90, 1309), airline (6, 7, 5), sourceairport (\" ANY\", \" LTS\", \" AHT\") | routes : destairport (\" AEX\", \" ESF\", \" AIB\"), flightno (855, 90, 1309), airline (6, 7, 5), sourceairport (\" ANY\", \" LTS\", \" AHT\")", + "schema_without_content": "airports : countryabbrev , airportcode , country , city , airportname | airlines : abbreviation , country , airline , uid | journeys : destairport , flightno , airline , sourceairport | routes : destairport , flightno , airline , sourceairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flight numbers": "flights.FlightNo", + "arriving in Aberdeen": "airports.City" + } + }, + { + "question": "find the number of #flights# landing in the #city# of aberdeen or abilene.", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\" or t2.city = \"Abilene\"", + "schema_with_content": "arrival_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"JLH\", \"ATE\", \"AEL\"), airportname (\"Ainsworth \", \"Rollang Field \", \"Dyess AFB \"), city (\" Alexander City AL \", \"Anita Bay \", \"Altus \") | airlines : country (\"USA\"), abbreviation (\"USAir\", \"JetBlue\", \"USAir\"), uid (6, 12, 1), airline (\"Continental Airlines\", \"US Airways\", \"Southwest Airlines\") | departure_points : countryabbrev (\"US \", \"US\"), country (\"United States \"), airportcode (\"JLH\", \"ATE\", \"AEL\"), airportname (\"Ainsworth \", \"Rollang Field \", \"Dyess AFB \"), city (\" Alexander City AL \", \"Anita Bay \", \"Altus \") | flights : flightno (826, 1374, 1286), destairport (\" ADR\", \" AHN\", \" ARC\"), sourceairport (\" ANP\", \" ANI\", \" AKC\"), airline (7, 8, 11)", + "schema_without_content": "arrival_points : countryabbrev , country , airportcode , airportname , city | airlines : country , abbreviation , uid , airline | departure_points : countryabbrev , country , airportcode , airportname , city | flights : flightno , destairport , sourceairport , airline", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights": "flights", + "city": "airports.City" + } + }, + { + "question": "find the number of #flights# landing in the #city# of aberdeen or abilene.", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\" or t2.city = \"Abilene\"", + "schema_with_content": "airports : country (\"United States \"), airportname (\"Alakanuk \", \"Andrews \", \"Phillips AAF \"), airportcode (\"AID\", \"ARX\", \"AXS\"), countryabbrev (\"US \", \"US\"), city (\" Alexander City AL \", \"Ainsworth \", \"Apalachicola \") | journeys : airline (10, 4, 8), flightno (747, 990, 828), sourceairport (\" AHD\", \" AUK\", \" WKK\"), destairport (\" VJI\", \" ALX\", \" ARC\") | airlines : airline (\"Virgin America\", \"Southwest Airlines\", \"American Airlines\"), abbreviation (\"UAL\", \"UAL\", \"UAL\"), country (\"USA\"), uid (1, 9, 11) | routes : airline (10, 4, 8), flightno (747, 990, 828), sourceairport (\" AHD\", \" AUK\", \" WKK\"), destairport (\" VJI\", \" ALX\", \" ARC\")", + "schema_without_content": "airports : country , airportname , airportcode , countryabbrev , city | journeys : airline , flightno , sourceairport , destairport | airlines : airline , abbreviation , country , uid | routes : airline , flightno , sourceairport , destairport", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights": "flights", + "city": "airports.City" + } + }, + { + "question": "how many #flights land in aberdeen# or #abilene# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\" or t2.city = \"Abilene\"", + "schema_with_content": "airlines : abbreviation (\"Virgin\", \"Allegiant\", \"USAir\"), country (\"USA\"), uid (7, 10, 12), airline (\"Allegiant Air\", \"Delta Airlines\", \"Continental Airlines\") | arrival_points : country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Alakanuk \", \"Amchitka \", \"Anaktuvuk \"), airportcode (\"AHF\", \"ANN\", \"ATO\"), city (\"Alameda \", \"Anniston \", \"Alamogordo \") | departure_points : country (\"United States \"), countryabbrev (\"US \", \"US\"), airportname (\"Alakanuk \", \"Amchitka \", \"Anaktuvuk \"), airportcode (\"AHF\", \"ANN\", \"ATO\"), city (\"Alameda \", \"Anniston \", \"Alamogordo \") | flights : sourceairport (\" ANA\", \" ADM\", \" AMN\"), destairport (\" AEX\", \" ALX\", \" ESF\"), flightno (747, 592, 736), airline (3, 11, 4)", + "schema_without_content": "airlines : abbreviation , country , uid , airline | arrival_points : country , countryabbrev , airportname , airportcode , city | departure_points : country , countryabbrev , airportname , airportcode , city | flights : sourceairport , destairport , flightno , airline", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "flights land in Aberdeen": "flights.DestAirport", + "Abilene": "airports.City" + } + }, + { + "question": "how many #flights land in aberdeen# or #abilene# ?", + "db_id": "flight_2", + "orig_query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"Aberdeen\" or t2.city = \"Abilene\"", + "schema_with_content": "airports : airportname (\"Alexandria International \", \"Tradewind \", \"Colorado Plains Regional Airport \"), country (\"United States \"), airportcode (\"APG\", \"ANW\", \"VJI\"), countryabbrev (\"US \", \"US\"), city (\"Akron/Canton OH \", \"Andrews \", \"Alamogordo \") | journeys : sourceairport (\" HMN\", \" ARB\", \" AIV\"), destairport (\" AUK\", \" AMA\", \" CAK\"), flightno (1144, 700, 3), airline (8, 8, 9) | routes : sourceairport (\" HMN\", \" ARB\", \" AIV\"), destairport (\" AUK\", \" AMA\", \" CAK\"), flightno (1144, 700, 3), airline (8, 8, 9) | airlines : country (\"USA\"), uid (6, 8, 7), abbreviation (\"UAL\", \"AirTran\", \"Allegiant\"), airline (\"AirTran Airways\", \"Southwest Airlines\", \"US Airways\")", + "schema_without_content": "airports : airportname , country , airportcode , countryabbrev , city | journeys : sourceairport , destairport , flightno , airline | routes : sourceairport , destairport , flightno , airline | airlines : country , uid , abbreviation , airline", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "flights land in Aberdeen": "flights.DestAirport", + "Abilene": "airports.City" + } + }, + { + "question": "find the #name of airports# which do not have any #flight in and out# .", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", + "schema_with_content": "flights : airline (11, 11, 2), destairport (\" VJI\", \" ATS\", \" ALM\"), flightno (424, 127, 1270), sourceairport (\" LTS\", \" WKK\", \" JLH\") | airlines : country (\"USA\"), abbreviation (\"JetBlue\", \"Delta\", \"Delta\"), airline (\"AirTran Airways\", \"American Airlines\", \"JetBlue Airways\"), uid (8, 7, 12) | arrival_points : airportcode (\"APV\", \"AXG\", \"AOS\"), country (\"United States \"), city (\"Anguilla \", \"Alliance \", \"Anthony \"), countryabbrev (\"US \", \"US\"), airportname (\"Ashley \", \"Rick Husband Amarillo International \", \"Amook \") | departure_points : airportcode (\"APV\", \"AXG\", \"AOS\"), country (\"United States \"), city (\"Anguilla \", \"Alliance \", \"Anthony \"), countryabbrev (\"US \", \"US\"), airportname (\"Ashley \", \"Rick Husband Amarillo International \", \"Amook \")", + "schema_without_content": "flights : airline , destairport , flightno , sourceairport | airlines : country , abbreviation , airline , uid | arrival_points : airportcode , country , city , countryabbrev , airportname | departure_points : airportcode , country , city , countryabbrev , airportname", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "name of airports": "airports.AirportName", + "flight in and out": "flights.SourceAirport, flights.DestAirport" + } + }, + { + "question": "find the #name of airports# which do not have any #flight in and out# .", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", + "schema_with_content": "routes : airline (7, 5, 10), destairport (\" NAB\", \" ANP\", \" AKO\"), sourceairport (\" AHT\", \" AET\", \" AXB\"), flightno (729, 219, 570) | airlines : uid (8, 2, 1), airline (\"Virgin America\", \"Northwest Airlines\", \"Southwest Airlines\"), abbreviation (\"AirTran\", \"Frontier\", \"Southwest\"), country (\"USA\") | airports : airportname (\"Alexandria Bay \", \"Annette Island \", \"Dougherty County \"), country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Ardmore \", \"Ainsworth \", \"Aiken \"), airportcode (\"APV\", \"JLH\", \"ADR\") | journeys : airline (7, 5, 10), destairport (\" NAB\", \" ANP\", \" AKO\"), sourceairport (\" AHT\", \" AET\", \" AXB\"), flightno (729, 219, 570)", + "schema_without_content": "routes : airline , destairport , sourceairport , flightno | airlines : uid , airline , abbreviation , country | airports : airportname , country , countryabbrev , city , airportcode | journeys : airline , destairport , sourceairport , flightno", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "name of airports": "airports.AirportName", + "flight in and out": "flights.SourceAirport, flights.DestAirport" + } + }, + { + "question": "which #airports# do not have departing or #arriving flights# ?", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", + "schema_with_content": "airlines : country (\"USA\"), airline (\"JetBlue Airways\", \"JetBlue Airways\", \"AirTran Airways\"), abbreviation (\"AirTran\", \"USAir\", \"JetBlue\"), uid (1, 5, 9) | flights : sourceairport (\" AET\", \" RFK\", \" ALI\"), flightno (1163, 1139, 1051), airline (11, 12, 8), destairport (\" QAW\", \" ANQ\", \" MRI\") | departure_points : city (\"Alexandria \", \"Alyeska \", \"Aleneva \"), countryabbrev (\"US \", \"US\"), airportname (\"Annette Island \", \"Alpena County Regional \", \"Aleneva \"), airportcode (\"AID\", \"AAF\", \"APV\"), country (\"United States \") | arrival_points : city (\"Alexandria \", \"Alyeska \", \"Aleneva \"), countryabbrev (\"US \", \"US\"), airportname (\"Annette Island \", \"Alpena County Regional \", \"Aleneva \"), airportcode (\"AID\", \"AAF\", \"APV\"), country (\"United States \")", + "schema_without_content": "airlines : country , airline , abbreviation , uid | flights : sourceairport , flightno , airline , destairport | departure_points : city , countryabbrev , airportname , airportcode , country | arrival_points : city , countryabbrev , airportname , airportcode , country", + "extra_map": null, + "extra_table_map": { + "airports": [ + "departure_points", + "arrival_points" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "column_linking_gt": { + "airports": "airports", + "arriving flights": "flights.DestAirport", + "AirportName": "airports.AirportName", + "departing flights": "flights.SourceAirport" + } + }, + { + "question": "which #airports# do not have departing or #arriving flights# ?", + "db_id": "flight_2", + "orig_query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", + "schema_with_content": "routes : airline (6, 5, 9), flightno (1419, 566, 767), destairport (\" APG\", \" KKI\", \" ALE\"), sourceairport (\" AEX\", \" ATW\", \" ATS\") | airports : country (\"United States \"), countryabbrev (\"US \", \"US\"), city (\"Allakaket \", \"Abingdon \", \"Alyeska \"), airportcode (\"ADR\", \"OTS\", \"OTS\"), airportname (\"Ardmore Municipal Arpt \", \"Zahns \", \"USN Heliport \") | journeys : airline (6, 5, 9), flightno (1419, 566, 767), destairport (\" APG\", \" KKI\", \" ALE\"), sourceairport (\" AEX\", \" ATW\", \" ATS\") | airlines : uid (5, 5, 8), country (\"USA\"), airline (\"Northwest Airlines\", \"Virgin America\", \"Southwest Airlines\"), abbreviation (\"USAir\", \"AirTran\", \"Northwest\")", + "schema_without_content": "routes : airline , flightno , destairport , sourceairport | airports : country , countryabbrev , city , airportcode , airportname | journeys : airline , flightno , destairport , sourceairport | airlines : uid , country , airline , abbreviation", + "extra_map": null, + "extra_table_map": { + "flights": [ + "journeys", + "routes" + ] + }, + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "column_linking_gt": { + "airports": "airports", + "arriving flights": "flights.DestAirport", + "AirportName": "airports.AirportName", + "departing flights": "flights.SourceAirport" + } + }, + { + "question": "sort #employee names# by their #age# in ascending order.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee order by age", + "schema_with_content": "worker : age (40, 30, 32), city (\"Leicester\", \"Sale\", \"Bath\"), employee_id (2, 8, 3), name (\"Louis Deacon\", \"Jason Hobson\", \"Mark Regan\") | staff : age (40, 30, 32), city (\"Leicester\", \"Sale\", \"Bath\"), employee_id (2, 8, 3), name (\"Louis Deacon\", \"Jason Hobson\", \"Mark Regan\") | hiring : employee_id (5, 5, 4), is_full_time (\"T\", \"F\"), shop_id (5, 1, 2), start_from (\"2003\", \"2013\", \"2012\") | shop : district (\"Tapiolan Urheilupuisto\", \"Tapiolan Urheilupuisto\", \"Tehtaan kentt\u00c3\u00a4\"), location (\"Turku\", \"Espoo\", \"Jakobstad\"), manager_name (\"Olli Huttunen\", \"Antti Muurinen\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\"), number_products (6000, 10000, 3516), name (\"FC Lahti\", \"IFK Mariehamn\", \"IFK Mariehamn\"), shop_id (8, 9, 2) | evaluation : bonus (3200.0, 2900.0, 4000.0), year_awarded (\"2018\", \"2017\", \"2016\"), employee_id (\"10\", \"1\", \"2\")", + "schema_without_content": "worker : age , city , employee_id , name | staff : age , city , employee_id , name | hiring : employee_id , is_full_time , shop_id , start_from | shop : district , location , manager_name , number_products , name , shop_id | evaluation : bonus , year_awarded , employee_id", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "employee names": "employee.Name", + "age": "employee.Age" + } + }, + { + "question": "list the #names of employees# and sort in ascending order of #age# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee order by age", + "schema_with_content": "shop : district (\"Tapiolan Urheilupuisto\", \"Veritas Stadion\", \"Jakobstads Centralplan\"), number_products (1600, 15000, 5000), location (\"Lahti\", \"Mariehamn\", \"Lahti\"), shop_id (5, 8, 6), manager_name (\"Kai Nyyss\u00c3\u00b6nen\", \"Olli Huttunen\", \"Job Dragtsma\"), name (\"FC Honka\", \"FC Lahti\", \"FC Honka\") | worker : age (32, 40, 36), city (\"Leicester\", \"Leicester\", \"Sale\"), name (\"Tim Payne\", \"Louis Deacon\", \"Andrew Sheridan\"), employee_id (5, 9, 5) | evaluation : employee_id (\"7\", \"10\", \"2\"), bonus (4000.0, 3000.0, 3000.0), year_awarded (\"2018\", \"2015\", \"2018\") | hiring : shop_id (8, 2, 5), is_full_time (\"T\", \"F\"), employee_id (5, 7, 6), start_from (\"2010\", \"2008\", \"2012\") | staff : age (32, 40, 36), city (\"Leicester\", \"Leicester\", \"Sale\"), name (\"Tim Payne\", \"Louis Deacon\", \"Andrew Sheridan\"), employee_id (5, 9, 5)", + "schema_without_content": "shop : district , number_products , location , shop_id , manager_name , name | worker : age , city , name , employee_id | evaluation : employee_id , bonus , year_awarded | hiring : shop_id , is_full_time , employee_id , start_from | staff : age , city , name , employee_id", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of employees": "employee.Name", + "age": "employee.Age" + } + }, + { + "question": "what is the #number of employees# from each #city# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), city from employee group by city", + "schema_with_content": "staff : employee_id (7, 7, 5), age (28, 30, 28), city (\"Leicester\", \"Bath\", \"Sale\"), name (\"Mark Regan\", \"Jason Hobson\", \"Matt Stevens\") | hiring : is_full_time (\"T\", \"F\"), shop_id (6, 4, 4), employee_id (1, 7, 3), start_from (\"2011\", \"2013\", \"2003\") | worker : employee_id (7, 7, 5), age (28, 30, 28), city (\"Leicester\", \"Bath\", \"Sale\"), name (\"Mark Regan\", \"Jason Hobson\", \"Matt Stevens\") | evaluation : employee_id (\"10\", \"1\", \"1\"), year_awarded (\"2015\", \"2016\", \"2016\"), bonus (4000.0, 2900.0, 3200.0) | shop : number_products (3516, 10000, 15000), shop_id (7, 7, 8), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Lahden Stadion\", \"Wikl\u00c3\u00b6f Holding Arena\"), name (\"FC Lahti\", \"KuPS\", \"IFK Mariehamn\"), location (\"Lahti\", \"Kuopio\", \"Jakobstad\"), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Mika Laurikainen\", \"Job Dragtsma\")", + "schema_without_content": "staff : employee_id , age , city , name | hiring : is_full_time , shop_id , employee_id , start_from | worker : employee_id , age , city , name | evaluation : employee_id , year_awarded , bonus | shop : number_products , shop_id , district , name , location , manager_name", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of employees": "employee.Employee_ID", + "city": "employee.City" + } + }, + { + "question": "count the #number of employees for each city# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), city from employee group by city", + "schema_with_content": "evaluation : bonus (2900.0, 3000.0, 4000.0), employee_id (\"1\", \"10\", \"7\"), year_awarded (\"2011\", \"2016\", \"2017\") | hiring : employee_id (5, 4, 5), shop_id (8, 2, 2), start_from (\"2013\", \"2003\", \"2008\"), is_full_time (\"T\", \"F\") | staff : age (43, 43, 40), employee_id (9, 9, 4), city (\"Bath\", \"Sale\", \"Sale\"), name (\"Jason Hobson\", \"Jason Hobson\", \"Louis Deacon\") | shop : number_products (10000, 3500, 1600), district (\"Jakobstads Centralplan\", \"Arto Tolsa Areena\", \"Lahden Stadion\"), manager_name (\"Mika Laurikainen\", \"Mika Lehkosuo\", \"Mika Laurikainen\"), name (\"IFK Mariehamn\", \"FF Jaro\", \"FF Jaro\"), shop_id (4, 7, 5), location (\"Lahti\", \"Kuopio\", \"Espoo\") | worker : age (43, 43, 40), employee_id (9, 9, 4), city (\"Bath\", \"Sale\", \"Sale\"), name (\"Jason Hobson\", \"Jason Hobson\", \"Louis Deacon\")", + "schema_without_content": "evaluation : bonus , employee_id , year_awarded | hiring : employee_id , shop_id , start_from , is_full_time | staff : age , employee_id , city , name | shop : number_products , district , manager_name , name , shop_id , location | worker : age , employee_id , city , name", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of employees for each city": "employee.Employee_ID" + } + }, + { + "question": "which #cities# do more than one #employee# under #age# 30 come from?", + "db_id": "employee_hire_evaluation", + "orig_query": "select city from employee where age < 30 group by city having count(*) > 1", + "schema_with_content": "hiring : start_from (\"2011\", \"2013\", \"2011\"), shop_id (6, 1, 5), is_full_time (\"T\", \"F\"), employee_id (3, 1, 1) | evaluation : employee_id (\"2\", \"2\", \"7\"), year_awarded (\"2018\", \"2011\", \"2018\"), bonus (3200.0, 2900.0, 2900.0) | staff : age (40, 36, 23), employee_id (2, 4, 2), name (\"Phil Vickery\", \"Louis Deacon\", \"George Chuter\"), city (\"Bath\", \"Bath\", \"Sale\") | shop : location (\"Turku\", \"Espoo\", \"Valkeakoski\"), manager_name (\"Tommi Kautonen\", \"Job Dragtsma\", \"Mika Laurikainen\"), shop_id (1, 5, 2), number_products (10770, 10000, 5000), name (\"FC Inter\", \"FC Inter\", \"HJK\"), district (\"Lahden Stadion\", \"Finnair Stadium\", \"Arto Tolsa Areena\") | worker : age (40, 36, 23), employee_id (2, 4, 2), name (\"Phil Vickery\", \"Louis Deacon\", \"George Chuter\"), city (\"Bath\", \"Bath\", \"Sale\")", + "schema_without_content": "hiring : start_from , shop_id , is_full_time , employee_id | evaluation : employee_id , year_awarded , bonus | staff : age , employee_id , name , city | shop : location , manager_name , shop_id , number_products , name , district | worker : age , employee_id , name , city", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "cities": "employee.City", + "employee": "employee", + "age": "employee.Age" + } + }, + { + "question": "find the #cities# that have more than one #employee# under #age# 30.", + "db_id": "employee_hire_evaluation", + "orig_query": "select city from employee where age < 30 group by city having count(*) > 1", + "schema_with_content": "worker : city (\"Wasps\", \"Bristol\", \"Leicester\"), employee_id (3, 10, 6), age (36, 32, 30), name (\"Jason Hobson\", \"Phil Vickery\", \"Matt Stevens\") | shop : number_products (1600, 4780, 4780), location (\"Lahti\", \"Mariehamn\", \"Jakobstad\"), district (\"Tehtaan kentt\u00c3\u00a4\", \"Lahden Stadion\", \"Tapiolan Urheilupuisto\"), shop_id (9, 4, 9), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Kai Nyyss\u00c3\u00b6nen\", \"Mika Laurikainen\"), name (\"HJK\", \"FC Lahti\", \"FF Jaro\") | staff : city (\"Wasps\", \"Bristol\", \"Leicester\"), employee_id (3, 10, 6), age (36, 32, 30), name (\"Jason Hobson\", \"Phil Vickery\", \"Matt Stevens\") | evaluation : bonus (4000.0, 4000.0, 3000.0), employee_id (\"10\", \"4\", \"10\"), year_awarded (\"2016\", \"2015\", \"2018\") | hiring : is_full_time (\"T\", \"F\"), shop_id (6, 5, 8), start_from (\"2003\", \"2008\", \"2008\"), employee_id (6, 5, 2)", + "schema_without_content": "worker : city , employee_id , age , name | shop : number_products , location , district , shop_id , manager_name , name | staff : city , employee_id , age , name | evaluation : bonus , employee_id , year_awarded | hiring : is_full_time , shop_id , start_from , employee_id", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "cities": "employee.City", + "employee": "employee", + "age": "employee.Age" + } + }, + { + "question": "find the #number of shops in each location# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), location from shop group by location", + "schema_with_content": "store : name (\"FC Haka\", \"FC Honka\", \"FC Inter\"), number_products (6000, 1600, 6000), shop_id (9, 1, 1), district (\"Tehtaan kentt\u00c3\u00a4\", \"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\"), manager_name (\"Olli Huttunen\", \"Mika Laurikainen\", \"Kai Nyyss\u00c3\u00b6nen\"), location (\"Jakobstad\", \"Jakobstad\", \"Espoo\") | employee : city (\"Bath\", \"Bristol\", \"Leicester\"), age (28, 30, 30), employee_id (6, 6, 10), name (\"Jason Hobson\", \"Matt Stevens\", \"George Chuter\") | evaluation : bonus (3200.0, 2900.0, 2900.0), year_awarded (\"2016\", \"2017\", \"2017\"), employee_id (\"2\", \"1\", \"4\") | boutique : name (\"FC Haka\", \"FC Honka\", \"FC Inter\"), number_products (6000, 1600, 6000), shop_id (9, 1, 1), district (\"Tehtaan kentt\u00c3\u00a4\", \"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\"), manager_name (\"Olli Huttunen\", \"Mika Laurikainen\", \"Kai Nyyss\u00c3\u00b6nen\"), location (\"Jakobstad\", \"Jakobstad\", \"Espoo\") | hiring : employee_id (2, 6, 1), shop_id (1, 2, 6), is_full_time (\"T\", \"F\"), start_from (\"2009\", \"2008\", \"2008\")", + "schema_without_content": "store : name , number_products , shop_id , district , manager_name , location | employee : city , age , employee_id , name | evaluation : bonus , year_awarded , employee_id | boutique : name , number_products , shop_id , district , manager_name , location | hiring : employee_id , shop_id , is_full_time , start_from", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "number of shops in each location": "shop.Location" + } + }, + { + "question": "how many #shops# are there in each #location# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), location from shop group by location", + "schema_with_content": "employee : city (\"Wasps\", \"Bath\", \"Sale\"), employee_id (5, 1, 7), name (\"Lee Mears\", \"Louis Deacon\", \"Jason Hobson\"), age (29, 36, 36) | boutique : number_products (3516, 15000, 4780), district (\"Tehtaan kentt\u00c3\u00a4\", \"Arto Tolsa Areena\", \"Lahden Stadion\"), shop_id (8, 9, 1), manager_name (\"Antti Muurinen\", \"Olli Huttunen\", \"Mika Lehkosuo\"), name (\"FC Haka\", \"KuPS\", \"FC Inter\"), location (\"Mariehamn\", \"Kotka\", \"Mariehamn\") | store : number_products (3516, 15000, 4780), district (\"Tehtaan kentt\u00c3\u00a4\", \"Arto Tolsa Areena\", \"Lahden Stadion\"), shop_id (8, 9, 1), manager_name (\"Antti Muurinen\", \"Olli Huttunen\", \"Mika Lehkosuo\"), name (\"FC Haka\", \"KuPS\", \"FC Inter\"), location (\"Mariehamn\", \"Kotka\", \"Mariehamn\") | hiring : start_from (\"2010\", \"2009\", \"2010\"), shop_id (6, 5, 6), employee_id (6, 4, 3), is_full_time (\"T\", \"F\") | evaluation : year_awarded (\"2011\", \"2018\", \"2016\"), employee_id (\"2\", \"2\", \"4\"), bonus (3200.0, 3200.0, 3000.0)", + "schema_without_content": "employee : city , employee_id , name , age | boutique : number_products , district , shop_id , manager_name , name , location | store : number_products , district , shop_id , manager_name , name , location | hiring : start_from , shop_id , employee_id , is_full_time | evaluation : year_awarded , employee_id , bonus", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "shops": "shop", + "location": "shop.Location" + } + }, + { + "question": "find the #manager name# and #district of the shop# whose #number of products# is the largest.", + "db_id": "employee_hire_evaluation", + "orig_query": "select manager_name, district from shop order by number_products desc limit 1", + "schema_with_content": "evaluation : year_awarded (\"2018\", \"2015\", \"2018\"), employee_id (\"4\", \"2\", \"10\"), bonus (3200.0, 3000.0, 4000.0) | boutique : location (\"Valkeakoski\", \"Lahti\", \"Helsinki\"), number_products (10000, 10000, 5000), shop_id (4, 8, 8), district (\"Tapiolan Urheilupuisto\", \"Tapiolan Urheilupuisto\", \"Tehtaan kentt\u00c3\u00a4\"), name (\"KuPS\", \"FF Jaro\", \"IFK Mariehamn\"), manager_name (\"Olli Huttunen\", \"Tommi Kautonen\", \"Olli Huttunen\") | hiring : is_full_time (\"T\", \"F\"), employee_id (2, 5, 2), start_from (\"2003\", \"2003\", \"2010\"), shop_id (6, 2, 6) | employee : employee_id (8, 3, 10), age (23, 32, 23), city (\"Wasps\", \"Wasps\", \"Bristol\"), name (\"Andrew Sheridan\", \"Steve Borthwick\", \"Steve Borthwick\") | store : location (\"Valkeakoski\", \"Lahti\", \"Helsinki\"), number_products (10000, 10000, 5000), shop_id (4, 8, 8), district (\"Tapiolan Urheilupuisto\", \"Tapiolan Urheilupuisto\", \"Tehtaan kentt\u00c3\u00a4\"), name (\"KuPS\", \"FF Jaro\", \"IFK Mariehamn\"), manager_name (\"Olli Huttunen\", \"Tommi Kautonen\", \"Olli Huttunen\")", + "schema_without_content": "evaluation : year_awarded , employee_id , bonus | boutique : location , number_products , shop_id , district , name , manager_name | hiring : is_full_time , employee_id , start_from , shop_id | employee : employee_id , age , city , name | store : location , number_products , shop_id , district , name , manager_name", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "manager name": "shop.Manager_name", + "district of the shop": "shop.District", + "number of products": "shop.Number_products" + } + }, + { + "question": "what are the #manager name# and #district of the shop# that sells the largest #number of products# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select manager_name, district from shop order by number_products desc limit 1", + "schema_with_content": "hiring : start_from (\"2008\", \"2009\", \"2003\"), shop_id (8, 6, 1), employee_id (3, 2, 3), is_full_time (\"T\", \"F\") | store : shop_id (7, 7, 9), name (\"KuPS\", \"HJK\", \"IFK Mariehamn\"), district (\"Tehtaan kentt\u00c3\u00a4\", \"Tehtaan kentt\u00c3\u00a4\", \"Magnum Areena\"), location (\"Lahti\", \"Helsinki\", \"Jakobstad\"), number_products (3500, 6000, 5000), manager_name (\"Mika Lehkosuo\", \"Mika Laurikainen\", \"Job Dragtsma\") | evaluation : employee_id (\"10\", \"10\", \"10\"), bonus (3000.0, 2900.0, 4000.0), year_awarded (\"2017\", \"2011\", \"2018\") | boutique : shop_id (7, 7, 9), name (\"KuPS\", \"HJK\", \"IFK Mariehamn\"), district (\"Tehtaan kentt\u00c3\u00a4\", \"Tehtaan kentt\u00c3\u00a4\", \"Magnum Areena\"), location (\"Lahti\", \"Helsinki\", \"Jakobstad\"), number_products (3500, 6000, 5000), manager_name (\"Mika Lehkosuo\", \"Mika Laurikainen\", \"Job Dragtsma\") | employee : employee_id (9, 5, 5), city (\"Leicester\", \"Wasps\", \"Wasps\"), age (36, 43, 28), name (\"George Chuter\", \"Louis Deacon\", \"Mark Regan\")", + "schema_without_content": "hiring : start_from , shop_id , employee_id , is_full_time | store : shop_id , name , district , location , number_products , manager_name | evaluation : employee_id , bonus , year_awarded | boutique : shop_id , name , district , location , number_products , manager_name | employee : employee_id , city , age , name", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "manager name": "shop.Manager_name", + "district of the shop": "shop.District", + "number of products": "shop.Number_products" + } + }, + { + "question": "return the #name# , #location# and d #istrict of all shops# in descending order of #number of products# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select name, location, district from shop order by number_products desc", + "schema_with_content": "evaluation : year_awarded (\"2018\", \"2016\", \"2015\"), bonus (2900.0, 3000.0, 2900.0), employee_id (\"1\", \"1\", \"4\") | employee : employee_id (8, 6, 6), age (36, 30, 28), name (\"Steve Borthwick\", \"Matt Stevens\", \"Lee Mears\"), city (\"Sale\", \"Sale\", \"Bristol\") | boutique : manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Antti Muurinen\", \"Mika Laurikainen\"), name (\"FF Jaro\", \"HJK\", \"FF Jaro\"), number_products (5000, 5000, 10770), shop_id (8, 5, 4), district (\"Jakobstads Centralplan\", \"Magnum Areena\", \"Arto Tolsa Areena\"), location (\"Jakobstad\", \"Lahti\", \"Jakobstad\") | store : manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Antti Muurinen\", \"Mika Laurikainen\"), name (\"FF Jaro\", \"HJK\", \"FF Jaro\"), number_products (5000, 5000, 10770), shop_id (8, 5, 4), district (\"Jakobstads Centralplan\", \"Magnum Areena\", \"Arto Tolsa Areena\"), location (\"Jakobstad\", \"Lahti\", \"Jakobstad\") | hiring : employee_id (7, 7, 1), start_from (\"2009\", \"2008\", \"2010\"), is_full_time (\"T\", \"F\"), shop_id (4, 6, 1)", + "schema_without_content": "evaluation : year_awarded , bonus , employee_id | employee : employee_id , age , name , city | boutique : manager_name , name , number_products , shop_id , district , location | store : manager_name , name , number_products , shop_id , district , location | hiring : employee_id , start_from , is_full_time , shop_id", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "shop.Name", + "location": "shop.Location", + "istrict of all shops": "shop", + "number of products": "shop.Number_products", + "district": "shop.District" + } + }, + { + "question": "sort all the #shops by number products# in descending order, and return the #name# , #location# and #district# of each shop.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name, location, district from shop order by number_products desc", + "schema_with_content": "boutique : name (\"FC Honka\", \"FC Lahti\", \"FC Honka\"), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Finnair Stadium\", \"Magnum Areena\"), number_products (15000, 15000, 10000), manager_name (\"Antti Muurinen\", \"Kai Nyyss\u00c3\u00b6nen\", \"Antti Muurinen\"), location (\"Lahti\", \"Turku\", \"Turku\"), shop_id (3, 8, 9) | store : name (\"FC Honka\", \"FC Lahti\", \"FC Honka\"), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Finnair Stadium\", \"Magnum Areena\"), number_products (15000, 15000, 10000), manager_name (\"Antti Muurinen\", \"Kai Nyyss\u00c3\u00b6nen\", \"Antti Muurinen\"), location (\"Lahti\", \"Turku\", \"Turku\"), shop_id (3, 8, 9) | evaluation : bonus (4000.0, 3000.0, 4000.0), employee_id (\"10\", \"1\", \"10\"), year_awarded (\"2017\", \"2015\", \"2015\") | employee : employee_id (8, 5, 3), name (\"Phil Vickery\", \"Jason Hobson\", \"Jason Hobson\"), city (\"Bristol\", \"Bath\", \"Bath\"), age (28, 28, 40) | hiring : is_full_time (\"T\", \"F\"), employee_id (3, 3, 7), shop_id (4, 6, 5), start_from (\"2003\", \"2009\", \"2010\")", + "schema_without_content": "boutique : name , district , number_products , manager_name , location , shop_id | store : name , district , number_products , manager_name , location , shop_id | evaluation : bonus , employee_id , year_awarded | employee : employee_id , name , city , age | hiring : is_full_time , employee_id , shop_id , start_from", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "shops by number products": "shop.Number_products", + "name": "shop.Name", + "location": "shop.Location", + "district": "shop.District" + } + }, + { + "question": "find the #names of stores# whose #number products# is more than the average number of products.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where number_products > (select avg(number_products) from shop)", + "schema_with_content": "evaluation : bonus (4000.0, 4000.0, 3200.0), employee_id (\"7\", \"7\", \"10\"), year_awarded (\"2015\", \"2015\", \"2015\") | hiring : start_from (\"2003\", \"2013\", \"2008\"), employee_id (7, 4, 6), shop_id (1, 6, 8), is_full_time (\"T\", \"F\") | boutique : district (\"Finnair Stadium\", \"Tapiolan Urheilupuisto\", \"Magnum Areena\"), location (\"Turku\", \"Helsinki\", \"Mariehamn\"), manager_name (\"Job Dragtsma\", \"Mika Laurikainen\", \"Mika Lehkosuo\"), number_products (6000, 3500, 3516), shop_id (8, 9, 6), name (\"FC KooTeePee\", \"FC KooTeePee\", \"FC Honka\") | store : district (\"Finnair Stadium\", \"Tapiolan Urheilupuisto\", \"Magnum Areena\"), location (\"Turku\", \"Helsinki\", \"Mariehamn\"), manager_name (\"Job Dragtsma\", \"Mika Laurikainen\", \"Mika Lehkosuo\"), number_products (6000, 3500, 3516), shop_id (8, 9, 6), name (\"FC KooTeePee\", \"FC KooTeePee\", \"FC Honka\") | employee : name (\"Louis Deacon\", \"Andrew Sheridan\", \"Jason Hobson\"), age (29, 40, 36), city (\"Sale\", \"Bath\", \"Leicester\"), employee_id (10, 7, 1)", + "schema_without_content": "evaluation : bonus , employee_id , year_awarded | hiring : start_from , employee_id , shop_id , is_full_time | boutique : district , location , manager_name , number_products , shop_id , name | store : district , location , manager_name , number_products , shop_id , name | employee : name , age , city , employee_id", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "names of stores": "shop.Name", + "number products": "shop.Number_products" + } + }, + { + "question": "which #shops' number products# is above the average? give me the #shop names# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where number_products > (select avg(number_products) from shop)", + "schema_with_content": "evaluation : employee_id (\"4\", \"7\", \"10\"), bonus (3000.0, 2900.0, 3200.0), year_awarded (\"2016\", \"2018\", \"2016\") | store : district (\"Tapiolan Urheilupuisto\", \"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\"), number_products (1600, 5000, 3516), manager_name (\"Tommi Kautonen\", \"Antti Muurinen\", \"Antti Muurinen\"), shop_id (7, 7, 5), location (\"Helsinki\", \"Valkeakoski\", \"Espoo\"), name (\"HJK\", \"FF Jaro\", \"KuPS\") | employee : employee_id (8, 10, 9), age (30, 43, 32), city (\"Bristol\", \"Leicester\", \"Wasps\"), name (\"Tim Payne\", \"Andrew Sheridan\", \"Lee Mears\") | hiring : employee_id (5, 5, 1), start_from (\"2003\", \"2011\", \"2009\"), is_full_time (\"T\", \"F\"), shop_id (6, 6, 6) | boutique : district (\"Tapiolan Urheilupuisto\", \"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\"), number_products (1600, 5000, 3516), manager_name (\"Tommi Kautonen\", \"Antti Muurinen\", \"Antti Muurinen\"), shop_id (7, 7, 5), location (\"Helsinki\", \"Valkeakoski\", \"Espoo\"), name (\"HJK\", \"FF Jaro\", \"KuPS\")", + "schema_without_content": "evaluation : employee_id , bonus , year_awarded | store : district , number_products , manager_name , shop_id , location , name | employee : employee_id , age , city , name | hiring : employee_id , start_from , is_full_time , shop_id | boutique : district , number_products , manager_name , shop_id , location , name", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "shop names": "shop.Name", + "shops' number products": "shop.Number_products" + } + }, + { + "question": "find the #name of employee# who was awarded the most times in the #evaluation# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id group by t2.employee_id order by count(*) desc limit 1", + "schema_with_content": "hiring : employee_id (2, 6, 4), start_from (\"2012\", \"2013\", \"2013\"), shop_id (8, 1, 2), is_full_time (\"T\", \"F\") | shop : shop_id (6, 9, 5), location (\"Kotka\", \"Mariehamn\", \"Helsinki\"), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Olli Huttunen\"), name (\"FC Inter\", \"FC Lahti\", \"FC Honka\"), number_products (15000, 5000, 4780), district (\"Finnair Stadium\", \"Lahden Stadion\", \"Jakobstads Centralplan\") | staff : city (\"Wasps\", \"Sale\", \"Wasps\"), employee_id (2, 8, 7), age (28, 23, 43), name (\"Louis Deacon\", \"Matt Stevens\", \"Matt Stevens\") | evaluation : year_awarded (\"2016\", \"2016\", \"2015\"), employee_id (\"2\", \"10\", \"10\"), bonus (4000.0, 3000.0, 3000.0) | worker : city (\"Wasps\", \"Sale\", \"Wasps\"), employee_id (2, 8, 7), age (28, 23, 43), name (\"Louis Deacon\", \"Matt Stevens\", \"Matt Stevens\")", + "schema_without_content": "hiring : employee_id , start_from , shop_id , is_full_time | shop : shop_id , location , manager_name , name , number_products , district | staff : city , employee_id , age , name | evaluation : year_awarded , employee_id , bonus | worker : city , employee_id , age , name", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of employee": "employee.Name", + "evaluation": "evaluation" + } + }, + { + "question": "find the #name of employee# who was awarded the most times in the #evaluation# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id group by t2.employee_id order by count(*) desc limit 1", + "schema_with_content": "assessment : year_awarded (\"2015\", \"2017\", \"2017\"), bonus (2900.0, 3000.0, 3000.0), employee_id (\"7\", \"7\", \"1\") | hiring : is_full_time (\"T\", \"F\"), start_from (\"2010\", \"2012\", \"2011\"), shop_id (1, 2, 8), employee_id (5, 2, 6) | appraisal : year_awarded (\"2015\", \"2017\", \"2017\"), bonus (2900.0, 3000.0, 3000.0), employee_id (\"7\", \"7\", \"1\") | employee : city (\"Wasps\", \"Sale\", \"Leicester\"), age (43, 23, 23), name (\"Tim Payne\", \"Jason Hobson\", \"Louis Deacon\"), employee_id (3, 7, 7) | shop : location (\"Lahti\", \"Helsinki\", \"Valkeakoski\"), name (\"FC KooTeePee\", \"IFK Mariehamn\", \"FC Haka\"), district (\"Tapiolan Urheilupuisto\", \"Lahden Stadion\", \"Tehtaan kentt\u00c3\u00a4\"), manager_name (\"Olli Huttunen\", \"Mika Laurikainen\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\"), number_products (6000, 3516, 3500), shop_id (6, 5, 1)", + "schema_without_content": "assessment : year_awarded , bonus , employee_id | hiring : is_full_time , start_from , shop_id , employee_id | appraisal : year_awarded , bonus , employee_id | employee : city , age , name , employee_id | shop : location , name , district , manager_name , number_products , shop_id", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "name of employee": "employee.Name", + "evaluation": "evaluation" + } + }, + { + "question": "which employee received the most awards in #evaluations# ? give me the #employee name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id group by t2.employee_id order by count(*) desc limit 1", + "schema_with_content": "hiring : start_from (\"2009\", \"2003\", \"2010\"), shop_id (2, 8, 5), employee_id (5, 1, 1), is_full_time (\"T\", \"F\") | staff : city (\"Bath\", \"Wasps\", \"Bristol\"), age (23, 32, 43), employee_id (9, 3, 2), name (\"Andrew Sheridan\", \"George Chuter\", \"Steve Borthwick\") | evaluation : employee_id (\"7\", \"10\", \"1\"), bonus (2900.0, 4000.0, 3200.0), year_awarded (\"2018\", \"2015\", \"2015\") | shop : location (\"Kuopio\", \"Mariehamn\", \"Jakobstad\"), shop_id (9, 2, 7), manager_name (\"Kai Nyyss\u00c3\u00b6nen\", \"Pekka Lyyski\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\"), district (\"Tehtaan kentt\u00c3\u00a4\", \"Veritas Stadion\", \"Veritas Stadion\"), name (\"HJK\", \"FC Honka\", \"FC Inter\"), number_products (10000, 15000, 3500) | worker : city (\"Bath\", \"Wasps\", \"Bristol\"), age (23, 32, 43), employee_id (9, 3, 2), name (\"Andrew Sheridan\", \"George Chuter\", \"Steve Borthwick\")", + "schema_without_content": "hiring : start_from , shop_id , employee_id , is_full_time | staff : city , age , employee_id , name | evaluation : employee_id , bonus , year_awarded | shop : location , shop_id , manager_name , district , name , number_products | worker : city , age , employee_id , name", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "evaluations": "evaluation", + "employee name": "employee.Name" + } + }, + { + "question": "which employee received the most awards in #evaluations# ? give me the #employee name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id group by t2.employee_id order by count(*) desc limit 1", + "schema_with_content": "hiring : shop_id (4, 5, 8), start_from (\"2003\", \"2012\", \"2012\"), is_full_time (\"T\", \"F\"), employee_id (6, 4, 2) | appraisal : employee_id (\"1\", \"4\", \"1\"), bonus (2900.0, 3200.0, 3200.0), year_awarded (\"2017\", \"2017\", \"2015\") | assessment : employee_id (\"1\", \"4\", \"1\"), bonus (2900.0, 3200.0, 3200.0), year_awarded (\"2017\", \"2017\", \"2015\") | shop : manager_name (\"Kai Nyyss\u00c3\u00b6nen\", \"Tommi Kautonen\", \"Pekka Lyyski\"), shop_id (3, 5, 6), number_products (10770, 10000, 1600), location (\"Turku\", \"Turku\", \"Mariehamn\"), district (\"Arto Tolsa Areena\", \"Veritas Stadion\", \"Lahden Stadion\"), name (\"IFK Mariehamn\", \"FC Lahti\", \"IFK Mariehamn\") | employee : city (\"Wasps\", \"Bristol\", \"Bath\"), age (28, 28, 40), name (\"Andrew Sheridan\", \"Louis Deacon\", \"Louis Deacon\"), employee_id (10, 3, 3)", + "schema_without_content": "hiring : shop_id , start_from , is_full_time , employee_id | appraisal : employee_id , bonus , year_awarded | assessment : employee_id , bonus , year_awarded | shop : manager_name , shop_id , number_products , location , district , name | employee : city , age , name , employee_id", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "evaluations": "evaluation", + "employee name": "employee.Name" + } + }, + { + "question": "find the #name of the employee# who got the highest one time #bonus# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id order by t2.bonus desc limit 1", + "schema_with_content": "staff : employee_id (4, 6, 10), age (30, 29, 32), city (\"Sale\", \"Leicester\", \"Bristol\"), name (\"George Chuter\", \"George Chuter\", \"Louis Deacon\") | shop : district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Jakobstads Centralplan\", \"Wikl\u00c3\u00b6f Holding Arena\"), number_products (3516, 5000, 5000), manager_name (\"Tommi Kautonen\", \"Pekka Lyyski\", \"Mika Lehkosuo\"), shop_id (7, 9, 5), location (\"Kotka\", \"Espoo\", \"Valkeakoski\"), name (\"FF Jaro\", \"FF Jaro\", \"KuPS\") | worker : employee_id (4, 6, 10), age (30, 29, 32), city (\"Sale\", \"Leicester\", \"Bristol\"), name (\"George Chuter\", \"George Chuter\", \"Louis Deacon\") | evaluation : year_awarded (\"2016\", \"2018\", \"2016\"), employee_id (\"1\", \"2\", \"1\"), bonus (4000.0, 4000.0, 3200.0) | hiring : shop_id (1, 8, 2), is_full_time (\"T\", \"F\"), employee_id (2, 1, 4), start_from (\"2008\", \"2010\", \"2011\")", + "schema_without_content": "staff : employee_id , age , city , name | shop : district , number_products , manager_name , shop_id , location , name | worker : employee_id , age , city , name | evaluation : year_awarded , employee_id , bonus | hiring : shop_id , is_full_time , employee_id , start_from", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the employee": "employee.Name", + "bonus": "evaluation.Bonus" + } + }, + { + "question": "find the #name of the employee# who got the highest one time #bonus# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id order by t2.bonus desc limit 1", + "schema_with_content": "hiring : shop_id (8, 5, 1), is_full_time (\"T\", \"F\"), start_from (\"2008\", \"2008\", \"2012\"), employee_id (4, 7, 7) | appraisal : employee_id (\"7\", \"7\", \"4\"), bonus (4000.0, 4000.0, 3200.0), year_awarded (\"2018\", \"2015\", \"2017\") | assessment : employee_id (\"7\", \"7\", \"4\"), bonus (4000.0, 4000.0, 3200.0), year_awarded (\"2018\", \"2015\", \"2017\") | shop : shop_id (8, 9, 5), name (\"FF Jaro\", \"FC Inter\", \"HJK\"), location (\"Turku\", \"Valkeakoski\", \"Jakobstad\"), manager_name (\"Job Dragtsma\", \"Mika Laurikainen\", \"Pekka Lyyski\"), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Veritas Stadion\", \"Tehtaan kentt\u00c3\u00a4\"), number_products (5000, 3516, 1600) | employee : employee_id (4, 4, 2), city (\"Wasps\", \"Bath\", \"Wasps\"), age (40, 30, 36), name (\"Tim Payne\", \"Phil Vickery\", \"Mark Regan\")", + "schema_without_content": "hiring : shop_id , is_full_time , start_from , employee_id | appraisal : employee_id , bonus , year_awarded | assessment : employee_id , bonus , year_awarded | shop : shop_id , name , location , manager_name , district , number_products | employee : employee_id , city , age , name", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "name of the employee": "employee.Name", + "bonus": "evaluation.Bonus" + } + }, + { + "question": "which employee received the biggest #bonus# ? give me the #employee name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id order by t2.bonus desc limit 1", + "schema_with_content": "hiring : is_full_time (\"T\", \"F\"), start_from (\"2003\", \"2009\", \"2003\"), shop_id (5, 4, 2), employee_id (3, 2, 5) | staff : age (29, 43, 30), city (\"Leicester\", \"Sale\", \"Wasps\"), employee_id (3, 8, 6), name (\"Phil Vickery\", \"Lee Mears\", \"Tim Payne\") | worker : age (29, 43, 30), city (\"Leicester\", \"Sale\", \"Wasps\"), employee_id (3, 8, 6), name (\"Phil Vickery\", \"Lee Mears\", \"Tim Payne\") | shop : manager_name (\"Tommi Kautonen\", \"Mika Lehkosuo\", \"Kai Nyyss\u00c3\u00b6nen\"), name (\"KuPS\", \"FC Lahti\", \"FF Jaro\"), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Wikl\u00c3\u00b6f Holding Arena\", \"Magnum Areena\"), number_products (4780, 1600, 6000), shop_id (5, 3, 7), location (\"Lahti\", \"Mariehamn\", \"Jakobstad\") | evaluation : year_awarded (\"2018\", \"2015\", \"2015\"), bonus (3200.0, 2900.0, 4000.0), employee_id (\"4\", \"7\", \"10\")", + "schema_without_content": "hiring : is_full_time , start_from , shop_id , employee_id | staff : age , city , employee_id , name | worker : age , city , employee_id , name | shop : manager_name , name , district , number_products , shop_id , location | evaluation : year_awarded , bonus , employee_id", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "bonus": "evaluation.Bonus", + "employee name": "employee.Name" + } + }, + { + "question": "which employee received the biggest #bonus# ? give me the #employee name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t1.name from employee as t1 join evaluation as t2 on t1.employee_id = t2.employee_id order by t2.bonus desc limit 1", + "schema_with_content": "assessment : year_awarded (\"2018\", \"2016\", \"2018\"), bonus (4000.0, 3200.0, 3200.0), employee_id (\"1\", \"4\", \"4\") | employee : age (36, 28, 30), city (\"Sale\", \"Sale\", \"Bristol\"), employee_id (1, 5, 2), name (\"Jason Hobson\", \"Louis Deacon\", \"Phil Vickery\") | shop : district (\"Arto Tolsa Areena\", \"Veritas Stadion\", \"Finnair Stadium\"), location (\"Helsinki\", \"Kuopio\", \"Espoo\"), number_products (6000, 15000, 6000), manager_name (\"Antti Muurinen\", \"Kai Nyyss\u00c3\u00b6nen\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\"), name (\"FF Jaro\", \"FC Haka\", \"KuPS\"), shop_id (5, 8, 6) | hiring : is_full_time (\"T\", \"F\"), start_from (\"2009\", \"2013\", \"2008\"), shop_id (1, 8, 4), employee_id (7, 1, 7) | appraisal : year_awarded (\"2018\", \"2016\", \"2018\"), bonus (4000.0, 3200.0, 3200.0), employee_id (\"1\", \"4\", \"4\")", + "schema_without_content": "assessment : year_awarded , bonus , employee_id | employee : age , city , employee_id , name | shop : district , location , number_products , manager_name , name , shop_id | hiring : is_full_time , start_from , shop_id , employee_id | appraisal : year_awarded , bonus , employee_id", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "bonus": "evaluation.Bonus", + "employee name": "employee.Name" + } + }, + { + "question": "find the #names of employees# who never won any #award# in the evaluation.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee where employee_id not in (select employee_id from evaluation)", + "schema_with_content": "hiring : shop_id (4, 2, 5), is_full_time (\"T\", \"F\"), employee_id (2, 7, 4), start_from (\"2010\", \"2012\", \"2013\") | worker : age (43, 23, 30), employee_id (10, 10, 1), city (\"Leicester\", \"Leicester\", \"Wasps\"), name (\"Phil Vickery\", \"Jason Hobson\", \"Matt Stevens\") | staff : age (43, 23, 30), employee_id (10, 10, 1), city (\"Leicester\", \"Leicester\", \"Wasps\"), name (\"Phil Vickery\", \"Jason Hobson\", \"Matt Stevens\") | shop : number_products (4780, 6000, 3516), location (\"Valkeakoski\", \"Valkeakoski\", \"Espoo\"), shop_id (2, 9, 4), district (\"Veritas Stadion\", \"Jakobstads Centralplan\", \"Jakobstads Centralplan\"), manager_name (\"Olli Huttunen\", \"Antti Muurinen\", \"Tommi Kautonen\"), name (\"FC Lahti\", \"IFK Mariehamn\", \"IFK Mariehamn\") | evaluation : employee_id (\"10\", \"7\", \"4\"), year_awarded (\"2016\", \"2016\", \"2011\"), bonus (3200.0, 3200.0, 3000.0)", + "schema_without_content": "hiring : shop_id , is_full_time , employee_id , start_from | worker : age , employee_id , city , name | staff : age , employee_id , city , name | shop : number_products , location , shop_id , district , manager_name , name | evaluation : employee_id , year_awarded , bonus", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of employees": "employee.Name", + "award": "evaluation" + } + }, + { + "question": "find the #names of employees# who never won any #award# in the evaluation.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee where employee_id not in (select employee_id from evaluation)", + "schema_with_content": "appraisal : bonus (2900.0, 2900.0, 3200.0), employee_id (\"2\", \"4\", \"1\"), year_awarded (\"2016\", \"2018\", \"2016\") | shop : district (\"Tehtaan kentt\u00c3\u00a4\", \"Tehtaan kentt\u00c3\u00a4\", \"Finnair Stadium\"), location (\"Jakobstad\", \"Lahti\", \"Helsinki\"), manager_name (\"Olli Huttunen\", \"Pekka Lyyski\", \"Antti Muurinen\"), number_products (10770, 5000, 3500), name (\"FC KooTeePee\", \"FC KooTeePee\", \"FC Honka\"), shop_id (8, 4, 3) | employee : age (23, 30, 28), city (\"Leicester\", \"Wasps\", \"Wasps\"), employee_id (6, 8, 4), name (\"Louis Deacon\", \"Louis Deacon\", \"Louis Deacon\") | assessment : bonus (2900.0, 2900.0, 3200.0), employee_id (\"2\", \"4\", \"1\"), year_awarded (\"2016\", \"2018\", \"2016\") | hiring : is_full_time (\"T\", \"F\"), employee_id (4, 4, 7), shop_id (5, 1, 6), start_from (\"2003\", \"2003\", \"2003\")", + "schema_without_content": "appraisal : bonus , employee_id , year_awarded | shop : district , location , manager_name , number_products , name , shop_id | employee : age , city , employee_id , name | assessment : bonus , employee_id , year_awarded | hiring : is_full_time , employee_id , shop_id , start_from", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "names of employees": "employee.Name", + "award": "evaluation" + } + }, + { + "question": "what are the #names of the employees# who never received any #evaluation# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee where employee_id not in (select employee_id from evaluation)", + "schema_with_content": "shop : number_products (5000, 1600, 4780), manager_name (\"Antti Muurinen\", \"Kai Nyyss\u00c3\u00b6nen\", \"Antti Muurinen\"), district (\"Magnum Areena\", \"Magnum Areena\", \"Lahden Stadion\"), location (\"Helsinki\", \"Espoo\", \"Kuopio\"), name (\"FC KooTeePee\", \"IFK Mariehamn\", \"FC Lahti\"), shop_id (8, 7, 5) | evaluation : employee_id (\"7\", \"1\", \"2\"), bonus (2900.0, 3000.0, 4000.0), year_awarded (\"2011\", \"2017\", \"2016\") | worker : city (\"Bristol\", \"Bath\", \"Leicester\"), name (\"Tim Payne\", \"Andrew Sheridan\", \"Tim Payne\"), employee_id (4, 8, 5), age (40, 32, 32) | hiring : shop_id (4, 1, 1), start_from (\"2003\", \"2008\", \"2013\"), employee_id (5, 5, 6), is_full_time (\"T\", \"F\") | staff : city (\"Bristol\", \"Bath\", \"Leicester\"), name (\"Tim Payne\", \"Andrew Sheridan\", \"Tim Payne\"), employee_id (4, 8, 5), age (40, 32, 32)", + "schema_without_content": "shop : number_products , manager_name , district , location , name , shop_id | evaluation : employee_id , bonus , year_awarded | worker : city , name , employee_id , age | hiring : shop_id , start_from , employee_id , is_full_time | staff : city , name , employee_id , age", + "extra_map": null, + "extra_table_map": { + "employee": [ + "staff", + "worker" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the employees": "employee.Name", + "evaluation": "evaluation" + } + }, + { + "question": "what are the #names of the employees# who never received any #evaluation# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from employee where employee_id not in (select employee_id from evaluation)", + "schema_with_content": "employee : age (43, 30, 40), name (\"Andrew Sheridan\", \"Phil Vickery\", \"Andrew Sheridan\"), city (\"Leicester\", \"Bath\", \"Leicester\"), employee_id (10, 3, 1) | hiring : shop_id (2, 8, 8), employee_id (6, 4, 2), is_full_time (\"T\", \"F\"), start_from (\"2011\", \"2012\", \"2013\") | appraisal : year_awarded (\"2011\", \"2011\", \"2017\"), employee_id (\"7\", \"4\", \"4\"), bonus (3000.0, 4000.0, 4000.0) | shop : district (\"Arto Tolsa Areena\", \"Magnum Areena\", \"Lahden Stadion\"), shop_id (2, 6, 6), name (\"HJK\", \"FF Jaro\", \"HJK\"), manager_name (\"Olli Huttunen\", \"Antti Muurinen\", \"Job Dragtsma\"), number_products (6000, 4780, 4780), location (\"Valkeakoski\", \"Mariehamn\", \"Helsinki\") | assessment : year_awarded (\"2011\", \"2011\", \"2017\"), employee_id (\"7\", \"4\", \"4\"), bonus (3000.0, 4000.0, 4000.0)", + "schema_without_content": "employee : age , name , city , employee_id | hiring : shop_id , employee_id , is_full_time , start_from | appraisal : year_awarded , employee_id , bonus | shop : district , shop_id , name , manager_name , number_products , location | assessment : year_awarded , employee_id , bonus", + "extra_map": null, + "extra_table_map": { + "evaluation": [ + "appraisal", + "assessment" + ] + }, + "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" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "column_linking_gt": { + "names of the employees": "employee.Name", + "evaluation": "evaluation" + } + }, + { + "question": "what is the #name of the shop that is hiring# the largest number of employees?", + "db_id": "employee_hire_evaluation", + "orig_query": "select t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t1.shop_id order by count(*) desc limit 1", + "schema_with_content": "boutique : shop_id (6, 2, 9), name (\"FF Jaro\", \"FC Honka\", \"IFK Mariehamn\"), location (\"Mariehamn\", \"Mariehamn\", \"Kuopio\"), district (\"Lahden Stadion\", \"Jakobstads Centralplan\", \"Veritas Stadion\"), manager_name (\"Mika Lehkosuo\", \"Mika Lehkosuo\", \"Olli Huttunen\"), number_products (3500, 3516, 1600) | employee : name (\"Phil Vickery\", \"Louis Deacon\", \"Steve Borthwick\"), city (\"Sale\", \"Sale\", \"Leicester\"), age (29, 40, 23), employee_id (10, 1, 5) | hiring : shop_id (1, 6, 6), start_from (\"2008\", \"2011\", \"2012\"), is_full_time (\"T\", \"F\"), employee_id (4, 6, 1) | store : shop_id (6, 2, 9), name (\"FF Jaro\", \"FC Honka\", \"IFK Mariehamn\"), location (\"Mariehamn\", \"Mariehamn\", \"Kuopio\"), district (\"Lahden Stadion\", \"Jakobstads Centralplan\", \"Veritas Stadion\"), manager_name (\"Mika Lehkosuo\", \"Mika Lehkosuo\", \"Olli Huttunen\"), number_products (3500, 3516, 1600) | evaluation : bonus (2900.0, 3000.0, 3200.0), employee_id (\"1\", \"7\", \"7\"), year_awarded (\"2015\", \"2011\", \"2011\")", + "schema_without_content": "boutique : shop_id , name , location , district , manager_name , number_products | employee : name , city , age , employee_id | hiring : shop_id , start_from , is_full_time , employee_id | store : shop_id , name , location , district , manager_name , number_products | evaluation : bonus , employee_id , year_awarded", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the shop that is hiring": "shop.Name" + } + }, + { + "question": "what is the #name of the shop that is hiring# the largest number of employees?", + "db_id": "employee_hire_evaluation", + "orig_query": "select t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t1.shop_id order by count(*) desc limit 1", + "schema_with_content": "shop : name (\"IFK Mariehamn\", \"FC Honka\", \"IFK Mariehamn\"), manager_name (\"Mika Laurikainen\", \"Mika Laurikainen\", \"Kai Nyyss\u00c3\u00b6nen\"), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Magnum Areena\", \"Tehtaan kentt\u00c3\u00a4\"), location (\"Espoo\", \"Kotka\", \"Turku\"), shop_id (3, 5, 4), number_products (4780, 3500, 6000) | evaluation : employee_id (\"2\", \"7\", \"10\"), bonus (4000.0, 3000.0, 3000.0), year_awarded (\"2017\", \"2011\", \"2017\") | employee : employee_id (3, 5, 9), city (\"Sale\", \"Leicester\", \"Bristol\"), age (36, 43, 36), name (\"Tim Payne\", \"Mark Regan\", \"Lee Mears\") | onboarding : start_from (\"2010\", \"2009\", \"2011\"), shop_id (6, 1, 4), employee_id (3, 5, 6), is_full_time (\"T\", \"F\") | recruitment : start_from (\"2010\", \"2009\", \"2011\"), shop_id (6, 1, 4), employee_id (3, 5, 6), is_full_time (\"T\", \"F\")", + "schema_without_content": "shop : name , manager_name , district , location , shop_id , number_products | evaluation : employee_id , bonus , year_awarded | employee : employee_id , city , age , name | onboarding : start_from , shop_id , employee_id , is_full_time | recruitment : start_from , shop_id , employee_id , is_full_time", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the shop that is hiring": "shop.Name" + } + }, + { + "question": "which shop has the most #employees# ? give me the #shop name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t1.shop_id order by count(*) desc limit 1", + "schema_with_content": "employee : name (\"Phil Vickery\", \"Tim Payne\", \"Steve Borthwick\"), city (\"Wasps\", \"Wasps\", \"Wasps\"), employee_id (6, 2, 5), age (30, 40, 30) | store : number_products (10000, 15000, 15000), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Veritas Stadion\", \"Veritas Stadion\"), manager_name (\"Pekka Lyyski\", \"Antti Muurinen\", \"Pekka Lyyski\"), shop_id (7, 7, 6), name (\"FC Haka\", \"HJK\", \"FC Inter\"), location (\"Espoo\", \"Lahti\", \"Espoo\") | boutique : number_products (10000, 15000, 15000), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Veritas Stadion\", \"Veritas Stadion\"), manager_name (\"Pekka Lyyski\", \"Antti Muurinen\", \"Pekka Lyyski\"), shop_id (7, 7, 6), name (\"FC Haka\", \"HJK\", \"FC Inter\"), location (\"Espoo\", \"Lahti\", \"Espoo\") | hiring : is_full_time (\"T\", \"F\"), start_from (\"2003\", \"2011\", \"2010\"), employee_id (1, 1, 5), shop_id (2, 2, 8) | evaluation : bonus (4000.0, 3000.0, 4000.0), employee_id (\"10\", \"2\", \"7\"), year_awarded (\"2018\", \"2017\", \"2017\")", + "schema_without_content": "employee : name , city , employee_id , age | store : number_products , district , manager_name , shop_id , name , location | boutique : number_products , district , manager_name , shop_id , name , location | hiring : is_full_time , start_from , employee_id , shop_id | evaluation : bonus , employee_id , year_awarded", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "employees": "employee", + "shop name": "shop.Name" + } + }, + { + "question": "which shop has the most #employees# ? give me the #shop name# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t1.shop_id order by count(*) desc limit 1", + "schema_with_content": "shop : manager_name (\"Tommi Kautonen\", \"Pekka Lyyski\", \"Antti Muurinen\"), name (\"HJK\", \"FC Inter\", \"FC Inter\"), location (\"Kotka\", \"Helsinki\", \"Kotka\"), district (\"Jakobstads Centralplan\", \"Finnair Stadium\", \"Tapiolan Urheilupuisto\"), shop_id (2, 7, 5), number_products (10000, 1600, 3516) | onboarding : shop_id (4, 1, 4), is_full_time (\"T\", \"F\"), employee_id (5, 1, 7), start_from (\"2008\", \"2013\", \"2009\") | employee : name (\"Jason Hobson\", \"Andrew Sheridan\", \"Matt Stevens\"), employee_id (7, 7, 9), age (36, 43, 36), city (\"Wasps\", \"Wasps\", \"Bristol\") | evaluation : bonus (2900.0, 2900.0, 4000.0), year_awarded (\"2015\", \"2018\", \"2016\"), employee_id (\"2\", \"1\", \"7\") | recruitment : shop_id (4, 1, 4), is_full_time (\"T\", \"F\"), employee_id (5, 1, 7), start_from (\"2008\", \"2013\", \"2009\")", + "schema_without_content": "shop : manager_name , name , location , district , shop_id , number_products | onboarding : shop_id , is_full_time , employee_id , start_from | employee : name , employee_id , age , city | evaluation : bonus , year_awarded , employee_id | recruitment : shop_id , is_full_time , employee_id , start_from", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "employees": "employee", + "shop name": "shop.Name" + } + }, + { + "question": "find the #name of the shops# that do not #hire# any employee.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where shop_id not in (select shop_id from hiring)", + "schema_with_content": "evaluation : employee_id (\"1\", \"4\", \"7\"), year_awarded (\"2015\", \"2018\", \"2015\"), bonus (3200.0, 4000.0, 2900.0) | employee : name (\"Phil Vickery\", \"Lee Mears\", \"Steve Borthwick\"), city (\"Bristol\", \"Wasps\", \"Wasps\"), employee_id (3, 4, 8), age (43, 28, 23) | boutique : manager_name (\"Pekka Lyyski\", \"Olli Huttunen\", \"Olli Huttunen\"), number_products (10000, 3516, 6000), shop_id (6, 3, 4), district (\"Jakobstads Centralplan\", \"Tapiolan Urheilupuisto\", \"Tehtaan kentt\u00c3\u00a4\"), name (\"HJK\", \"FC Lahti\", \"FC KooTeePee\"), location (\"Espoo\", \"Lahti\", \"Kuopio\") | hiring : start_from (\"2003\", \"2009\", \"2013\"), shop_id (2, 6, 1), is_full_time (\"T\", \"F\"), employee_id (3, 2, 4) | store : manager_name (\"Pekka Lyyski\", \"Olli Huttunen\", \"Olli Huttunen\"), number_products (10000, 3516, 6000), shop_id (6, 3, 4), district (\"Jakobstads Centralplan\", \"Tapiolan Urheilupuisto\", \"Tehtaan kentt\u00c3\u00a4\"), name (\"HJK\", \"FC Lahti\", \"FC KooTeePee\"), location (\"Espoo\", \"Lahti\", \"Kuopio\")", + "schema_without_content": "evaluation : employee_id , year_awarded , bonus | employee : name , city , employee_id , age | boutique : manager_name , number_products , shop_id , district , name , location | hiring : start_from , shop_id , is_full_time , employee_id | store : manager_name , number_products , shop_id , district , name , location", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the shops": "shop.Name", + "hire": "hiring" + } + }, + { + "question": "find the #name of the shops# that do not #hire# any employee.", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where shop_id not in (select shop_id from hiring)", + "schema_with_content": "onboarding : start_from (\"2011\", \"2011\", \"2003\"), is_full_time (\"T\", \"F\"), shop_id (5, 6, 6), employee_id (1, 1, 1) | evaluation : bonus (3200.0, 2900.0, 4000.0), employee_id (\"10\", \"1\", \"1\"), year_awarded (\"2018\", \"2016\", \"2016\") | shop : number_products (5000, 3500, 1600), location (\"Turku\", \"Jakobstad\", \"Lahti\"), name (\"FF Jaro\", \"FC Haka\", \"IFK Mariehamn\"), shop_id (9, 8, 5), district (\"Veritas Stadion\", \"Lahden Stadion\", \"Finnair Stadium\"), manager_name (\"Job Dragtsma\", \"Antti Muurinen\", \"Job Dragtsma\") | recruitment : start_from (\"2011\", \"2011\", \"2003\"), is_full_time (\"T\", \"F\"), shop_id (5, 6, 6), employee_id (1, 1, 1) | employee : age (29, 23, 23), employee_id (1, 8, 3), city (\"Bath\", \"Leicester\", \"Leicester\"), name (\"Mark Regan\", \"Andrew Sheridan\", \"Tim Payne\")", + "schema_without_content": "onboarding : start_from , is_full_time , shop_id , employee_id | evaluation : bonus , employee_id , year_awarded | shop : number_products , location , name , shop_id , district , manager_name | recruitment : start_from , is_full_time , shop_id , employee_id | employee : age , employee_id , city , name", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the shops": "shop.Name", + "hire": "hiring" + } + }, + { + "question": "which #shops# run with no #employees# ? find the shop names", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where shop_id not in (select shop_id from hiring)", + "schema_with_content": "boutique : district (\"Magnum Areena\", \"Tapiolan Urheilupuisto\", \"Jakobstads Centralplan\"), manager_name (\"Pekka Lyyski\", \"Pekka Lyyski\", \"Olli Huttunen\"), shop_id (2, 7, 7), number_products (3516, 10000, 15000), name (\"FC KooTeePee\", \"FF Jaro\", \"HJK\"), location (\"Turku\", \"Lahti\", \"Jakobstad\") | store : district (\"Magnum Areena\", \"Tapiolan Urheilupuisto\", \"Jakobstads Centralplan\"), manager_name (\"Pekka Lyyski\", \"Pekka Lyyski\", \"Olli Huttunen\"), shop_id (2, 7, 7), number_products (3516, 10000, 15000), name (\"FC KooTeePee\", \"FF Jaro\", \"HJK\"), location (\"Turku\", \"Lahti\", \"Jakobstad\") | employee : age (23, 43, 30), city (\"Wasps\", \"Bath\", \"Bristol\"), name (\"Louis Deacon\", \"George Chuter\", \"Lee Mears\"), employee_id (9, 7, 2) | evaluation : bonus (2900.0, 4000.0, 4000.0), employee_id (\"1\", \"1\", \"2\"), year_awarded (\"2016\", \"2016\", \"2018\") | hiring : shop_id (5, 4, 5), start_from (\"2003\", \"2011\", \"2003\"), is_full_time (\"T\", \"F\"), employee_id (4, 6, 1)", + "schema_without_content": "boutique : district , manager_name , shop_id , number_products , name , location | store : district , manager_name , shop_id , number_products , name , location | employee : age , city , name , employee_id | evaluation : bonus , employee_id , year_awarded | hiring : shop_id , start_from , is_full_time , employee_id", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "shops": "shop", + "employees": "hiring.Employee_ID", + "shop names": "shop.Name" + } + }, + { + "question": "which #shops# run with no #employees# ? find the shop names", + "db_id": "employee_hire_evaluation", + "orig_query": "select name from shop where shop_id not in (select shop_id from hiring)", + "schema_with_content": "evaluation : year_awarded (\"2011\", \"2016\", \"2017\"), bonus (3000.0, 3000.0, 2900.0), employee_id (\"7\", \"4\", \"7\") | onboarding : is_full_time (\"T\", \"F\"), shop_id (2, 2, 1), start_from (\"2009\", \"2008\", \"2013\"), employee_id (1, 2, 3) | recruitment : is_full_time (\"T\", \"F\"), shop_id (2, 2, 1), start_from (\"2009\", \"2008\", \"2013\"), employee_id (1, 2, 3) | shop : shop_id (6, 7, 4), district (\"Veritas Stadion\", \"Lahden Stadion\", \"Arto Tolsa Areena\"), manager_name (\"Tommi Kautonen\", \"Kai Nyyss\u00c3\u00b6nen\", \"Tommi Kautonen\"), number_products (3516, 6000, 15000), name (\"FC KooTeePee\", \"FC Haka\", \"FC Lahti\"), location (\"Kotka\", \"Espoo\", \"Jakobstad\") | employee : name (\"Mark Regan\", \"Phil Vickery\", \"Tim Payne\"), employee_id (2, 9, 2), age (40, 29, 23), city (\"Wasps\", \"Sale\", \"Wasps\")", + "schema_without_content": "evaluation : year_awarded , bonus , employee_id | onboarding : is_full_time , shop_id , start_from , employee_id | recruitment : is_full_time , shop_id , start_from , employee_id | shop : shop_id , district , manager_name , number_products , name , location | employee : name , employee_id , age , city", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "shops": "shop", + "employees": "hiring.Employee_ID", + "shop names": "shop.Name" + } + }, + { + "question": "find the #number of employees hired in each shop# ; show the #shop name# as well.", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t2.name", + "schema_with_content": "store : shop_id (3, 3, 8), location (\"Lahti\", \"Lahti\", \"Kotka\"), number_products (6000, 4780, 6000), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\", \"Magnum Areena\"), name (\"FC KooTeePee\", \"FC Lahti\", \"FC Haka\"), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Mika Lehkosuo\") | hiring : employee_id (2, 1, 7), shop_id (2, 6, 6), is_full_time (\"T\", \"F\"), start_from (\"2010\", \"2003\", \"2009\") | evaluation : bonus (3000.0, 3200.0, 3200.0), year_awarded (\"2018\", \"2017\", \"2011\"), employee_id (\"2\", \"7\", \"1\") | employee : age (36, 30, 40), employee_id (7, 8, 2), name (\"Mark Regan\", \"Matt Stevens\", \"Tim Payne\"), city (\"Sale\", \"Bath\", \"Bath\") | boutique : shop_id (3, 3, 8), location (\"Lahti\", \"Lahti\", \"Kotka\"), number_products (6000, 4780, 6000), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Tehtaan kentt\u00c3\u00a4\", \"Magnum Areena\"), name (\"FC KooTeePee\", \"FC Lahti\", \"FC Haka\"), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Mika Lehkosuo\")", + "schema_without_content": "store : shop_id , location , number_products , district , name , manager_name | hiring : employee_id , shop_id , is_full_time , start_from | evaluation : bonus , year_awarded , employee_id | employee : age , employee_id , name , city | boutique : shop_id , location , number_products , district , name , manager_name", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "number of employees hired in each shop": "hiring.Employee_ID", + "shop name": "shop.Name" + } + }, + { + "question": "find the #number of employees hired in each shop# ; show the #shop name# as well.", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t2.name", + "schema_with_content": "evaluation : bonus (3200.0, 3000.0, 4000.0), year_awarded (\"2016\", \"2016\", \"2017\"), employee_id (\"4\", \"7\", \"2\") | recruitment : is_full_time (\"T\", \"F\"), start_from (\"2010\", \"2013\", \"2009\"), shop_id (1, 4, 1), employee_id (7, 6, 5) | employee : city (\"Leicester\", \"Sale\", \"Bath\"), name (\"Mark Regan\", \"George Chuter\", \"Jason Hobson\"), employee_id (5, 9, 1), age (32, 28, 29) | onboarding : is_full_time (\"T\", \"F\"), start_from (\"2010\", \"2013\", \"2009\"), shop_id (1, 4, 1), employee_id (7, 6, 5) | shop : name (\"IFK Mariehamn\", \"HJK\", \"FC Inter\"), number_products (15000, 4780, 3516), shop_id (2, 5, 6), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Finnair Stadium\", \"Jakobstads Centralplan\"), manager_name (\"Ilkka M\u00c3\u00a4kel\u00c3\u00a4\", \"Job Dragtsma\", \"Tommi Kautonen\"), location (\"Kotka\", \"Lahti\", \"Kotka\")", + "schema_without_content": "evaluation : bonus , year_awarded , employee_id | recruitment : is_full_time , start_from , shop_id , employee_id | employee : city , name , employee_id , age | onboarding : is_full_time , start_from , shop_id , employee_id | shop : name , number_products , shop_id , district , manager_name , location", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "number of employees hired in each shop": "hiring.Employee_ID", + "shop name": "shop.Name" + } + }, + { + "question": "for each #shop# , return the #number of employees# working there and the n #ame of the shop.# ", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t2.name", + "schema_with_content": "store : number_products (3500, 3500, 4780), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Veritas Stadion\", \"Lahden Stadion\"), name (\"HJK\", \"FC KooTeePee\", \"FC Lahti\"), location (\"Valkeakoski\", \"Helsinki\", \"Helsinki\"), shop_id (8, 6, 9), manager_name (\"Tommi Kautonen\", \"Job Dragtsma\", \"Kai Nyyss\u00c3\u00b6nen\") | boutique : number_products (3500, 3500, 4780), district (\"Wikl\u00c3\u00b6f Holding Arena\", \"Veritas Stadion\", \"Lahden Stadion\"), name (\"HJK\", \"FC KooTeePee\", \"FC Lahti\"), location (\"Valkeakoski\", \"Helsinki\", \"Helsinki\"), shop_id (8, 6, 9), manager_name (\"Tommi Kautonen\", \"Job Dragtsma\", \"Kai Nyyss\u00c3\u00b6nen\") | hiring : start_from (\"2009\", \"2003\", \"2003\"), shop_id (1, 8, 6), employee_id (5, 4, 5), is_full_time (\"T\", \"F\") | evaluation : employee_id (\"1\", \"7\", \"10\"), bonus (3200.0, 2900.0, 4000.0), year_awarded (\"2011\", \"2011\", \"2015\") | employee : city (\"Bristol\", \"Bristol\", \"Sale\"), name (\"Lee Mears\", \"Steve Borthwick\", \"George Chuter\"), age (40, 29, 29), employee_id (3, 9, 7)", + "schema_without_content": "store : number_products , district , name , location , shop_id , manager_name | boutique : number_products , district , name , location , shop_id , manager_name | hiring : start_from , shop_id , employee_id , is_full_time | evaluation : employee_id , bonus , year_awarded | employee : city , name , age , employee_id", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "shop": "shop", + "number of employees": "hiring.Employee_ID", + "ame of the shop.": "shop", + "name of the shop": "shop.Name" + } + }, + { + "question": "for each #shop# , return the #number of employees# working there and the n #ame of the shop.# ", + "db_id": "employee_hire_evaluation", + "orig_query": "select count(*), t2.name from hiring as t1 join shop as t2 on t1.shop_id = t2.shop_id group by t2.name", + "schema_with_content": "employee : age (40, 23, 30), employee_id (5, 3, 7), city (\"Wasps\", \"Bristol\", \"Leicester\"), name (\"Mark Regan\", \"Matt Stevens\", \"Matt Stevens\") | recruitment : shop_id (2, 1, 1), employee_id (6, 6, 1), is_full_time (\"T\", \"F\"), start_from (\"2013\", \"2009\", \"2009\") | evaluation : employee_id (\"1\", \"2\", \"4\"), year_awarded (\"2015\", \"2015\", \"2011\"), bonus (4000.0, 3200.0, 2900.0) | onboarding : shop_id (2, 1, 1), employee_id (6, 6, 1), is_full_time (\"T\", \"F\"), start_from (\"2013\", \"2009\", \"2009\") | shop : name (\"FC Honka\", \"KuPS\", \"IFK Mariehamn\"), district (\"Veritas Stadion\", \"Jakobstads Centralplan\", \"Arto Tolsa Areena\"), shop_id (7, 3, 7), location (\"Helsinki\", \"Kotka\", \"Jakobstad\"), manager_name (\"Job Dragtsma\", \"Mika Lehkosuo\", \"Job Dragtsma\"), number_products (15000, 4780, 4780)", + "schema_without_content": "employee : age , employee_id , city , name | recruitment : shop_id , employee_id , is_full_time , start_from | evaluation : employee_id , year_awarded , bonus | onboarding : shop_id , employee_id , is_full_time , start_from | shop : name , district , shop_id , location , manager_name , number_products", + "extra_map": null, + "extra_table_map": { + "hiring": [ + "recruitment", + "onboarding" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "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" + ] + }, + "column_linking_gt": { + "shop": "shop", + "number of employees": "hiring.Employee_ID", + "ame of the shop.": "shop", + "name of the shop": "shop.Name" + } + }, + { + "question": "which #district# has both #stores with less than 3000 products# and #stores with more than 10000 products# ?", + "db_id": "employee_hire_evaluation", + "orig_query": "select district from shop where number_products < 3000 intersect select district from shop where number_products > 10000", + "schema_with_content": "hiring : shop_id (2, 4, 6), start_from (\"2012\", \"2013\", \"2010\"), employee_id (7, 7, 1), is_full_time (\"T\", \"F\") | boutique : number_products (3500, 4780, 3500), location (\"Kotka\", \"Helsinki\", \"Turku\"), district (\"Lahden Stadion\", \"Magnum Areena\", \"Tehtaan kentt\u00c3\u00a4\"), manager_name (\"Kai Nyyss\u00c3\u00b6nen\", \"Pekka Lyyski\", \"Pekka Lyyski\"), shop_id (8, 7, 8), name (\"FC Lahti\", \"IFK Mariehamn\", \"IFK Mariehamn\") | store : number_products (3500, 4780, 3500), location (\"Kotka\", \"Helsinki\", \"Turku\"), district (\"Lahden Stadion\", \"Magnum Areena\", \"Tehtaan kentt\u00c3\u00a4\"), manager_name (\"Kai Nyyss\u00c3\u00b6nen\", \"Pekka Lyyski\", \"Pekka Lyyski\"), shop_id (8, 7, 8), name (\"FC Lahti\", \"IFK Mariehamn\", \"IFK Mariehamn\") | employee : age (40, 30, 23), city (\"Sale\", \"Wasps\", \"Sale\"), name (\"Phil Vickery\", \"Jason Hobson\", \"Tim Payne\"), employee_id (4, 1, 5) | evaluation : employee_id (\"4\", \"2\", \"1\"), bonus (3000.0, 4000.0, 4000.0), year_awarded (\"2015\", \"2018\", \"2016\")", + "schema_without_content": "hiring : shop_id , start_from , employee_id , is_full_time | boutique : number_products , location , district , manager_name , shop_id , name | store : number_products , location , district , manager_name , shop_id , name | employee : age , city , name , employee_id | evaluation : employee_id , bonus , year_awarded", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "district": "shop.District", + "stores with less than 3000 products": "shop.Number_products", + "stores with more than 10000 products": "shop.Number_products" + } + }, + { + "question": "find the #districts# in which there are both #shops# selling #less than 3000 products# and shops selling #more than 10000 products# .", + "db_id": "employee_hire_evaluation", + "orig_query": "select district from shop where number_products < 3000 intersect select district from shop where number_products > 10000", + "schema_with_content": "employee : name (\"Steve Borthwick\", \"Jason Hobson\", \"Phil Vickery\"), age (36, 40, 30), city (\"Wasps\", \"Leicester\", \"Leicester\"), employee_id (3, 5, 5) | boutique : manager_name (\"Pekka Lyyski\", \"Kai Nyyss\u00c3\u00b6nen\", \"Tommi Kautonen\"), shop_id (1, 6, 4), name (\"FC Lahti\", \"FC Lahti\", \"FC Lahti\"), district (\"Magnum Areena\", \"Finnair Stadium\", \"Arto Tolsa Areena\"), location (\"Mariehamn\", \"Kotka\", \"Jakobstad\"), number_products (10000, 3516, 1600) | hiring : is_full_time (\"T\", \"F\"), start_from (\"2012\", \"2013\", \"2003\"), employee_id (1, 5, 2), shop_id (6, 2, 5) | store : manager_name (\"Pekka Lyyski\", \"Kai Nyyss\u00c3\u00b6nen\", \"Tommi Kautonen\"), shop_id (1, 6, 4), name (\"FC Lahti\", \"FC Lahti\", \"FC Lahti\"), district (\"Magnum Areena\", \"Finnair Stadium\", \"Arto Tolsa Areena\"), location (\"Mariehamn\", \"Kotka\", \"Jakobstad\"), number_products (10000, 3516, 1600) | evaluation : year_awarded (\"2015\", \"2015\", \"2015\"), bonus (3200.0, 3000.0, 2900.0), employee_id (\"10\", \"10\", \"7\")", + "schema_without_content": "employee : name , age , city , employee_id | boutique : manager_name , shop_id , name , district , location , number_products | hiring : is_full_time , start_from , employee_id , shop_id | store : manager_name , shop_id , name , district , location , number_products | evaluation : year_awarded , bonus , employee_id", + "extra_map": null, + "extra_table_map": { + "shop": [ + "store", + "boutique" + ] + }, + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "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" + ] + }, + "column_linking_gt": { + "districts": "shop.District", + "shops": "shop", + "less than 3000 products": "shop.Number_products", + "more than 10000 products": "shop.Number_products" + } + }, + { + "question": "what is the #document name# and #template id for document with description# with the letter 'w' in it?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_name, template_id from documents where document_description like \"%w%\"", + "schema_with_content": "ref_template_types : template_type_description (\"Book\", \"Advertisement\", \"Presentation\"), template_type_code (\"PP\", \"PP\", \"CV\") | Files : document_name (\"Introduction of OS\", \"Introduction of OS\", \"Welcome to NY\"), document_description (\"b\", \"n\", \"n\"), document_id (3, 16514113, 0), template_id (4, 1, 11), other_details (None) | Records : document_name (\"Introduction of OS\", \"Introduction of OS\", \"Welcome to NY\"), document_description (\"b\", \"n\", \"n\"), document_id (3, 16514113, 0), template_id (4, 1, 11), other_details (None) | templates : template_id (11, 23, 14), template_type_code (\"PPT\", \"CV\", \"AD\"), template_details (\"\"), date_effective_to (\"2008-01-05 14:19:28\", \"1980-05-07 12:15:47\", \"1992-05-02 20:06:11\"), date_effective_from (\"1979-10-20 21:23:20\", \"2010-09-24 01:15:11\", \"1984-08-07 13:36:26\"), version_number (5, 7, 5) | paragraphs : paragraph_id (9, 510442723, 65), paragraph_text (\"Brazil\", \"Ireland\", \"Fiji\"), document_id (33930, 2394, 2394), other_details (None)", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Files : document_name , document_description , document_id , template_id , other_details | Records : document_name , document_description , document_id , template_id , other_details | templates : template_id , template_type_code , template_details , date_effective_to , date_effective_from , version_number | paragraphs : paragraph_id , paragraph_text , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document name": "Documents.Document_Name", + "template id for document with description": "Documents.Template_ID" + } + }, + { + "question": "return the #names# and #template ids# for documents that contain the letter w in their #description# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_name, template_id from documents where document_description like \"%w%\"", + "schema_with_content": "Files : document_description (\"w\", \"u\", \"n\"), template_id (6, 8, 10), document_name (\"Data base\", \"Understanding DB\", \"Understanding DB\"), other_details (None), document_id (76, 651512, 76) | paragraphs : document_id (3, 385906526, 3830), paragraph_text (\"Jersey\", \"Somalia\", \"Ukraine\"), other_details (None), paragraph_id (241, 510442723, 1104059) | templates : version_number (6, 8, 7), date_effective_from (\"1997-04-17 08:29:44\", \"2005-11-12 07:09:48\", \"1979-12-24 10:28:16\"), template_id (25, 18, 11), template_type_code (\"PPT\", \"BK\", \"AD\"), template_details (\"\"), date_effective_to (\"1980-05-07 12:15:47\", \"2007-06-06 06:18:53\", \"2006-02-06 23:52:04\") | Records : document_description (\"w\", \"u\", \"n\"), template_id (6, 8, 10), document_name (\"Data base\", \"Understanding DB\", \"Understanding DB\"), other_details (None), document_id (76, 651512, 76) | ref_template_types : template_type_description (\"Advertisement\", \"CV\", \"Book\"), template_type_code (\"PP\", \"PPT\", \"CV\")", + "schema_without_content": "Files : document_description , template_id , document_name , other_details , document_id | paragraphs : document_id , paragraph_text , other_details , paragraph_id | templates : version_number , date_effective_from , template_id , template_type_code , template_details , date_effective_to | Records : document_description , template_id , document_name , other_details , document_id | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "Documents.Document_Name", + "template ids": "Documents.Template_ID", + "description": "Documents.Document_Description" + } + }, + { + "question": "what is the #document id# , #template id# and d #escription for document named# \"robbin cv\"?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id, template_id, document_description from documents where document_name = \"Robbin CV\"", + "schema_with_content": "ref_template_types : template_type_description (\"Paper\", \"Presentation\", \"Presentation\"), template_type_code (\"CV\", \"BK\", \"PPT\") | templates : template_details (\"\"), template_type_code (\"AD\", \"BK\", \"BK\"), date_effective_from (\"1979-12-24 10:28:16\", \"1986-11-14 12:20:18\", \"2008-08-01 13:57:26\"), template_id (16, 10, 4), version_number (1, 8, 4), date_effective_to (\"1973-01-12 14:13:34\", \"2006-02-06 23:52:04\", \"1974-09-14 06:34:39\") | Files : document_name (\"A history of Arts\", \"Welcome to NY\", \"How to read a book\"), document_id (385906526, 16514113, 50123), template_id (1, 7, 7), document_description (\"r\", \"z\", \"n\"), other_details (None) | Records : document_name (\"A history of Arts\", \"Welcome to NY\", \"How to read a book\"), document_id (385906526, 16514113, 50123), template_id (1, 7, 7), document_description (\"r\", \"z\", \"n\"), other_details (None) | paragraphs : paragraph_text (\"Somalia\", \"Japan\", \"Micronesia\"), other_details (None), document_id (16514113, 3, 50123), paragraph_id (946335436, 946335436, 571212310)", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | templates : template_details , template_type_code , date_effective_from , template_id , version_number , date_effective_to | Files : document_name , document_id , template_id , document_description , other_details | Records : document_name , document_id , template_id , document_description , other_details | paragraphs : paragraph_text , other_details , document_id , paragraph_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document id": "Documents.Document_ID", + "template id": "Documents.Template_ID", + "escription for document named": "Documents.Document_Name", + "description": "Documents.Document_Description" + } + }, + { + "question": "return the #document id# , #template id# , and de #scription for the document with the name r# obbin cv.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id, template_id, document_description from documents where document_name = \"Robbin CV\"", + "schema_with_content": "templates : template_type_code (\"PP\", \"PP\", \"BK\"), date_effective_from (\"2008-08-01 13:57:26\", \"1979-12-24 10:28:16\", \"2005-02-20 00:31:34\"), template_id (15, 14, 25), template_details (\"\"), date_effective_to (\"1974-09-14 06:34:39\", \"1989-11-24 19:06:06\", \"1973-01-12 14:13:34\"), version_number (0, 3, 1) | paragraphs : other_details (None), paragraph_text (\"Fiji\", \"Japan\", \"Palestinian Territory\"), document_id (16514113, 385906526, 651512), paragraph_id (9946, 510442723, 765713812) | Records : other_details (None), template_id (6, 7, 7), document_description (\"h\", \"b\", \"b\"), document_id (3830, 50123, 82), document_name (\"Summer Show\", \"Data base\", \"About Korea\") | Files : other_details (None), template_id (6, 7, 7), document_description (\"h\", \"b\", \"b\"), document_id (3830, 50123, 82), document_name (\"Summer Show\", \"Data base\", \"About Korea\") | ref_template_types : template_type_description (\"CV\", \"Presentation\", \"CV\"), template_type_code (\"BK\", \"PP\", \"PP\")", + "schema_without_content": "templates : template_type_code , date_effective_from , template_id , template_details , date_effective_to , version_number | paragraphs : other_details , paragraph_text , document_id , paragraph_id | Records : other_details , template_id , document_description , document_id , document_name | Files : other_details , template_id , document_description , document_id , document_name | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document id": "Documents.Document_ID", + "template id": "Documents.Template_ID", + "scription for the document with the name R": "Documents.Document_Name", + "description": "Documents.Document_Description" + } + }, + { + "question": "how many #documents# are using the #template with type code# 'ppt'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'", + "schema_with_content": "Drafts : date_effective_from (\"1975-10-20 02:28:58\", \"2002-08-25 13:26:23\", \"2003-06-05 04:03:45\"), version_number (0, 3, 8), template_details (\"\"), date_effective_to (\"1976-10-28 10:08:50\", \"2006-02-06 23:52:04\", \"1974-09-14 06:34:39\"), template_id (24, 0, 9), template_type_code (\"PPT\", \"CV\", \"CV\") | Forms : date_effective_from (\"1975-10-20 02:28:58\", \"2002-08-25 13:26:23\", \"2003-06-05 04:03:45\"), version_number (0, 3, 8), template_details (\"\"), date_effective_to (\"1976-10-28 10:08:50\", \"2006-02-06 23:52:04\", \"1974-09-14 06:34:39\"), template_id (24, 0, 9), template_type_code (\"PPT\", \"CV\", \"CV\") | ref_template_types : template_type_description (\"Paper\", \"CV\", \"Presentation\"), template_type_code (\"AD\", \"PP\", \"PPT\") | documents : other_details (None), document_id (76, 3540024, 33930), document_description (\"b\", \"h\", \"u\"), template_id (6, 10, 6), document_name (\"Introduction of OS\", \"How to write a CV\", \"Robbin CV\") | paragraphs : document_id (3540024, 385906526, 651512), paragraph_text (\"Indonesia\", \"Indonesia\", \"Jersey\"), other_details (None), paragraph_id (3708, 1104059, 571212310)", + "schema_without_content": "Drafts : date_effective_from , version_number , template_details , date_effective_to , template_id , template_type_code | Forms : date_effective_from , version_number , template_details , date_effective_to , template_id , template_type_code | ref_template_types : template_type_description , template_type_code | documents : other_details , document_id , document_description , template_id , document_name | paragraphs : document_id , paragraph_text , other_details , paragraph_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "documents": "Documents", + "template with type code": "Templates.Template_Type_Code" + } + }, + { + "question": "how many #documents# are using the #template with type code# 'ppt'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'", + "schema_with_content": "paragraphs : document_id (385906526, 80, 3540024), other_details (None), paragraph_text (\"UK\", \"Indonesia\", \"Senegal\"), paragraph_id (9, 7, 608931827) | ref_template_types : template_type_code (\"BK\", \"CV\", \"PP\"), template_type_description (\"Paper\", \"Paper\", \"Book\") | templates : date_effective_to (\"2001-04-18 09:29:52\", \"2001-04-18 09:29:52\", \"2015-09-06 01:08:44\"), template_type_code (\"CV\", \"BK\", \"PP\"), version_number (6, 2, 5), template_id (21, 0, 25), date_effective_from (\"2003-06-05 04:03:45\", \"1996-02-04 11:27:24\", \"2005-11-12 07:09:48\"), template_details (\"\") | Files : document_description (\"h\", \"b\", \"k\"), other_details (None), document_name (\"A history of Arts\", \"Customer reviews\", \"Customer reviews\"), document_id (0, 3, 0), template_id (4, 25, 4) | Records : document_description (\"h\", \"b\", \"k\"), other_details (None), document_name (\"A history of Arts\", \"Customer reviews\", \"Customer reviews\"), document_id (0, 3, 0), template_id (4, 25, 4)", + "schema_without_content": "paragraphs : document_id , other_details , paragraph_text , paragraph_id | ref_template_types : template_type_code , template_type_description | templates : date_effective_to , template_type_code , version_number , template_id , date_effective_from , template_details | Files : document_description , other_details , document_name , document_id , template_id | Records : document_description , other_details , document_name , document_id , template_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "documents": "Documents", + "template with type code": "Templates.Template_Type_Code" + } + }, + { + "question": "count the #number of documents# that use the #ppt template type# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'", + "schema_with_content": "ref_template_types : template_type_description (\"Presentation\", \"Presentation\", \"Paper\"), template_type_code (\"AD\", \"PP\", \"PP\") | documents : document_description (\"n\", \"r\", \"w\"), template_id (21, 20, 14), document_id (651512, 80, 76), document_name (\"A history of Arts\", \"About Korea\", \"Data base\"), other_details (None) | Drafts : template_details (\"\"), date_effective_from (\"1996-02-04 11:27:24\", \"1979-12-24 10:28:16\", \"2003-06-05 04:03:45\"), template_id (0, 1, 1), date_effective_to (\"2008-01-05 14:19:28\", \"1976-10-28 10:08:50\", \"1993-03-24 14:30:23\"), version_number (7, 2, 4), template_type_code (\"CV\", \"BK\", \"PPT\") | paragraphs : paragraph_text (\"Ukraine\", \"Indonesia\", \"Ukraine\"), paragraph_id (9, 510442723, 9), document_id (2394, 3, 3830), other_details (None) | Forms : template_details (\"\"), date_effective_from (\"1996-02-04 11:27:24\", \"1979-12-24 10:28:16\", \"2003-06-05 04:03:45\"), template_id (0, 1, 1), date_effective_to (\"2008-01-05 14:19:28\", \"1976-10-28 10:08:50\", \"1993-03-24 14:30:23\"), version_number (7, 2, 4), template_type_code (\"CV\", \"BK\", \"PPT\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | documents : document_description , template_id , document_id , document_name , other_details | Drafts : template_details , date_effective_from , template_id , date_effective_to , version_number , template_type_code | paragraphs : paragraph_text , paragraph_id , document_id , other_details | Forms : template_details , date_effective_from , template_id , date_effective_to , version_number , template_type_code", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "number of documents": "Documents.Document_ID", + "PPT template type": "Templates.Template_Type_Code" + } + }, + { + "question": "count the #number of documents# that use the #ppt template type# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'", + "schema_with_content": "Records : template_id (8, 22, 1), document_description (\"z\", \"y\", \"w\"), document_name (\"About Korea\", \"Summer Show\", \"How to write a CV\"), document_id (2394, 2394, 16514113), other_details (None) | Files : template_id (8, 22, 1), document_description (\"z\", \"y\", \"w\"), document_name (\"About Korea\", \"Summer Show\", \"How to write a CV\"), document_id (2394, 2394, 16514113), other_details (None) | paragraphs : paragraph_text (\"Jersey\", \"Brazil\", \"Micronesia\"), other_details (None), document_id (33930, 50123, 16514113), paragraph_id (9946, 608931827, 765713812) | ref_template_types : template_type_description (\"CV\", \"Paper\", \"Paper\"), template_type_code (\"BK\", \"BK\", \"PP\") | templates : date_effective_from (\"1975-05-20 22:51:19\", \"2005-11-12 07:09:48\", \"2012-04-05 07:11:42\"), version_number (1, 0, 2), template_type_code (\"AD\", \"BK\", \"PP\"), date_effective_to (\"1973-01-12 14:13:34\", \"1994-12-07 13:26:23\", \"1980-05-07 12:15:47\"), template_id (19, 24, 11), template_details (\"\")", + "schema_without_content": "Records : template_id , document_description , document_name , document_id , other_details | Files : template_id , document_description , document_name , document_id , other_details | paragraphs : paragraph_text , other_details , document_id , paragraph_id | ref_template_types : template_type_description , template_type_code | templates : date_effective_from , version_number , template_type_code , date_effective_to , template_id , template_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "number of documents": "Documents.Document_ID", + "PPT template type": "Templates.Template_Type_Code" + } + }, + { + "question": "show all #template ids# and #number of documents# using each template.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id, count(*) from documents group by template_id", + "schema_with_content": "paragraphs : document_id (16514113, 3540024, 385906526), paragraph_id (571212310, 3708, 571212310), other_details (None), paragraph_text (\"Jersey\", \"Papua New Guinea\", \"Somalia\") | Files : other_details (None), template_id (21, 25, 22), document_name (\"How to write a CV\", \"Understanding DB\", \"Understanding DB\"), document_id (3830, 801801, 33930), document_description (\"r\", \"b\", \"f\") | templates : date_effective_from (\"1979-10-20 21:23:20\", \"2002-03-02 14:39:49\", \"1993-10-07 02:33:04\"), date_effective_to (\"1989-11-24 19:06:06\", \"2008-08-08 18:36:43\", \"2001-04-18 09:29:52\"), template_details (\"\"), template_id (20, 16, 25), version_number (5, 5, 4), template_type_code (\"CV\", \"PP\", \"PP\") | Records : other_details (None), template_id (21, 25, 22), document_name (\"How to write a CV\", \"Understanding DB\", \"Understanding DB\"), document_id (3830, 801801, 33930), document_description (\"r\", \"b\", \"f\") | ref_template_types : template_type_code (\"PP\", \"PP\", \"AD\"), template_type_description (\"Paper\", \"Advertisement\", \"Advertisement\")", + "schema_without_content": "paragraphs : document_id , paragraph_id , other_details , paragraph_text | Files : other_details , template_id , document_name , document_id , document_description | templates : date_effective_from , date_effective_to , template_details , template_id , version_number , template_type_code | Records : other_details , template_id , document_name , document_id , document_description | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template ids": "Documents.Template_ID", + "number of documents": "Documents" + } + }, + { + "question": "what are all different #template ids# used for #documents# , and how many times were each of them used?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id, count(*) from documents group by template_id", + "schema_with_content": "Files : document_id (82, 16514113, 1), template_id (25, 8, 8), document_name (\"Palm reading\", \"Data base\", \"Learning French\"), other_details (None), document_description (\"k\", \"f\", \"f\") | templates : template_details (\"\"), template_type_code (\"BK\", \"BK\", \"CV\"), template_id (1, 23, 21), date_effective_from (\"1997-04-17 08:29:44\", \"1979-12-24 10:28:16\", \"2002-08-25 13:26:23\"), version_number (6, 6, 6), date_effective_to (\"2000-10-22 11:57:12\", \"1973-01-12 14:13:34\", \"2006-02-06 23:52:04\") | paragraphs : other_details (None), document_id (33930, 16514113, 80), paragraph_id (65, 7, 608931827), paragraph_text (\"Ukraine\", \"Micronesia\", \"UK\") | Records : document_id (82, 16514113, 1), template_id (25, 8, 8), document_name (\"Palm reading\", \"Data base\", \"Learning French\"), other_details (None), document_description (\"k\", \"f\", \"f\") | ref_template_types : template_type_description (\"Advertisement\", \"Paper\", \"Paper\"), template_type_code (\"CV\", \"CV\", \"CV\")", + "schema_without_content": "Files : document_id , template_id , document_name , other_details , document_description | templates : template_details , template_type_code , template_id , date_effective_from , version_number , date_effective_to | paragraphs : other_details , document_id , paragraph_id , paragraph_text | Records : document_id , template_id , document_name , other_details , document_description | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template ids": "Documents.Template_ID", + "documents": "Documents" + } + }, + { + "question": "what is the #id# and #type code for the template# used by the most documents?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_id, t2.template_type_code from documents as t1 join templates as t2 on t1.template_id = t2.template_id group by t1.template_id order by count(*) desc limit 1", + "schema_with_content": "documents : template_id (21, 20, 22), document_description (\"h\", \"y\", \"b\"), document_name (\"Do not panic\", \"About Korea\", \"Do not panic\"), document_id (2394, 33930, 2394), other_details (None) | paragraphs : document_id (651512, 3830, 385906526), other_details (None), paragraph_text (\"Jersey\", \"Ukraine\", \"Micronesia\"), paragraph_id (608931827, 3708, 1104059) | Forms : template_id (6, 4, 7), date_effective_from (\"2008-08-01 13:57:26\", \"1984-08-07 13:36:26\", \"1979-10-20 21:23:20\"), version_number (3, 9, 2), template_type_code (\"PPT\", \"BK\", \"AD\"), template_details (\"\"), date_effective_to (\"2007-06-06 06:18:53\", \"1974-09-14 06:34:39\", \"2000-10-22 11:57:12\") | ref_template_types : template_type_code (\"BK\", \"AD\", \"PPT\"), template_type_description (\"Presentation\", \"Book\", \"CV\") | Drafts : template_id (6, 4, 7), date_effective_from (\"2008-08-01 13:57:26\", \"1984-08-07 13:36:26\", \"1979-10-20 21:23:20\"), version_number (3, 9, 2), template_type_code (\"PPT\", \"BK\", \"AD\"), template_details (\"\"), date_effective_to (\"2007-06-06 06:18:53\", \"1974-09-14 06:34:39\", \"2000-10-22 11:57:12\")", + "schema_without_content": "documents : template_id , document_description , document_name , document_id , other_details | paragraphs : document_id , other_details , paragraph_text , paragraph_id | Forms : template_id , date_effective_from , version_number , template_type_code , template_details , date_effective_to | ref_template_types : template_type_code , template_type_description | Drafts : template_id , date_effective_from , version_number , template_type_code , template_details , date_effective_to", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Documents.Template_ID", + "type code for the template": "Templates.Template_Type_Code" + } + }, + { + "question": "what is the #id# and #type code for the template# used by the most documents?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_id, t2.template_type_code from documents as t1 join templates as t2 on t1.template_id = t2.template_id group by t1.template_id order by count(*) desc limit 1", + "schema_with_content": "templates : date_effective_from (\"2008-08-01 13:57:26\", \"1975-05-20 22:51:19\", \"2005-02-20 00:31:34\"), template_id (8, 24, 4), version_number (1, 5, 9), template_type_code (\"PP\", \"BK\", \"PP\"), template_details (\"\"), date_effective_to (\"1998-05-12 12:51:29\", \"1998-05-12 12:51:29\", \"2015-09-06 01:08:44\") | ref_template_types : template_type_description (\"Book\", \"Presentation\", \"Advertisement\"), template_type_code (\"PP\", \"AD\", \"AD\") | paragraphs : paragraph_text (\"Ireland\", \"Korea\", \"Fiji\"), other_details (None), document_id (2394, 3830, 3540024), paragraph_id (946335436, 9946, 3708) | Records : document_id (80, 801801, 82), document_name (\"Understanding DB\", \"A history of Arts\", \"How Google people work\"), template_id (6, 10, 8), document_description (\"r\", \"w\", \"y\"), other_details (None) | Files : document_id (80, 801801, 82), document_name (\"Understanding DB\", \"A history of Arts\", \"How Google people work\"), template_id (6, 10, 8), document_description (\"r\", \"w\", \"y\"), other_details (None)", + "schema_without_content": "templates : date_effective_from , template_id , version_number , template_type_code , template_details , date_effective_to | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , other_details , document_id , paragraph_id | Records : document_id , document_name , template_id , document_description , other_details | Files : document_id , document_name , template_id , document_description , other_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Documents.Template_ID", + "type code for the template": "Templates.Template_Type_Code" + } + }, + { + "question": "return the #id# and #type code of the template# that is used for the greatest number of documents.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_id, t2.template_type_code from documents as t1 join templates as t2 on t1.template_id = t2.template_id group by t1.template_id order by count(*) desc limit 1", + "schema_with_content": "ref_template_types : template_type_code (\"BK\", \"PP\", \"AD\"), template_type_description (\"Advertisement\", \"Paper\", \"Presentation\") | paragraphs : document_id (80, 3830, 33930), paragraph_id (241, 765713812, 16615), other_details (None), paragraph_text (\"Ireland\", \"Somalia\", \"Brazil\") | documents : document_description (\"r\", \"b\", \"z\"), other_details (None), document_id (50123, 33930, 2394), document_name (\"Data base\", \"Palm reading\", \"Palm reading\"), template_id (22, 10, 7) | Forms : template_id (14, 21, 20), date_effective_from (\"2005-02-20 00:31:34\", \"1999-06-21 11:10:30\", \"1983-07-16 21:16:16\"), template_details (\"\"), date_effective_to (\"2001-04-18 09:29:52\", \"1995-09-19 22:27:48\", \"1992-05-02 20:06:11\"), template_type_code (\"AD\", \"CV\", \"AD\"), version_number (8, 5, 1) | Drafts : template_id (14, 21, 20), date_effective_from (\"2005-02-20 00:31:34\", \"1999-06-21 11:10:30\", \"1983-07-16 21:16:16\"), template_details (\"\"), date_effective_to (\"2001-04-18 09:29:52\", \"1995-09-19 22:27:48\", \"1992-05-02 20:06:11\"), template_type_code (\"AD\", \"CV\", \"AD\"), version_number (8, 5, 1)", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | paragraphs : document_id , paragraph_id , other_details , paragraph_text | documents : document_description , other_details , document_id , document_name , template_id | Forms : template_id , date_effective_from , template_details , date_effective_to , template_type_code , version_number | Drafts : template_id , date_effective_from , template_details , date_effective_to , template_type_code , version_number", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Documents.Template_ID", + "type code of the template": "Templates.Template_Type_Code" + } + }, + { + "question": "return the #id# and #type code of the template# that is used for the greatest number of documents.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_id, t2.template_type_code from documents as t1 join templates as t2 on t1.template_id = t2.template_id group by t1.template_id order by count(*) desc limit 1", + "schema_with_content": "Records : other_details (None), document_id (80, 80, 0), template_id (25, 4, 21), document_name (\"Customer reviews\", \"Data base\", \"Customer reviews\"), document_description (\"k\", \"z\", \"w\") | paragraphs : paragraph_text (\"Jersey\", \"Micronesia\", \"Jersey\"), paragraph_id (243399026, 765713812, 241), other_details (None), document_id (3540024, 385906526, 50123) | ref_template_types : template_type_code (\"PP\", \"AD\", \"CV\"), template_type_description (\"Presentation\", \"Book\", \"Paper\") | templates : template_details (\"\"), date_effective_from (\"2005-11-12 07:09:48\", \"1983-07-16 21:16:16\", \"2012-04-05 07:11:42\"), date_effective_to (\"1999-07-08 03:31:04\", \"1992-05-02 20:06:11\", \"1989-11-24 19:06:06\"), template_type_code (\"PP\", \"PP\", \"PPT\"), version_number (2, 0, 3), template_id (7, 21, 7) | Files : other_details (None), document_id (80, 80, 0), template_id (25, 4, 21), document_name (\"Customer reviews\", \"Data base\", \"Customer reviews\"), document_description (\"k\", \"z\", \"w\")", + "schema_without_content": "Records : other_details , document_id , template_id , document_name , document_description | paragraphs : paragraph_text , paragraph_id , other_details , document_id | ref_template_types : template_type_code , template_type_description | templates : template_details , date_effective_from , date_effective_to , template_type_code , version_number , template_id | Files : other_details , document_id , template_id , document_name , document_description", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Documents.Template_ID", + "type code of the template": "Templates.Template_Type_Code" + } + }, + { + "question": "show #ids for all templates# that are used by more than one #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from documents group by template_id having count(*) > 1", + "schema_with_content": "Files : other_details (None), document_id (3540024, 651512, 0), document_description (\"k\", \"h\", \"b\"), document_name (\"Introduction of OS\", \"Learning French\", \"Palm reading\"), template_id (25, 4, 11) | ref_template_types : template_type_code (\"AD\", \"PP\", \"PP\"), template_type_description (\"Book\", \"Presentation\", \"Book\") | Records : other_details (None), document_id (3540024, 651512, 0), document_description (\"k\", \"h\", \"b\"), document_name (\"Introduction of OS\", \"Learning French\", \"Palm reading\"), template_id (25, 4, 11) | templates : template_details (\"\"), template_type_code (\"CV\", \"CV\", \"AD\"), date_effective_to (\"2001-04-18 09:29:52\", \"1998-05-12 12:51:29\", \"1994-12-07 13:26:23\"), template_id (4, 10, 24), date_effective_from (\"2003-06-05 04:03:45\", \"1979-12-24 10:28:16\", \"1993-10-07 02:33:04\"), version_number (2, 7, 0) | paragraphs : paragraph_text (\"Ireland\", \"Ireland\", \"Fiji\"), paragraph_id (946335436, 946335436, 243399026), other_details (None), document_id (385906526, 16514113, 3540024)", + "schema_without_content": "Files : other_details , document_id , document_description , document_name , template_id | ref_template_types : template_type_code , template_type_description | Records : other_details , document_id , document_description , document_name , template_id | templates : template_details , template_type_code , date_effective_to , template_id , date_effective_from , version_number | paragraphs : paragraph_text , paragraph_id , other_details , document_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "ids for all templates": "Templates.Template_ID", + "document": "Documents" + } + }, + { + "question": "what are the #template ids# of any #templates# used in more than a single document?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from documents group by template_id having count(*) > 1", + "schema_with_content": "Records : other_details (None), document_description (\"f\", \"f\", \"y\"), document_name (\"Do not panic\", \"Introduction of OS\", \"Customer reviews\"), document_id (33930, 2394, 801801), template_id (25, 10, 14) | paragraphs : document_id (80, 50123, 385906526), paragraph_id (9, 608931827, 241), paragraph_text (\"Japan\", \"Ukraine\", \"Micronesia\"), other_details (None) | Files : other_details (None), document_description (\"f\", \"f\", \"y\"), document_name (\"Do not panic\", \"Introduction of OS\", \"Customer reviews\"), document_id (33930, 2394, 801801), template_id (25, 10, 14) | ref_template_types : template_type_code (\"PPT\", \"AD\", \"PP\"), template_type_description (\"Presentation\", \"Presentation\", \"Advertisement\") | templates : version_number (2, 1, 3), date_effective_from (\"1986-12-09 14:51:36\", \"2002-08-25 13:26:23\", \"2002-08-25 13:26:23\"), template_id (7, 23, 6), template_details (\"\"), date_effective_to (\"2007-06-06 06:18:53\", \"2001-04-18 09:29:52\", \"1999-07-08 03:31:04\"), template_type_code (\"AD\", \"PP\", \"CV\")", + "schema_without_content": "Records : other_details , document_description , document_name , document_id , template_id | paragraphs : document_id , paragraph_id , paragraph_text , other_details | Files : other_details , document_description , document_name , document_id , template_id | ref_template_types : template_type_code , template_type_description | templates : version_number , date_effective_from , template_id , template_details , date_effective_to , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template ids": "Documents.Template_ID", + "templates": "Templates" + } + }, + { + "question": "show #ids for all templates# not used by any #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from templates except select template_id from documents", + "schema_with_content": "Forms : template_details (\"\"), date_effective_from (\"2012-04-05 07:11:42\", \"2012-04-05 07:11:42\", \"1996-02-04 11:27:24\"), date_effective_to (\"1979-11-04 08:58:39\", \"1980-05-07 12:15:47\", \"2000-10-22 11:57:12\"), template_id (19, 15, 16), version_number (5, 4, 4), template_type_code (\"BK\", \"PP\", \"PP\") | documents : other_details (None), document_id (80, 80, 3), document_description (\"n\", \"h\", \"w\"), template_id (14, 21, 10), document_name (\"Introduction of OS\", \"How to write a CV\", \"How to write a CV\") | ref_template_types : template_type_description (\"Book\", \"Advertisement\", \"Book\"), template_type_code (\"PPT\", \"PP\", \"PPT\") | paragraphs : paragraph_text (\"Jersey\", \"Papua New Guinea\", \"Senegal\"), document_id (2394, 3830, 3830), paragraph_id (243399026, 510442723, 65), other_details (None) | Drafts : template_details (\"\"), date_effective_from (\"2012-04-05 07:11:42\", \"2012-04-05 07:11:42\", \"1996-02-04 11:27:24\"), date_effective_to (\"1979-11-04 08:58:39\", \"1980-05-07 12:15:47\", \"2000-10-22 11:57:12\"), template_id (19, 15, 16), version_number (5, 4, 4), template_type_code (\"BK\", \"PP\", \"PP\")", + "schema_without_content": "Forms : template_details , date_effective_from , date_effective_to , template_id , version_number , template_type_code | documents : other_details , document_id , document_description , template_id , document_name | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , document_id , paragraph_id , other_details | Drafts : template_details , date_effective_from , date_effective_to , template_id , version_number , template_type_code", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "ids for all templates": "Templates.Template_ID", + "document": "Documents" + } + }, + { + "question": "what are the #ids for templates# that are not used in any #documents# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from templates except select template_id from documents", + "schema_with_content": "Forms : template_details (\"\"), template_type_code (\"BK\", \"PP\", \"PPT\"), date_effective_to (\"1993-03-24 14:30:23\", \"2008-01-05 14:19:28\", \"1976-10-28 10:08:50\"), version_number (7, 6, 5), date_effective_from (\"1996-02-04 11:27:24\", \"2002-08-25 13:26:23\", \"1997-04-17 08:29:44\"), template_id (23, 4, 1) | documents : other_details (None), document_name (\"Data base\", \"A history of Arts\", \"How Google people work\"), document_id (3540024, 3, 76), template_id (8, 25, 22), document_description (\"r\", \"f\", \"w\") | Drafts : template_details (\"\"), template_type_code (\"BK\", \"PP\", \"PPT\"), date_effective_to (\"1993-03-24 14:30:23\", \"2008-01-05 14:19:28\", \"1976-10-28 10:08:50\"), version_number (7, 6, 5), date_effective_from (\"1996-02-04 11:27:24\", \"2002-08-25 13:26:23\", \"1997-04-17 08:29:44\"), template_id (23, 4, 1) | ref_template_types : template_type_description (\"Advertisement\", \"CV\", \"Presentation\"), template_type_code (\"AD\", \"PPT\", \"BK\") | paragraphs : document_id (2394, 3830, 80), other_details (None), paragraph_text (\"Fiji\", \"Ireland\", \"Jersey\"), paragraph_id (9, 243399026, 16615)", + "schema_without_content": "Forms : template_details , template_type_code , date_effective_to , version_number , date_effective_from , template_id | documents : other_details , document_name , document_id , template_id , document_description | Drafts : template_details , template_type_code , date_effective_to , version_number , date_effective_from , template_id | ref_template_types : template_type_description , template_type_code | paragraphs : document_id , other_details , paragraph_text , paragraph_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "ids for templates": "Templates.Template_ID", + "documents": "Documents" + } + }, + { + "question": "what are the #ids of templates with template type code# pp or ppt?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from templates where template_type_code = \"PP\" or template_type_code = \"PPT\"", + "schema_with_content": "Forms : date_effective_to (\"1979-11-04 08:58:39\", \"2000-10-22 11:57:12\", \"2001-04-18 09:29:52\"), template_details (\"\"), template_id (22, 7, 23), date_effective_from (\"1996-02-04 11:27:24\", \"1986-11-14 12:20:18\", \"1986-12-09 14:51:36\"), template_type_code (\"CV\", \"PPT\", \"PPT\"), version_number (7, 6, 6) | documents : document_description (\"b\", \"n\", \"n\"), document_id (80, 82, 3540024), template_id (22, 1, 14), document_name (\"A history of Arts\", \"About Korea\", \"Do not panic\"), other_details (None) | paragraphs : paragraph_id (510442723, 510442723, 243399026), paragraph_text (\"Japan\", \"UK\", \"Somalia\"), other_details (None), document_id (3540024, 2394, 3) | Drafts : date_effective_to (\"1979-11-04 08:58:39\", \"2000-10-22 11:57:12\", \"2001-04-18 09:29:52\"), template_details (\"\"), template_id (22, 7, 23), date_effective_from (\"1996-02-04 11:27:24\", \"1986-11-14 12:20:18\", \"1986-12-09 14:51:36\"), template_type_code (\"CV\", \"PPT\", \"PPT\"), version_number (7, 6, 6) | ref_template_types : template_type_code (\"PP\", \"AD\", \"PP\"), template_type_description (\"Presentation\", \"CV\", \"Paper\")", + "schema_without_content": "Forms : date_effective_to , template_details , template_id , date_effective_from , template_type_code , version_number | documents : document_description , document_id , template_id , document_name , other_details | paragraphs : paragraph_id , paragraph_text , other_details , document_id | Drafts : date_effective_to , template_details , template_id , date_effective_from , template_type_code , version_number | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "ids of templates with template type code": "Templates.Template_ID" + } + }, + { + "question": "return the #ids of templates# that have the #code# pp or ppt.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_id from templates where template_type_code = \"PP\" or template_type_code = \"PPT\"", + "schema_with_content": "Forms : template_id (14, 23, 20), date_effective_to (\"1975-07-16 04:52:10\", \"1979-11-04 08:58:39\", \"1979-11-04 08:58:39\"), date_effective_from (\"1979-12-24 10:28:16\", \"1984-08-07 13:36:26\", \"1986-11-14 12:20:18\"), version_number (5, 2, 6), template_type_code (\"PPT\", \"BK\", \"CV\"), template_details (\"\") | documents : document_id (16514113, 76, 2394), document_name (\"Summer Show\", \"Introduction of OS\", \"Customer reviews\"), document_description (\"z\", \"h\", \"n\"), other_details (None), template_id (4, 10, 21) | paragraphs : other_details (None), document_id (16514113, 385906526, 651512), paragraph_id (3708, 280120913, 16615), paragraph_text (\"Indonesia\", \"Jersey\", \"UK\") | ref_template_types : template_type_description (\"Presentation\", \"Book\", \"CV\"), template_type_code (\"PPT\", \"PPT\", \"BK\") | Drafts : template_id (14, 23, 20), date_effective_to (\"1975-07-16 04:52:10\", \"1979-11-04 08:58:39\", \"1979-11-04 08:58:39\"), date_effective_from (\"1979-12-24 10:28:16\", \"1984-08-07 13:36:26\", \"1986-11-14 12:20:18\"), version_number (5, 2, 6), template_type_code (\"PPT\", \"BK\", \"CV\"), template_details (\"\")", + "schema_without_content": "Forms : template_id , date_effective_to , date_effective_from , version_number , template_type_code , template_details | documents : document_id , document_name , document_description , other_details , template_id | paragraphs : other_details , document_id , paragraph_id , paragraph_text | ref_template_types : template_type_description , template_type_code | Drafts : template_id , date_effective_to , date_effective_from , version_number , template_type_code , template_details", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "ids of templates": "Templates.Template_ID", + "code": "Templates.Template_Type_Code" + } + }, + { + "question": "how many #templates# have #template type code# cv?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from templates where template_type_code = \"CV\"", + "schema_with_content": "ref_template_types : template_type_code (\"CV\", \"AD\", \"AD\"), template_type_description (\"Presentation\", \"CV\", \"Advertisement\") | Forms : template_details (\"\"), date_effective_to (\"1994-12-07 13:26:23\", \"1992-05-02 20:06:11\", \"1992-05-02 20:06:11\"), template_type_code (\"PP\", \"CV\", \"BK\"), version_number (3, 5, 4), date_effective_from (\"2003-06-05 04:03:45\", \"1996-02-04 11:27:24\", \"1983-07-16 21:16:16\"), template_id (11, 22, 15) | Drafts : template_details (\"\"), date_effective_to (\"1994-12-07 13:26:23\", \"1992-05-02 20:06:11\", \"1992-05-02 20:06:11\"), template_type_code (\"PP\", \"CV\", \"BK\"), version_number (3, 5, 4), date_effective_from (\"2003-06-05 04:03:45\", \"1996-02-04 11:27:24\", \"1983-07-16 21:16:16\"), template_id (11, 22, 15) | documents : other_details (None), document_description (\"y\", \"z\", \"k\"), template_id (1, 7, 8), document_id (33930, 801801, 801801), document_name (\"Welcome to NY\", \"About Korea\", \"About Korea\") | paragraphs : other_details (None), paragraph_text (\"Senegal\", \"Somalia\", \"UK\"), paragraph_id (7, 280120913, 571212310), document_id (3, 2394, 385906526)", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | Forms : template_details , date_effective_to , template_type_code , version_number , date_effective_from , template_id | Drafts : template_details , date_effective_to , template_type_code , version_number , date_effective_from , template_id | documents : other_details , document_description , template_id , document_id , document_name | paragraphs : other_details , paragraph_text , paragraph_id , document_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "templates": "Templates", + "template type code": "Templates.Template_Type_Code" + } + }, + { + "question": "count the #number of templates of the type# cv.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from templates where template_type_code = \"CV\"", + "schema_with_content": "Drafts : date_effective_to (\"1980-05-07 12:15:47\", \"1979-11-04 08:58:39\", \"2008-01-05 14:19:28\"), date_effective_from (\"2002-08-25 13:26:23\", \"2008-08-01 13:57:26\", \"1997-04-17 08:29:44\"), template_id (20, 15, 0), template_details (\"\"), version_number (9, 3, 4), template_type_code (\"AD\", \"CV\", \"PP\") | paragraphs : paragraph_text (\"Palestinian Territory\", \"Brazil\", \"UK\"), other_details (None), paragraph_id (65, 280120913, 510442723), document_id (385906526, 2394, 385906526) | documents : document_description (\"z\", \"b\", \"z\"), template_id (7, 20, 25), document_name (\"Customer reviews\", \"Do not panic\", \"How to read a book\"), other_details (None), document_id (651512, 50123, 0) | Forms : date_effective_to (\"1980-05-07 12:15:47\", \"1979-11-04 08:58:39\", \"2008-01-05 14:19:28\"), date_effective_from (\"2002-08-25 13:26:23\", \"2008-08-01 13:57:26\", \"1997-04-17 08:29:44\"), template_id (20, 15, 0), template_details (\"\"), version_number (9, 3, 4), template_type_code (\"AD\", \"CV\", \"PP\") | ref_template_types : template_type_code (\"PP\", \"AD\", \"AD\"), template_type_description (\"Book\", \"Book\", \"Presentation\")", + "schema_without_content": "Drafts : date_effective_to , date_effective_from , template_id , template_details , version_number , template_type_code | paragraphs : paragraph_text , other_details , paragraph_id , document_id | documents : document_description , template_id , document_name , other_details , document_id | Forms : date_effective_to , date_effective_from , template_id , template_details , version_number , template_type_code | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "number of templates of the type": "Templates.Template_Type_Code" + } + }, + { + "question": "what is the #version number# and #template# type code for the #template with version number# later than 5?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select version_number, template_type_code from templates where version_number > 5", + "schema_with_content": "ref_template_types : template_type_code (\"PP\", \"PP\", \"CV\"), template_type_description (\"CV\", \"Paper\", \"Book\") | documents : other_details (None), template_id (7, 10, 20), document_description (\"z\", \"u\", \"n\"), document_name (\"Customer reviews\", \"How to read a book\", \"Robbin CV\"), document_id (651512, 16514113, 3540024) | paragraphs : other_details (None), paragraph_text (\"Micronesia\", \"Ireland\", \"Fiji\"), paragraph_id (946335436, 510442723, 243399026), document_id (385906526, 651512, 3) | Drafts : template_id (7, 0, 7), template_type_code (\"CV\", \"PPT\", \"PP\"), date_effective_to (\"1979-11-04 08:58:39\", \"1979-11-04 08:58:39\", \"2000-10-22 11:57:12\"), date_effective_from (\"2012-04-05 07:11:42\", \"1986-11-14 12:20:18\", \"1983-07-16 21:16:16\"), version_number (0, 2, 5), template_details (\"\") | Forms : template_id (7, 0, 7), template_type_code (\"CV\", \"PPT\", \"PP\"), date_effective_to (\"1979-11-04 08:58:39\", \"1979-11-04 08:58:39\", \"2000-10-22 11:57:12\"), date_effective_from (\"2012-04-05 07:11:42\", \"1986-11-14 12:20:18\", \"1983-07-16 21:16:16\"), version_number (0, 2, 5), template_details (\"\")", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | documents : other_details , template_id , document_description , document_name , document_id | paragraphs : other_details , paragraph_text , paragraph_id , document_id | Drafts : template_id , template_type_code , date_effective_to , date_effective_from , version_number , template_details | Forms : template_id , template_type_code , date_effective_to , date_effective_from , version_number , template_details", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "version number": "Templates.Version_Number", + "template": "Templates", + "template with version number": "Templates.Version_Number", + "template type code": "Templates.Template_Type_Code" + } + }, + { + "question": "return the #version numbers# and #template type codes# of templates with a version number greater than 5.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select version_number, template_type_code from templates where version_number > 5", + "schema_with_content": "ref_template_types : template_type_description (\"Advertisement\", \"Book\", \"Book\"), template_type_code (\"AD\", \"AD\", \"PP\") | paragraphs : paragraph_text (\"Korea\", \"Japan\", \"Papua New Guinea\"), other_details (None), paragraph_id (7, 16615, 1104059), document_id (80, 33930, 50123) | Drafts : template_details (\"\"), version_number (4, 1, 3), date_effective_from (\"1999-06-21 11:10:30\", \"2005-11-12 07:09:48\", \"2002-03-02 14:39:49\"), template_id (7, 14, 0), template_type_code (\"AD\", \"PP\", \"PP\"), date_effective_to (\"2000-10-22 11:57:12\", \"1998-05-12 12:51:29\", \"2006-02-06 23:52:04\") | documents : document_name (\"Understanding DB\", \"Palm reading\", \"Palm reading\"), document_description (\"h\", \"b\", \"n\"), other_details (None), document_id (3830, 3, 80), template_id (4, 20, 6) | Forms : template_details (\"\"), version_number (4, 1, 3), date_effective_from (\"1999-06-21 11:10:30\", \"2005-11-12 07:09:48\", \"2002-03-02 14:39:49\"), template_id (7, 14, 0), template_type_code (\"AD\", \"PP\", \"PP\"), date_effective_to (\"2000-10-22 11:57:12\", \"1998-05-12 12:51:29\", \"2006-02-06 23:52:04\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , other_details , paragraph_id , document_id | Drafts : template_details , version_number , date_effective_from , template_id , template_type_code , date_effective_to | documents : document_name , document_description , other_details , document_id , template_id | Forms : template_details , version_number , date_effective_from , template_id , template_type_code , date_effective_to", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "version numbers": "Templates.Version_Number", + "template type codes": "Templates.Template_Type_Code", + "version number": "Templates.Version_Number" + } + }, + { + "question": "show all #template type codes# and #number of templates# for each.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code, count(*) from templates group by template_type_code", + "schema_with_content": "Drafts : date_effective_to (\"1975-07-16 04:52:10\", \"2001-04-18 09:29:52\", \"2001-04-18 09:29:52\"), template_id (23, 23, 4), template_type_code (\"PP\", \"BK\", \"CV\"), date_effective_from (\"2010-09-24 01:15:11\", \"2008-08-01 13:57:26\", \"2008-08-01 13:57:26\"), template_details (\"\"), version_number (5, 4, 9) | Forms : date_effective_to (\"1975-07-16 04:52:10\", \"2001-04-18 09:29:52\", \"2001-04-18 09:29:52\"), template_id (23, 23, 4), template_type_code (\"PP\", \"BK\", \"CV\"), date_effective_from (\"2010-09-24 01:15:11\", \"2008-08-01 13:57:26\", \"2008-08-01 13:57:26\"), template_details (\"\"), version_number (5, 4, 9) | ref_template_types : template_type_description (\"Advertisement\", \"CV\", \"Paper\"), template_type_code (\"BK\", \"BK\", \"AD\") | documents : template_id (8, 7, 6), document_id (82, 3, 80), document_name (\"Learning French\", \"Welcome to NY\", \"Introduction of OS\"), document_description (\"u\", \"r\", \"z\"), other_details (None) | paragraphs : paragraph_text (\"Japan\", \"Korea\", \"Jersey\"), document_id (385906526, 3540024, 3540024), other_details (None), paragraph_id (280120913, 7, 9)", + "schema_without_content": "Drafts : date_effective_to , template_id , template_type_code , date_effective_from , template_details , version_number | Forms : date_effective_to , template_id , template_type_code , date_effective_from , template_details , version_number | ref_template_types : template_type_description , template_type_code | documents : template_id , document_id , document_name , document_description , other_details | paragraphs : paragraph_text , document_id , other_details , paragraph_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "number of templates": "Templates" + } + }, + { + "question": "what are the different #template type codes# , and how many #templates# correspond to each?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code, count(*) from templates group by template_type_code", + "schema_with_content": "paragraphs : paragraph_text (\"Korea\", \"Palestinian Territory\", \"Jersey\"), other_details (None), document_id (385906526, 2394, 3), paragraph_id (16615, 571212310, 280120913) | Forms : version_number (6, 5, 8), date_effective_to (\"1999-07-08 03:31:04\", \"1973-01-12 14:13:34\", \"1973-01-12 14:13:34\"), date_effective_from (\"2002-03-02 14:39:49\", \"1986-11-14 12:20:18\", \"1997-04-17 08:29:44\"), template_type_code (\"CV\", \"PP\", \"AD\"), template_id (1, 25, 0), template_details (\"\") | ref_template_types : template_type_description (\"Advertisement\", \"Paper\", \"Presentation\"), template_type_code (\"PPT\", \"PPT\", \"CV\") | Drafts : version_number (6, 5, 8), date_effective_to (\"1999-07-08 03:31:04\", \"1973-01-12 14:13:34\", \"1973-01-12 14:13:34\"), date_effective_from (\"2002-03-02 14:39:49\", \"1986-11-14 12:20:18\", \"1997-04-17 08:29:44\"), template_type_code (\"CV\", \"PP\", \"AD\"), template_id (1, 25, 0), template_details (\"\") | documents : other_details (None), document_id (76, 33930, 16514113), document_name (\"Palm reading\", \"How to write a CV\", \"Do not panic\"), template_id (7, 11, 11), document_description (\"y\", \"h\", \"z\")", + "schema_without_content": "paragraphs : paragraph_text , other_details , document_id , paragraph_id | Forms : version_number , date_effective_to , date_effective_from , template_type_code , template_id , template_details | ref_template_types : template_type_description , template_type_code | Drafts : version_number , date_effective_to , date_effective_from , template_type_code , template_id , template_details | documents : other_details , document_id , document_name , template_id , document_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "templates": "Templates" + } + }, + { + "question": "which #template type code# has most number of #templates# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates group by template_type_code order by count(*) desc limit 1", + "schema_with_content": "paragraphs : paragraph_id (1104059, 571212310, 7), document_id (3830, 385906526, 385906526), paragraph_text (\"UK\", \"Ireland\", \"Ukraine\"), other_details (None) | Drafts : version_number (8, 8, 5), date_effective_from (\"1975-10-20 02:28:58\", \"2002-03-02 14:39:49\", \"1996-02-04 11:27:24\"), template_details (\"\"), date_effective_to (\"1998-05-12 12:51:29\", \"1998-05-12 12:51:29\", \"1998-05-12 12:51:29\"), template_id (4, 19, 23), template_type_code (\"PPT\", \"BK\", \"BK\") | ref_template_types : template_type_code (\"AD\", \"PPT\", \"BK\"), template_type_description (\"Advertisement\", \"Book\", \"Presentation\") | Forms : version_number (8, 8, 5), date_effective_from (\"1975-10-20 02:28:58\", \"2002-03-02 14:39:49\", \"1996-02-04 11:27:24\"), template_details (\"\"), date_effective_to (\"1998-05-12 12:51:29\", \"1998-05-12 12:51:29\", \"1998-05-12 12:51:29\"), template_id (4, 19, 23), template_type_code (\"PPT\", \"BK\", \"BK\") | documents : document_name (\"Robbin CV\", \"Summer Show\", \"How to write a CV\"), template_id (20, 8, 22), other_details (None), document_id (76, 82, 3830), document_description (\"n\", \"k\", \"z\")", + "schema_without_content": "paragraphs : paragraph_id , document_id , paragraph_text , other_details | Drafts : version_number , date_effective_from , template_details , date_effective_to , template_id , template_type_code | ref_template_types : template_type_code , template_type_description | Forms : version_number , date_effective_from , template_details , date_effective_to , template_id , template_type_code | documents : document_name , template_id , other_details , document_id , document_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "templates": "Templates" + } + }, + { + "question": "return the #type code of the template type# that the most templates belong to.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates group by template_type_code order by count(*) desc limit 1", + "schema_with_content": "Forms : date_effective_from (\"1975-05-20 22:51:19\", \"1996-02-04 11:27:24\", \"1984-08-07 13:36:26\"), date_effective_to (\"2000-10-22 11:57:12\", \"1999-07-08 03:31:04\", \"1998-05-12 12:51:29\"), template_details (\"\"), template_type_code (\"AD\", \"PP\", \"CV\"), version_number (9, 4, 4), template_id (22, 9, 21) | ref_template_types : template_type_description (\"CV\", \"Paper\", \"Paper\"), template_type_code (\"PP\", \"PPT\", \"PPT\") | paragraphs : paragraph_text (\"Ireland\", \"Jersey\", \"Brazil\"), other_details (None), document_id (3, 385906526, 50123), paragraph_id (510442723, 3708, 3708) | Drafts : date_effective_from (\"1975-05-20 22:51:19\", \"1996-02-04 11:27:24\", \"1984-08-07 13:36:26\"), date_effective_to (\"2000-10-22 11:57:12\", \"1999-07-08 03:31:04\", \"1998-05-12 12:51:29\"), template_details (\"\"), template_type_code (\"AD\", \"PP\", \"CV\"), version_number (9, 4, 4), template_id (22, 9, 21) | documents : template_id (22, 21, 10), document_id (50123, 801801, 651512), other_details (None), document_name (\"Customer reviews\", \"Welcome to NY\", \"Introduction of OS\"), document_description (\"r\", \"n\", \"r\")", + "schema_without_content": "Forms : date_effective_from , date_effective_to , template_details , template_type_code , version_number , template_id | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , other_details , document_id , paragraph_id | Drafts : date_effective_from , date_effective_to , template_details , template_type_code , version_number , template_id | documents : template_id , document_id , other_details , document_name , document_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "type code of the template type": "Templates.Template_Type_Code" + } + }, + { + "question": "show all #template type codes# with less than three #templates# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates group by template_type_code having count(*) < 3", + "schema_with_content": "paragraphs : other_details (None), paragraph_id (280120913, 16615, 3708), paragraph_text (\"UK\", \"Micronesia\", \"Fiji\"), document_id (50123, 2394, 16514113) | documents : document_id (16514113, 3830, 16514113), document_description (\"n\", \"r\", \"z\"), template_id (22, 10, 22), other_details (None), document_name (\"About Korea\", \"Do not panic\", \"Data base\") | ref_template_types : template_type_code (\"CV\", \"PP\", \"BK\"), template_type_description (\"CV\", \"CV\", \"Advertisement\") | Drafts : version_number (4, 4, 8), template_details (\"\"), template_type_code (\"PPT\", \"PP\", \"AD\"), template_id (6, 8, 4), date_effective_to (\"2006-02-06 23:52:04\", \"2008-08-08 18:36:43\", \"1980-05-07 12:15:47\"), date_effective_from (\"1993-10-07 02:33:04\", \"1999-06-21 11:10:30\", \"1975-05-20 22:51:19\") | Forms : version_number (4, 4, 8), template_details (\"\"), template_type_code (\"PPT\", \"PP\", \"AD\"), template_id (6, 8, 4), date_effective_to (\"2006-02-06 23:52:04\", \"2008-08-08 18:36:43\", \"1980-05-07 12:15:47\"), date_effective_from (\"1993-10-07 02:33:04\", \"1999-06-21 11:10:30\", \"1975-05-20 22:51:19\")", + "schema_without_content": "paragraphs : other_details , paragraph_id , paragraph_text , document_id | documents : document_id , document_description , template_id , other_details , document_name | ref_template_types : template_type_code , template_type_description | Drafts : version_number , template_details , template_type_code , template_id , date_effective_to , date_effective_from | Forms : version_number , template_details , template_type_code , template_id , date_effective_to , date_effective_from", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "templates": "Templates" + } + }, + { + "question": "what are the #codes of template types# that have fewer than 3 #templates# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates group by template_type_code having count(*) < 3", + "schema_with_content": "Forms : template_type_code (\"PPT\", \"PPT\", \"AD\"), template_id (9, 8, 8), version_number (7, 8, 4), date_effective_to (\"1973-01-12 14:13:34\", \"1976-10-28 10:08:50\", \"1994-12-07 13:26:23\"), date_effective_from (\"1979-10-20 21:23:20\", \"2005-02-20 00:31:34\", \"1979-12-24 10:28:16\"), template_details (\"\") | documents : document_name (\"Understanding DB\", \"How to write a CV\", \"How Google people work\"), other_details (None), document_description (\"n\", \"w\", \"n\"), template_id (8, 1, 11), document_id (82, 651512, 3830) | Drafts : template_type_code (\"PPT\", \"PPT\", \"AD\"), template_id (9, 8, 8), version_number (7, 8, 4), date_effective_to (\"1973-01-12 14:13:34\", \"1976-10-28 10:08:50\", \"1994-12-07 13:26:23\"), date_effective_from (\"1979-10-20 21:23:20\", \"2005-02-20 00:31:34\", \"1979-12-24 10:28:16\"), template_details (\"\") | ref_template_types : template_type_description (\"Advertisement\", \"CV\", \"Paper\"), template_type_code (\"PPT\", \"PPT\", \"PPT\") | paragraphs : paragraph_text (\"Somalia\", \"Somalia\", \"Senegal\"), paragraph_id (7, 765713812, 241), other_details (None), document_id (50123, 80, 16514113)", + "schema_without_content": "Forms : template_type_code , template_id , version_number , date_effective_to , date_effective_from , template_details | documents : document_name , other_details , document_description , template_id , document_id | Drafts : template_type_code , template_id , version_number , date_effective_to , date_effective_from , template_details | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , paragraph_id , other_details , document_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "codes of template types": "Templates.Template_Type_Code", + "templates": "Templates" + } + }, + { + "question": "what is the #template type code# of the template used by document with the name \"data base\"?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t2.document_name = \"Data base\"", + "schema_with_content": "Forms : template_type_code (\"PP\", \"AD\", \"PPT\"), template_details (\"\"), template_id (4, 10, 7), date_effective_to (\"1994-12-07 13:26:23\", \"1975-07-16 04:52:10\", \"1998-05-12 12:51:29\"), date_effective_from (\"1986-12-09 14:51:36\", \"1986-11-14 12:20:18\", \"1993-10-07 02:33:04\"), version_number (8, 3, 9) | paragraphs : paragraph_text (\"Papua New Guinea\", \"Ireland\", \"Papua New Guinea\"), other_details (None), paragraph_id (765713812, 1104059, 65), document_id (3, 16514113, 3830) | ref_template_types : template_type_code (\"PPT\", \"BK\", \"AD\"), template_type_description (\"Paper\", \"Paper\", \"Presentation\") | documents : document_id (801801, 3540024, 2394), template_id (4, 20, 11), other_details (None), document_name (\"How to write a CV\", \"Introduction of OS\", \"About Korea\"), document_description (\"h\", \"f\", \"k\") | Drafts : template_type_code (\"PP\", \"AD\", \"PPT\"), template_details (\"\"), template_id (4, 10, 7), date_effective_to (\"1994-12-07 13:26:23\", \"1975-07-16 04:52:10\", \"1998-05-12 12:51:29\"), date_effective_from (\"1986-12-09 14:51:36\", \"1986-11-14 12:20:18\", \"1993-10-07 02:33:04\"), version_number (8, 3, 9)", + "schema_without_content": "Forms : template_type_code , template_details , template_id , date_effective_to , date_effective_from , version_number | paragraphs : paragraph_text , other_details , paragraph_id , document_id | ref_template_types : template_type_code , template_type_description | documents : document_id , template_id , other_details , document_name , document_description | Drafts : template_type_code , template_details , template_id , date_effective_to , date_effective_from , version_number", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "document name": "Documents.Document_Name" + } + }, + { + "question": "what is the #template type code# of the template used by document with the name \"data base\"?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t2.document_name = \"Data base\"", + "schema_with_content": "templates : template_id (11, 8, 8), template_details (\"\"), date_effective_to (\"2006-02-06 23:52:04\", \"2001-04-18 09:29:52\", \"1995-09-19 22:27:48\"), date_effective_from (\"2003-06-05 04:03:45\", \"2005-02-20 00:31:34\", \"1986-12-09 14:51:36\"), template_type_code (\"CV\", \"AD\", \"PP\"), version_number (3, 4, 6) | ref_template_types : template_type_code (\"BK\", \"AD\", \"AD\"), template_type_description (\"Book\", \"Presentation\", \"Advertisement\") | paragraphs : other_details (None), paragraph_id (571212310, 9, 946335436), document_id (16514113, 3, 3540024), paragraph_text (\"Somalia\", \"Somalia\", \"Senegal\") | Files : document_description (\"n\", \"b\", \"n\"), other_details (None), template_id (14, 7, 11), document_id (3, 3830, 1), document_name (\"About Korea\", \"Understanding DB\", \"Welcome to NY\") | Records : document_description (\"n\", \"b\", \"n\"), other_details (None), template_id (14, 7, 11), document_id (3, 3830, 1), document_name (\"About Korea\", \"Understanding DB\", \"Welcome to NY\")", + "schema_without_content": "templates : template_id , template_details , date_effective_to , date_effective_from , template_type_code , version_number | ref_template_types : template_type_code , template_type_description | paragraphs : other_details , paragraph_id , document_id , paragraph_text | Files : document_description , other_details , template_id , document_id , document_name | Records : document_description , other_details , template_id , document_id , document_name", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "document name": "Documents.Document_Name" + } + }, + { + "question": "return the #template type code# of the template that is used by a #document named# data base.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t2.document_name = \"Data base\"", + "schema_with_content": "Forms : date_effective_from (\"2002-08-25 13:26:23\", \"2002-03-02 14:39:49\", \"1984-08-07 13:36:26\"), template_type_code (\"AD\", \"PPT\", \"PP\"), template_details (\"\"), version_number (5, 7, 3), date_effective_to (\"1979-11-04 08:58:39\", \"2001-04-18 09:29:52\", \"1999-07-08 03:31:04\"), template_id (6, 18, 11) | documents : document_description (\"n\", \"y\", \"y\"), template_id (20, 7, 1), document_name (\"How to read a book\", \"Learning French\", \"A history of Arts\"), document_id (3540024, 50123, 50123), other_details (None) | Drafts : date_effective_from (\"2002-08-25 13:26:23\", \"2002-03-02 14:39:49\", \"1984-08-07 13:36:26\"), template_type_code (\"AD\", \"PPT\", \"PP\"), template_details (\"\"), version_number (5, 7, 3), date_effective_to (\"1979-11-04 08:58:39\", \"2001-04-18 09:29:52\", \"1999-07-08 03:31:04\"), template_id (6, 18, 11) | paragraphs : document_id (33930, 80, 651512), paragraph_text (\"Jersey\", \"Micronesia\", \"UK\"), other_details (None), paragraph_id (765713812, 16615, 946335436) | ref_template_types : template_type_description (\"Advertisement\", \"Presentation\", \"Book\"), template_type_code (\"AD\", \"PP\", \"AD\")", + "schema_without_content": "Forms : date_effective_from , template_type_code , template_details , version_number , date_effective_to , template_id | documents : document_description , template_id , document_name , document_id , other_details | Drafts : date_effective_from , template_type_code , template_details , version_number , date_effective_to , template_id | paragraphs : document_id , paragraph_text , other_details , paragraph_id | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "document named": "Documents.Document_Name" + } + }, + { + "question": "return the #template type code# of the template that is used by a #document named# data base.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t2.document_name = \"Data base\"", + "schema_with_content": "Files : other_details (None), template_id (4, 6, 1), document_id (76, 82, 33930), document_name (\"How Google people work\", \"How to read a book\", \"How to write a CV\"), document_description (\"b\", \"b\", \"z\") | templates : date_effective_to (\"1992-05-02 20:06:11\", \"1992-05-02 20:06:11\", \"1994-12-07 13:26:23\"), template_details (\"\"), template_id (9, 9, 16), date_effective_from (\"1983-07-16 21:16:16\", \"2002-03-02 14:39:49\", \"1975-05-20 22:51:19\"), version_number (1, 0, 3), template_type_code (\"BK\", \"CV\", \"AD\") | ref_template_types : template_type_description (\"Presentation\", \"Presentation\", \"Presentation\"), template_type_code (\"AD\", \"CV\", \"AD\") | Records : other_details (None), template_id (4, 6, 1), document_id (76, 82, 33930), document_name (\"How Google people work\", \"How to read a book\", \"How to write a CV\"), document_description (\"b\", \"b\", \"z\") | paragraphs : other_details (None), document_id (80, 50123, 50123), paragraph_text (\"Jersey\", \"Somalia\", \"UK\"), paragraph_id (608931827, 65, 280120913)", + "schema_without_content": "Files : other_details , template_id , document_id , document_name , document_description | templates : date_effective_to , template_details , template_id , date_effective_from , version_number , template_type_code | ref_template_types : template_type_description , template_type_code | Records : other_details , template_id , document_id , document_name , document_description | paragraphs : other_details , document_id , paragraph_text , paragraph_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "document named": "Documents.Document_Name" + } + }, + { + "question": "show all #document names# using #templates with template type code# bk.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = \"BK\"", + "schema_with_content": "ref_template_types : template_type_description (\"Advertisement\", \"Advertisement\", \"Paper\"), template_type_code (\"PP\", \"PP\", \"CV\") | Forms : date_effective_to (\"2007-06-06 06:18:53\", \"1976-10-28 10:08:50\", \"1998-05-12 12:51:29\"), template_details (\"\"), version_number (0, 6, 3), template_id (0, 10, 15), template_type_code (\"AD\", \"CV\", \"PP\"), date_effective_from (\"1975-10-20 02:28:58\", \"2005-11-12 07:09:48\", \"1979-10-20 21:23:20\") | paragraphs : other_details (None), paragraph_id (3708, 65, 3708), paragraph_text (\"Brazil\", \"Somalia\", \"Somalia\"), document_id (385906526, 385906526, 385906526) | Drafts : date_effective_to (\"2007-06-06 06:18:53\", \"1976-10-28 10:08:50\", \"1998-05-12 12:51:29\"), template_details (\"\"), version_number (0, 6, 3), template_id (0, 10, 15), template_type_code (\"AD\", \"CV\", \"PP\"), date_effective_from (\"1975-10-20 02:28:58\", \"2005-11-12 07:09:48\", \"1979-10-20 21:23:20\") | documents : document_id (82, 3540024, 76), document_name (\"Learning French\", \"About Korea\", \"Understanding DB\"), document_description (\"u\", \"b\", \"f\"), other_details (None), template_id (14, 21, 8)", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Forms : date_effective_to , template_details , version_number , template_id , template_type_code , date_effective_from | paragraphs : other_details , paragraph_id , paragraph_text , document_id | Drafts : date_effective_to , template_details , version_number , template_id , template_type_code , date_effective_from | documents : document_id , document_name , document_description , other_details , template_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "document names": "Documents.Document_Name", + "templates with template type code": "Templates.Template_Type_Code" + } + }, + { + "question": "show all #document names# using #templates with template type code# bk.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = \"BK\"", + "schema_with_content": "Records : other_details (None), document_description (\"y\", \"y\", \"b\"), template_id (10, 20, 8), document_name (\"About Korea\", \"Palm reading\", \"Summer Show\"), document_id (3, 50123, 76) | templates : date_effective_to (\"1993-03-24 14:30:23\", \"1979-11-04 08:58:39\", \"2006-02-06 23:52:04\"), template_id (23, 18, 0), template_type_code (\"AD\", \"PP\", \"AD\"), version_number (4, 9, 1), date_effective_from (\"2010-09-24 01:15:11\", \"1975-10-20 02:28:58\", \"1986-11-14 12:20:18\"), template_details (\"\") | paragraphs : other_details (None), paragraph_id (608931827, 1104059, 510442723), paragraph_text (\"Ireland\", \"Jersey\", \"Ireland\"), document_id (3830, 2394, 3540024) | Files : other_details (None), document_description (\"y\", \"y\", \"b\"), template_id (10, 20, 8), document_name (\"About Korea\", \"Palm reading\", \"Summer Show\"), document_id (3, 50123, 76) | ref_template_types : template_type_description (\"Paper\", \"Advertisement\", \"Paper\"), template_type_code (\"BK\", \"BK\", \"BK\")", + "schema_without_content": "Records : other_details , document_description , template_id , document_name , document_id | templates : date_effective_to , template_id , template_type_code , version_number , date_effective_from , template_details | paragraphs : other_details , paragraph_id , paragraph_text , document_id | Files : other_details , document_description , template_id , document_name , document_id | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document names": "Documents.Document_Name", + "templates with template type code": "Templates.Template_Type_Code" + } + }, + { + "question": "what are the #names of documents# that use #templates with the code# bk?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = \"BK\"", + "schema_with_content": "documents : document_id (3540024, 385906526, 801801), template_id (10, 11, 14), document_name (\"Palm reading\", \"Do not panic\", \"How Google people work\"), other_details (None), document_description (\"n\", \"n\", \"z\") | ref_template_types : template_type_description (\"Presentation\", \"Book\", \"Paper\"), template_type_code (\"BK\", \"PPT\", \"CV\") | Drafts : date_effective_from (\"1993-10-07 02:33:04\", \"1999-06-21 11:10:30\", \"1999-06-21 11:10:30\"), date_effective_to (\"1995-09-19 22:27:48\", \"2008-01-05 14:19:28\", \"2008-08-08 18:36:43\"), template_details (\"\"), version_number (5, 6, 9), template_id (6, 8, 21), template_type_code (\"BK\", \"PP\", \"CV\") | paragraphs : other_details (None), paragraph_text (\"Korea\", \"Ireland\", \"Somalia\"), document_id (50123, 3830, 2394), paragraph_id (16615, 9946, 1104059) | Forms : date_effective_from (\"1993-10-07 02:33:04\", \"1999-06-21 11:10:30\", \"1999-06-21 11:10:30\"), date_effective_to (\"1995-09-19 22:27:48\", \"2008-01-05 14:19:28\", \"2008-08-08 18:36:43\"), template_details (\"\"), version_number (5, 6, 9), template_id (6, 8, 21), template_type_code (\"BK\", \"PP\", \"CV\")", + "schema_without_content": "documents : document_id , template_id , document_name , other_details , document_description | ref_template_types : template_type_description , template_type_code | Drafts : date_effective_from , date_effective_to , template_details , version_number , template_id , template_type_code | paragraphs : other_details , paragraph_text , document_id , paragraph_id | Forms : date_effective_from , date_effective_to , template_details , version_number , template_id , template_type_code", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "names of documents": "Documents.Document_Name", + "templates with the code": "Templates.Template_Type_Code" + } + }, + { + "question": "what are the #names of documents# that use #templates with the code# bk?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = \"BK\"", + "schema_with_content": "templates : template_type_code (\"CV\", \"CV\", \"PP\"), date_effective_to (\"1980-05-07 12:15:47\", \"2007-06-06 06:18:53\", \"2001-04-18 09:29:52\"), template_id (7, 9, 8), date_effective_from (\"2005-02-20 00:31:34\", \"1975-05-20 22:51:19\", \"2008-08-01 13:57:26\"), version_number (3, 9, 9), template_details (\"\") | ref_template_types : template_type_description (\"Book\", \"Paper\", \"Book\"), template_type_code (\"PPT\", \"CV\", \"AD\") | Files : template_id (25, 8, 22), document_description (\"z\", \"w\", \"n\"), document_name (\"Do not panic\", \"Robbin CV\", \"Data base\"), other_details (None), document_id (1, 16514113, 33930) | Records : template_id (25, 8, 22), document_description (\"z\", \"w\", \"n\"), document_name (\"Do not panic\", \"Robbin CV\", \"Data base\"), other_details (None), document_id (1, 16514113, 33930) | paragraphs : paragraph_text (\"Micronesia\", \"Jersey\", \"Papua New Guinea\"), paragraph_id (608931827, 765713812, 9946), document_id (651512, 80, 33930), other_details (None)", + "schema_without_content": "templates : template_type_code , date_effective_to , template_id , date_effective_from , version_number , template_details | ref_template_types : template_type_description , template_type_code | Files : template_id , document_description , document_name , other_details , document_id | Records : template_id , document_description , document_name , other_details , document_id | paragraphs : paragraph_text , paragraph_id , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of documents": "Documents.Document_Name", + "templates with the code": "Templates.Template_Type_Code" + } + }, + { + "question": "show all #template type codes# and the #number of documents# using each type.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code, count(*) from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code", + "schema_with_content": "Drafts : template_type_code (\"BK\", \"PP\", \"AD\"), template_id (22, 24, 16), date_effective_from (\"2005-11-12 07:09:48\", \"2005-02-20 00:31:34\", \"2012-04-05 07:11:42\"), template_details (\"\"), date_effective_to (\"2006-02-06 23:52:04\", \"1975-07-16 04:52:10\", \"1992-05-02 20:06:11\"), version_number (8, 6, 1) | documents : document_description (\"k\", \"w\", \"f\"), document_name (\"Summer Show\", \"How Google people work\", \"Customer reviews\"), document_id (801801, 16514113, 80), other_details (None), template_id (25, 8, 22) | paragraphs : other_details (None), document_id (3540024, 651512, 50123), paragraph_id (243399026, 9946, 608931827), paragraph_text (\"Palestinian Territory\", \"Micronesia\", \"Ukraine\") | ref_template_types : template_type_code (\"AD\", \"AD\", \"PPT\"), template_type_description (\"Advertisement\", \"CV\", \"Advertisement\") | Forms : template_type_code (\"BK\", \"PP\", \"AD\"), template_id (22, 24, 16), date_effective_from (\"2005-11-12 07:09:48\", \"2005-02-20 00:31:34\", \"2012-04-05 07:11:42\"), template_details (\"\"), date_effective_to (\"2006-02-06 23:52:04\", \"1975-07-16 04:52:10\", \"1992-05-02 20:06:11\"), version_number (8, 6, 1)", + "schema_without_content": "Drafts : template_type_code , template_id , date_effective_from , template_details , date_effective_to , version_number | documents : document_description , document_name , document_id , other_details , template_id | paragraphs : other_details , document_id , paragraph_id , paragraph_text | ref_template_types : template_type_code , template_type_description | Forms : template_type_code , template_id , date_effective_from , template_details , date_effective_to , version_number", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "number of documents": "Documents" + } + }, + { + "question": "show all #template type codes# and the #number of documents# using each type.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code, count(*) from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code", + "schema_with_content": "Records : document_id (3, 16514113, 801801), template_id (4, 6, 21), other_details (None), document_description (\"f\", \"h\", \"b\"), document_name (\"Data base\", \"Understanding DB\", \"Data base\") | Files : document_id (3, 16514113, 801801), template_id (4, 6, 21), other_details (None), document_description (\"f\", \"h\", \"b\"), document_name (\"Data base\", \"Understanding DB\", \"Data base\") | ref_template_types : template_type_description (\"Presentation\", \"CV\", \"CV\"), template_type_code (\"PP\", \"CV\", \"PPT\") | paragraphs : paragraph_text (\"Palestinian Territory\", \"Japan\", \"Brazil\"), paragraph_id (280120913, 571212310, 1104059), document_id (3540024, 3540024, 651512), other_details (None) | templates : template_type_code (\"PP\", \"CV\", \"CV\"), date_effective_from (\"1999-06-21 11:10:30\", \"2005-11-12 07:09:48\", \"1979-10-20 21:23:20\"), template_id (18, 9, 8), date_effective_to (\"1979-11-04 08:58:39\", \"1976-10-28 10:08:50\", \"1973-01-12 14:13:34\"), version_number (1, 1, 6), template_details (\"\")", + "schema_without_content": "Records : document_id , template_id , other_details , document_description , document_name | Files : document_id , template_id , other_details , document_description , document_name | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , paragraph_id , document_id , other_details | templates : template_type_code , date_effective_from , template_id , date_effective_to , version_number , template_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "number of documents": "Documents" + } + }, + { + "question": "what are the different #template type codes# , and how many #documents# use each type?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code, count(*) from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code", + "schema_with_content": "Forms : template_id (10, 19, 16), template_details (\"\"), date_effective_from (\"1975-05-20 22:51:19\", \"1999-06-21 11:10:30\", \"1997-04-17 08:29:44\"), template_type_code (\"BK\", \"PP\", \"BK\"), version_number (6, 6, 0), date_effective_to (\"1973-01-12 14:13:34\", \"1999-07-08 03:31:04\", \"1999-07-08 03:31:04\") | paragraphs : paragraph_text (\"Indonesia\", \"Brazil\", \"Ukraine\"), other_details (None), paragraph_id (241, 65, 946335436), document_id (651512, 50123, 3830) | Drafts : template_id (10, 19, 16), template_details (\"\"), date_effective_from (\"1975-05-20 22:51:19\", \"1999-06-21 11:10:30\", \"1997-04-17 08:29:44\"), template_type_code (\"BK\", \"PP\", \"BK\"), version_number (6, 6, 0), date_effective_to (\"1973-01-12 14:13:34\", \"1999-07-08 03:31:04\", \"1999-07-08 03:31:04\") | documents : other_details (None), document_description (\"k\", \"r\", \"w\"), document_name (\"Understanding DB\", \"Introduction of OS\", \"Understanding DB\"), document_id (3, 385906526, 3), template_id (1, 6, 4) | ref_template_types : template_type_code (\"PPT\", \"CV\", \"AD\"), template_type_description (\"Book\", \"Advertisement\", \"Book\")", + "schema_without_content": "Forms : template_id , template_details , date_effective_from , template_type_code , version_number , date_effective_to | paragraphs : paragraph_text , other_details , paragraph_id , document_id | Drafts : template_id , template_details , date_effective_from , template_type_code , version_number , date_effective_to | documents : other_details , document_description , document_name , document_id , template_id | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "what are the different #template type codes# , and how many #documents# use each type?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code, count(*) from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code", + "schema_with_content": "templates : template_details (\"\"), template_type_code (\"BK\", \"PP\", \"BK\"), template_id (22, 18, 19), date_effective_to (\"1994-12-07 13:26:23\", \"2007-06-06 06:18:53\", \"1974-09-14 06:34:39\"), date_effective_from (\"2012-04-05 07:11:42\", \"1984-08-07 13:36:26\", \"1999-06-21 11:10:30\"), version_number (0, 3, 1) | Records : document_name (\"How Google people work\", \"Understanding DB\", \"How to read a book\"), template_id (21, 6, 1), document_description (\"n\", \"z\", \"h\"), other_details (None), document_id (50123, 0, 2394) | Files : document_name (\"How Google people work\", \"Understanding DB\", \"How to read a book\"), template_id (21, 6, 1), document_description (\"n\", \"z\", \"h\"), other_details (None), document_id (50123, 0, 2394) | ref_template_types : template_type_code (\"CV\", \"PPT\", \"BK\"), template_type_description (\"Book\", \"CV\", \"Advertisement\") | paragraphs : paragraph_text (\"Ireland\", \"Indonesia\", \"Ireland\"), paragraph_id (571212310, 9, 571212310), other_details (None), document_id (16514113, 33930, 33930)", + "schema_without_content": "templates : template_details , template_type_code , template_id , date_effective_to , date_effective_from , version_number | Records : document_name , template_id , document_description , other_details , document_id | Files : document_name , template_id , document_description , other_details , document_id | ref_template_types : template_type_code , template_type_description | paragraphs : paragraph_text , paragraph_id , other_details , document_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "which #template type code# is used by most number of #documents# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code order by count(*) desc limit 1", + "schema_with_content": "Forms : version_number (3, 0, 2), date_effective_to (\"1992-05-02 20:06:11\", \"1979-11-04 08:58:39\", \"1975-07-16 04:52:10\"), date_effective_from (\"2005-11-12 07:09:48\", \"1986-11-14 12:20:18\", \"1997-04-17 08:29:44\"), template_type_code (\"PP\", \"PPT\", \"AD\"), template_id (9, 7, 21), template_details (\"\") | ref_template_types : template_type_description (\"Presentation\", \"Book\", \"Advertisement\"), template_type_code (\"PPT\", \"BK\", \"PPT\") | paragraphs : other_details (None), paragraph_text (\"UK\", \"Somalia\", \"Somalia\"), paragraph_id (3708, 765713812, 608931827), document_id (651512, 3830, 2394) | Drafts : version_number (3, 0, 2), date_effective_to (\"1992-05-02 20:06:11\", \"1979-11-04 08:58:39\", \"1975-07-16 04:52:10\"), date_effective_from (\"2005-11-12 07:09:48\", \"1986-11-14 12:20:18\", \"1997-04-17 08:29:44\"), template_type_code (\"PP\", \"PPT\", \"AD\"), template_id (9, 7, 21), template_details (\"\") | documents : document_description (\"h\", \"y\", \"w\"), document_id (50123, 0, 0), document_name (\"How Google people work\", \"Data base\", \"Robbin CV\"), template_id (20, 11, 1), other_details (None)", + "schema_without_content": "Forms : version_number , date_effective_to , date_effective_from , template_type_code , template_id , template_details | ref_template_types : template_type_description , template_type_code | paragraphs : other_details , paragraph_text , paragraph_id , document_id | Drafts : version_number , date_effective_to , date_effective_from , template_type_code , template_id , template_details | documents : document_description , document_id , document_name , template_id , other_details", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "which #template type code# is used by most number of #documents# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code order by count(*) desc limit 1", + "schema_with_content": "templates : date_effective_from (\"2002-03-02 14:39:49\", \"1986-12-09 14:51:36\", \"2005-11-12 07:09:48\"), template_details (\"\"), version_number (1, 5, 9), template_type_code (\"CV\", \"PP\", \"PP\"), template_id (20, 10, 19), date_effective_to (\"1974-09-14 06:34:39\", \"1973-01-12 14:13:34\", \"2008-08-08 18:36:43\") | Records : other_details (None), document_id (2394, 76, 82), document_description (\"b\", \"f\", \"f\"), document_name (\"How to write a CV\", \"Data base\", \"How Google people work\"), template_id (22, 6, 7) | Files : other_details (None), document_id (2394, 76, 82), document_description (\"b\", \"f\", \"f\"), document_name (\"How to write a CV\", \"Data base\", \"How Google people work\"), template_id (22, 6, 7) | ref_template_types : template_type_description (\"Book\", \"CV\", \"CV\"), template_type_code (\"PP\", \"PPT\", \"PP\") | paragraphs : other_details (None), paragraph_text (\"Brazil\", \"UK\", \"Senegal\"), document_id (50123, 33930, 385906526), paragraph_id (65, 571212310, 280120913)", + "schema_without_content": "templates : date_effective_from , template_details , version_number , template_type_code , template_id , date_effective_to | Records : other_details , document_id , document_description , document_name , template_id | Files : other_details , document_id , document_description , document_name , template_id | ref_template_types : template_type_description , template_type_code | paragraphs : other_details , paragraph_text , document_id , paragraph_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type code": "Templates.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "return the #code of the template type# that is most commonly used in #documents# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code order by count(*) desc limit 1", + "schema_with_content": "Drafts : template_id (19, 22, 7), template_type_code (\"CV\", \"BK\", \"AD\"), date_effective_from (\"1996-02-04 11:27:24\", \"1984-08-07 13:36:26\", \"1983-07-16 21:16:16\"), date_effective_to (\"1994-12-07 13:26:23\", \"2000-10-22 11:57:12\", \"1974-09-14 06:34:39\"), version_number (5, 9, 6), template_details (\"\") | paragraphs : paragraph_id (510442723, 65, 241), document_id (3, 3540024, 3), other_details (None), paragraph_text (\"Somalia\", \"Ukraine\", \"Senegal\") | ref_template_types : template_type_description (\"Paper\", \"Presentation\", \"Advertisement\"), template_type_code (\"BK\", \"CV\", \"BK\") | Forms : template_id (19, 22, 7), template_type_code (\"CV\", \"BK\", \"AD\"), date_effective_from (\"1996-02-04 11:27:24\", \"1984-08-07 13:36:26\", \"1983-07-16 21:16:16\"), date_effective_to (\"1994-12-07 13:26:23\", \"2000-10-22 11:57:12\", \"1974-09-14 06:34:39\"), version_number (5, 9, 6), template_details (\"\") | documents : document_id (3540024, 82, 3540024), other_details (None), template_id (7, 21, 20), document_description (\"h\", \"k\", \"r\"), document_name (\"Palm reading\", \"Data base\", \"Learning French\")", + "schema_without_content": "Drafts : template_id , template_type_code , date_effective_from , date_effective_to , version_number , template_details | paragraphs : paragraph_id , document_id , other_details , paragraph_text | ref_template_types : template_type_description , template_type_code | Forms : template_id , template_type_code , date_effective_from , date_effective_to , version_number , template_details | documents : document_id , other_details , template_id , document_description , document_name", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "code of the template type": "Ref_Template_Types.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "return the #code of the template type# that is most commonly used in #documents# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id group by t1.template_type_code order by count(*) desc limit 1", + "schema_with_content": "paragraphs : paragraph_text (\"UK\", \"Papua New Guinea\", \"Palestinian Territory\"), document_id (385906526, 3830, 651512), paragraph_id (765713812, 510442723, 1104059), other_details (None) | ref_template_types : template_type_code (\"CV\", \"CV\", \"AD\"), template_type_description (\"Advertisement\", \"Book\", \"Paper\") | Records : template_id (10, 20, 7), document_name (\"Introduction of OS\", \"A history of Arts\", \"Customer reviews\"), document_description (\"w\", \"h\", \"u\"), other_details (None), document_id (801801, 385906526, 1) | Files : template_id (10, 20, 7), document_name (\"Introduction of OS\", \"A history of Arts\", \"Customer reviews\"), document_description (\"w\", \"h\", \"u\"), other_details (None), document_id (801801, 385906526, 1) | templates : date_effective_from (\"2008-08-01 13:57:26\", \"2012-04-05 07:11:42\", \"2010-09-24 01:15:11\"), template_type_code (\"CV\", \"AD\", \"AD\"), template_id (14, 18, 7), version_number (7, 3, 1), date_effective_to (\"1999-07-08 03:31:04\", \"1975-07-16 04:52:10\", \"1989-11-24 19:06:06\"), template_details (\"\")", + "schema_without_content": "paragraphs : paragraph_text , document_id , paragraph_id , other_details | ref_template_types : template_type_code , template_type_description | Records : template_id , document_name , document_description , other_details , document_id | Files : template_id , document_name , document_description , other_details , document_id | templates : date_effective_from , template_type_code , template_id , version_number , date_effective_to , template_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "code of the template type": "Ref_Template_Types.Template_Type_Code", + "documents": "Documents" + } + }, + { + "question": "show all #template type codes# that are not used by any #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates except select template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id", + "schema_with_content": "Drafts : template_type_code (\"PPT\", \"AD\", \"AD\"), date_effective_from (\"1997-04-17 08:29:44\", \"1993-10-07 02:33:04\", \"1986-12-09 14:51:36\"), template_details (\"\"), version_number (9, 7, 0), date_effective_to (\"1995-09-19 22:27:48\", \"1993-03-24 14:30:23\", \"2006-02-06 23:52:04\"), template_id (24, 21, 15) | Forms : template_type_code (\"PPT\", \"AD\", \"AD\"), date_effective_from (\"1997-04-17 08:29:44\", \"1993-10-07 02:33:04\", \"1986-12-09 14:51:36\"), template_details (\"\"), version_number (9, 7, 0), date_effective_to (\"1995-09-19 22:27:48\", \"1993-03-24 14:30:23\", \"2006-02-06 23:52:04\"), template_id (24, 21, 15) | ref_template_types : template_type_code (\"PP\", \"CV\", \"CV\"), template_type_description (\"CV\", \"Advertisement\", \"Advertisement\") | paragraphs : paragraph_text (\"Korea\", \"Ukraine\", \"Papua New Guinea\"), paragraph_id (3708, 241, 65), other_details (None), document_id (3540024, 385906526, 2394) | documents : template_id (6, 8, 10), other_details (None), document_name (\"Understanding DB\", \"Do not panic\", \"Introduction of OS\"), document_id (16514113, 16514113, 3), document_description (\"k\", \"k\", \"n\")", + "schema_without_content": "Drafts : template_type_code , date_effective_from , template_details , version_number , date_effective_to , template_id | Forms : template_type_code , date_effective_from , template_details , version_number , date_effective_to , template_id | ref_template_types : template_type_code , template_type_description | paragraphs : paragraph_text , paragraph_id , other_details , document_id | documents : template_id , other_details , document_name , document_id , document_description", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "document": "Documents" + } + }, + { + "question": "show all #template type codes# that are not used by any #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates except select template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id", + "schema_with_content": "paragraphs : document_id (50123, 2394, 80), paragraph_id (9, 241, 7), other_details (None), paragraph_text (\"Fiji\", \"Somalia\", \"Ireland\") | ref_template_types : template_type_code (\"AD\", \"CV\", \"AD\"), template_type_description (\"Paper\", \"Presentation\", \"Advertisement\") | templates : template_id (21, 20, 15), date_effective_from (\"1975-05-20 22:51:19\", \"2002-03-02 14:39:49\", \"1993-10-07 02:33:04\"), date_effective_to (\"1994-12-07 13:26:23\", \"2001-04-18 09:29:52\", \"2001-04-18 09:29:52\"), version_number (7, 6, 4), template_details (\"\"), template_type_code (\"PPT\", \"AD\", \"CV\") | Files : template_id (11, 7, 21), other_details (None), document_description (\"n\", \"k\", \"n\"), document_id (16514113, 33930, 801801), document_name (\"How to read a book\", \"Data base\", \"Do not panic\") | Records : template_id (11, 7, 21), other_details (None), document_description (\"n\", \"k\", \"n\"), document_id (16514113, 33930, 801801), document_name (\"How to read a book\", \"Data base\", \"Do not panic\")", + "schema_without_content": "paragraphs : document_id , paragraph_id , other_details , paragraph_text | ref_template_types : template_type_code , template_type_description | templates : template_id , date_effective_from , date_effective_to , version_number , template_details , template_type_code | Files : template_id , other_details , document_description , document_id , document_name | Records : template_id , other_details , document_description , document_id , document_name", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "template type codes": "Templates.Template_Type_Code", + "document": "Documents" + } + }, + { + "question": "what are the #codes of template types# that are not used for any #document# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates except select template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id", + "schema_with_content": "ref_template_types : template_type_code (\"PP\", \"PPT\", \"AD\"), template_type_description (\"Presentation\", \"Book\", \"CV\") | documents : document_id (50123, 16514113, 3830), other_details (None), template_id (11, 11, 21), document_name (\"Learning French\", \"Learning French\", \"Data base\"), document_description (\"w\", \"z\", \"r\") | paragraphs : paragraph_id (1104059, 280120913, 571212310), document_id (50123, 80, 80), other_details (None), paragraph_text (\"Senegal\", \"Micronesia\", \"Brazil\") | Forms : date_effective_from (\"1986-12-09 14:51:36\", \"1975-10-20 02:28:58\", \"1975-05-20 22:51:19\"), template_details (\"\"), template_type_code (\"CV\", \"PP\", \"PPT\"), date_effective_to (\"1993-03-24 14:30:23\", \"1999-07-08 03:31:04\", \"1980-05-07 12:15:47\"), version_number (6, 2, 5), template_id (14, 8, 19) | Drafts : date_effective_from (\"1986-12-09 14:51:36\", \"1975-10-20 02:28:58\", \"1975-05-20 22:51:19\"), template_details (\"\"), template_type_code (\"CV\", \"PP\", \"PPT\"), date_effective_to (\"1993-03-24 14:30:23\", \"1999-07-08 03:31:04\", \"1980-05-07 12:15:47\"), version_number (6, 2, 5), template_id (14, 8, 19)", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | documents : document_id , other_details , template_id , document_name , document_description | paragraphs : paragraph_id , document_id , other_details , paragraph_text | Forms : date_effective_from , template_details , template_type_code , date_effective_to , version_number , template_id | Drafts : date_effective_from , template_details , template_type_code , date_effective_to , version_number , template_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "codes of template types": "Templates.Template_Type_Code", + "document": "Documents" + } + }, + { + "question": "what are the #codes of template types# that are not used for any #document# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from templates except select template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id", + "schema_with_content": "Files : document_id (50123, 50123, 385906526), document_name (\"Introduction of OS\", \"How to write a CV\", \"Summer Show\"), document_description (\"y\", \"r\", \"k\"), other_details (None), template_id (7, 8, 6) | templates : version_number (4, 1, 5), date_effective_to (\"1989-11-24 19:06:06\", \"1989-11-24 19:06:06\", \"2015-09-06 01:08:44\"), template_type_code (\"PP\", \"PPT\", \"PPT\"), template_id (0, 25, 23), date_effective_from (\"2003-06-05 04:03:45\", \"1975-10-20 02:28:58\", \"1984-08-07 13:36:26\"), template_details (\"\") | Records : document_id (50123, 50123, 385906526), document_name (\"Introduction of OS\", \"How to write a CV\", \"Summer Show\"), document_description (\"y\", \"r\", \"k\"), other_details (None), template_id (7, 8, 6) | paragraphs : other_details (None), document_id (651512, 3540024, 50123), paragraph_id (571212310, 946335436, 65), paragraph_text (\"Palestinian Territory\", \"Indonesia\", \"Somalia\") | ref_template_types : template_type_description (\"CV\", \"CV\", \"Presentation\"), template_type_code (\"PPT\", \"PPT\", \"BK\")", + "schema_without_content": "Files : document_id , document_name , document_description , other_details , template_id | templates : version_number , date_effective_to , template_type_code , template_id , date_effective_from , template_details | Records : document_id , document_name , document_description , other_details , template_id | paragraphs : other_details , document_id , paragraph_id , paragraph_text | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "codes of template types": "Templates.Template_Type_Code", + "document": "Documents" + } + }, + { + "question": "what is the #template type descriptions for template type code# \"ad\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_description from ref_template_types where template_type_code = \"AD\"", + "schema_with_content": "Template_Types_Reference : template_type_description (\"Advertisement\", \"Paper\", \"Presentation\"), template_type_code (\"CV\", \"AD\", \"AD\") | documents : document_name (\"How to read a book\", \"Palm reading\", \"Welcome to NY\"), document_id (385906526, 651512, 33930), other_details (None), document_description (\"h\", \"f\", \"r\"), template_id (7, 4, 22) | paragraphs : other_details (None), paragraph_id (571212310, 7, 7), paragraph_text (\"Korea\", \"Brazil\", \"Senegal\"), document_id (80, 651512, 385906526) | templates : version_number (1, 3, 1), template_details (\"\"), template_type_code (\"BK\", \"PPT\", \"CV\"), date_effective_to (\"1998-05-12 12:51:29\", \"2001-04-18 09:29:52\", \"1974-09-14 06:34:39\"), template_id (16, 0, 15), date_effective_from (\"2005-02-20 00:31:34\", \"2010-09-24 01:15:11\", \"2002-03-02 14:39:49\") | Type_Templates : template_type_description (\"Advertisement\", \"Paper\", \"Presentation\"), template_type_code (\"CV\", \"AD\", \"AD\")", + "schema_without_content": "Template_Types_Reference : template_type_description , template_type_code | documents : document_name , document_id , other_details , document_description , template_id | paragraphs : other_details , paragraph_id , paragraph_text , document_id | templates : version_number , template_details , template_type_code , date_effective_to , template_id , date_effective_from | Type_Templates : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "template type descriptions for template type code": "Ref_Template_Types.Template_Type_Description" + } + }, + { + "question": "return the #template type# description of the #template type with the code# ad.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_description from ref_template_types where template_type_code = \"AD\"", + "schema_with_content": "Template_Types_Reference : template_type_code (\"CV\", \"AD\", \"AD\"), template_type_description (\"Book\", \"Presentation\", \"CV\") | documents : other_details (None), document_description (\"z\", \"y\", \"f\"), template_id (20, 21, 14), document_id (33930, 385906526, 50123), document_name (\"Palm reading\", \"How to write a CV\", \"Understanding DB\") | templates : version_number (8, 3, 5), date_effective_to (\"1974-09-14 06:34:39\", \"2001-04-18 09:29:52\", \"1998-05-12 12:51:29\"), template_id (20, 14, 14), date_effective_from (\"1983-07-16 21:16:16\", \"2005-02-20 00:31:34\", \"2002-03-02 14:39:49\"), template_details (\"\"), template_type_code (\"PP\", \"CV\", \"PPT\") | paragraphs : paragraph_id (9946, 9, 9), other_details (None), document_id (3540024, 2394, 3830), paragraph_text (\"Jersey\", \"Brazil\", \"Senegal\") | Type_Templates : template_type_code (\"CV\", \"AD\", \"AD\"), template_type_description (\"Book\", \"Presentation\", \"CV\")", + "schema_without_content": "Template_Types_Reference : template_type_code , template_type_description | documents : other_details , document_description , template_id , document_id , document_name | templates : version_number , date_effective_to , template_id , date_effective_from , template_details , template_type_code | paragraphs : paragraph_id , other_details , document_id , paragraph_text | Type_Templates : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "template type": "Ref_Template_Types", + "template type with the code": "Ref_Template_Types.Template_Type_Code", + "template type description": "Ref_Template_Types.Template_Type_Description" + } + }, + { + "question": "what is the #template type code for template type description# \"book\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from ref_template_types where template_type_description = \"Book\"", + "schema_with_content": "Type_Templates : template_type_description (\"Paper\", \"Book\", \"Paper\"), template_type_code (\"AD\", \"AD\", \"PP\") | documents : template_id (14, 22, 14), document_id (801801, 82, 76), other_details (None), document_name (\"Summer Show\", \"Customer reviews\", \"Customer reviews\"), document_description (\"k\", \"z\", \"n\") | Template_Types_Reference : template_type_description (\"Paper\", \"Book\", \"Paper\"), template_type_code (\"AD\", \"AD\", \"PP\") | paragraphs : paragraph_id (65, 280120913, 946335436), other_details (None), paragraph_text (\"Jersey\", \"Ukraine\", \"Ireland\"), document_id (651512, 80, 385906526) | templates : template_type_code (\"PP\", \"PP\", \"PP\"), date_effective_to (\"1974-09-14 06:34:39\", \"1979-11-04 08:58:39\", \"1992-05-02 20:06:11\"), template_details (\"\"), version_number (1, 4, 1), template_id (24, 21, 9), date_effective_from (\"2008-08-01 13:57:26\", \"1979-12-24 10:28:16\", \"1984-08-07 13:36:26\")", + "schema_without_content": "Type_Templates : template_type_description , template_type_code | documents : template_id , document_id , other_details , document_name , document_description | Template_Types_Reference : template_type_description , template_type_code | paragraphs : paragraph_id , other_details , paragraph_text , document_id | templates : template_type_code , date_effective_to , template_details , version_number , template_id , date_effective_from", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "template type code for template type description": "Ref_Template_Types.Template_Type_Code" + } + }, + { + "question": "return the #type code of the template type with the description# \"book\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select template_type_code from ref_template_types where template_type_description = \"Book\"", + "schema_with_content": "templates : template_id (0, 23, 18), date_effective_from (\"1999-06-21 11:10:30\", \"1975-10-20 02:28:58\", \"1975-05-20 22:51:19\"), date_effective_to (\"1998-05-12 12:51:29\", \"1976-10-28 10:08:50\", \"1993-03-24 14:30:23\"), version_number (4, 8, 0), template_type_code (\"BK\", \"PPT\", \"AD\"), template_details (\"\") | documents : document_name (\"Understanding DB\", \"Welcome to NY\", \"Introduction of OS\"), document_description (\"w\", \"n\", \"w\"), template_id (22, 6, 10), other_details (None), document_id (3540024, 82, 3) | paragraphs : document_id (50123, 3830, 16514113), paragraph_id (16615, 65, 280120913), paragraph_text (\"Korea\", \"Somalia\", \"Jersey\"), other_details (None) | Type_Templates : template_type_code (\"PP\", \"BK\", \"PPT\"), template_type_description (\"Presentation\", \"Paper\", \"Paper\") | Template_Types_Reference : template_type_code (\"PP\", \"BK\", \"PPT\"), template_type_description (\"Presentation\", \"Paper\", \"Paper\")", + "schema_without_content": "templates : template_id , date_effective_from , date_effective_to , version_number , template_type_code , template_details | documents : document_name , document_description , template_id , other_details , document_id | paragraphs : document_id , paragraph_id , paragraph_text , other_details | Type_Templates : template_type_code , template_type_description | Template_Types_Reference : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "type code of the template type with the description": "Ref_Template_Types.Template_Type_Code" + } + }, + { + "question": "what are the #distinct template type descriptions for the templates# ever used by any #document# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "templates : version_number (5, 8, 9), template_type_code (\"PPT\", \"PPT\", \"AD\"), template_details (\"\"), template_id (7, 19, 8), date_effective_to (\"1979-11-04 08:58:39\", \"1993-03-24 14:30:23\", \"1995-09-19 22:27:48\"), date_effective_from (\"1986-11-14 12:20:18\", \"2005-02-20 00:31:34\", \"1986-11-14 12:20:18\") | Template_Types_Reference : template_type_code (\"PP\", \"BK\", \"CV\"), template_type_description (\"Advertisement\", \"CV\", \"Book\") | Type_Templates : template_type_code (\"PP\", \"BK\", \"CV\"), template_type_description (\"Advertisement\", \"CV\", \"Book\") | documents : document_id (2394, 0, 0), template_id (21, 21, 14), other_details (None), document_description (\"z\", \"w\", \"u\"), document_name (\"Understanding DB\", \"A history of Arts\", \"Understanding DB\") | paragraphs : paragraph_id (9, 510442723, 16615), paragraph_text (\"Fiji\", \"Senegal\", \"Palestinian Territory\"), document_id (2394, 385906526, 2394), other_details (None)", + "schema_without_content": "templates : version_number , template_type_code , template_details , template_id , date_effective_to , date_effective_from | Template_Types_Reference : template_type_code , template_type_description | Type_Templates : template_type_code , template_type_description | documents : document_id , template_id , other_details , document_description , document_name | paragraphs : paragraph_id , paragraph_text , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "distinct template type descriptions for the templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "what are the #distinct template type descriptions for the templates# ever used by any #document# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "Forms : date_effective_from (\"2005-02-20 00:31:34\", \"1986-11-14 12:20:18\", \"1986-11-14 12:20:18\"), version_number (1, 6, 4), template_id (8, 23, 21), date_effective_to (\"2006-02-06 23:52:04\", \"1989-11-24 19:06:06\", \"1999-07-08 03:31:04\"), template_type_code (\"AD\", \"PPT\", \"AD\"), template_details (\"\") | documents : other_details (None), document_id (801801, 3830, 76), document_name (\"Do not panic\", \"Palm reading\", \"Customer reviews\"), template_id (8, 11, 22), document_description (\"u\", \"h\", \"k\") | paragraphs : paragraph_text (\"Korea\", \"Ukraine\", \"Japan\"), paragraph_id (280120913, 608931827, 1104059), other_details (None), document_id (3830, 3, 80) | Drafts : date_effective_from (\"2005-02-20 00:31:34\", \"1986-11-14 12:20:18\", \"1986-11-14 12:20:18\"), version_number (1, 6, 4), template_id (8, 23, 21), date_effective_to (\"2006-02-06 23:52:04\", \"1989-11-24 19:06:06\", \"1999-07-08 03:31:04\"), template_type_code (\"AD\", \"PPT\", \"AD\"), template_details (\"\") | ref_template_types : template_type_description (\"Presentation\", \"Book\", \"Paper\"), template_type_code (\"CV\", \"PPT\", \"CV\")", + "schema_without_content": "Forms : date_effective_from , version_number , template_id , date_effective_to , template_type_code , template_details | documents : other_details , document_id , document_name , template_id , document_description | paragraphs : paragraph_text , paragraph_id , other_details , document_id | Drafts : date_effective_from , version_number , template_id , date_effective_to , template_type_code , template_details | ref_template_types : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "distinct template type descriptions for the templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "what are the #distinct template type descriptions for the templates# ever used by any #document# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "Files : document_description (\"u\", \"b\", \"y\"), document_id (82, 801801, 3830), template_id (6, 11, 20), other_details (None), document_name (\"Do not panic\", \"How to read a book\", \"Learning French\") | templates : template_type_code (\"AD\", \"AD\", \"AD\"), template_id (23, 8, 21), version_number (8, 2, 4), date_effective_to (\"2006-02-06 23:52:04\", \"1989-11-24 19:06:06\", \"1973-01-12 14:13:34\"), date_effective_from (\"2002-03-02 14:39:49\", \"1986-12-09 14:51:36\", \"1983-07-16 21:16:16\"), template_details (\"\") | ref_template_types : template_type_code (\"CV\", \"PP\", \"CV\"), template_type_description (\"Advertisement\", \"Advertisement\", \"CV\") | paragraphs : paragraph_id (9946, 280120913, 241), paragraph_text (\"Indonesia\", \"UK\", \"Senegal\"), other_details (None), document_id (651512, 50123, 2394) | Records : document_description (\"u\", \"b\", \"y\"), document_id (82, 801801, 3830), template_id (6, 11, 20), other_details (None), document_name (\"Do not panic\", \"How to read a book\", \"Learning French\")", + "schema_without_content": "Files : document_description , document_id , template_id , other_details , document_name | templates : template_type_code , template_id , version_number , date_effective_to , date_effective_from , template_details | ref_template_types : template_type_code , template_type_description | paragraphs : paragraph_id , paragraph_text , other_details , document_id | Records : document_description , document_id , template_id , other_details , document_name", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "distinct template type descriptions for the templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "return the different #descriptions for templates# that have been used in a #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "documents : other_details (None), document_id (3, 33930, 3540024), template_id (1, 1, 8), document_description (\"k\", \"f\", \"h\"), document_name (\"Do not panic\", \"Understanding DB\", \"A history of Arts\") | paragraphs : other_details (None), paragraph_text (\"Palestinian Territory\", \"Fiji\", \"Korea\"), paragraph_id (946335436, 7, 280120913), document_id (3, 50123, 3830) | Template_Types_Reference : template_type_description (\"Paper\", \"Book\", \"Book\"), template_type_code (\"BK\", \"CV\", \"CV\") | templates : date_effective_from (\"1979-10-20 21:23:20\", \"2002-08-25 13:26:23\", \"2002-03-02 14:39:49\"), version_number (7, 3, 2), template_id (19, 0, 6), template_details (\"\"), date_effective_to (\"1979-11-04 08:58:39\", \"1979-11-04 08:58:39\", \"2006-02-06 23:52:04\"), template_type_code (\"BK\", \"AD\", \"CV\") | Type_Templates : template_type_description (\"Paper\", \"Book\", \"Book\"), template_type_code (\"BK\", \"CV\", \"CV\")", + "schema_without_content": "documents : other_details , document_id , template_id , document_description , document_name | paragraphs : other_details , paragraph_text , paragraph_id , document_id | Template_Types_Reference : template_type_description , template_type_code | templates : date_effective_from , version_number , template_id , template_details , date_effective_to , template_type_code | Type_Templates : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "descriptions for templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "return the different #descriptions for templates# that have been used in a #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "Forms : template_details (\"\"), date_effective_to (\"1995-09-19 22:27:48\", \"1979-11-04 08:58:39\", \"1974-09-14 06:34:39\"), template_id (10, 1, 4), template_type_code (\"AD\", \"AD\", \"PPT\"), version_number (9, 0, 8), date_effective_from (\"2010-09-24 01:15:11\", \"2005-11-12 07:09:48\", \"2003-06-05 04:03:45\") | Drafts : template_details (\"\"), date_effective_to (\"1995-09-19 22:27:48\", \"1979-11-04 08:58:39\", \"1974-09-14 06:34:39\"), template_id (10, 1, 4), template_type_code (\"AD\", \"AD\", \"PPT\"), version_number (9, 0, 8), date_effective_from (\"2010-09-24 01:15:11\", \"2005-11-12 07:09:48\", \"2003-06-05 04:03:45\") | ref_template_types : template_type_description (\"Advertisement\", \"Presentation\", \"Book\"), template_type_code (\"CV\", \"PPT\", \"PPT\") | documents : document_name (\"Robbin CV\", \"Summer Show\", \"Introduction of OS\"), document_id (33930, 0, 76), template_id (22, 7, 8), document_description (\"z\", \"f\", \"h\"), other_details (None) | paragraphs : other_details (None), document_id (33930, 651512, 3540024), paragraph_id (765713812, 16615, 3708), paragraph_text (\"Somalia\", \"Micronesia\", \"Japan\")", + "schema_without_content": "Forms : template_details , date_effective_to , template_id , template_type_code , version_number , date_effective_from | Drafts : template_details , date_effective_to , template_id , template_type_code , version_number , date_effective_from | ref_template_types : template_type_description , template_type_code | documents : document_name , document_id , template_id , document_description , other_details | paragraphs : other_details , document_id , paragraph_id , paragraph_text", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "descriptions for templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "return the different #descriptions for templates# that have been used in a #document# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select distinct t1.template_type_description from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code join documents as t3 on t2.template_id = t3.template_id", + "schema_with_content": "Records : document_id (33930, 3, 0), document_name (\"How to read a book\", \"A history of Arts\", \"A history of Arts\"), other_details (None), template_id (20, 10, 20), document_description (\"h\", \"r\", \"h\") | ref_template_types : template_type_description (\"Paper\", \"Book\", \"Paper\"), template_type_code (\"PPT\", \"CV\", \"CV\") | templates : date_effective_to (\"2001-04-18 09:29:52\", \"2000-10-22 11:57:12\", \"1989-11-24 19:06:06\"), template_type_code (\"AD\", \"CV\", \"PPT\"), version_number (1, 6, 5), date_effective_from (\"2008-08-01 13:57:26\", \"2008-08-01 13:57:26\", \"2005-11-12 07:09:48\"), template_id (15, 21, 24), template_details (\"\") | paragraphs : other_details (None), document_id (16514113, 3, 3540024), paragraph_id (9, 7, 9946), paragraph_text (\"Korea\", \"Somalia\", \"Korea\") | Files : document_id (33930, 3, 0), document_name (\"How to read a book\", \"A history of Arts\", \"A history of Arts\"), other_details (None), template_id (20, 10, 20), document_description (\"h\", \"r\", \"h\")", + "schema_without_content": "Records : document_id , document_name , other_details , template_id , document_description | ref_template_types : template_type_description , template_type_code | templates : date_effective_to , template_type_code , version_number , date_effective_from , template_id , template_details | paragraphs : other_details , document_id , paragraph_id , paragraph_text | Files : document_id , document_name , other_details , template_id , document_description", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "descriptions for templates": "Ref_Template_Types.Template_Type_Description", + "document": "Documents" + } + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.template_id from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code where t1.template_type_description = \"Presentation\"", + "schema_with_content": "documents : document_id (50123, 651512, 82), template_id (22, 11, 22), document_name (\"How Google people work\", \"Learning French\", \"How to write a CV\"), other_details (None), document_description (\"b\", \"r\", \"u\") | paragraphs : other_details (None), paragraph_id (241, 3708, 9946), document_id (3830, 2394, 2394), paragraph_text (\"Fiji\", \"Korea\", \"Micronesia\") | templates : template_details (\"\"), template_id (25, 21, 11), date_effective_to (\"1980-05-07 12:15:47\", \"1992-05-02 20:06:11\", \"1974-09-14 06:34:39\"), date_effective_from (\"2010-09-24 01:15:11\", \"2005-11-12 07:09:48\", \"2002-08-25 13:26:23\"), version_number (9, 6, 0), template_type_code (\"PPT\", \"CV\", \"BK\") | Template_Types_Reference : template_type_description (\"CV\", \"Presentation\", \"Presentation\"), template_type_code (\"AD\", \"BK\", \"PPT\") | Type_Templates : template_type_description (\"CV\", \"Presentation\", \"Presentation\"), template_type_code (\"AD\", \"BK\", \"PPT\")", + "schema_without_content": "documents : document_id , template_id , document_name , other_details , document_description | paragraphs : other_details , paragraph_id , document_id , paragraph_text | templates : template_details , template_id , date_effective_to , date_effective_from , version_number , template_type_code | Template_Types_Reference : template_type_description , template_type_code | Type_Templates : template_type_description , template_type_code", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "template ids with template type description": "Templates.Template_ID" + } + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.template_id from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code where t1.template_type_description = \"Presentation\"", + "schema_with_content": "Drafts : template_type_code (\"AD\", \"BK\", \"AD\"), template_details (\"\"), version_number (5, 6, 0), template_id (16, 20, 14), date_effective_to (\"1979-11-04 08:58:39\", \"1999-07-08 03:31:04\", \"2008-08-08 18:36:43\"), date_effective_from (\"2005-11-12 07:09:48\", \"1986-12-09 14:51:36\", \"1975-05-20 22:51:19\") | paragraphs : document_id (651512, 2394, 651512), other_details (None), paragraph_text (\"Ukraine\", \"Senegal\", \"Micronesia\"), paragraph_id (571212310, 243399026, 241) | ref_template_types : template_type_code (\"CV\", \"PP\", \"PPT\"), template_type_description (\"Book\", \"CV\", \"Presentation\") | Forms : template_type_code (\"AD\", \"BK\", \"AD\"), template_details (\"\"), version_number (5, 6, 0), template_id (16, 20, 14), date_effective_to (\"1979-11-04 08:58:39\", \"1999-07-08 03:31:04\", \"2008-08-08 18:36:43\"), date_effective_from (\"2005-11-12 07:09:48\", \"1986-12-09 14:51:36\", \"1975-05-20 22:51:19\") | documents : document_id (2394, 0, 16514113), other_details (None), template_id (8, 1, 22), document_description (\"b\", \"r\", \"u\"), document_name (\"Palm reading\", \"Understanding DB\", \"How to write a CV\")", + "schema_without_content": "Drafts : template_type_code , template_details , version_number , template_id , date_effective_to , date_effective_from | paragraphs : document_id , other_details , paragraph_text , paragraph_id | ref_template_types : template_type_code , template_type_description | Forms : template_type_code , template_details , version_number , template_id , date_effective_to , date_effective_from | documents : document_id , other_details , template_id , document_description , document_name", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "template ids with template type description": "Templates.Template_ID" + } + }, + { + "question": "return the #ids# corresponding to #templates with the description# 'presentation'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.template_id from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code where t1.template_type_description = \"Presentation\"", + "schema_with_content": "paragraphs : paragraph_id (510442723, 9, 9), paragraph_text (\"UK\", \"Ireland\", \"Indonesia\"), other_details (None), document_id (3830, 3, 385906526) | Template_Types_Reference : template_type_description (\"Book\", \"Presentation\", \"Paper\"), template_type_code (\"PPT\", \"AD\", \"BK\") | templates : date_effective_from (\"2012-04-05 07:11:42\", \"1986-12-09 14:51:36\", \"2002-03-02 14:39:49\"), template_details (\"\"), template_type_code (\"AD\", \"AD\", \"BK\"), version_number (4, 8, 8), template_id (22, 11, 25), date_effective_to (\"1992-05-02 20:06:11\", \"2001-04-18 09:29:52\", \"1979-11-04 08:58:39\") | Type_Templates : template_type_description (\"Book\", \"Presentation\", \"Paper\"), template_type_code (\"PPT\", \"AD\", \"BK\") | documents : document_name (\"About Korea\", \"Data base\", \"Palm reading\"), document_description (\"y\", \"k\", \"w\"), document_id (651512, 82, 3830), template_id (1, 14, 7), other_details (None)", + "schema_without_content": "paragraphs : paragraph_id , paragraph_text , other_details , document_id | Template_Types_Reference : template_type_description , template_type_code | templates : date_effective_from , template_details , template_type_code , version_number , template_id , date_effective_to | Type_Templates : template_type_description , template_type_code | documents : document_name , document_description , document_id , template_id , other_details", + "extra_map": null, + "extra_table_map": { + "ref_template_types": [ + "Template_Types_Reference", + "Type_Templates" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ids": "Templates.Template_ID", + "templates with the description": "Ref_Template_Types.Template_Type_Description" + } + }, + { + "question": "return the #ids# corresponding to #templates with the description# 'presentation'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t2.template_id from ref_template_types as t1 join templates as t2 on t1.template_type_code = t2.template_type_code where t1.template_type_description = \"Presentation\"", + "schema_with_content": "documents : document_name (\"Data base\", \"How to read a book\", \"How to read a book\"), document_id (385906526, 50123, 80), template_id (8, 10, 4), other_details (None), document_description (\"w\", \"z\", \"b\") | ref_template_types : template_type_description (\"CV\", \"Presentation\", \"Paper\"), template_type_code (\"BK\", \"PP\", \"AD\") | Forms : template_id (11, 14, 21), date_effective_from (\"1999-06-21 11:10:30\", \"1975-05-20 22:51:19\", \"1983-07-16 21:16:16\"), template_details (\"\"), template_type_code (\"BK\", \"AD\", \"CV\"), version_number (4, 0, 4), date_effective_to (\"1998-05-12 12:51:29\", \"2007-06-06 06:18:53\", \"1973-01-12 14:13:34\") | Drafts : template_id (11, 14, 21), date_effective_from (\"1999-06-21 11:10:30\", \"1975-05-20 22:51:19\", \"1983-07-16 21:16:16\"), template_details (\"\"), template_type_code (\"BK\", \"AD\", \"CV\"), version_number (4, 0, 4), date_effective_to (\"1998-05-12 12:51:29\", \"2007-06-06 06:18:53\", \"1973-01-12 14:13:34\") | paragraphs : paragraph_id (241, 65, 510442723), paragraph_text (\"Fiji\", \"Korea\", \"Jersey\"), other_details (None), document_id (3540024, 651512, 651512)", + "schema_without_content": "documents : document_name , document_id , template_id , other_details , document_description | ref_template_types : template_type_description , template_type_code | Forms : template_id , date_effective_from , template_details , template_type_code , version_number , date_effective_to | Drafts : template_id , date_effective_from , template_details , template_type_code , version_number , date_effective_to | paragraphs : paragraph_id , paragraph_text , other_details , document_id", + "extra_map": null, + "extra_table_map": { + "templates": [ + "Forms", + "Drafts" + ] + }, + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "Templates.Template_ID", + "templates with the description": "Ref_Template_Types.Template_Type_Description" + } + }, + { + "question": "how many #paragraphs for the document with name# 'summer show'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Summer Show'", + "schema_with_content": "ref_template_types : template_type_description (\"Presentation\", \"Book\", \"Paper\"), template_type_code (\"PP\", \"PP\", \"PP\") | Records : document_name (\"A history of Arts\", \"Palm reading\", \"Introduction of OS\"), document_description (\"z\", \"n\", \"u\"), other_details (None), template_id (6, 8, 4), document_id (801801, 3, 3830) | templates : date_effective_to (\"1973-01-12 14:13:34\", \"1975-07-16 04:52:10\", \"1993-03-24 14:30:23\"), date_effective_from (\"2008-08-01 13:57:26\", \"2010-09-24 01:15:11\", \"1983-07-16 21:16:16\"), version_number (5, 6, 9), template_id (22, 21, 23), template_details (\"\"), template_type_code (\"PP\", \"PPT\", \"AD\") | Files : document_name (\"A history of Arts\", \"Palm reading\", \"Introduction of OS\"), document_description (\"z\", \"n\", \"u\"), other_details (None), template_id (6, 8, 4), document_id (801801, 3, 3830) | paragraphs : paragraph_id (3708, 571212310, 16615), document_id (385906526, 50123, 16514113), other_details (None), paragraph_text (\"Micronesia\", \"Ireland\", \"Indonesia\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Records : document_name , document_description , other_details , template_id , document_id | templates : date_effective_to , date_effective_from , version_number , template_id , template_details , template_type_code | Files : document_name , document_description , other_details , template_id , document_id | paragraphs : paragraph_id , document_id , other_details , paragraph_text", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "paragraphs for the document with name": "Paragraphs" + } + }, + { + "question": "how many #paragraphs for the document with name# 'summer show'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Summer Show'", + "schema_with_content": "templates : version_number (7, 7, 6), date_effective_to (\"1975-07-16 04:52:10\", \"1998-05-12 12:51:29\", \"1993-03-24 14:30:23\"), template_id (7, 18, 22), date_effective_from (\"2005-02-20 00:31:34\", \"2008-08-01 13:57:26\", \"2003-06-05 04:03:45\"), template_type_code (\"PPT\", \"PPT\", \"AD\"), template_details (\"\") | Passages : document_id (33930, 2394, 50123), paragraph_text (\"Ireland\", \"Somalia\", \"Micronesia\"), paragraph_id (7, 1104059, 1104059), other_details (None) | ref_template_types : template_type_description (\"Presentation\", \"Book\", \"Book\"), template_type_code (\"CV\", \"PPT\", \"BK\") | documents : template_id (22, 1, 10), document_id (80, 1, 76), document_name (\"Welcome to NY\", \"Do not panic\", \"How to write a CV\"), document_description (\"u\", \"n\", \"w\"), other_details (None) | Sections : document_id (33930, 2394, 50123), paragraph_text (\"Ireland\", \"Somalia\", \"Micronesia\"), paragraph_id (7, 1104059, 1104059), other_details (None)", + "schema_without_content": "templates : version_number , date_effective_to , template_id , date_effective_from , template_type_code , template_details | Passages : document_id , paragraph_text , paragraph_id , other_details | ref_template_types : template_type_description , template_type_code | documents : template_id , document_id , document_name , document_description , other_details | Sections : document_id , paragraph_text , paragraph_id , other_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "paragraphs for the document with name": "Paragraphs" + } + }, + { + "question": "count the number of #paragraphs in the document named# 'summer show'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Summer Show'", + "schema_with_content": "Files : document_description (\"n\", \"y\", \"f\"), template_id (1, 25, 11), document_name (\"How Google people work\", \"Understanding DB\", \"Understanding DB\"), other_details (None), document_id (801801, 2394, 50123) | ref_template_types : template_type_description (\"CV\", \"Presentation\", \"CV\"), template_type_code (\"CV\", \"PPT\", \"PPT\") | paragraphs : paragraph_text (\"Korea\", \"Fiji\", \"Senegal\"), other_details (None), document_id (3540024, 50123, 16514113), paragraph_id (608931827, 571212310, 946335436) | Records : document_description (\"n\", \"y\", \"f\"), template_id (1, 25, 11), document_name (\"How Google people work\", \"Understanding DB\", \"Understanding DB\"), other_details (None), document_id (801801, 2394, 50123) | templates : template_type_code (\"CV\", \"PP\", \"BK\"), template_id (25, 8, 20), date_effective_from (\"1999-06-21 11:10:30\", \"1975-05-20 22:51:19\", \"2010-09-24 01:15:11\"), template_details (\"\"), date_effective_to (\"1973-01-12 14:13:34\", \"1979-11-04 08:58:39\", \"2006-02-06 23:52:04\"), version_number (3, 4, 0)", + "schema_without_content": "Files : document_description , template_id , document_name , other_details , document_id | ref_template_types : template_type_description , template_type_code | paragraphs : paragraph_text , other_details , document_id , paragraph_id | Records : document_description , template_id , document_name , other_details , document_id | templates : template_type_code , template_id , date_effective_from , template_details , date_effective_to , version_number", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "paragraphs in the document named": "Paragraphs" + } + }, + { + "question": "count the number of #paragraphs in the document named# 'summer show'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Summer Show'", + "schema_with_content": "ref_template_types : template_type_description (\"Presentation\", \"Advertisement\", \"Advertisement\"), template_type_code (\"BK\", \"AD\", \"PPT\") | Passages : paragraph_id (243399026, 9946, 765713812), paragraph_text (\"Papua New Guinea\", \"Japan\", \"Papua New Guinea\"), document_id (16514113, 651512, 3830), other_details (None) | templates : template_details (\"\"), template_id (7, 18, 10), date_effective_to (\"2006-02-06 23:52:04\", \"1979-11-04 08:58:39\", \"1980-05-07 12:15:47\"), date_effective_from (\"1996-02-04 11:27:24\", \"2010-09-24 01:15:11\", \"2008-08-01 13:57:26\"), template_type_code (\"PP\", \"BK\", \"PPT\"), version_number (1, 6, 5) | Sections : paragraph_id (243399026, 9946, 765713812), paragraph_text (\"Papua New Guinea\", \"Japan\", \"Papua New Guinea\"), document_id (16514113, 651512, 3830), other_details (None) | documents : document_id (651512, 801801, 16514113), document_name (\"Understanding DB\", \"Welcome to NY\", \"Customer reviews\"), other_details (None), document_description (\"u\", \"z\", \"f\"), template_id (22, 25, 22)", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Passages : paragraph_id , paragraph_text , document_id , other_details | templates : template_details , template_id , date_effective_to , date_effective_from , template_type_code , version_number | Sections : paragraph_id , paragraph_text , document_id , other_details | documents : document_id , document_name , other_details , document_description , template_id", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "paragraphs in the document named": "Paragraphs" + } + }, + { + "question": "show all #paragraph ids# and texts for the document with name 'welcome to ny'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_id, t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Welcome to NY'", + "schema_with_content": "ref_template_types : template_type_code (\"CV\", \"BK\", \"PPT\"), template_type_description (\"CV\", \"CV\", \"Paper\") | Records : document_id (3830, 801801, 50123), other_details (None), document_name (\"How to read a book\", \"Understanding DB\", \"Robbin CV\"), document_description (\"n\", \"r\", \"n\"), template_id (10, 22, 6) | templates : template_id (11, 14, 8), version_number (7, 7, 0), template_type_code (\"AD\", \"CV\", \"BK\"), template_details (\"\"), date_effective_to (\"2006-02-06 23:52:04\", \"1995-09-19 22:27:48\", \"1980-05-07 12:15:47\"), date_effective_from (\"1993-10-07 02:33:04\", \"1979-10-20 21:23:20\", \"1975-10-20 02:28:58\") | paragraphs : other_details (None), document_id (3540024, 33930, 80), paragraph_text (\"Somalia\", \"Somalia\", \"Japan\"), paragraph_id (280120913, 241, 1104059) | Files : document_id (3830, 801801, 50123), other_details (None), document_name (\"How to read a book\", \"Understanding DB\", \"Robbin CV\"), document_description (\"n\", \"r\", \"n\"), template_id (10, 22, 6)", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | Records : document_id , other_details , document_name , document_description , template_id | templates : template_id , version_number , template_type_code , template_details , date_effective_to , date_effective_from | paragraphs : other_details , document_id , paragraph_text , paragraph_id | Files : document_id , other_details , document_name , document_description , template_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "paragraph ids": "Paragraphs.Paragraph_ID", + "paragraph texts": "Paragraphs.Paragraph_Text", + "document name": "Documents.Document_Name" + } + }, + { + "question": "show all #paragraph ids# and texts for the document with name 'welcome to ny'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_id, t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Welcome to NY'", + "schema_with_content": "documents : template_id (10, 25, 4), other_details (None), document_name (\"Summer Show\", \"Robbin CV\", \"About Korea\"), document_id (2394, 80, 50123), document_description (\"k\", \"k\", \"h\") | ref_template_types : template_type_description (\"CV\", \"Paper\", \"CV\"), template_type_code (\"PP\", \"AD\", \"PPT\") | Sections : paragraph_id (3708, 9946, 765713812), document_id (33930, 50123, 33930), paragraph_text (\"Ireland\", \"Brazil\", \"Brazil\"), other_details (None) | templates : date_effective_from (\"1996-02-04 11:27:24\", \"2005-02-20 00:31:34\", \"1975-10-20 02:28:58\"), date_effective_to (\"1999-07-08 03:31:04\", \"2008-08-08 18:36:43\", \"2006-02-06 23:52:04\"), template_type_code (\"BK\", \"BK\", \"CV\"), template_details (\"\"), template_id (7, 14, 16), version_number (7, 1, 2) | Passages : paragraph_id (3708, 9946, 765713812), document_id (33930, 50123, 33930), paragraph_text (\"Ireland\", \"Brazil\", \"Brazil\"), other_details (None)", + "schema_without_content": "documents : template_id , other_details , document_name , document_id , document_description | ref_template_types : template_type_description , template_type_code | Sections : paragraph_id , document_id , paragraph_text , other_details | templates : date_effective_from , date_effective_to , template_type_code , template_details , template_id , version_number | Passages : paragraph_id , document_id , paragraph_text , other_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "paragraph ids": "Paragraphs.Paragraph_ID", + "paragraph texts": "Paragraphs.Paragraph_Text", + "document name": "Documents.Document_Name" + } + }, + { + "question": "what are the #ids# and #texts of paragraphs in the document titled# 'welcome to ny'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_id, t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Welcome to NY'", + "schema_with_content": "ref_template_types : template_type_description (\"Book\", \"CV\", \"Paper\"), template_type_code (\"PPT\", \"BK\", \"PP\") | paragraphs : document_id (80, 50123, 16514113), other_details (None), paragraph_id (765713812, 765713812, 1104059), paragraph_text (\"Japan\", \"Ireland\", \"Senegal\") | templates : date_effective_to (\"2007-06-06 06:18:53\", \"1974-09-14 06:34:39\", \"2006-02-06 23:52:04\"), version_number (2, 3, 6), template_id (22, 4, 24), template_details (\"\"), date_effective_from (\"2012-04-05 07:11:42\", \"1997-04-17 08:29:44\", \"1986-12-09 14:51:36\"), template_type_code (\"PP\", \"AD\", \"BK\") | Records : document_id (76, 801801, 3540024), other_details (None), document_description (\"u\", \"k\", \"h\"), document_name (\"About Korea\", \"Robbin CV\", \"About Korea\"), template_id (10, 4, 14) | Files : document_id (76, 801801, 3540024), other_details (None), document_description (\"u\", \"k\", \"h\"), document_name (\"About Korea\", \"Robbin CV\", \"About Korea\"), template_id (10, 4, 14)", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | paragraphs : document_id , other_details , paragraph_id , paragraph_text | templates : date_effective_to , version_number , template_id , template_details , date_effective_from , template_type_code | Records : document_id , other_details , document_description , document_name , template_id | Files : document_id , other_details , document_description , document_name , template_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "Paragraphs.Paragraph_ID", + "texts of paragraphs in the document titled": "Paragraphs.Paragraph_Text" + } + }, + { + "question": "what are the #ids# and #texts of paragraphs in the document titled# 'welcome to ny'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_id, t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'Welcome to NY'", + "schema_with_content": "documents : document_description (\"y\", \"h\", \"w\"), template_id (1, 25, 1), other_details (None), document_id (76, 50123, 16514113), document_name (\"Welcome to NY\", \"Do not panic\", \"A history of Arts\") | Passages : other_details (None), paragraph_id (571212310, 280120913, 241), document_id (2394, 3830, 385906526), paragraph_text (\"Japan\", \"Jersey\", \"Brazil\") | templates : version_number (4, 4, 4), date_effective_from (\"1996-02-04 11:27:24\", \"1997-04-17 08:29:44\", \"1986-11-14 12:20:18\"), template_details (\"\"), template_id (22, 19, 24), template_type_code (\"BK\", \"PP\", \"PPT\"), date_effective_to (\"2001-04-18 09:29:52\", \"1989-11-24 19:06:06\", \"2015-09-06 01:08:44\") | ref_template_types : template_type_description (\"Book\", \"Presentation\", \"Advertisement\"), template_type_code (\"CV\", \"BK\", \"AD\") | Sections : other_details (None), paragraph_id (571212310, 280120913, 241), document_id (2394, 3830, 385906526), paragraph_text (\"Japan\", \"Jersey\", \"Brazil\")", + "schema_without_content": "documents : document_description , template_id , other_details , document_id , document_name | Passages : other_details , paragraph_id , document_id , paragraph_text | templates : version_number , date_effective_from , template_details , template_id , template_type_code , date_effective_to | ref_template_types : template_type_description , template_type_code | Sections : other_details , paragraph_id , document_id , paragraph_text", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "ids": "Paragraphs.Paragraph_ID", + "texts of paragraphs in the document titled": "Paragraphs.Paragraph_Text" + } + }, + { + "question": "show all #paragraph texts for the document# \"customer reviews\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = \"Customer reviews\"", + "schema_with_content": "templates : date_effective_to (\"2008-08-08 18:36:43\", \"2006-02-06 23:52:04\", \"1994-12-07 13:26:23\"), template_id (15, 14, 21), version_number (8, 2, 2), date_effective_from (\"1975-10-20 02:28:58\", \"1993-10-07 02:33:04\", \"1979-10-20 21:23:20\"), template_type_code (\"BK\", \"AD\", \"CV\"), template_details (\"\") | Files : template_id (11, 7, 8), document_description (\"n\", \"r\", \"z\"), document_name (\"Introduction of OS\", \"Data base\", \"Summer Show\"), document_id (2394, 33930, 2394), other_details (None) | paragraphs : other_details (None), document_id (16514113, 3, 2394), paragraph_id (243399026, 7, 571212310), paragraph_text (\"Ireland\", \"Ireland\", \"Senegal\") | ref_template_types : template_type_code (\"CV\", \"BK\", \"AD\"), template_type_description (\"Advertisement\", \"Paper\", \"Book\") | Records : template_id (11, 7, 8), document_description (\"n\", \"r\", \"z\"), document_name (\"Introduction of OS\", \"Data base\", \"Summer Show\"), document_id (2394, 33930, 2394), other_details (None)", + "schema_without_content": "templates : date_effective_to , template_id , version_number , date_effective_from , template_type_code , template_details | Files : template_id , document_description , document_name , document_id , other_details | paragraphs : other_details , document_id , paragraph_id , paragraph_text | ref_template_types : template_type_code , template_type_description | Records : template_id , document_description , document_name , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "paragraph texts for the document": "Paragraphs.Paragraph_Text" + } + }, + { + "question": "show all #paragraph texts for the document# \"customer reviews\".", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = \"Customer reviews\"", + "schema_with_content": "documents : document_id (50123, 3, 82), document_name (\"How Google people work\", \"Data base\", \"Do not panic\"), document_description (\"u\", \"u\", \"w\"), template_id (7, 7, 6), other_details (None) | ref_template_types : template_type_description (\"Advertisement\", \"Advertisement\", \"Advertisement\"), template_type_code (\"BK\", \"PP\", \"PPT\") | templates : template_id (15, 9, 10), date_effective_from (\"1983-07-16 21:16:16\", \"1986-12-09 14:51:36\", \"2012-04-05 07:11:42\"), date_effective_to (\"1975-07-16 04:52:10\", \"1995-09-19 22:27:48\", \"1974-09-14 06:34:39\"), version_number (5, 6, 6), template_details (\"\"), template_type_code (\"BK\", \"PPT\", \"AD\") | Sections : paragraph_id (243399026, 571212310, 510442723), document_id (16514113, 16514113, 3), other_details (None), paragraph_text (\"Senegal\", \"Jersey\", \"Ireland\") | Passages : paragraph_id (243399026, 571212310, 510442723), document_id (16514113, 16514113, 3), other_details (None), paragraph_text (\"Senegal\", \"Jersey\", \"Ireland\")", + "schema_without_content": "documents : document_id , document_name , document_description , template_id , other_details | ref_template_types : template_type_description , template_type_code | templates : template_id , date_effective_from , date_effective_to , version_number , template_details , template_type_code | Sections : paragraph_id , document_id , other_details , paragraph_text | Passages : paragraph_id , document_id , other_details , paragraph_text", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "paragraph texts for the document": "Paragraphs.Paragraph_Text" + } + }, + { + "question": "what are the #paragraph texts# for the document with the name 'customer reviews'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = \"Customer reviews\"", + "schema_with_content": "ref_template_types : template_type_description (\"Book\", \"Paper\", \"CV\"), template_type_code (\"CV\", \"PPT\", \"BK\") | Files : document_description (\"u\", \"b\", \"z\"), document_name (\"How Google people work\", \"Introduction of OS\", \"How Google people work\"), template_id (8, 11, 10), other_details (None), document_id (50123, 801801, 76) | Records : document_description (\"u\", \"b\", \"z\"), document_name (\"How Google people work\", \"Introduction of OS\", \"How Google people work\"), template_id (8, 11, 10), other_details (None), document_id (50123, 801801, 76) | paragraphs : document_id (16514113, 50123, 3540024), other_details (None), paragraph_text (\"Senegal\", \"Fiji\", \"Palestinian Territory\"), paragraph_id (765713812, 9, 241) | templates : version_number (0, 8, 5), date_effective_from (\"1999-06-21 11:10:30\", \"2002-08-25 13:26:23\", \"2005-02-20 00:31:34\"), template_id (10, 7, 6), template_details (\"\"), date_effective_to (\"1992-05-02 20:06:11\", \"1993-03-24 14:30:23\", \"2008-08-08 18:36:43\"), template_type_code (\"AD\", \"PP\", \"PP\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Files : document_description , document_name , template_id , other_details , document_id | Records : document_description , document_name , template_id , other_details , document_id | paragraphs : document_id , other_details , paragraph_text , paragraph_id | templates : version_number , date_effective_from , template_id , template_details , date_effective_to , template_type_code", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "paragraph texts": "Paragraphs.Paragraph_Text", + "document name": "Documents.Document_Name" + } + }, + { + "question": "what are the #paragraph texts# for the document with the name 'customer reviews'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = \"Customer reviews\"", + "schema_with_content": "templates : version_number (9, 1, 1), template_details (\"\"), date_effective_to (\"1979-11-04 08:58:39\", \"1992-05-02 20:06:11\", \"1989-11-24 19:06:06\"), template_id (21, 1, 25), template_type_code (\"BK\", \"BK\", \"CV\"), date_effective_from (\"2012-04-05 07:11:42\", \"1993-10-07 02:33:04\", \"2008-08-01 13:57:26\") | documents : document_id (33930, 80, 33930), document_description (\"b\", \"y\", \"b\"), template_id (6, 1, 21), other_details (None), document_name (\"Introduction of OS\", \"Summer Show\", \"How Google people work\") | Passages : paragraph_text (\"Brazil\", \"Fiji\", \"Papua New Guinea\"), paragraph_id (65, 241, 9946), document_id (80, 385906526, 50123), other_details (None) | ref_template_types : template_type_description (\"Paper\", \"Advertisement\", \"CV\"), template_type_code (\"PP\", \"PP\", \"AD\") | Sections : paragraph_text (\"Brazil\", \"Fiji\", \"Papua New Guinea\"), paragraph_id (65, 241, 9946), document_id (80, 385906526, 50123), other_details (None)", + "schema_without_content": "templates : version_number , template_details , date_effective_to , template_id , template_type_code , date_effective_from | documents : document_id , document_description , template_id , other_details , document_name | Passages : paragraph_text , paragraph_id , document_id , other_details | ref_template_types : template_type_description , template_type_code | Sections : paragraph_text , paragraph_id , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "paragraph texts": "Paragraphs.Paragraph_Text", + "document name": "Documents.Document_Name" + } + }, + { + "question": "show all #document ids# and the #number of paragraphs# in each document. order by document id.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id, count(*) from paragraphs group by document_id order by document_id", + "schema_with_content": "templates : template_type_code (\"CV\", \"PP\", \"AD\"), date_effective_to (\"2000-10-22 11:57:12\", \"1993-03-24 14:30:23\", \"1998-05-12 12:51:29\"), template_details (\"\"), date_effective_from (\"2008-08-01 13:57:26\", \"1975-10-20 02:28:58\", \"1996-02-04 11:27:24\"), version_number (9, 7, 4), template_id (8, 21, 8) | documents : document_name (\"A history of Arts\", \"Robbin CV\", \"Do not panic\"), template_id (10, 8, 10), document_id (801801, 3830, 50123), document_description (\"b\", \"z\", \"u\"), other_details (None) | Passages : document_id (3540024, 80, 3540024), paragraph_id (16615, 9946, 1104059), other_details (None), paragraph_text (\"Korea\", \"Brazil\", \"Ireland\") | ref_template_types : template_type_description (\"Presentation\", \"Advertisement\", \"Paper\"), template_type_code (\"CV\", \"PPT\", \"PPT\") | Sections : document_id (3540024, 80, 3540024), paragraph_id (16615, 9946, 1104059), other_details (None), paragraph_text (\"Korea\", \"Brazil\", \"Ireland\")", + "schema_without_content": "templates : template_type_code , date_effective_to , template_details , date_effective_from , version_number , template_id | documents : document_name , template_id , document_id , document_description , other_details | Passages : document_id , paragraph_id , other_details , paragraph_text | ref_template_types : template_type_description , template_type_code | Sections : document_id , paragraph_id , other_details , paragraph_text", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document ids": "Paragraphs.Document_ID", + "number of paragraphs": "Paragraphs.Paragraph_ID" + } + }, + { + "question": "return the different #document ids# along with the #number of paragraphs# corresponding to each, ordered by id.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id, count(*) from paragraphs group by document_id order by document_id", + "schema_with_content": "ref_template_types : template_type_description (\"CV\", \"CV\", \"Presentation\"), template_type_code (\"AD\", \"PP\", \"CV\") | Sections : document_id (33930, 651512, 50123), paragraph_id (16615, 280120913, 3708), other_details (None), paragraph_text (\"Korea\", \"Indonesia\", \"Indonesia\") | Passages : document_id (33930, 651512, 50123), paragraph_id (16615, 280120913, 3708), other_details (None), paragraph_text (\"Korea\", \"Indonesia\", \"Indonesia\") | documents : document_description (\"z\", \"f\", \"h\"), template_id (14, 14, 20), document_name (\"Palm reading\", \"How Google people work\", \"Welcome to NY\"), other_details (None), document_id (50123, 0, 801801) | templates : version_number (0, 1, 1), template_id (7, 0, 18), date_effective_to (\"1994-12-07 13:26:23\", \"2001-04-18 09:29:52\", \"2015-09-06 01:08:44\"), template_type_code (\"BK\", \"BK\", \"BK\"), template_details (\"\"), date_effective_from (\"2008-08-01 13:57:26\", \"1975-05-20 22:51:19\", \"2005-02-20 00:31:34\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Sections : document_id , paragraph_id , other_details , paragraph_text | Passages : document_id , paragraph_id , other_details , paragraph_text | documents : document_description , template_id , document_name , other_details , document_id | templates : version_number , template_id , date_effective_to , template_type_code , template_details , date_effective_from", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document ids": "Paragraphs.Document_ID", + "number of paragraphs": "Paragraphs.Paragraph_ID" + } + }, + { + "question": "show all #document# ids, names and the n #umber of paragraphs in each document.# ", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name, count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id", + "schema_with_content": "templates : date_effective_from (\"1975-05-20 22:51:19\", \"2008-08-01 13:57:26\", \"2003-06-05 04:03:45\"), template_type_code (\"BK\", \"BK\", \"BK\"), template_id (16, 11, 22), version_number (3, 5, 5), date_effective_to (\"1993-03-24 14:30:23\", \"2008-08-08 18:36:43\", \"2015-09-06 01:08:44\"), template_details (\"\") | Records : document_description (\"y\", \"z\", \"b\"), document_name (\"Welcome to NY\", \"About Korea\", \"How to read a book\"), template_id (22, 7, 21), document_id (651512, 50123, 50123), other_details (None) | paragraphs : paragraph_text (\"Fiji\", \"Senegal\", \"Indonesia\"), other_details (None), paragraph_id (241, 9, 243399026), document_id (16514113, 651512, 80) | ref_template_types : template_type_description (\"Advertisement\", \"CV\", \"Paper\"), template_type_code (\"CV\", \"CV\", \"PP\") | Files : document_description (\"y\", \"z\", \"b\"), document_name (\"Welcome to NY\", \"About Korea\", \"How to read a book\"), template_id (22, 7, 21), document_id (651512, 50123, 50123), other_details (None)", + "schema_without_content": "templates : date_effective_from , template_type_code , template_id , version_number , date_effective_to , template_details | Records : document_description , document_name , template_id , document_id , other_details | paragraphs : paragraph_text , other_details , paragraph_id , document_id | ref_template_types : template_type_description , template_type_code | Files : document_description , document_name , template_id , document_id , other_details", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document": "Documents", + "umber of paragraphs in each document.": "Documents", + "document ids": "Documents.Document_ID", + "document names": "Documents.Document_Name", + "number of paragraphs": "Paragraphs.Document_ID" + } + }, + { + "question": "show all #document# ids, names and the n #umber of paragraphs in each document.# ", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name, count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id", + "schema_with_content": "Sections : paragraph_text (\"Papua New Guinea\", \"Jersey\", \"Ukraine\"), paragraph_id (241, 9946, 1104059), document_id (50123, 3830, 3830), other_details (None) | ref_template_types : template_type_code (\"CV\", \"PP\", \"PPT\"), template_type_description (\"Book\", \"Book\", \"CV\") | documents : document_description (\"r\", \"z\", \"w\"), document_name (\"About Korea\", \"Introduction of OS\", \"How Google people work\"), document_id (0, 16514113, 3540024), template_id (10, 10, 1), other_details (None) | Passages : paragraph_text (\"Papua New Guinea\", \"Jersey\", \"Ukraine\"), paragraph_id (241, 9946, 1104059), document_id (50123, 3830, 3830), other_details (None) | templates : date_effective_from (\"2002-08-25 13:26:23\", \"2010-09-24 01:15:11\", \"1996-02-04 11:27:24\"), template_type_code (\"PPT\", \"CV\", \"AD\"), version_number (8, 8, 5), date_effective_to (\"2001-04-18 09:29:52\", \"1993-03-24 14:30:23\", \"2001-04-18 09:29:52\"), template_id (21, 6, 21), template_details (\"\")", + "schema_without_content": "Sections : paragraph_text , paragraph_id , document_id , other_details | ref_template_types : template_type_code , template_type_description | documents : document_description , document_name , document_id , template_id , other_details | Passages : paragraph_text , paragraph_id , document_id , other_details | templates : date_effective_from , template_type_code , version_number , date_effective_to , template_id , template_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document": "Documents", + "umber of paragraphs in each document.": "Documents", + "document ids": "Documents.Document_ID", + "document names": "Documents.Document_Name", + "number of paragraphs": "Paragraphs.Document_ID" + } + }, + { + "question": "what are the #ids# and #names of each document# , as well as the #number of paragraphs# in each?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name, count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id", + "schema_with_content": "paragraphs : paragraph_text (\"Japan\", \"Brazil\", \"Korea\"), paragraph_id (16615, 1104059, 1104059), other_details (None), document_id (50123, 16514113, 16514113) | Records : document_id (82, 3, 3), document_description (\"f\", \"w\", \"w\"), other_details (None), document_name (\"How to write a CV\", \"A history of Arts\", \"Palm reading\"), template_id (7, 11, 7) | templates : version_number (6, 1, 3), template_id (19, 24, 10), template_details (\"\"), template_type_code (\"PPT\", \"AD\", \"PP\"), date_effective_to (\"1973-01-12 14:13:34\", \"2008-01-05 14:19:28\", \"2008-01-05 14:19:28\"), date_effective_from (\"2002-08-25 13:26:23\", \"1993-10-07 02:33:04\", \"1996-02-04 11:27:24\") | ref_template_types : template_type_description (\"Paper\", \"CV\", \"Paper\"), template_type_code (\"CV\", \"PPT\", \"PP\") | Files : document_id (82, 3, 3), document_description (\"f\", \"w\", \"w\"), other_details (None), document_name (\"How to write a CV\", \"A history of Arts\", \"Palm reading\"), template_id (7, 11, 7)", + "schema_without_content": "paragraphs : paragraph_text , paragraph_id , other_details , document_id | Records : document_id , document_description , other_details , document_name , template_id | templates : version_number , template_id , template_details , template_type_code , date_effective_to , date_effective_from | ref_template_types : template_type_description , template_type_code | Files : document_id , document_description , other_details , document_name , template_id", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "Documents.Document_ID", + "names of each document": "Documents.Document_Name", + "number of paragraphs": "Paragraphs.Paragraph_ID" + } + }, + { + "question": "what are the #ids# and #names of each document# , as well as the #number of paragraphs# in each?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name, count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id", + "schema_with_content": "ref_template_types : template_type_code (\"BK\", \"CV\", \"PP\"), template_type_description (\"Presentation\", \"Book\", \"Paper\") | templates : template_type_code (\"PPT\", \"PP\", \"PPT\"), date_effective_from (\"2003-06-05 04:03:45\", \"1975-05-20 22:51:19\", \"2002-03-02 14:39:49\"), version_number (0, 1, 6), template_details (\"\"), date_effective_to (\"1994-12-07 13:26:23\", \"2001-04-18 09:29:52\", \"1980-05-07 12:15:47\"), template_id (1, 22, 21) | Sections : paragraph_text (\"Korea\", \"Jersey\", \"Korea\"), document_id (16514113, 16514113, 3540024), paragraph_id (280120913, 571212310, 241), other_details (None) | documents : document_name (\"Learning French\", \"Welcome to NY\", \"Understanding DB\"), other_details (None), document_description (\"f\", \"h\", \"z\"), template_id (21, 20, 1), document_id (801801, 0, 16514113) | Passages : paragraph_text (\"Korea\", \"Jersey\", \"Korea\"), document_id (16514113, 16514113, 3540024), paragraph_id (280120913, 571212310, 241), other_details (None)", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | templates : template_type_code , date_effective_from , version_number , template_details , date_effective_to , template_id | Sections : paragraph_text , document_id , paragraph_id , other_details | documents : document_name , other_details , document_description , template_id , document_id | Passages : paragraph_text , document_id , paragraph_id , other_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "ids": "Documents.Document_ID", + "names of each document": "Documents.Document_Name", + "number of paragraphs": "Paragraphs.Paragraph_ID" + } + }, + { + "question": "list all #document ids# with at least two #paragraphs# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id having count(*) >= 2", + "schema_with_content": "templates : template_id (14, 25, 18), version_number (7, 9, 4), template_type_code (\"BK\", \"PP\", \"BK\"), date_effective_from (\"2002-08-25 13:26:23\", \"2008-08-01 13:57:26\", \"1984-08-07 13:36:26\"), template_details (\"\"), date_effective_to (\"1976-10-28 10:08:50\", \"2008-08-08 18:36:43\", \"1992-05-02 20:06:11\") | documents : document_id (76, 33930, 1), document_name (\"Learning French\", \"Summer Show\", \"Understanding DB\"), other_details (None), template_id (11, 4, 8), document_description (\"y\", \"r\", \"f\") | Sections : paragraph_text (\"Ukraine\", \"Senegal\", \"Brazil\"), paragraph_id (9, 280120913, 7), document_id (33930, 385906526, 33930), other_details (None) | Passages : paragraph_text (\"Ukraine\", \"Senegal\", \"Brazil\"), paragraph_id (9, 280120913, 7), document_id (33930, 385906526, 33930), other_details (None) | ref_template_types : template_type_code (\"AD\", \"CV\", \"CV\"), template_type_description (\"Paper\", \"Paper\", \"CV\")", + "schema_without_content": "templates : template_id , version_number , template_type_code , date_effective_from , template_details , date_effective_to | documents : document_id , document_name , other_details , template_id , document_description | Sections : paragraph_text , paragraph_id , document_id , other_details | Passages : paragraph_text , paragraph_id , document_id , other_details | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document ids": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "what are the #ids of documents# that have 2 or more #paragraphs# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id having count(*) >= 2", + "schema_with_content": "templates : template_details (\"\"), template_type_code (\"BK\", \"PPT\", \"PPT\"), version_number (0, 1, 2), template_id (23, 0, 7), date_effective_to (\"1995-09-19 22:27:48\", \"1975-07-16 04:52:10\", \"2006-02-06 23:52:04\"), date_effective_from (\"2008-08-01 13:57:26\", \"1983-07-16 21:16:16\", \"1984-08-07 13:36:26\") | Passages : document_id (3540024, 50123, 80), paragraph_text (\"Senegal\", \"Micronesia\", \"Micronesia\"), other_details (None), paragraph_id (946335436, 946335436, 608931827) | documents : document_id (801801, 33930, 82), other_details (None), document_description (\"n\", \"n\", \"r\"), document_name (\"Welcome to NY\", \"About Korea\", \"Summer Show\"), template_id (1, 25, 22) | Sections : document_id (3540024, 50123, 80), paragraph_text (\"Senegal\", \"Micronesia\", \"Micronesia\"), other_details (None), paragraph_id (946335436, 946335436, 608931827) | ref_template_types : template_type_code (\"CV\", \"BK\", \"BK\"), template_type_description (\"Advertisement\", \"Paper\", \"Paper\")", + "schema_without_content": "templates : template_details , template_type_code , version_number , template_id , date_effective_to , date_effective_from | Passages : document_id , paragraph_text , other_details , paragraph_id | documents : document_id , other_details , document_description , document_name , template_id | Sections : document_id , paragraph_text , other_details , paragraph_id | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "ids of documents": "Documents.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "what is the #document id# and name with greatest number of #paragraphs# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id order by count(*) desc limit 1", + "schema_with_content": "Files : template_id (20, 20, 1), document_description (\"n\", \"y\", \"h\"), document_name (\"Data base\", \"Customer reviews\", \"Data base\"), other_details (None), document_id (0, 76, 3540024) | paragraphs : document_id (80, 2394, 33930), other_details (None), paragraph_text (\"Korea\", \"Brazil\", \"Fiji\"), paragraph_id (65, 280120913, 243399026) | Records : template_id (20, 20, 1), document_description (\"n\", \"y\", \"h\"), document_name (\"Data base\", \"Customer reviews\", \"Data base\"), other_details (None), document_id (0, 76, 3540024) | templates : date_effective_to (\"1973-01-12 14:13:34\", \"1989-11-24 19:06:06\", \"1976-10-28 10:08:50\"), template_details (\"\"), date_effective_from (\"2008-08-01 13:57:26\", \"1983-07-16 21:16:16\", \"1999-06-21 11:10:30\"), version_number (9, 8, 3), template_type_code (\"AD\", \"AD\", \"CV\"), template_id (11, 23, 20) | ref_template_types : template_type_code (\"AD\", \"CV\", \"AD\"), template_type_description (\"Paper\", \"Presentation\", \"Advertisement\")", + "schema_without_content": "Files : template_id , document_description , document_name , other_details , document_id | paragraphs : document_id , other_details , paragraph_text , paragraph_id | Records : template_id , document_description , document_name , other_details , document_id | templates : date_effective_to , template_details , date_effective_from , version_number , template_type_code , template_id | ref_template_types : template_type_code , template_type_description", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "document id": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs", + "document name": "Documents.Document_Name" + } + }, + { + "question": "what is the #document id# and name with greatest number of #paragraphs# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id order by count(*) desc limit 1", + "schema_with_content": "Sections : paragraph_text (\"UK\", \"Senegal\", \"Fiji\"), other_details (None), paragraph_id (510442723, 7, 243399026), document_id (16514113, 3540024, 3830) | ref_template_types : template_type_code (\"AD\", \"BK\", \"PP\"), template_type_description (\"Book\", \"Book\", \"Advertisement\") | templates : template_details (\"\"), date_effective_to (\"2000-10-22 11:57:12\", \"1976-10-28 10:08:50\", \"1974-09-14 06:34:39\"), template_type_code (\"PPT\", \"AD\", \"CV\"), template_id (16, 22, 25), date_effective_from (\"2008-08-01 13:57:26\", \"2002-03-02 14:39:49\", \"2010-09-24 01:15:11\"), version_number (5, 3, 1) | documents : document_name (\"Welcome to NY\", \"Robbin CV\", \"Introduction of OS\"), document_id (0, 82, 0), document_description (\"h\", \"b\", \"n\"), other_details (None), template_id (1, 10, 10) | Passages : paragraph_text (\"UK\", \"Senegal\", \"Fiji\"), other_details (None), paragraph_id (510442723, 7, 243399026), document_id (16514113, 3540024, 3830)", + "schema_without_content": "Sections : paragraph_text , other_details , paragraph_id , document_id | ref_template_types : template_type_code , template_type_description | templates : template_details , date_effective_to , template_type_code , template_id , date_effective_from , version_number | documents : document_name , document_id , document_description , other_details , template_id | Passages : paragraph_text , other_details , paragraph_id , document_id", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document id": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs", + "document name": "Documents.Document_Name" + } + }, + { + "question": "return the #id# and #name of the document# with the most #paragraphs# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id order by count(*) desc limit 1", + "schema_with_content": "templates : template_id (8, 19, 24), template_details (\"\"), template_type_code (\"PPT\", \"PP\", \"BK\"), version_number (8, 6, 0), date_effective_to (\"2007-06-06 06:18:53\", \"2000-10-22 11:57:12\", \"2008-01-05 14:19:28\"), date_effective_from (\"2005-11-12 07:09:48\", \"1979-12-24 10:28:16\", \"1993-10-07 02:33:04\") | ref_template_types : template_type_code (\"PPT\", \"CV\", \"PP\"), template_type_description (\"CV\", \"Advertisement\", \"Advertisement\") | Records : other_details (None), document_id (50123, 2394, 0), document_description (\"r\", \"f\", \"b\"), document_name (\"Data base\", \"Palm reading\", \"A history of Arts\"), template_id (25, 25, 8) | Files : other_details (None), document_id (50123, 2394, 0), document_description (\"r\", \"f\", \"b\"), document_name (\"Data base\", \"Palm reading\", \"A history of Arts\"), template_id (25, 25, 8) | paragraphs : other_details (None), document_id (651512, 16514113, 33930), paragraph_id (9, 65, 3708), paragraph_text (\"Brazil\", \"Indonesia\", \"Micronesia\")", + "schema_without_content": "templates : template_id , template_details , template_type_code , version_number , date_effective_to , date_effective_from | ref_template_types : template_type_code , template_type_description | Records : other_details , document_id , document_description , document_name , template_id | Files : other_details , document_id , document_description , document_name , template_id | paragraphs : other_details , document_id , paragraph_id , paragraph_text", + "extra_map": null, + "extra_table_map": { + "documents": [ + "Files", + "Records" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Documents.Document_ID", + "name of the document": "Documents.Document_Name", + "paragraphs": "Paragraphs" + } + }, + { + "question": "return the #id# and #name of the document# with the most #paragraphs# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select t1.document_id, t2.document_name from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id group by t1.document_id order by count(*) desc limit 1", + "schema_with_content": "ref_template_types : template_type_description (\"Paper\", \"Book\", \"Paper\"), template_type_code (\"PP\", \"PPT\", \"BK\") | Sections : paragraph_id (510442723, 571212310, 241), paragraph_text (\"Palestinian Territory\", \"Somalia\", \"Somalia\"), document_id (33930, 3540024, 3830), other_details (None) | Passages : paragraph_id (510442723, 571212310, 241), paragraph_text (\"Palestinian Territory\", \"Somalia\", \"Somalia\"), document_id (33930, 3540024, 3830), other_details (None) | documents : document_name (\"How to read a book\", \"A history of Arts\", \"Do not panic\"), template_id (7, 22, 11), document_description (\"r\", \"n\", \"b\"), document_id (1, 2394, 651512), other_details (None) | templates : date_effective_from (\"1979-12-24 10:28:16\", \"1986-11-14 12:20:18\", \"1984-08-07 13:36:26\"), version_number (1, 3, 4), template_id (9, 21, 8), template_type_code (\"BK\", \"CV\", \"PP\"), date_effective_to (\"1980-05-07 12:15:47\", \"2001-04-18 09:29:52\", \"1993-03-24 14:30:23\"), template_details (\"\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Sections : paragraph_id , paragraph_text , document_id , other_details | Passages : paragraph_id , paragraph_text , document_id , other_details | documents : document_name , template_id , document_description , document_id , other_details | templates : date_effective_from , version_number , template_id , template_type_code , date_effective_to , template_details", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "id": "Documents.Document_ID", + "name of the document": "Documents.Document_Name", + "paragraphs": "Paragraphs" + } + }, + { + "question": "what is the #document id# with least number of #paragraphs# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id order by count(*) asc limit 1", + "schema_with_content": "Passages : other_details (None), document_id (80, 2394, 385906526), paragraph_text (\"Ireland\", \"Fiji\", \"Somalia\"), paragraph_id (9946, 3708, 7) | templates : template_type_code (\"PPT\", \"PPT\", \"AD\"), date_effective_to (\"1994-12-07 13:26:23\", \"1976-10-28 10:08:50\", \"1976-10-28 10:08:50\"), template_id (21, 7, 25), version_number (4, 6, 3), template_details (\"\"), date_effective_from (\"1986-12-09 14:51:36\", \"1979-12-24 10:28:16\", \"1986-11-14 12:20:18\") | ref_template_types : template_type_code (\"AD\", \"PP\", \"PP\"), template_type_description (\"Book\", \"Advertisement\", \"Book\") | documents : other_details (None), document_name (\"A history of Arts\", \"About Korea\", \"How to write a CV\"), template_id (4, 25, 10), document_description (\"n\", \"y\", \"b\"), document_id (651512, 82, 16514113) | Sections : other_details (None), document_id (80, 2394, 385906526), paragraph_text (\"Ireland\", \"Fiji\", \"Somalia\"), paragraph_id (9946, 3708, 7)", + "schema_without_content": "Passages : other_details , document_id , paragraph_text , paragraph_id | templates : template_type_code , date_effective_to , template_id , version_number , template_details , date_effective_from | ref_template_types : template_type_code , template_type_description | documents : other_details , document_name , template_id , document_description , document_id | Sections : other_details , document_id , paragraph_text , paragraph_id", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document id": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "return the #id of the document# with the fewest #paragraphs# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id order by count(*) asc limit 1", + "schema_with_content": "Passages : other_details (None), document_id (16514113, 3830, 50123), paragraph_text (\"Senegal\", \"Fiji\", \"Ireland\"), paragraph_id (241, 280120913, 9) | ref_template_types : template_type_code (\"CV\", \"CV\", \"BK\"), template_type_description (\"Presentation\", \"Advertisement\", \"CV\") | templates : template_id (10, 0, 0), version_number (6, 7, 6), date_effective_from (\"1986-11-14 12:20:18\", \"2010-09-24 01:15:11\", \"1993-10-07 02:33:04\"), date_effective_to (\"2008-01-05 14:19:28\", \"1993-03-24 14:30:23\", \"1974-09-14 06:34:39\"), template_details (\"\"), template_type_code (\"PPT\", \"CV\", \"PPT\") | documents : document_name (\"Understanding DB\", \"A history of Arts\", \"Understanding DB\"), template_id (21, 21, 4), document_id (0, 651512, 80), other_details (None), document_description (\"b\", \"z\", \"r\") | Sections : other_details (None), document_id (16514113, 3830, 50123), paragraph_text (\"Senegal\", \"Fiji\", \"Ireland\"), paragraph_id (241, 280120913, 9)", + "schema_without_content": "Passages : other_details , document_id , paragraph_text , paragraph_id | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , date_effective_from , date_effective_to , template_details , template_type_code | documents : document_name , template_id , document_id , other_details , document_description | Sections : other_details , document_id , paragraph_text , paragraph_id", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "id of the document": "Documents.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "what is the #document id# with 1 to 2 #paragraphs# ?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id having count(*) between 1 and 2", + "schema_with_content": "ref_template_types : template_type_description (\"Book\", \"Advertisement\", \"Presentation\"), template_type_code (\"AD\", \"PP\", \"PP\") | Passages : document_id (385906526, 80, 2394), other_details (None), paragraph_text (\"Japan\", \"Palestinian Territory\", \"Senegal\"), paragraph_id (65, 16615, 243399026) | documents : document_name (\"Robbin CV\", \"How Google people work\", \"How Google people work\"), template_id (1, 8, 1), document_id (385906526, 76, 2394), document_description (\"f\", \"y\", \"w\"), other_details (None) | Sections : document_id (385906526, 80, 2394), other_details (None), paragraph_text (\"Japan\", \"Palestinian Territory\", \"Senegal\"), paragraph_id (65, 16615, 243399026) | templates : date_effective_to (\"2015-09-06 01:08:44\", \"1998-05-12 12:51:29\", \"1979-11-04 08:58:39\"), date_effective_from (\"2005-11-12 07:09:48\", \"2003-06-05 04:03:45\", \"1986-11-14 12:20:18\"), template_details (\"\"), template_id (16, 24, 23), version_number (6, 3, 1), template_type_code (\"AD\", \"AD\", \"CV\")", + "schema_without_content": "ref_template_types : template_type_description , template_type_code | Passages : document_id , other_details , paragraph_text , paragraph_id | documents : document_name , template_id , document_id , document_description , other_details | Sections : document_id , other_details , paragraph_text , paragraph_id | templates : date_effective_to , date_effective_from , template_details , template_id , version_number , template_type_code", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document id": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "give the #ids of documents# that have between one and two #paragraphs# .", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs group by document_id having count(*) between 1 and 2", + "schema_with_content": "ref_template_types : template_type_code (\"PPT\", \"PP\", \"PP\"), template_type_description (\"Book\", \"Paper\", \"Book\") | Sections : paragraph_id (608931827, 765713812, 243399026), paragraph_text (\"Fiji\", \"Indonesia\", \"Brazil\"), document_id (651512, 3, 80), other_details (None) | Passages : paragraph_id (608931827, 765713812, 243399026), paragraph_text (\"Fiji\", \"Indonesia\", \"Brazil\"), document_id (651512, 3, 80), other_details (None) | documents : other_details (None), document_description (\"u\", \"b\", \"r\"), template_id (6, 11, 22), document_name (\"Do not panic\", \"Palm reading\", \"Learning French\"), document_id (50123, 3830, 33930) | templates : date_effective_from (\"1984-08-07 13:36:26\", \"1975-10-20 02:28:58\", \"2010-09-24 01:15:11\"), date_effective_to (\"1995-09-19 22:27:48\", \"1999-07-08 03:31:04\", \"2008-08-08 18:36:43\"), version_number (3, 8, 3), template_details (\"\"), template_id (10, 9, 23), template_type_code (\"CV\", \"PP\", \"CV\")", + "schema_without_content": "ref_template_types : template_type_code , template_type_description | Sections : paragraph_id , paragraph_text , document_id , other_details | Passages : paragraph_id , paragraph_text , document_id , other_details | documents : other_details , document_description , template_id , document_name , document_id | templates : date_effective_from , date_effective_to , version_number , template_details , template_id , template_type_code", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "ids of documents": "Paragraphs.Document_ID", + "paragraphs": "Paragraphs" + } + }, + { + "question": "show the #document id with paragraph text# 'brazil' and 'ireland'.", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs where paragraph_text = 'Brazil' intersect select document_id from paragraphs where paragraph_text = 'Ireland'", + "schema_with_content": "templates : version_number (8, 5, 2), template_details (\"\"), template_type_code (\"PP\", \"PP\", \"PP\"), template_id (9, 8, 18), date_effective_from (\"1975-05-20 22:51:19\", \"1993-10-07 02:33:04\", \"1984-08-07 13:36:26\"), date_effective_to (\"1975-07-16 04:52:10\", \"2001-04-18 09:29:52\", \"1976-10-28 10:08:50\") | documents : other_details (None), document_description (\"r\", \"f\", \"k\"), template_id (22, 20, 7), document_name (\"Summer Show\", \"Palm reading\", \"Data base\"), document_id (1, 3, 801801) | ref_template_types : template_type_description (\"Paper\", \"CV\", \"CV\"), template_type_code (\"BK\", \"PPT\", \"BK\") | Sections : paragraph_text (\"Papua New Guinea\", \"UK\", \"Ukraine\"), paragraph_id (7, 243399026, 765713812), other_details (None), document_id (3540024, 33930, 3830) | Passages : paragraph_text (\"Papua New Guinea\", \"UK\", \"Ukraine\"), paragraph_id (7, 243399026, 765713812), other_details (None), document_id (3540024, 33930, 3830)", + "schema_without_content": "templates : version_number , template_details , template_type_code , template_id , date_effective_from , date_effective_to | documents : other_details , document_description , template_id , document_name , document_id | ref_template_types : template_type_description , template_type_code | Sections : paragraph_text , paragraph_id , other_details , document_id | Passages : paragraph_text , paragraph_id , other_details , document_id", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "document id with paragraph text": "Paragraphs.Document_ID" + } + }, + { + "question": "what are the #ids of documents# that contain the #paragraph text# 'brazil' and 'ireland'?", + "db_id": "cre_Doc_Template_Mgt", + "orig_query": "select document_id from paragraphs where paragraph_text = 'Brazil' intersect select document_id from paragraphs where paragraph_text = 'Ireland'", + "schema_with_content": "documents : document_id (2394, 1, 801801), template_id (8, 10, 20), other_details (None), document_description (\"n\", \"k\", \"n\"), document_name (\"Robbin CV\", \"Do not panic\", \"Customer reviews\") | Sections : document_id (80, 80, 80), paragraph_text (\"UK\", \"Palestinian Territory\", \"Papua New Guinea\"), paragraph_id (9, 7, 1104059), other_details (None) | Passages : document_id (80, 80, 80), paragraph_text (\"UK\", \"Palestinian Territory\", \"Papua New Guinea\"), paragraph_id (9, 7, 1104059), other_details (None) | ref_template_types : template_type_code (\"PP\", \"BK\", \"PP\"), template_type_description (\"Presentation\", \"CV\", \"Presentation\") | templates : date_effective_to (\"1976-10-28 10:08:50\", \"2008-01-05 14:19:28\", \"2007-06-06 06:18:53\"), template_id (21, 4, 20), version_number (9, 6, 7), date_effective_from (\"1986-11-14 12:20:18\", \"2002-03-02 14:39:49\", \"1983-07-16 21:16:16\"), template_details (\"\"), template_type_code (\"CV\", \"CV\", \"PPT\")", + "schema_without_content": "documents : document_id , template_id , other_details , document_description , document_name | Sections : document_id , paragraph_text , paragraph_id , other_details | Passages : document_id , paragraph_text , paragraph_id , other_details | ref_template_types : template_type_code , template_type_description | templates : date_effective_to , template_id , version_number , date_effective_from , template_details , template_type_code", + "extra_map": null, + "extra_table_map": { + "paragraphs": [ + "Sections", + "Passages" + ] + }, + "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" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "column_linking_gt": { + "ids of documents": "Documents.Document_ID", + "paragraph text": "Paragraphs.Paragraph_Text" + } + }, + { + "question": "list the #names of teachers# in ascending order of #age# .", + "db_id": "course_teach", + "orig_query": "select name from teacher order by age asc", + "schema_with_content": "course_arrange : course_id (5, 3, 10), grade (5, 7, 3), teacher_id (2, 2, 5) | course : course (\"Science\", \"Bible\", \"Bible\"), staring_date (\"5 May\", \"11 May\", \"5 May\"), course_id (10, 2, 3) | professor : name (\"Gustaaf Deloor\", \"John Deloor\", \"Kearsley Brown\"), teacher_id (2, 4, 7), hometown (\"Turton Urban District\", \"Farnworth Municipal Borough\", \"Blackrod Urban District\"), age (\"26\", \"45\", \"41\") | instructor : name (\"Gustaaf Deloor\", \"John Deloor\", \"Kearsley Brown\"), teacher_id (2, 4, 7), hometown (\"Turton Urban District\", \"Farnworth Municipal Borough\", \"Blackrod Urban District\"), age (\"26\", \"45\", \"41\")", + "schema_without_content": "course_arrange : course_id , grade , teacher_id | course : course , staring_date , course_id | professor : name , teacher_id , hometown , age | instructor : name , teacher_id , hometown , age", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "age": "teacher.Age" + } + }, + { + "question": "what are the #names of the teachers# ordered by ascending #age# ?", + "db_id": "course_teach", + "orig_query": "select name from teacher order by age asc", + "schema_with_content": "course : staring_date (\"10 May\", \"15 May\", \"17 May\"), course_id (5, 6, 7), course (\"Science\", \"Math\", \"Math\") | course_arrange : teacher_id (2, 2, 3), course_id (2, 3, 10), grade (5, 4, 3) | instructor : teacher_id (3, 4, 7), name (\"Joseph Huts\", \"Gustaaf Deloor\", \"Vicente Carretero\"), age (\"45\", \"33\", \"26\"), hometown (\"Turton Urban District\", \"Farnworth Municipal Borough\", \"Horwich Urban District\") | professor : teacher_id (3, 4, 7), name (\"Joseph Huts\", \"Gustaaf Deloor\", \"Vicente Carretero\"), age (\"45\", \"33\", \"26\"), hometown (\"Turton Urban District\", \"Farnworth Municipal Borough\", \"Horwich Urban District\")", + "schema_without_content": "course : staring_date , course_id , course | course_arrange : teacher_id , course_id , grade | instructor : teacher_id , name , age , hometown | professor : teacher_id , name , age , hometown", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "age": "teacher.Age" + } + }, + { + "question": "show the #name of teachers aged# either 32 or 33?", + "db_id": "course_teach", + "orig_query": "select name from teacher where age = 32 or age = 33", + "schema_with_content": "course : course (\"Sports\", \"Sports\", \"Bible\"), staring_date (\"15 May\", \"14 May\", \"14 May\"), course_id (5, 5, 9) | course_arrange : grade (4, 3, 1), course_id (4, 4, 10), teacher_id (5, 5, 7) | professor : name (\"Gustaaf Deloor\", \"Kearsley Brown\", \"Joseph Huts\"), age (\"39\", \"45\", \"39\"), teacher_id (7, 6, 6), hometown (\"Bolton County Borough\", \"Turton Urban District\", \"Blackrod Urban District\") | instructor : name (\"Gustaaf Deloor\", \"Kearsley Brown\", \"Joseph Huts\"), age (\"39\", \"45\", \"39\"), teacher_id (7, 6, 6), hometown (\"Bolton County Borough\", \"Turton Urban District\", \"Blackrod Urban District\")", + "schema_without_content": "course : course , staring_date , course_id | course_arrange : grade , course_id , teacher_id | professor : name , age , teacher_id , hometown | instructor : name , age , teacher_id , hometown", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "name of teachers aged": "teacher.Name" + } + }, + { + "question": "what are the #names of the teachers# who are #aged# either 32 or 33?", + "db_id": "course_teach", + "orig_query": "select name from teacher where age = 32 or age = 33", + "schema_with_content": "course : course_id (6, 8, 4), staring_date (\"17 May\", \"5 May\", \"5 May\"), course (\"Health\", \"Science\", \"Health\") | instructor : name (\"Vicente Carretero\", \"Vicente Carretero\", \"Vicente Carretero\"), age (\"39\", \"39\", \"45\"), teacher_id (4, 4, 6), hometown (\"Farnworth Municipal Borough\", \"Little Lever Urban District\", \"Little Lever Urban District\") | course_arrange : teacher_id (5, 2, 5), grade (3, 1, 5), course_id (10, 4, 5) | professor : name (\"Vicente Carretero\", \"Vicente Carretero\", \"Vicente Carretero\"), age (\"39\", \"39\", \"45\"), teacher_id (4, 4, 6), hometown (\"Farnworth Municipal Borough\", \"Little Lever Urban District\", \"Little Lever Urban District\")", + "schema_without_content": "course : course_id , staring_date , course | instructor : name , age , teacher_id , hometown | course_arrange : teacher_id , grade , course_id | professor : name , age , teacher_id , hometown", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "aged": "teacher.Age" + } + }, + { + "question": "what is the #hometown of the youngest teacher# ?", + "db_id": "course_teach", + "orig_query": "select hometown from teacher order by age asc limit 1", + "schema_with_content": "professor : hometown (\"Little Lever Urban District\", \"Horwich Urban District\", \"Horwich Urban District\"), name (\"Joseph Huts\", \"Lucy Wong\", \"Gustaaf Deloor\"), age (\"33\", \"39\", \"32\"), teacher_id (4, 5, 4) | instructor : hometown (\"Little Lever Urban District\", \"Horwich Urban District\", \"Horwich Urban District\"), name (\"Joseph Huts\", \"Lucy Wong\", \"Gustaaf Deloor\"), age (\"33\", \"39\", \"32\"), teacher_id (4, 5, 4) | course : course (\"Geography\", \"History\", \"Science\"), staring_date (\"17 May\", \"5 May\", \"15 May\"), course_id (4, 8, 3) | course_arrange : grade (4, 7, 7), course_id (10, 2, 3), teacher_id (5, 6, 7)", + "schema_without_content": "professor : hometown , name , age , teacher_id | instructor : hometown , name , age , teacher_id | course : course , staring_date , course_id | course_arrange : grade , course_id , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometown of the youngest teacher": "teacher.Hometown" + } + }, + { + "question": "where is the #youngest teacher# from?", + "db_id": "course_teach", + "orig_query": "select hometown from teacher order by age asc limit 1", + "schema_with_content": "course : staring_date (\"13 May\", \"13 May\", \"17 May\"), course_id (2, 10, 7), course (\"Bible\", \"Geography\", \"History\") | instructor : hometown (\"Blackrod Urban District\", \"Horwich Urban District\", \"Kearsley Urban District\"), age (\"41\", \"45\", \"41\"), name (\"Kearsley Brown\", \"Vicente Carretero\", \"Anne Walker\"), teacher_id (4, 1, 4) | professor : hometown (\"Blackrod Urban District\", \"Horwich Urban District\", \"Kearsley Urban District\"), age (\"41\", \"45\", \"41\"), name (\"Kearsley Brown\", \"Vicente Carretero\", \"Anne Walker\"), teacher_id (4, 1, 4) | course_arrange : grade (5, 5, 3), teacher_id (6, 6, 5), course_id (10, 3, 5)", + "schema_without_content": "course : staring_date , course_id , course | instructor : hometown , age , name , teacher_id | professor : hometown , age , name , teacher_id | course_arrange : grade , teacher_id , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "youngest teacher": "teacher.Age", + "Hometown": "teacher.Hometown" + } + }, + { + "question": "show different #hometown of teachers# and the #number of teachers# from each hometown.", + "db_id": "course_teach", + "orig_query": "select hometown, count(*) from teacher group by hometown", + "schema_with_content": "professor : age (\"32\", \"32\", \"33\"), name (\"Vicente Carretero\", \"Lucy Wong\", \"Kearsley Brown\"), teacher_id (6, 4, 7), hometown (\"Turton Urban District\", \"Turton Urban District\", \"Turton Urban District\") | course : course (\"Geography\", \"Sports\", \"French\"), course_id (7, 9, 10), staring_date (\"10 May\", \"5 May\", \"6 May\") | instructor : age (\"32\", \"32\", \"33\"), name (\"Vicente Carretero\", \"Lucy Wong\", \"Kearsley Brown\"), teacher_id (6, 4, 7), hometown (\"Turton Urban District\", \"Turton Urban District\", \"Turton Urban District\") | course_arrange : grade (1, 4, 7), course_id (4, 5, 4), teacher_id (3, 2, 5)", + "schema_without_content": "professor : age , name , teacher_id , hometown | course : course , course_id , staring_date | instructor : age , name , teacher_id , hometown | course_arrange : grade , course_id , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometown of teachers": "teacher.Hometown", + "number of teachers": "teacher", + "hometown": "teacher.Hometown" + } + }, + { + "question": "for each #hometown# , how many #teachers# are there?", + "db_id": "course_teach", + "orig_query": "select hometown, count(*) from teacher group by hometown", + "schema_with_content": "professor : hometown (\"Little Lever Urban District\", \"Bolton County Borough\", \"Blackrod Urban District\"), name (\"Anne Walker\", \"Joseph Huts\", \"Gustaaf Deloor\"), age (\"29\", \"29\", \"33\"), teacher_id (6, 6, 7) | course : staring_date (\"9 May\", \"5 May\", \"9 May\"), course (\"Math\", \"Language Arts\", \"Language Arts\"), course_id (9, 9, 2) | instructor : hometown (\"Little Lever Urban District\", \"Bolton County Borough\", \"Blackrod Urban District\"), name (\"Anne Walker\", \"Joseph Huts\", \"Gustaaf Deloor\"), age (\"29\", \"29\", \"33\"), teacher_id (6, 6, 7) | course_arrange : teacher_id (5, 6, 3), grade (1, 4, 3), course_id (10, 3, 4)", + "schema_without_content": "professor : hometown , name , age , teacher_id | course : staring_date , course , course_id | instructor : hometown , name , age , teacher_id | course_arrange : teacher_id , grade , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometown": "teacher.Hometown", + "teachers": "teacher" + } + }, + { + "question": "list the most common #hometown of teachers# .", + "db_id": "course_teach", + "orig_query": "select hometown from teacher group by hometown order by count(*) desc limit 1", + "schema_with_content": "professor : age (\"39\", \"45\", \"41\"), teacher_id (1, 3, 4), name (\"Gustaaf Deloor\", \"Gustaaf Deloor\", \"Vicente Carretero\"), hometown (\"Turton Urban District\", \"Blackrod Urban District\", \"Little Lever Urban District\") | course : course_id (4, 6, 5), staring_date (\"13 May\", \"6 May\", \"6 May\"), course (\"Science\", \"Geography\", \"Science\") | instructor : age (\"39\", \"45\", \"41\"), teacher_id (1, 3, 4), name (\"Gustaaf Deloor\", \"Gustaaf Deloor\", \"Vicente Carretero\"), hometown (\"Turton Urban District\", \"Blackrod Urban District\", \"Little Lever Urban District\") | course_arrange : course_id (4, 2, 4), grade (5, 4, 7), teacher_id (2, 6, 3)", + "schema_without_content": "professor : age , teacher_id , name , hometown | course : course_id , staring_date , course | instructor : age , teacher_id , name , hometown | course_arrange : course_id , grade , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometown of teachers": "teacher.Hometown" + } + }, + { + "question": "what is the most commmon #hometowns for teachers# ?", + "db_id": "course_teach", + "orig_query": "select hometown from teacher group by hometown order by count(*) desc limit 1", + "schema_with_content": "instructor : hometown (\"Farnworth Municipal Borough\", \"Turton Urban District\", \"Blackrod Urban District\"), teacher_id (3, 2, 6), age (\"26\", \"33\", \"32\"), name (\"Vicente Carretero\", \"Gustaaf Deloor\", \"Joseph Huts\") | course : course_id (4, 7, 9), staring_date (\"15 May\", \"14 May\", \"17 May\"), course (\"French\", \"Music\", \"History\") | course_arrange : course_id (3, 10, 2), teacher_id (2, 3, 5), grade (3, 1, 1) | professor : hometown (\"Farnworth Municipal Borough\", \"Turton Urban District\", \"Blackrod Urban District\"), teacher_id (3, 2, 6), age (\"26\", \"33\", \"32\"), name (\"Vicente Carretero\", \"Gustaaf Deloor\", \"Joseph Huts\")", + "schema_without_content": "instructor : hometown , teacher_id , age , name | course : course_id , staring_date , course | course_arrange : course_id , teacher_id , grade | professor : hometown , teacher_id , age , name", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometowns for teachers": "teacher.Hometown" + } + }, + { + "question": "show the #hometowns# shared by at least two #teachers# .", + "db_id": "course_teach", + "orig_query": "select hometown from teacher group by hometown having count(*) >= 2", + "schema_with_content": "instructor : age (\"39\", \"39\", \"45\"), hometown (\"Little Lever Urban District\", \"Blackrod Urban District\", \"Blackrod Urban District\"), teacher_id (2, 2, 4), name (\"Joseph Huts\", \"Anne Walker\", \"Lucy Wong\") | course_arrange : course_id (4, 3, 4), teacher_id (5, 2, 7), grade (4, 4, 5) | professor : age (\"39\", \"39\", \"45\"), hometown (\"Little Lever Urban District\", \"Blackrod Urban District\", \"Blackrod Urban District\"), teacher_id (2, 2, 4), name (\"Joseph Huts\", \"Anne Walker\", \"Lucy Wong\") | course : staring_date (\"9 May\", \"17 May\", \"7 May\"), course (\"Health\", \"Science\", \"Language Arts\"), course_id (2, 6, 10)", + "schema_without_content": "instructor : age , hometown , teacher_id , name | course_arrange : course_id , teacher_id , grade | professor : age , hometown , teacher_id , name | course : staring_date , course , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "hometowns": "teacher.Hometown", + "teachers": "teacher" + } + }, + { + "question": "what are the #towns# from which at least two #teachers# come from?", + "db_id": "course_teach", + "orig_query": "select hometown from teacher group by hometown having count(*) >= 2", + "schema_with_content": "course_arrange : course_id (2, 10, 4), teacher_id (3, 6, 5), grade (5, 7, 4) | instructor : name (\"Lucy Wong\", \"Anne Walker\", \"Vicente Carretero\"), teacher_id (7, 6, 1), age (\"39\", \"29\", \"45\"), hometown (\"Bolton County Borough\", \"Bolton County Borough\", \"Horwich Urban District\") | professor : name (\"Lucy Wong\", \"Anne Walker\", \"Vicente Carretero\"), teacher_id (7, 6, 1), age (\"39\", \"29\", \"45\"), hometown (\"Bolton County Borough\", \"Bolton County Borough\", \"Horwich Urban District\") | course : course_id (4, 5, 5), staring_date (\"13 May\", \"11 May\", \"7 May\"), course (\"Science\", \"Geography\", \"Language Arts\")", + "schema_without_content": "course_arrange : course_id , teacher_id , grade | instructor : name , teacher_id , age , hometown | professor : name , teacher_id , age , hometown | course : course_id , staring_date , course", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "towns": "teacher.Hometown", + "teachers": "teacher" + } + }, + { + "question": "show #names of teachers# and the #courses# they are arranged to teach.", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "course_arrange : teacher_id (6, 2, 7), course_id (5, 10, 5), grade (3, 7, 5) | teacher : teacher_id (7, 7, 3), age (\"26\", \"45\", \"41\"), hometown (\"Turton Urban District\", \"Bolton County Borough\", \"Kearsley Urban District\"), name (\"Gustaaf Deloor\", \"Lucy Wong\", \"Anne Walker\") | class : course (\"Music\", \"Science\", \"French\"), course_id (5, 8, 10), staring_date (\"9 May\", \"5 May\", \"15 May\") | lecture : course (\"Music\", \"Science\", \"French\"), course_id (5, 8, 10), staring_date (\"9 May\", \"5 May\", \"15 May\")", + "schema_without_content": "course_arrange : teacher_id , course_id , grade | teacher : teacher_id , age , hometown , name | class : course , course_id , staring_date | lecture : course , course_id , staring_date", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course.Course" + } + }, + { + "question": "show #names of teachers# and the #courses# they are arranged to teach.", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "course : course (\"Bible\", \"Health\", \"Bible\"), course_id (2, 7, 1), staring_date (\"10 May\", \"5 May\", \"10 May\") | instructor : hometown (\"Horwich Urban District\", \"Farnworth Municipal Borough\", \"Bolton County Borough\"), name (\"Kearsley Brown\", \"Kearsley Brown\", \"Lucy Wong\"), teacher_id (5, 4, 7), age (\"33\", \"29\", \"39\") | professor : hometown (\"Horwich Urban District\", \"Farnworth Municipal Borough\", \"Bolton County Borough\"), name (\"Kearsley Brown\", \"Kearsley Brown\", \"Lucy Wong\"), teacher_id (5, 4, 7), age (\"33\", \"29\", \"39\") | course_arrange : grade (4, 1, 1), course_id (2, 5, 10), teacher_id (3, 3, 6)", + "schema_without_content": "course : course , course_id , staring_date | instructor : hometown , name , teacher_id , age | professor : hometown , name , teacher_id , age | course_arrange : grade , course_id , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course.Course" + } + }, + { + "question": "show #names of teachers# and the #courses# they are arranged to teach.", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "teacher : age (\"33\", \"33\", \"45\"), hometown (\"Horwich Urban District\", \"Kearsley Urban District\", \"Turton Urban District\"), name (\"Gustaaf Deloor\", \"Kearsley Brown\", \"Gustaaf Deloor\"), teacher_id (5, 5, 5) | class_schedule : course_id (10, 2, 2), teacher_id (2, 5, 6), grade (7, 4, 5) | timetable : course_id (10, 2, 2), teacher_id (2, 5, 6), grade (7, 4, 5) | course : course_id (8, 1, 6), staring_date (\"14 May\", \"6 May\", \"15 May\"), course (\"Music\", \"Sports\", \"Bible\")", + "schema_without_content": "teacher : age , hometown , name , teacher_id | class_schedule : course_id , teacher_id , grade | timetable : course_id , teacher_id , grade | course : course_id , staring_date , course", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course.Course" + } + }, + { + "question": "what is the #name of each teacher# and what #course# they teach?", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "course_arrange : teacher_id (3, 6, 6), course_id (3, 5, 5), grade (5, 5, 3) | class : course_id (9, 10, 4), course (\"French\", \"Math\", \"Sports\"), staring_date (\"7 May\", \"9 May\", \"13 May\") | teacher : hometown (\"Bolton County Borough\", \"Kearsley Urban District\", \"Horwich Urban District\"), age (\"45\", \"39\", \"45\"), teacher_id (7, 5, 5), name (\"Kearsley Brown\", \"Gustaaf Deloor\", \"Kearsley Brown\") | lecture : course_id (9, 10, 4), course (\"French\", \"Math\", \"Sports\"), staring_date (\"7 May\", \"9 May\", \"13 May\")", + "schema_without_content": "course_arrange : teacher_id , course_id , grade | class : course_id , course , staring_date | teacher : hometown , age , teacher_id , name | lecture : course_id , course , staring_date", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "name of each teacher": "teacher.Name", + "course": "course.Course" + } + }, + { + "question": "what is the #name of each teacher# and what #course# they teach?", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "professor : teacher_id (7, 7, 1), age (\"29\", \"32\", \"29\"), name (\"Lucy Wong\", \"Gustaaf Deloor\", \"Kearsley Brown\"), hometown (\"Horwich Urban District\", \"Turton Urban District\", \"Kearsley Urban District\") | course : course (\"Health\", \"Science\", \"Language Arts\"), staring_date (\"15 May\", \"10 May\", \"15 May\"), course_id (3, 9, 5) | instructor : teacher_id (7, 7, 1), age (\"29\", \"32\", \"29\"), name (\"Lucy Wong\", \"Gustaaf Deloor\", \"Kearsley Brown\"), hometown (\"Horwich Urban District\", \"Turton Urban District\", \"Kearsley Urban District\") | course_arrange : teacher_id (5, 6, 5), course_id (3, 10, 4), grade (5, 3, 4)", + "schema_without_content": "professor : teacher_id , age , name , hometown | course : course , staring_date , course_id | instructor : teacher_id , age , name , hometown | course_arrange : teacher_id , course_id , grade", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "name of each teacher": "teacher.Name", + "course": "course.Course" + } + }, + { + "question": "what is the #name of each teacher# and what #course# they teach?", + "db_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id", + "schema_with_content": "course : course (\"Language Arts\", \"Health\", \"French\"), course_id (5, 2, 1), staring_date (\"7 May\", \"10 May\", \"11 May\") | timetable : course_id (4, 3, 4), grade (7, 7, 4), teacher_id (5, 6, 7) | teacher : hometown (\"Blackrod Urban District\", \"Turton Urban District\", \"Farnworth Municipal Borough\"), age (\"33\", \"39\", \"39\"), teacher_id (4, 4, 1), name (\"Kearsley Brown\", \"Gustaaf Deloor\", \"Kearsley Brown\") | class_schedule : course_id (4, 3, 4), grade (7, 7, 4), teacher_id (5, 6, 7)", + "schema_without_content": "course : course , course_id , staring_date | timetable : course_id , grade , teacher_id | teacher : hometown , age , teacher_id , name | class_schedule : course_id , grade , teacher_id", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "name of each teacher": "teacher.Name", + "course": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "class : course_id (6, 4, 6), staring_date (\"5 May\", \"5 May\", \"7 May\"), course (\"Geography\", \"Health\", \"Science\") | course_arrange : grade (1, 5, 5), teacher_id (3, 2, 6), course_id (3, 10, 3) | teacher : teacher_id (4, 4, 6), name (\"Lucy Wong\", \"Anne Walker\", \"Lucy Wong\"), hometown (\"Horwich Urban District\", \"Horwich Urban District\", \"Kearsley Urban District\"), age (\"32\", \"32\", \"29\") | lecture : course_id (6, 4, 6), staring_date (\"5 May\", \"5 May\", \"7 May\"), course (\"Geography\", \"Health\", \"Science\")", + "schema_without_content": "class : course_id , staring_date , course | course_arrange : grade , teacher_id , course_id | teacher : teacher_id , name , hometown , age | lecture : course_id , staring_date , course", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "course_arrange : grade (4, 5, 3), teacher_id (6, 3, 3), course_id (5, 2, 3) | professor : name (\"Lucy Wong\", \"Joseph Huts\", \"Gustaaf Deloor\"), teacher_id (4, 4, 3), age (\"45\", \"29\", \"39\"), hometown (\"Little Lever Urban District\", \"Little Lever Urban District\", \"Kearsley Urban District\") | course : course_id (4, 4, 7), staring_date (\"5 May\", \"11 May\", \"13 May\"), course (\"Language Arts\", \"Math\", \"Health\") | instructor : name (\"Lucy Wong\", \"Joseph Huts\", \"Gustaaf Deloor\"), teacher_id (4, 4, 3), age (\"45\", \"29\", \"39\"), hometown (\"Little Lever Urban District\", \"Little Lever Urban District\", \"Kearsley Urban District\")", + "schema_without_content": "course_arrange : grade , teacher_id , course_id | professor : name , teacher_id , age , hometown | course : course_id , staring_date , course | instructor : name , teacher_id , age , hometown", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "teacher : teacher_id (3, 6, 1), name (\"Kearsley Brown\", \"Anne Walker\", \"Lucy Wong\"), age (\"29\", \"29\", \"26\"), hometown (\"Little Lever Urban District\", \"Bolton County Borough\", \"Farnworth Municipal Borough\") | class_schedule : teacher_id (5, 5, 7), course_id (4, 5, 3), grade (5, 4, 1) | course : course (\"Music\", \"Bible\", \"Math\"), course_id (7, 1, 2), staring_date (\"14 May\", \"5 May\", \"11 May\") | timetable : teacher_id (5, 5, 7), course_id (4, 5, 3), grade (5, 4, 1)", + "schema_without_content": "teacher : teacher_id , name , age , hometown | class_schedule : teacher_id , course_id , grade | course : course , course_id , staring_date | timetable : teacher_id , course_id , grade", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "course_arrange : teacher_id (6, 3, 7), grade (4, 3, 1), course_id (3, 4, 3) | class : course_id (6, 2, 10), staring_date (\"7 May\", \"10 May\", \"7 May\"), course (\"Sports\", \"Language Arts\", \"Math\") | teacher : age (\"41\", \"41\", \"33\"), hometown (\"Farnworth Municipal Borough\", \"Kearsley Urban District\", \"Blackrod Urban District\"), name (\"Vicente Carretero\", \"Vicente Carretero\", \"John Deloor\"), teacher_id (3, 1, 7) | lecture : course_id (6, 2, 10), staring_date (\"7 May\", \"10 May\", \"7 May\"), course (\"Sports\", \"Language Arts\", \"Math\")", + "schema_without_content": "course_arrange : teacher_id , grade , course_id | class : course_id , staring_date , course | teacher : age , hometown , name , teacher_id | lecture : course_id , staring_date , course", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "course : staring_date (\"10 May\", \"5 May\", \"5 May\"), course (\"Geography\", \"History\", \"Music\"), course_id (7, 5, 8) | course_arrange : grade (3, 3, 4), course_id (3, 5, 10), teacher_id (6, 3, 2) | instructor : hometown (\"Blackrod Urban District\", \"Blackrod Urban District\", \"Farnworth Municipal Borough\"), teacher_id (6, 4, 6), name (\"Gustaaf Deloor\", \"Gustaaf Deloor\", \"Anne Walker\"), age (\"45\", \"26\", \"32\") | professor : hometown (\"Blackrod Urban District\", \"Blackrod Urban District\", \"Farnworth Municipal Borough\"), teacher_id (6, 4, 6), name (\"Gustaaf Deloor\", \"Gustaaf Deloor\", \"Anne Walker\"), age (\"45\", \"26\", \"32\")", + "schema_without_content": "course : staring_date , course , course_id | course_arrange : grade , course_id , teacher_id | instructor : hometown , teacher_id , name , age | professor : hometown , teacher_id , name , age", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "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_id": "course_teach", + "orig_query": "select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id order by t3.name", + "schema_with_content": "class_schedule : teacher_id (6, 3, 7), course_id (10, 3, 5), grade (4, 7, 4) | course : course_id (3, 8, 5), course (\"History\", \"Sports\", \"Health\"), staring_date (\"6 May\", \"7 May\", \"7 May\") | teacher : age (\"32\", \"33\", \"26\"), name (\"Joseph Huts\", \"Lucy Wong\", \"John Deloor\"), hometown (\"Bolton County Borough\", \"Turton Urban District\", \"Little Lever Urban District\"), teacher_id (1, 6, 1) | timetable : teacher_id (6, 3, 7), course_id (10, 3, 5), grade (4, 7, 4)", + "schema_without_content": "class_schedule : teacher_id , course_id , grade | course : course_id , course , staring_date | teacher : age , name , hometown , teacher_id | timetable : teacher_id , course_id , grade", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "course.Course" + } + }, + { + "question": "show the #name of the teacher for the math course# .", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "teacher : age (\"29\", \"39\", \"29\"), name (\"Kearsley Brown\", \"Gustaaf Deloor\", \"Anne Walker\"), hometown (\"Bolton County Borough\", \"Horwich Urban District\", \"Bolton County Borough\"), teacher_id (4, 6, 5) | course_arrange : teacher_id (5, 7, 5), grade (5, 3, 4), course_id (4, 4, 4) | class : course (\"Bible\", \"Science\", \"Geography\"), staring_date (\"13 May\", \"13 May\", \"7 May\"), course_id (2, 2, 8) | lecture : course (\"Bible\", \"Science\", \"Geography\"), staring_date (\"13 May\", \"13 May\", \"7 May\"), course_id (2, 2, 8)", + "schema_without_content": "teacher : age , name , hometown , teacher_id | course_arrange : teacher_id , grade , course_id | class : course , staring_date , course_id | lecture : course , staring_date , course_id", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "name of the teacher for the math course": "teacher.Name" + } + }, + { + "question": "show the #name of the teacher for the math course# .", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "instructor : teacher_id (3, 1, 1), age (\"39\", \"33\", \"26\"), name (\"Gustaaf Deloor\", \"Lucy Wong\", \"John Deloor\"), hometown (\"Kearsley Urban District\", \"Little Lever Urban District\", \"Bolton County Borough\") | professor : teacher_id (3, 1, 1), age (\"39\", \"33\", \"26\"), name (\"Gustaaf Deloor\", \"Lucy Wong\", \"John Deloor\"), hometown (\"Kearsley Urban District\", \"Little Lever Urban District\", \"Bolton County Borough\") | course : course (\"History\", \"Geography\", \"Science\"), staring_date (\"17 May\", \"7 May\", \"9 May\"), course_id (6, 7, 10) | course_arrange : grade (1, 4, 5), course_id (4, 2, 4), teacher_id (6, 6, 2)", + "schema_without_content": "instructor : teacher_id , age , name , hometown | professor : teacher_id , age , name , hometown | course : course , staring_date , course_id | course_arrange : grade , course_id , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "name of the teacher for the math course": "teacher.Name" + } + }, + { + "question": "show the #name of the teacher for the math course# .", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "teacher : teacher_id (5, 4, 6), age (\"33\", \"33\", \"26\"), name (\"Gustaaf Deloor\", \"Vicente Carretero\", \"Anne Walker\"), hometown (\"Kearsley Urban District\", \"Horwich Urban District\", \"Kearsley Urban District\") | timetable : grade (7, 1, 1), course_id (10, 10, 2), teacher_id (3, 3, 2) | course : staring_date (\"14 May\", \"13 May\", \"9 May\"), course_id (5, 7, 9), course (\"Math\", \"Math\", \"French\") | class_schedule : grade (7, 1, 1), course_id (10, 10, 2), teacher_id (3, 3, 2)", + "schema_without_content": "teacher : teacher_id , age , name , hometown | timetable : grade , course_id , teacher_id | course : staring_date , course_id , course | class_schedule : grade , course_id , teacher_id", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "name of the teacher for the math course": "teacher.Name" + } + }, + { + "question": "what are the #names# of the people who #teach math courses# ?", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "teacher : teacher_id (4, 3, 6), age (\"45\", \"39\", \"45\"), hometown (\"Turton Urban District\", \"Horwich Urban District\", \"Bolton County Borough\"), name (\"Vicente Carretero\", \"Kearsley Brown\", \"John Deloor\") | lecture : course (\"French\", \"Bible\", \"Bible\"), staring_date (\"11 May\", \"10 May\", \"14 May\"), course_id (9, 7, 6) | course_arrange : grade (1, 3, 4), teacher_id (7, 2, 5), course_id (5, 10, 3) | class : course (\"French\", \"Bible\", \"Bible\"), staring_date (\"11 May\", \"10 May\", \"14 May\"), course_id (9, 7, 6)", + "schema_without_content": "teacher : teacher_id , age , hometown , name | lecture : course , staring_date , course_id | course_arrange : grade , teacher_id , course_id | class : course , staring_date , course_id", + "extra_map": null, + "extra_table_map": { + "course": [ + "class", + "lecture" + ] + }, + "db_schema": { + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class": [ + "course_id", + "staring_date", + "course" + ], + "lecture": [ + "course_id", + "staring_date", + "course" + ] + }, + "column_linking_gt": { + "names": "teacher.Name", + "teach math courses": "teacher" + } + }, + { + "question": "what are the #names# of the people who #teach math courses# ?", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "course_arrange : teacher_id (5, 7, 6), course_id (4, 4, 4), grade (3, 4, 5) | professor : age (\"39\", \"26\", \"45\"), name (\"Kearsley Brown\", \"Joseph Huts\", \"Anne Walker\"), hometown (\"Kearsley Urban District\", \"Bolton County Borough\", \"Farnworth Municipal Borough\"), teacher_id (3, 7, 6) | course : course (\"Health\", \"Geography\", \"Math\"), staring_date (\"6 May\", \"5 May\", \"9 May\"), course_id (1, 8, 6) | instructor : age (\"39\", \"26\", \"45\"), name (\"Kearsley Brown\", \"Joseph Huts\", \"Anne Walker\"), hometown (\"Kearsley Urban District\", \"Bolton County Borough\", \"Farnworth Municipal Borough\"), teacher_id (3, 7, 6)", + "schema_without_content": "course_arrange : teacher_id , course_id , grade | professor : age , name , hometown , teacher_id | course : course , staring_date , course_id | instructor : age , name , hometown , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names": "teacher.Name", + "teach math courses": "teacher" + } + }, + { + "question": "what are the #names# of the people who #teach math courses# ?", + "db_id": "course_teach", + "orig_query": "select t3.name from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id where t2.course = \"Math\"", + "schema_with_content": "teacher : age (\"39\", \"39\", \"26\"), name (\"Lucy Wong\", \"Lucy Wong\", \"Gustaaf Deloor\"), hometown (\"Little Lever Urban District\", \"Horwich Urban District\", \"Blackrod Urban District\"), teacher_id (6, 6, 2) | class_schedule : grade (4, 7, 5), teacher_id (5, 3, 7), course_id (10, 4, 2) | course : course_id (5, 5, 4), course (\"French\", \"Science\", \"Health\"), staring_date (\"17 May\", \"15 May\", \"14 May\") | timetable : grade (4, 7, 5), teacher_id (5, 3, 7), course_id (10, 4, 2)", + "schema_without_content": "teacher : age , name , hometown , teacher_id | class_schedule : grade , teacher_id , course_id | course : course_id , course , staring_date | timetable : grade , teacher_id , course_id", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names": "teacher.Name", + "teach math courses": "teacher" + } + }, + { + "question": "show #names of teachers# and the number of #courses# they teach.", + "db_id": "course_teach", + "orig_query": "select t2.name, count(*) from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name", + "schema_with_content": "course_arrange : course_id (4, 4, 10), teacher_id (5, 7, 7), grade (3, 1, 1) | instructor : name (\"Gustaaf Deloor\", \"John Deloor\", \"Anne Walker\"), teacher_id (5, 2, 1), hometown (\"Kearsley Urban District\", \"Horwich Urban District\", \"Little Lever Urban District\"), age (\"33\", \"45\", \"45\") | professor : name (\"Gustaaf Deloor\", \"John Deloor\", \"Anne Walker\"), teacher_id (5, 2, 1), hometown (\"Kearsley Urban District\", \"Horwich Urban District\", \"Little Lever Urban District\"), age (\"33\", \"45\", \"45\") | course : course_id (8, 10, 9), staring_date (\"17 May\", \"5 May\", \"15 May\"), course (\"Bible\", \"Geography\", \"Music\")", + "schema_without_content": "course_arrange : course_id , teacher_id , grade | instructor : name , teacher_id , hometown , age | professor : name , teacher_id , hometown , age | course : course_id , staring_date , course", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course_arrange.Course_ID" + } + }, + { + "question": "show #names of teachers# and the number of #courses# they teach.", + "db_id": "course_teach", + "orig_query": "select t2.name, count(*) from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name", + "schema_with_content": "course : staring_date (\"11 May\", \"15 May\", \"15 May\"), course (\"Sports\", \"Science\", \"Health\"), course_id (7, 5, 4) | teacher : name (\"Anne Walker\", \"Joseph Huts\", \"Joseph Huts\"), age (\"41\", \"39\", \"26\"), teacher_id (1, 6, 3), hometown (\"Horwich Urban District\", \"Turton Urban District\", \"Blackrod Urban District\") | class_schedule : course_id (10, 4, 2), grade (4, 3, 3), teacher_id (2, 2, 3) | timetable : course_id (10, 4, 2), grade (4, 3, 3), teacher_id (2, 2, 3)", + "schema_without_content": "course : staring_date , course , course_id | teacher : name , age , teacher_id , hometown | class_schedule : course_id , grade , teacher_id | timetable : course_id , grade , teacher_id", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course_arrange.Course_ID" + } + }, + { + "question": "what are the #names of the teachers# and how many #courses# do they teach?", + "db_id": "course_teach", + "orig_query": "select t2.name, count(*) from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name", + "schema_with_content": "course_arrange : grade (5, 7, 4), teacher_id (7, 3, 7), course_id (3, 3, 10) | instructor : name (\"Gustaaf Deloor\", \"Kearsley Brown\", \"Lucy Wong\"), hometown (\"Kearsley Urban District\", \"Blackrod Urban District\", \"Horwich Urban District\"), age (\"29\", \"45\", \"26\"), teacher_id (6, 7, 5) | course : staring_date (\"17 May\", \"11 May\", \"7 May\"), course (\"Health\", \"Geography\", \"Bible\"), course_id (5, 2, 7) | professor : name (\"Gustaaf Deloor\", \"Kearsley Brown\", \"Lucy Wong\"), hometown (\"Kearsley Urban District\", \"Blackrod Urban District\", \"Horwich Urban District\"), age (\"29\", \"45\", \"26\"), teacher_id (6, 7, 5)", + "schema_without_content": "course_arrange : grade , teacher_id , course_id | instructor : name , hometown , age , teacher_id | course : staring_date , course , course_id | professor : name , hometown , age , teacher_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "course_arrange.Course_ID" + } + }, + { + "question": "what are the #names of the teachers# and how many #courses# do they teach?", + "db_id": "course_teach", + "orig_query": "select t2.name, count(*) from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name", + "schema_with_content": "timetable : course_id (3, 4, 5), teacher_id (7, 2, 5), grade (1, 4, 5) | class_schedule : course_id (3, 4, 5), teacher_id (7, 2, 5), grade (1, 4, 5) | course : staring_date (\"13 May\", \"15 May\", \"11 May\"), course (\"French\", \"Math\", \"Language Arts\"), course_id (3, 7, 2) | teacher : age (\"39\", \"33\", \"32\"), teacher_id (5, 4, 3), hometown (\"Blackrod Urban District\", \"Blackrod Urban District\", \"Turton Urban District\"), name (\"Vicente Carretero\", \"Vicente Carretero\", \"Anne Walker\")", + "schema_without_content": "timetable : course_id , teacher_id , grade | class_schedule : course_id , teacher_id , grade | course : staring_date , course , course_id | teacher : age , teacher_id , hometown , name", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "course_arrange.Course_ID" + } + }, + { + "question": "show #names of teachers# that teach at least two #courses# .", + "db_id": "course_teach", + "orig_query": "select t2.name from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name having count(*) >= 2", + "schema_with_content": "course_arrange : course_id (4, 4, 10), teacher_id (6, 5, 2), grade (7, 4, 3) | course : staring_date (\"15 May\", \"9 May\", \"17 May\"), course_id (7, 4, 3), course (\"Science\", \"Music\", \"Bible\") | professor : hometown (\"Horwich Urban District\", \"Farnworth Municipal Borough\", \"Little Lever Urban District\"), age (\"41\", \"26\", \"33\"), teacher_id (6, 7, 4), name (\"Anne Walker\", \"Anne Walker\", \"John Deloor\") | instructor : hometown (\"Horwich Urban District\", \"Farnworth Municipal Borough\", \"Little Lever Urban District\"), age (\"41\", \"26\", \"33\"), teacher_id (6, 7, 4), name (\"Anne Walker\", \"Anne Walker\", \"John Deloor\")", + "schema_without_content": "course_arrange : course_id , teacher_id , grade | course : staring_date , course_id , course | professor : hometown , age , teacher_id , name | instructor : hometown , age , teacher_id , name", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course" + } + }, + { + "question": "show #names of teachers# that teach at least two #courses# .", + "db_id": "course_teach", + "orig_query": "select t2.name from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name having count(*) >= 2", + "schema_with_content": "class_schedule : grade (5, 1, 7), course_id (10, 2, 10), teacher_id (6, 6, 6) | teacher : hometown (\"Bolton County Borough\", \"Blackrod Urban District\", \"Horwich Urban District\"), name (\"John Deloor\", \"Anne Walker\", \"Anne Walker\"), teacher_id (7, 2, 3), age (\"33\", \"29\", \"33\") | timetable : grade (5, 1, 7), course_id (10, 2, 10), teacher_id (6, 6, 6) | course : course (\"Science\", \"French\", \"French\"), staring_date (\"14 May\", \"5 May\", \"17 May\"), course_id (4, 4, 8)", + "schema_without_content": "class_schedule : grade , course_id , teacher_id | teacher : hometown , name , teacher_id , age | timetable : grade , course_id , teacher_id | course : course , staring_date , course_id", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course" + } + }, + { + "question": "what are the #names of the teachers# who teach at least two courses?", + "db_id": "course_teach", + "orig_query": "select t2.name from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name having count(*) >= 2", + "schema_with_content": "instructor : teacher_id (4, 1, 4), age (\"29\", \"33\", \"33\"), name (\"Gustaaf Deloor\", \"Joseph Huts\", \"Lucy Wong\"), hometown (\"Turton Urban District\", \"Blackrod Urban District\", \"Horwich Urban District\") | professor : teacher_id (4, 1, 4), age (\"29\", \"33\", \"33\"), name (\"Gustaaf Deloor\", \"Joseph Huts\", \"Lucy Wong\"), hometown (\"Turton Urban District\", \"Blackrod Urban District\", \"Horwich Urban District\") | course : course (\"Sports\", \"Sports\", \"Health\"), staring_date (\"15 May\", \"9 May\", \"9 May\"), course_id (6, 6, 10) | course_arrange : grade (1, 1, 7), teacher_id (7, 3, 6), course_id (5, 10, 10)", + "schema_without_content": "instructor : teacher_id , age , name , hometown | professor : teacher_id , age , name , hometown | course : course , staring_date , course_id | course_arrange : grade , teacher_id , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name" + } + }, + { + "question": "what are the #names of the teachers# who teach at least two courses?", + "db_id": "course_teach", + "orig_query": "select t2.name from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name having count(*) >= 2", + "schema_with_content": "timetable : course_id (10, 2, 3), grade (3, 7, 3), teacher_id (2, 7, 6) | class_schedule : course_id (10, 2, 3), grade (3, 7, 3), teacher_id (2, 7, 6) | teacher : hometown (\"Blackrod Urban District\", \"Little Lever Urban District\", \"Kearsley Urban District\"), age (\"32\", \"39\", \"45\"), name (\"Kearsley Brown\", \"Joseph Huts\", \"Kearsley Brown\"), teacher_id (5, 2, 4) | course : course (\"History\", \"Bible\", \"Science\"), course_id (6, 2, 1), staring_date (\"5 May\", \"10 May\", \"14 May\")", + "schema_without_content": "timetable : course_id , grade , teacher_id | class_schedule : course_id , grade , teacher_id | teacher : hometown , age , name , teacher_id | course : course , course_id , staring_date", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name" + } + }, + { + "question": "list the #names of teachers# who have not been arranged to teach #courses# .", + "db_id": "course_teach", + "orig_query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", + "schema_with_content": "course : staring_date (\"6 May\", \"14 May\", \"10 May\"), course (\"Language Arts\", \"Geography\", \"Math\"), course_id (10, 2, 10) | instructor : age (\"26\", \"26\", \"33\"), hometown (\"Horwich Urban District\", \"Turton Urban District\", \"Horwich Urban District\"), teacher_id (3, 3, 4), name (\"Anne Walker\", \"Anne Walker\", \"Lucy Wong\") | professor : age (\"26\", \"26\", \"33\"), hometown (\"Horwich Urban District\", \"Turton Urban District\", \"Horwich Urban District\"), teacher_id (3, 3, 4), name (\"Anne Walker\", \"Anne Walker\", \"Lucy Wong\") | course_arrange : teacher_id (6, 3, 6), grade (7, 5, 1), course_id (2, 4, 4)", + "schema_without_content": "course : staring_date , course , course_id | instructor : age , hometown , teacher_id , name | professor : age , hometown , teacher_id , name | course_arrange : teacher_id , grade , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course_arrange" + } + }, + { + "question": "list the #names of teachers# who have not been arranged to teach #courses# .", + "db_id": "course_teach", + "orig_query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", + "schema_with_content": "teacher : age (\"29\", \"41\", \"33\"), teacher_id (4, 1, 7), hometown (\"Farnworth Municipal Borough\", \"Blackrod Urban District\", \"Farnworth Municipal Borough\"), name (\"Joseph Huts\", \"Lucy Wong\", \"Vicente Carretero\") | course : course (\"French\", \"Bible\", \"Geography\"), course_id (8, 9, 6), staring_date (\"10 May\", \"13 May\", \"6 May\") | timetable : teacher_id (5, 3, 7), course_id (10, 4, 5), grade (5, 7, 5) | class_schedule : teacher_id (5, 3, 7), course_id (10, 4, 5), grade (5, 7, 5)", + "schema_without_content": "teacher : age , teacher_id , hometown , name | course : course , course_id , staring_date | timetable : teacher_id , course_id , grade | class_schedule : teacher_id , course_id , grade", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of teachers": "teacher.Name", + "courses": "course_arrange" + } + }, + { + "question": "what are the #names of the teachers# whose #courses# have not been #arranged# ?", + "db_id": "course_teach", + "orig_query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", + "schema_with_content": "instructor : name (\"Lucy Wong\", \"Joseph Huts\", \"John Deloor\"), teacher_id (6, 2, 5), age (\"29\", \"32\", \"39\"), hometown (\"Farnworth Municipal Borough\", \"Bolton County Borough\", \"Kearsley Urban District\") | course_arrange : grade (5, 3, 1), teacher_id (5, 7, 2), course_id (4, 4, 10) | professor : name (\"Lucy Wong\", \"Joseph Huts\", \"John Deloor\"), teacher_id (6, 2, 5), age (\"29\", \"32\", \"39\"), hometown (\"Farnworth Municipal Borough\", \"Bolton County Borough\", \"Kearsley Urban District\") | course : staring_date (\"5 May\", \"5 May\", \"17 May\"), course (\"French\", \"French\", \"Sports\"), course_id (3, 9, 3)", + "schema_without_content": "instructor : name , teacher_id , age , hometown | course_arrange : grade , teacher_id , course_id | professor : name , teacher_id , age , hometown | course : staring_date , course , course_id", + "extra_map": null, + "extra_table_map": { + "teacher": [ + "instructor", + "professor" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "course", + "arranged": "course_arrange" + } + }, + { + "question": "what are the #names of the teachers# whose #courses# have not been #arranged# ?", + "db_id": "course_teach", + "orig_query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", + "schema_with_content": "timetable : course_id (10, 5, 5), teacher_id (7, 5, 7), grade (3, 5, 4) | class_schedule : course_id (10, 5, 5), teacher_id (7, 5, 7), grade (3, 5, 4) | teacher : teacher_id (7, 2, 4), age (\"45\", \"29\", \"33\"), hometown (\"Kearsley Urban District\", \"Bolton County Borough\", \"Farnworth Municipal Borough\"), name (\"Kearsley Brown\", \"John Deloor\", \"Joseph Huts\") | course : staring_date (\"17 May\", \"7 May\", \"14 May\"), course_id (6, 6, 2), course (\"Math\", \"Music\", \"Health\")", + "schema_without_content": "timetable : course_id , teacher_id , grade | class_schedule : course_id , teacher_id , grade | teacher : teacher_id , age , hometown , name | course : staring_date , course_id , course", + "extra_map": null, + "extra_table_map": { + "course_arrange": [ + "class_schedule", + "timetable" + ] + }, + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "column_linking_gt": { + "names of the teachers": "teacher.Name", + "courses": "course", + "arranged": "course_arrange" + } + }, + { + "question": "how many #visitors# below #age# 30 are there?", + "db_id": "museum_visit", + "orig_query": "select count(*) from visitor where age < 30", + "schema_with_content": "museum : open_year (\"2010\", \"2008\", \"2009\"), museum_id (4, 7, 8), name (\"Place Tower Museum\", \"Willow Grande Museum\", \"Capital Plaza Museum\"), num_of_staff (17, 62, 25) | guest : age (35, 56, 56), level_of_membership (5, 1, 6), name (\"Arjen Robben\", \"Ra\u00c3\u00bal Brown\", \"Ra\u00c3\u00bal Brown\"), id (6, 2, 2) | patron : age (35, 56, 56), level_of_membership (5, 1, 6), name (\"Arjen Robben\", \"Ra\u00c3\u00bal Brown\", \"Ra\u00c3\u00bal Brown\"), id (6, 2, 2) | visit : visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (10, 10, 2), museum_id (4, 1, 4), total_spent (89.98, 20.44, 320.44)", + "schema_without_content": "museum : open_year , museum_id , name , num_of_staff | guest : age , level_of_membership , name , id | patron : age , level_of_membership , name , id | visit : visitor_id , num_of_ticket , museum_id , total_spent", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "visitors": "visitor", + "age": "visitor.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_id": "museum_visit", + "orig_query": "select name from visitor where level_of_membership > 4 order by level_of_membership desc", + "schema_with_content": "guest : age (25, 35, 35), name (\"Gonzalo Higua\u00c3\u00adn \", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), level_of_membership (1, 1, 2), id (2, 4, 4) | patron : age (25, 35, 35), name (\"Gonzalo Higua\u00c3\u00adn \", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), level_of_membership (1, 1, 2), id (2, 4, 4) | visit : museum_id (8, 8, 8), total_spent (320.44, 320.44, 320.14), num_of_ticket (10, 24, 10), visitor_id (\"5\", \"3\", \"6\") | museum : museum_id (6, 7, 4), name (\"ZirMed Gateway Museum\", \"ZirMed Gateway Museum\", \"Plaza Museum\"), num_of_staff (18, 62, 25), open_year (\"2012\", \"2011\", \"2008\")", + "schema_without_content": "guest : age , name , level_of_membership , id | patron : age , name , level_of_membership , id | visit : museum_id , total_spent , num_of_ticket , visitor_id | museum : museum_id , name , num_of_staff , open_year", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "names of the visitors": "visitor.Name", + "membership level": "visitor.Level_of_membership" + } + }, + { + "question": "what is the #average age of the visitors# whose #membership level# is not higher than 4?", + "db_id": "museum_visit", + "orig_query": "select avg(age) from visitor where level_of_membership <= 4", + "schema_with_content": "museum : museum_id (7, 6, 8), open_year (\"2012\", \"2009\", \"2000\"), num_of_staff (12, 15, 12), name (\"Jefferson Development Museum\", \"ZirMed Gateway Museum\", \"Plaza Museum\") | visit : visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 8, 1), total_spent (320.44, 20.44, 320.14), num_of_ticket (2, 20, 3) | patron : level_of_membership (1, 5, 6), age (28, 25, 56), id (3, 5, 4), name (\"Guti Midfielder\", \"Gonzalo Higua\u00c3\u00adn \", \"Guti Midfielder\") | guest : level_of_membership (1, 5, 6), age (28, 25, 56), id (3, 5, 4), name (\"Guti Midfielder\", \"Gonzalo Higua\u00c3\u00adn \", \"Guti Midfielder\")", + "schema_without_content": "museum : museum_id , open_year , num_of_staff , name | visit : visitor_id , museum_id , total_spent , num_of_ticket | patron : level_of_membership , age , id , name | guest : level_of_membership , age , id , name", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "average age of the visitors": "visitor.Age", + "membership level": "visitor.Level_of_membership" + } + }, + { + "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_id": "museum_visit", + "orig_query": "select name, level_of_membership from visitor where level_of_membership > 4 order by age desc", + "schema_with_content": "guest : name (\"Guti Midfielder\", \"Gonzalo Higua\u00c3\u00adn \", \"Arjen Robben\"), id (5, 1, 5), level_of_membership (2, 8, 2), age (35, 27, 27) | museum : museum_id (5, 3, 7), open_year (\"2009\", \"2008\", \"2008\"), num_of_staff (16, 25, 25), name (\"Plaza Museum\", \"ZirMed Gateway Museum\", \"Jefferson Development Museum\") | visit : num_of_ticket (3, 20, 24), total_spent (89.98, 209.98, 89.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (4, 4, 1) | patron : name (\"Guti Midfielder\", \"Gonzalo Higua\u00c3\u00adn \", \"Arjen Robben\"), id (5, 1, 5), level_of_membership (2, 8, 2), age (35, 27, 27)", + "schema_without_content": "guest : name , id , level_of_membership , age | museum : museum_id , open_year , num_of_staff , name | visit : num_of_ticket , total_spent , visitor_id , museum_id | patron : name , id , level_of_membership , age", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "name": "visitor.Name", + "membership level": "visitor.Level_of_membership", + "age": "visitor.Age" + } + }, + { + "question": "find the #id# and #name of the museum# that has the #most staff members# ?", + "db_id": "museum_visit", + "orig_query": "select museum_id, name from museum order by num_of_staff desc limit 1", + "schema_with_content": "exhibition : num_of_staff (16, 17, 17), open_year (\"2009\", \"2011\", \"2009\"), name (\"RiverPark Museum\", \"Place Tower Museum\", \"Central City District Residential Museum\"), museum_id (7, 8, 6) | visitor : level_of_membership (2, 1, 2), name (\"Ra\u00c3\u00bal Brown\", \"Arjen Robben\", \"Arjen Robben\"), id (5, 5, 1), age (27, 27, 36) | gallery : num_of_staff (16, 17, 17), open_year (\"2009\", \"2011\", \"2009\"), name (\"RiverPark Museum\", \"Place Tower Museum\", \"Central City District Residential Museum\"), museum_id (7, 8, 6) | visit : num_of_ticket (10, 4, 3), total_spent (209.98, 320.44, 209.98), museum_id (1, 8, 4), visitor_id (\"5\", \"3\", \"6\")", + "schema_without_content": "exhibition : num_of_staff , open_year , name , museum_id | visitor : level_of_membership , name , id , age | gallery : num_of_staff , open_year , name , museum_id | visit : num_of_ticket , total_spent , museum_id , visitor_id", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "id": "museum.Museum_ID", + "name of the museum": "museum.Name", + "most staff members": "museum.Num_of_Staff" + } + }, + { + "question": "find the #average number of staff# working for the #museums# that were #open before 2009# .", + "db_id": "museum_visit", + "orig_query": "select avg(num_of_staff) from museum where open_year < 2009", + "schema_with_content": "gallery : name (\"Central City District Residential Museum\", \"Place Tower Museum\", \"ZirMed Gateway Museum\"), num_of_staff (15, 16, 18), museum_id (2, 3, 6), open_year (\"2010\", \"2012\", \"2011\") | visit : visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (2, 2, 24), total_spent (320.14, 320.44, 209.98), museum_id (8, 1, 8) | visitor : level_of_membership (8, 6, 5), id (5, 2, 3), age (35, 36, 28), name (\"Gonzalo Higua\u00c3\u00adn \", \"Guti Midfielder\", \"Arjen Robben\") | exhibition : name (\"Central City District Residential Museum\", \"Place Tower Museum\", \"ZirMed Gateway Museum\"), num_of_staff (15, 16, 18), museum_id (2, 3, 6), open_year (\"2010\", \"2012\", \"2011\")", + "schema_without_content": "gallery : name , num_of_staff , museum_id , open_year | visit : visitor_id , num_of_ticket , total_spent , museum_id | visitor : level_of_membership , id , age , name | exhibition : name , num_of_staff , museum_id , open_year", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "average number of staff": "museum.Num_of_Staff", + "museums": "museum", + "open before 2009": "museum.Open_Year" + } + }, + { + "question": "what are the #opening year# and #staff number of the museum named plaza museum# ?", + "db_id": "museum_visit", + "orig_query": "select num_of_staff, open_year from museum where name = 'Plaza Museum'", + "schema_with_content": "exhibition : num_of_staff (12, 16, 62), museum_id (7, 4, 6), open_year (\"2012\", \"2011\", \"2000\"), name (\"ZirMed Gateway Museum\", \"RiverPark Museum\", \"Willow Grande Museum\") | visit : museum_id (4, 1, 4), num_of_ticket (2, 4, 20), total_spent (209.98, 209.98, 19.98), visitor_id (\"5\", \"3\", \"6\") | visitor : age (36, 35, 56), level_of_membership (1, 6, 1), id (2, 2, 1), name (\"Ra\u00c3\u00bal Brown\", \"Rafael van der Vaart\", \"Gonzalo Higua\u00c3\u00adn \") | gallery : num_of_staff (12, 16, 62), museum_id (7, 4, 6), open_year (\"2012\", \"2011\", \"2000\"), name (\"ZirMed Gateway Museum\", \"RiverPark Museum\", \"Willow Grande Museum\")", + "schema_without_content": "exhibition : num_of_staff , museum_id , open_year , name | visit : museum_id , num_of_ticket , total_spent , visitor_id | visitor : age , level_of_membership , id , name | gallery : num_of_staff , museum_id , open_year , name", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "opening year": "museum.Open_Year", + "staff number of the museum named Plaza Museum": "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_id": "museum_visit", + "orig_query": "select name from museum where num_of_staff > (select min(num_of_staff) from museum where open_year > 2010)", + "schema_with_content": "exhibition : museum_id (4, 2, 3), name (\"Capital Plaza Museum\", \"Capital Plaza Museum\", \"Capital Plaza Museum\"), num_of_staff (25, 25, 17), open_year (\"2008\", \"2009\", \"2010\") | visitor : name (\"Gonzalo Higua\u00c3\u00adn \", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), age (35, 25, 56), level_of_membership (2, 8, 2), id (3, 4, 5) | gallery : museum_id (4, 2, 3), name (\"Capital Plaza Museum\", \"Capital Plaza Museum\", \"Capital Plaza Museum\"), num_of_staff (25, 25, 17), open_year (\"2008\", \"2009\", \"2010\") | visit : visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (3, 3, 2), total_spent (19.98, 20.44, 209.98), museum_id (2, 4, 1)", + "schema_without_content": "exhibition : museum_id , name , num_of_staff , open_year | visitor : name , age , level_of_membership , id | gallery : museum_id , name , num_of_staff , open_year | visit : visitor_id , num_of_ticket , total_spent , museum_id", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names": "museum.Name", + "more staff": "museum.Num_of_Staff", + "minimum staff number of all museums opened after 2010": "museum.Num_of_Staff" + } + }, + { + "question": "find the #id# , #name# and a #ge for visitors# who visited some #museums# more than once.", + "db_id": "museum_visit", + "orig_query": "select t1.id, t1.name, t1.age from visitor as t1 join visit as t2 on t1.id = t2.visitor_id group by t1.id having count(*) > 1", + "schema_with_content": "visit : total_spent (320.44, 209.98, 320.14), num_of_ticket (2, 4, 4), visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 8, 2) | museum : num_of_staff (12, 62, 25), name (\"Place Tower Museum\", \"Central City District Residential Museum\", \"RiverPark Museum\"), open_year (\"2008\", \"2011\", \"2011\"), museum_id (8, 7, 5) | guest : id (2, 5, 6), name (\"Gonzalo Higua\u00c3\u00adn \", \"Rafael van der Vaart\", \"Fernando Gago\"), age (28, 36, 36), level_of_membership (8, 2, 1) | patron : id (2, 5, 6), name (\"Gonzalo Higua\u00c3\u00adn \", \"Rafael van der Vaart\", \"Fernando Gago\"), age (28, 36, 36), level_of_membership (8, 2, 1)", + "schema_without_content": "visit : total_spent , num_of_ticket , visitor_id , museum_id | museum : num_of_staff , name , open_year , museum_id | guest : id , name , age , level_of_membership | patron : id , name , age , level_of_membership", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "id": "visitor.ID", + "name": "visitor.Name", + "ge for visitors": "visitor", + "museums": "museum", + "age": "visitor.Age" + } + }, + { + "question": "find the #id# , #name# and a #ge for visitors# who visited some #museums# more than once.", + "db_id": "museum_visit", + "orig_query": "select t1.id, t1.name, t1.age from visitor as t1 join visit as t2 on t1.id = t2.visitor_id group by t1.id having count(*) > 1", + "schema_with_content": "visitor : age (36, 28, 27), id (2, 2, 3), level_of_membership (1, 2, 6), name (\"Ra\u00c3\u00bal Brown\", \"Gonzalo Higua\u00c3\u00adn \", \"Arjen Robben\") | attendance : total_spent (320.44, 19.98, 19.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (4, 8, 2), num_of_ticket (3, 4, 2) | museum : num_of_staff (16, 12, 12), open_year (\"2009\", \"2012\", \"2009\"), name (\"Plaza Museum\", \"ZirMed Gateway Museum\", \"Plaza Museum\"), museum_id (1, 4, 7) | check-in : total_spent (320.44, 19.98, 19.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (4, 8, 2), num_of_ticket (3, 4, 2)", + "schema_without_content": "visitor : age , id , level_of_membership , name | attendance : total_spent , visitor_id , museum_id , num_of_ticket | museum : num_of_staff , open_year , name , museum_id | check-in : total_spent , visitor_id , museum_id , num_of_ticket", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "id": "visitor.ID", + "name": "visitor.Name", + "ge for visitors": "visitor", + "museums": "museum", + "age": "visitor.Age" + } + }, + { + "question": "what are the #id# , #name# and m #embership level of visitors# who have #spent# the largest amount of money in total in all #museum tickets# ?", + "db_id": "museum_visit", + "orig_query": "select t2.visitor_id, t1.name, t1.level_of_membership from visitor as t1 join visit as t2 on t1.id = t2.visitor_id group by t2.visitor_id order by sum(t2.total_spent) desc limit 1", + "schema_with_content": "patron : age (25, 36, 28), id (1, 6, 1), level_of_membership (6, 6, 2), name (\"Gonzalo Higua\u00c3\u00adn \", \"Rafael van der Vaart\", \"Ra\u00c3\u00bal Brown\") | visit : visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (24, 4, 10), total_spent (89.98, 209.98, 320.14), museum_id (2, 1, 8) | guest : age (25, 36, 28), id (1, 6, 1), level_of_membership (6, 6, 2), name (\"Gonzalo Higua\u00c3\u00adn \", \"Rafael van der Vaart\", \"Ra\u00c3\u00bal Brown\") | museum : museum_id (2, 8, 8), num_of_staff (15, 62, 62), name (\"Place Tower Museum\", \"Capital Plaza Museum\", \"Plaza Museum\"), open_year (\"2010\", \"2009\", \"2008\")", + "schema_without_content": "patron : age , id , level_of_membership , name | visit : visitor_id , num_of_ticket , total_spent , museum_id | guest : age , id , level_of_membership , name | museum : museum_id , num_of_staff , name , open_year", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "id": "visitor.ID", + "name": "visitor.Name", + "embership level of visitors": "visitor", + "spent": "visit.Total_spent", + "museum tickets": "visit", + "membership level": "visitor.Level_of_membership" + } + }, + { + "question": "what are the #id# , #name# and m #embership level of visitors# who have #spent# the largest amount of money in total in all #museum tickets# ?", + "db_id": "museum_visit", + "orig_query": "select t2.visitor_id, t1.name, t1.level_of_membership from visitor as t1 join visit as t2 on t1.id = t2.visitor_id group by t2.visitor_id order by sum(t2.total_spent) desc limit 1", + "schema_with_content": "attendance : museum_id (8, 4, 4), total_spent (320.44, 20.44, 20.44), visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (24, 2, 10) | museum : museum_id (3, 2, 5), name (\"Capital Plaza Museum\", \"ZirMed Gateway Museum\", \"ZirMed Gateway Museum\"), open_year (\"2010\", \"2000\", \"2011\"), num_of_staff (15, 15, 12) | check-in : museum_id (8, 4, 4), total_spent (320.44, 20.44, 20.44), visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (24, 2, 10) | visitor : age (27, 35, 28), level_of_membership (5, 1, 2), id (5, 5, 4), name (\"Ra\u00c3\u00bal Brown\", \"Guti Midfielder\", \"Arjen Robben\")", + "schema_without_content": "attendance : museum_id , total_spent , visitor_id , num_of_ticket | museum : museum_id , name , open_year , num_of_staff | check-in : museum_id , total_spent , visitor_id , num_of_ticket | visitor : age , level_of_membership , id , name", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "id": "visitor.ID", + "name": "visitor.Name", + "embership level of visitors": "visitor", + "spent": "visit.Total_spent", + "museum tickets": "visit", + "membership level": "visitor.Level_of_membership" + } + }, + { + "question": "what are the #id# and #name of the museum# visited most times?", + "db_id": "museum_visit", + "orig_query": "select t2.museum_id, t1.name from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id group by t2.museum_id order by count(*) desc limit 1", + "schema_with_content": "visit : num_of_ticket (10, 2, 24), museum_id (4, 8, 4), total_spent (320.44, 19.98, 320.44), visitor_id (\"5\", \"3\", \"6\") | exhibition : open_year (\"2000\", \"2011\", \"2011\"), name (\"Plaza Museum\", \"Place Tower Museum\", \"Central City District Residential Museum\"), museum_id (3, 3, 2), num_of_staff (25, 15, 16) | gallery : open_year (\"2000\", \"2011\", \"2011\"), name (\"Plaza Museum\", \"Place Tower Museum\", \"Central City District Residential Museum\"), museum_id (3, 3, 2), num_of_staff (25, 15, 16) | visitor : id (1, 5, 6), name (\"Fernando Gago\", \"Guti Midfielder\", \"Ra\u00c3\u00bal Brown\"), level_of_membership (6, 5, 1), age (25, 56, 25)", + "schema_without_content": "visit : num_of_ticket , museum_id , total_spent , visitor_id | exhibition : open_year , name , museum_id , num_of_staff | gallery : open_year , name , museum_id , num_of_staff | visitor : id , name , level_of_membership , age", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "id": "museum.Museum_ID", + "name of the museum": "museum.Name" + } + }, + { + "question": "what are the #id# and #name of the museum# visited most times?", + "db_id": "museum_visit", + "orig_query": "select t2.museum_id, t1.name from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id group by t2.museum_id order by count(*) desc limit 1", + "schema_with_content": "visitor : name (\"Gonzalo Higua\u00c3\u00adn \", \"Ra\u00c3\u00bal Brown\", \"Rafael van der Vaart\"), level_of_membership (1, 6, 8), age (36, 25, 35), id (6, 6, 4) | check-in : total_spent (20.44, 19.98, 320.44), num_of_ticket (10, 10, 2), museum_id (8, 2, 1), visitor_id (\"5\", \"3\", \"6\") | attendance : total_spent (20.44, 19.98, 320.44), num_of_ticket (10, 10, 2), museum_id (8, 2, 1), visitor_id (\"5\", \"3\", \"6\") | museum : open_year (\"2011\", \"2012\", \"2011\"), name (\"Central City District Residential Museum\", \"Central City District Residential Museum\", \"Willow Grande Museum\"), museum_id (2, 4, 2), num_of_staff (12, 17, 25)", + "schema_without_content": "visitor : name , level_of_membership , age , id | check-in : total_spent , num_of_ticket , museum_id , visitor_id | attendance : total_spent , num_of_ticket , museum_id , visitor_id | museum : open_year , name , museum_id , num_of_staff", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "id": "museum.Museum_ID", + "name of the museum": "museum.Name" + } + }, + { + "question": "what is the #name of the museum# that had no #visitor# yet?", + "db_id": "museum_visit", + "orig_query": "select name from museum where museum_id not in (select museum_id from visit)", + "schema_with_content": "exhibition : open_year (\"2011\", \"2009\", \"2012\"), name (\"Willow Grande Museum\", \"Central City District Residential Museum\", \"RiverPark Museum\"), num_of_staff (16, 12, 62), museum_id (1, 1, 8) | gallery : open_year (\"2011\", \"2009\", \"2012\"), name (\"Willow Grande Museum\", \"Central City District Residential Museum\", \"RiverPark Museum\"), num_of_staff (16, 12, 62), museum_id (1, 1, 8) | visitor : id (6, 2, 1), level_of_membership (8, 5, 6), name (\"Arjen Robben\", \"Arjen Robben\", \"Guti Midfielder\"), age (27, 25, 28) | visit : num_of_ticket (20, 20, 4), total_spent (209.98, 89.98, 89.98), museum_id (2, 1, 4), visitor_id (\"5\", \"3\", \"6\")", + "schema_without_content": "exhibition : open_year , name , num_of_staff , museum_id | gallery : open_year , name , num_of_staff , museum_id | visitor : id , level_of_membership , name , age | visit : num_of_ticket , total_spent , museum_id , visitor_id", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the museum": "museum.Name", + "visitor": "visit.visitor_ID" + } + }, + { + "question": "what is the #name of the museum# that had no #visitor# yet?", + "db_id": "museum_visit", + "orig_query": "select name from museum where museum_id not in (select museum_id from visit)", + "schema_with_content": "attendance : total_spent (320.44, 320.44, 20.44), num_of_ticket (10, 3, 20), museum_id (4, 8, 4), visitor_id (\"5\", \"3\", \"6\") | museum : num_of_staff (18, 18, 16), name (\"Willow Grande Museum\", \"Jefferson Development Museum\", \"Place Tower Museum\"), open_year (\"2008\", \"2008\", \"2000\"), museum_id (7, 8, 3) | visitor : level_of_membership (2, 6, 5), id (1, 5, 4), age (35, 25, 28), name (\"Ra\u00c3\u00bal Brown\", \"Arjen Robben\", \"Rafael van der Vaart\") | check-in : total_spent (320.44, 320.44, 20.44), num_of_ticket (10, 3, 20), museum_id (4, 8, 4), visitor_id (\"5\", \"3\", \"6\")", + "schema_without_content": "attendance : total_spent , num_of_ticket , museum_id , visitor_id | museum : num_of_staff , name , open_year , museum_id | visitor : level_of_membership , id , age , name | check-in : total_spent , num_of_ticket , museum_id , visitor_id", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "name of the museum": "museum.Name", + "visitor": "visit.visitor_ID" + } + }, + { + "question": "find the #name# and #age of the visitor# who bought the most #tickets# at once.", + "db_id": "museum_visit", + "orig_query": "select t1.name, t1.age from visitor as t1 join visit as t2 on t1.id = t2.visitor_id order by t2.num_of_ticket desc limit 1", + "schema_with_content": "visit : num_of_ticket (20, 10, 4), total_spent (320.44, 20.44, 320.14), museum_id (1, 2, 2), visitor_id (\"5\", \"3\", \"6\") | patron : name (\"Fernando Gago\", \"Fernando Gago\", \"Gonzalo Higua\u00c3\u00adn \"), id (5, 3, 6), age (28, 56, 28), level_of_membership (6, 6, 6) | guest : name (\"Fernando Gago\", \"Fernando Gago\", \"Gonzalo Higua\u00c3\u00adn \"), id (5, 3, 6), age (28, 56, 28), level_of_membership (6, 6, 6) | museum : name (\"Willow Grande Museum\", \"Plaza Museum\", \"Willow Grande Museum\"), museum_id (2, 3, 1), num_of_staff (17, 17, 15), open_year (\"2011\", \"2011\", \"2009\")", + "schema_without_content": "visit : num_of_ticket , total_spent , museum_id , visitor_id | patron : name , id , age , level_of_membership | guest : name , id , age , level_of_membership | museum : name , museum_id , num_of_staff , open_year", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "name": "visitor.Name", + "age of the visitor": "visitor.Age", + "tickets": "visit.Num_of_Ticket" + } + }, + { + "question": "find the #name# and #age of the visitor# who bought the most #tickets# at once.", + "db_id": "museum_visit", + "orig_query": "select t1.name, t1.age from visitor as t1 join visit as t2 on t1.id = t2.visitor_id order by t2.num_of_ticket desc limit 1", + "schema_with_content": "visitor : age (25, 36, 25), id (5, 6, 6), name (\"Ra\u00c3\u00bal Brown\", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), level_of_membership (2, 6, 6) | attendance : museum_id (1, 8, 4), total_spent (19.98, 20.44, 209.98), visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (10, 10, 3) | check-in : museum_id (1, 8, 4), total_spent (19.98, 20.44, 209.98), visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (10, 10, 3) | museum : num_of_staff (16, 16, 12), name (\"Place Tower Museum\", \"Central City District Residential Museum\", \"RiverPark Museum\"), open_year (\"2008\", \"2010\", \"2008\"), museum_id (7, 1, 8)", + "schema_without_content": "visitor : age , id , name , level_of_membership | attendance : museum_id , total_spent , visitor_id , num_of_ticket | check-in : museum_id , total_spent , visitor_id , num_of_ticket | museum : num_of_staff , name , open_year , museum_id", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "name": "visitor.Name", + "age of the visitor": "visitor.Age", + "tickets": "visit.Num_of_Ticket" + } + }, + { + "question": "what is the #total ticket expense of the visitors# whose #membership level# is 1?", + "db_id": "museum_visit", + "orig_query": "select sum(t2.total_spent) from visitor as t1 join visit as t2 on t1.id = t2.visitor_id where t1.level_of_membership = 1", + "schema_with_content": "guest : id (4, 4, 5), name (\"Rafael van der Vaart\", \"Ra\u00c3\u00bal Brown\", \"Fernando Gago\"), age (56, 35, 28), level_of_membership (1, 1, 1) | museum : name (\"Central City District Residential Museum\", \"ZirMed Gateway Museum\", \"Jefferson Development Museum\"), open_year (\"2000\", \"2012\", \"2011\"), num_of_staff (62, 25, 18), museum_id (1, 7, 2) | patron : id (4, 4, 5), name (\"Rafael van der Vaart\", \"Ra\u00c3\u00bal Brown\", \"Fernando Gago\"), age (56, 35, 28), level_of_membership (1, 1, 1) | visit : visitor_id (\"5\", \"3\", \"6\"), museum_id (2, 8, 2), num_of_ticket (24, 2, 20), total_spent (320.44, 19.98, 20.44)", + "schema_without_content": "guest : id , name , age , level_of_membership | museum : name , open_year , num_of_staff , museum_id | patron : id , name , age , level_of_membership | visit : visitor_id , museum_id , num_of_ticket , total_spent", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "total ticket expense of the visitors": "visit.Total_spent", + "membership level": "visitor.Level_of_membership" + } + }, + { + "question": "what is the #total ticket expense of the visitors# whose #membership level# is 1?", + "db_id": "museum_visit", + "orig_query": "select sum(t2.total_spent) from visitor as t1 join visit as t2 on t1.id = t2.visitor_id where t1.level_of_membership = 1", + "schema_with_content": "museum : museum_id (4, 1, 2), name (\"Place Tower Museum\", \"Place Tower Museum\", \"Place Tower Museum\"), open_year (\"2008\", \"2008\", \"2011\"), num_of_staff (25, 15, 16) | visitor : id (2, 3, 6), name (\"Gonzalo Higua\u00c3\u00adn \", \"Gonzalo Higua\u00c3\u00adn \", \"Guti Midfielder\"), age (35, 35, 36), level_of_membership (1, 2, 6) | attendance : visitor_id (\"5\", \"3\", \"6\"), museum_id (2, 1, 2), total_spent (20.44, 19.98, 320.44), num_of_ticket (4, 10, 20) | check-in : visitor_id (\"5\", \"3\", \"6\"), museum_id (2, 1, 2), total_spent (20.44, 19.98, 320.44), num_of_ticket (4, 10, 20)", + "schema_without_content": "museum : museum_id , name , open_year , num_of_staff | visitor : id , name , age , level_of_membership | attendance : visitor_id , museum_id , total_spent , num_of_ticket | check-in : visitor_id , museum_id , total_spent , num_of_ticket", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "total ticket expense of the visitors": "visit.Total_spent", + "membership level": "visitor.Level_of_membership" + } + }, + { + "question": "what is the #name of the visitor# who visited both a #museum opened before 2009# and a #museum opened after 2011# ?", + "db_id": "museum_visit", + "orig_query": "select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year < 2009 intersect select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year > 2011", + "schema_with_content": "exhibition : num_of_staff (25, 16, 25), open_year (\"2000\", \"2012\", \"2010\"), museum_id (1, 3, 5), name (\"Jefferson Development Museum\", \"Jefferson Development Museum\", \"Place Tower Museum\") | visit : visitor_id (\"5\", \"3\", \"6\"), total_spent (320.14, 20.44, 320.44), num_of_ticket (2, 10, 20), museum_id (8, 4, 2) | visitor : level_of_membership (1, 8, 2), id (1, 1, 4), age (28, 27, 25), name (\"Fernando Gago\", \"Ra\u00c3\u00bal Brown\", \"Ra\u00c3\u00bal Brown\") | gallery : num_of_staff (25, 16, 25), open_year (\"2000\", \"2012\", \"2010\"), museum_id (1, 3, 5), name (\"Jefferson Development Museum\", \"Jefferson Development Museum\", \"Place Tower Museum\")", + "schema_without_content": "exhibition : num_of_staff , open_year , museum_id , name | visit : visitor_id , total_spent , num_of_ticket , museum_id | visitor : level_of_membership , id , age , name | gallery : num_of_staff , open_year , museum_id , name", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the visitor": "visitor.Name", + "museum opened before 2009": "museum.Open_Year", + "museum opened after 2011": "museum.Open_Year" + } + }, + { + "question": "what is the #name of the visitor# who visited both a #museum opened before 2009# and a #museum opened after 2011# ?", + "db_id": "museum_visit", + "orig_query": "select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year < 2009 intersect select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year > 2011", + "schema_with_content": "guest : name (\"Rafael van der Vaart\", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), level_of_membership (1, 2, 1), age (28, 28, 36), id (6, 5, 2) | museum : name (\"ZirMed Gateway Museum\", \"Jefferson Development Museum\", \"Capital Plaza Museum\"), museum_id (8, 1, 7), num_of_staff (12, 12, 17), open_year (\"2000\", \"2009\", \"2012\") | visit : total_spent (320.44, 320.44, 320.44), num_of_ticket (24, 3, 24), museum_id (2, 8, 8), visitor_id (\"5\", \"3\", \"6\") | patron : name (\"Rafael van der Vaart\", \"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\"), level_of_membership (1, 2, 1), age (28, 28, 36), id (6, 5, 2)", + "schema_without_content": "guest : name , level_of_membership , age , id | museum : name , museum_id , num_of_staff , open_year | visit : total_spent , num_of_ticket , museum_id , visitor_id | patron : name , level_of_membership , age , id", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "name of the visitor": "visitor.Name", + "museum opened before 2009": "museum.Open_Year", + "museum opened after 2011": "museum.Open_Year" + } + }, + { + "question": "what is the #name of the visitor# who visited both a #museum opened before 2009# and a #museum opened after 2011# ?", + "db_id": "museum_visit", + "orig_query": "select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year < 2009 intersect select t1.name from visitor as t1 join visit as t2 on t1.id = t2.visitor_id join museum as t3 on t3.museum_id = t2.museum_id where t3.open_year > 2011", + "schema_with_content": "visitor : name (\"Gonzalo Higua\u00c3\u00adn \", \"Fernando Gago\", \"Rafael van der Vaart\"), level_of_membership (2, 8, 2), id (3, 1, 3), age (35, 36, 27) | attendance : num_of_ticket (20, 3, 20), total_spent (320.14, 320.44, 19.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 1, 8) | museum : open_year (\"2011\", \"2000\", \"2008\"), num_of_staff (16, 62, 25), name (\"Central City District Residential Museum\", \"ZirMed Gateway Museum\", \"RiverPark Museum\"), museum_id (1, 1, 8) | check-in : num_of_ticket (20, 3, 20), total_spent (320.14, 320.44, 19.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 1, 8)", + "schema_without_content": "visitor : name , level_of_membership , id , age | attendance : num_of_ticket , total_spent , visitor_id , museum_id | museum : open_year , num_of_staff , name , museum_id | check-in : num_of_ticket , total_spent , visitor_id , museum_id", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "name of the visitor": "visitor.Name", + "museum opened before 2009": "museum.Open_Year", + "museum opened after 2011": "museum.Open_Year" + } + }, + { + "question": "find the #number of visitors# who did not visit any #museum opened after 2010# .", + "db_id": "museum_visit", + "orig_query": "select count(*) from visitor where id not in (select t2.visitor_id from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id where t1.open_year > 2010)", + "schema_with_content": "exhibition : num_of_staff (17, 12, 25), open_year (\"2009\", \"2012\", \"2012\"), museum_id (4, 4, 5), name (\"Willow Grande Museum\", \"Jefferson Development Museum\", \"Willow Grande Museum\") | gallery : num_of_staff (17, 12, 25), open_year (\"2009\", \"2012\", \"2012\"), museum_id (4, 4, 5), name (\"Willow Grande Museum\", \"Jefferson Development Museum\", \"Willow Grande Museum\") | visitor : age (56, 25, 25), id (3, 5, 6), name (\"Fernando Gago\", \"Ra\u00c3\u00bal Brown\", \"Rafael van der Vaart\"), level_of_membership (5, 1, 6) | visit : total_spent (320.44, 20.44, 89.98), visitor_id (\"5\", \"3\", \"6\"), num_of_ticket (3, 2, 2), museum_id (1, 1, 2)", + "schema_without_content": "exhibition : num_of_staff , open_year , museum_id , name | gallery : num_of_staff , open_year , museum_id , name | visitor : age , id , name , level_of_membership | visit : total_spent , visitor_id , num_of_ticket , museum_id", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of visitors": "visitor.ID", + "museum opened after 2010": "museum.Open_Year" + } + }, + { + "question": "find the #number of visitors# who did not visit any #museum opened after 2010# .", + "db_id": "museum_visit", + "orig_query": "select count(*) from visitor where id not in (select t2.visitor_id from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id where t1.open_year > 2010)", + "schema_with_content": "patron : age (25, 25, 56), level_of_membership (5, 8, 8), name (\"Ra\u00c3\u00bal Brown\", \"Arjen Robben\", \"Rafael van der Vaart\"), id (2, 1, 3) | guest : age (25, 25, 56), level_of_membership (5, 8, 8), name (\"Ra\u00c3\u00bal Brown\", \"Arjen Robben\", \"Rafael van der Vaart\"), id (2, 1, 3) | museum : num_of_staff (15, 62, 18), name (\"RiverPark Museum\", \"RiverPark Museum\", \"Place Tower Museum\"), museum_id (3, 8, 2), open_year (\"2012\", \"2008\", \"2010\") | visit : total_spent (320.44, 20.44, 19.98), visitor_id (\"5\", \"3\", \"6\"), museum_id (4, 4, 4), num_of_ticket (10, 4, 20)", + "schema_without_content": "patron : age , level_of_membership , name , id | guest : age , level_of_membership , name , id | museum : num_of_staff , name , museum_id , open_year | visit : total_spent , visitor_id , museum_id , num_of_ticket", + "extra_map": null, + "extra_table_map": { + "visitor": [ + "guest", + "patron" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "column_linking_gt": { + "number of visitors": "visitor.ID", + "museum opened after 2010": "museum.Open_Year" + } + }, + { + "question": "find the #number of visitors# who did not visit any #museum opened after 2010# .", + "db_id": "museum_visit", + "orig_query": "select count(*) from visitor where id not in (select t2.visitor_id from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id where t1.open_year > 2010)", + "schema_with_content": "visitor : age (28, 25, 25), id (2, 1, 2), name (\"Rafael van der Vaart\", \"Ra\u00c3\u00bal Brown\", \"Arjen Robben\"), level_of_membership (5, 1, 8) | check-in : num_of_ticket (10, 24, 4), visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 8, 2), total_spent (320.14, 89.98, 19.98) | attendance : num_of_ticket (10, 24, 4), visitor_id (\"5\", \"3\", \"6\"), museum_id (1, 8, 2), total_spent (320.14, 89.98, 19.98) | museum : open_year (\"2000\", \"2011\", \"2000\"), name (\"Capital Plaza Museum\", \"Plaza Museum\", \"Willow Grande Museum\"), museum_id (8, 2, 8), num_of_staff (25, 62, 12)", + "schema_without_content": "visitor : age , id , name , level_of_membership | check-in : num_of_ticket , visitor_id , museum_id , total_spent | attendance : num_of_ticket , visitor_id , museum_id , total_spent | museum : open_year , name , museum_id , num_of_staff", + "extra_map": null, + "extra_table_map": { + "visit": [ + "attendance", + "check-in" + ] + }, + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "column_linking_gt": { + "number of visitors": "visitor.ID", + "museum opened after 2010": "museum.Open_Year" + } + }, + { + "question": "how many #museums# were #opened# after 2013 or before 2008?", + "db_id": "museum_visit", + "orig_query": "select count(*) from museum where open_year > 2013 or open_year < 2008", + "schema_with_content": "visitor : name (\"Arjen Robben\", \"Rafael van der Vaart\", \"Rafael van der Vaart\"), id (4, 3, 6), level_of_membership (6, 6, 8), age (27, 56, 35) | exhibition : museum_id (7, 3, 4), open_year (\"2011\", \"2010\", \"2010\"), num_of_staff (17, 17, 16), name (\"Jefferson Development Museum\", \"Willow Grande Museum\", \"Jefferson Development Museum\") | gallery : museum_id (7, 3, 4), open_year (\"2011\", \"2010\", \"2010\"), num_of_staff (17, 17, 16), name (\"Jefferson Development Museum\", \"Willow Grande Museum\", \"Jefferson Development Museum\") | visit : total_spent (320.44, 89.98, 19.98), num_of_ticket (3, 24, 4), museum_id (8, 2, 1), visitor_id (\"5\", \"3\", \"6\")", + "schema_without_content": "visitor : name , id , level_of_membership , age | exhibition : museum_id , open_year , num_of_staff , name | gallery : museum_id , open_year , num_of_staff , name | visit : total_spent , num_of_ticket , museum_id , visitor_id", + "extra_map": null, + "extra_table_map": { + "museum": [ + "gallery", + "exhibition" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "museums": "museum", + "opened": "museum.Open_Year" + } + }, + { + "question": "list the #first name# and #birth date of all players# from the country with code usa.", + "db_id": "wta_1", + "orig_query": "select first_name, birth_date from players where country_code = 'USA'", + "schema_with_content": "matches : loser_rank (66, 47, 45), best_of (3), loser_hand (\"R\", \"L\"), loser_rank_points (3465, 4370, 6751), loser_ioc (\"SUI\", \"AUS\", \"UKR\"), winner_ioc (\"GER\", \"CHN\", \"NED\"), tourney_level (\"W\", \"G\", \"I\"), loser_id (201397, 201517, 201596), score (\"7-5 4-6 6-4\", \"3-6 6-1 6-1\", \"4-6 6-4 7-6(3)\"), draw_size (64, 4, 64), loser_age (27.373032169699997, 28.449007529099998, 30.045174538), loser_ht (169, 184, 165), winner_rank (61, 6, 1), winner_rank_points (4100, 1658, 2390), loser_seed (18, 7, 31), round (\"RR\", \"RR\", \"RR\"), match_num (161, 221, 209), winner_ht (177, 183, 175), winner_id (201520, 201595, 201595), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (85, 151, 130), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), tourney_id (\"2017-1039\", \"2016-0808\", \"2016-0703\"), winner_seed (5, 15, 3), tourney_date (20160523, 20170626, 20160509), winner_name (\"Garbine Muguruza\", \"Garbine Muguruza\", \"Caroline Wozniacki\"), winner_entry (\"\"), loser_name (\"Annika Beck\", \"Svetlana Kuznetsova\", \"Sloane Stephens\"), loser_entry (\"\"), tourney_name (\"Luxembourg\", \"Stanford\", \"Zhuhai\"), winner_age (34.6173853525, 30.904859685100003, 26.1136208077) | rankings : ranking (1388, 1080, 1141), player_id (201125, 201560, 201589), tours (16, 22, 36), ranking_points (290, 8509, 695), ranking_date (19940905, 19911202, 20030505) | athletes : birth_date (19690813, 19760301, 19581103), country_code (\"BLR\", \"BIH\", \"RSA\"), last_name (\"Brengle\", \"Duarte\", \"Collin\"), hand (\"L\", \"\", \"U\"), player_id (210824, 204570, 217810), first_name (\"Laura Zsofia\", \"Yawna\", \"Malin\") | competitors : birth_date (19690813, 19760301, 19581103), country_code (\"BLR\", \"BIH\", \"RSA\"), last_name (\"Brengle\", \"Duarte\", \"Collin\"), hand (\"L\", \"\", \"U\"), player_id (210824, 204570, 217810), first_name (\"Laura Zsofia\", \"Yawna\", \"Malin\")", + "schema_without_content": "matches : loser_rank , best_of , loser_hand , loser_rank_points , loser_ioc , winner_ioc , tourney_level , loser_id , score \", draw_size , loser_age , loser_ht , winner_rank , winner_rank_points , loser_seed , round , match_num , winner_ht , winner_id , surface , minutes , winner_hand , year , tourney_id , winner_seed , tourney_date , winner_name , winner_entry , loser_name , loser_entry , tourney_name , winner_age | rankings : ranking , player_id , tours , ranking_points , ranking_date | athletes : birth_date , country_code , last_name , hand , player_id , first_name | competitors : birth_date , country_code , last_name , hand , player_id , first_name", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "birth date of all players": "players.birth_date", + "country code": "players.country_code" + } + }, + { + "question": "what are the #first names# and #birth dates of players# from the #usa# ?", + "db_id": "wta_1", + "orig_query": "select first_name, birth_date from players where country_code = 'USA'", + "schema_with_content": "matches : winner_hand (\"R\", \"L\"), loser_entry (\"\"), loser_ioc (\"BLR\", \"UKR\", \"SWE\"), loser_rank (10, 11, 10), winner_entry (\"\"), surface (\"Hard\", \"Clay\", \"Grass\"), draw_size (32, 32, 12), winner_ioc (\"SWE\", \"HUN\", \"JPN\"), minutes (73, 106, 71), loser_id (201425, 201520, 201455), winner_name (\"Dominika Cibulkova\", \"Karolina Pliskova\", \"Jelena Jankovic\"), loser_hand (\"R\", \"L\"), loser_name (\"Misaki Doi\", \"Ana Ivanovic\", \"Sloane Stephens\"), loser_rank_points (5340, 2320, 1026), loser_seed (3, 20, 4), tourney_id (\"2017-1052\", \"2017-1005\", \"2017-M006\"), winner_ht (161, 164, 175), winner_seed (18, 4, 12), winner_age (34.6557152635, 23.8877481177, 25.650924024600002), round (\"BR\", \"R16\", \"R32\"), year (2013, 2016, 2017), loser_age (34.4449007529, 26.6830937714, 25.2210814511), loser_ht (168, 170, 178), tourney_level (\"W\", \"W\", \"W\"), winner_id (201693, 201619, 201504), best_of (3), winner_rank (25, 44, 16), tourney_date (20170807, 20170807, 20160829), winner_rank_points (1652, 5071, 4216), match_num (281, 224, 222), tourney_name (\"New Haven\", \"Toronto\", \"Istanbul\"), score (\"7-6(5) 2-6 6-3\", \"6-1 6-7(2) 6-3\", \"3-6 7-6(4) 6-2\") | athletes : last_name (\"Adler\", \"Tschan\", \"Ray\"), country_code (\"NCA\", \"CYP\", \"LUX\"), first_name (\"Szabina\", \"Sofia Nami\", \"Lany\"), hand (\"U\", \"\", \"U\"), birth_date (19930808, 19730802, 19920929), player_id (208058, 209461, 202974) | rankings : player_id (211416, 215055, 211774), ranking_points (4397, 1658, 2771), ranking (279, 172, 541), tours (17, 30, 1), ranking_date (19940725, 20120730, 19981228) | competitors : last_name (\"Adler\", \"Tschan\", \"Ray\"), country_code (\"NCA\", \"CYP\", \"LUX\"), first_name (\"Szabina\", \"Sofia Nami\", \"Lany\"), hand (\"U\", \"\", \"U\"), birth_date (19930808, 19730802, 19920929), player_id (208058, 209461, 202974)", + "schema_without_content": "matches : winner_hand , loser_entry , loser_ioc , loser_rank , winner_entry , surface , draw_size , winner_ioc , minutes , loser_id , winner_name , loser_hand , loser_name , loser_rank_points , loser_seed , tourney_id , winner_ht , winner_seed , winner_age , round , year , loser_age , loser_ht , tourney_level , winner_id , best_of , winner_rank , tourney_date , winner_rank_points , match_num , tourney_name , score 2-6 6-3\", \"6-1 6-7 6-3\", \"3-6 7-6 6-2\" | athletes : last_name , country_code , first_name , hand , birth_date , player_id | rankings : player_id , ranking_points , ranking , tours , ranking_date | competitors : last_name , country_code , first_name , hand , birth_date , player_id", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first names": "players.first_name", + "birth dates of players": "players.birth_date", + "USA": "players.country_code" + } + }, + { + "question": "find the #name of tourney# that has more than 10 #matches# .", + "db_id": "wta_1", + "orig_query": "select tourney_name from matches group by tourney_name having count(*) > 10", + "schema_with_content": "contests : winner_ioc (\"USA\", \"POL\", \"FRA\"), winner_entry (\"\"), winner_name (\"Barbora Zahlavova Strycova\", \"Na Li\", \"Irina Camelia Begu\"), loser_rank_points (5860, 3736, 4860), loser_name (\"Lauren Davis\", \"Angelique Kerber\", \"Ekaterina Makarova\"), loser_ht (183, 178, 180), year (2013, 2016, 2017), loser_ioc (\"BEL\", \"SWE\", \"BLR\"), tourney_id (\"2016-560\", \"2016-M009\", \"2016-1050\"), winner_age (21.9055441478, 24.2245037645, 29.1471594798), winner_ht (174, 168, 176), winner_hand (\"R\", \"L\"), round (\"QF\", \"QF\", \"BR\"), winner_id (201347, 201504, 200748), winner_rank (35, 5, 15), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (21.357973990399998, 23.4387405886, 28.8678986995), draw_size (12, 32, 8), loser_entry (\"\"), tourney_level (\"W\", \"W\", \"P\"), tourney_name (\"Strasbourg\", \"Olympics\", \"'S-Hertogenbosch\"), winner_rank_points (3300, 1255, 9030), match_num (274, 222, 207), tourney_date (20170424, 20161024, 20161024), loser_hand (\"R\", \"L\"), loser_seed (29, 2, 28), winner_seed (24, 14, 13), loser_rank (46, 28, 6), score (\"6-1 4-6 6-1\", \"6-3 7-5 \", \"3-6 7-6(6) 6-0\"), loser_id (201521, 201474, 201585), minutes (107, 149, 152) | games : winner_ioc (\"USA\", \"POL\", \"FRA\"), winner_entry (\"\"), winner_name (\"Barbora Zahlavova Strycova\", \"Na Li\", \"Irina Camelia Begu\"), loser_rank_points (5860, 3736, 4860), loser_name (\"Lauren Davis\", \"Angelique Kerber\", \"Ekaterina Makarova\"), loser_ht (183, 178, 180), year (2013, 2016, 2017), loser_ioc (\"BEL\", \"SWE\", \"BLR\"), tourney_id (\"2016-560\", \"2016-M009\", \"2016-1050\"), winner_age (21.9055441478, 24.2245037645, 29.1471594798), winner_ht (174, 168, 176), winner_hand (\"R\", \"L\"), round (\"QF\", \"QF\", \"BR\"), winner_id (201347, 201504, 200748), winner_rank (35, 5, 15), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (21.357973990399998, 23.4387405886, 28.8678986995), draw_size (12, 32, 8), loser_entry (\"\"), tourney_level (\"W\", \"W\", \"P\"), tourney_name (\"Strasbourg\", \"Olympics\", \"'S-Hertogenbosch\"), winner_rank_points (3300, 1255, 9030), match_num (274, 222, 207), tourney_date (20170424, 20161024, 20161024), loser_hand (\"R\", \"L\"), loser_seed (29, 2, 28), winner_seed (24, 14, 13), loser_rank (46, 28, 6), score (\"6-1 4-6 6-1\", \"6-3 7-5 \", \"3-6 7-6(6) 6-0\"), loser_id (201521, 201474, 201585), minutes (107, 149, 152) | players : hand (\"U\", \"L\", \"L\"), country_code (\"ALB\", \"FRG\", \"BRA\"), last_name (\"Turdyeva\", \"Fonts\", \"Dorney\"), birth_date (19871101, 19810721, 19840129), first_name (\"Plobrung\", \"Ye Jin\", \"Zoe Adeline\"), player_id (208345, 210936, 206563) | rankings : ranking_date (20081201, 19890814, 20110101), tours (14, 8, 6), ranking_points (6595, 2369, 5970), ranking (1225, 1451, 725), player_id (201620, 205576, 201397)", + "schema_without_content": "contests : winner_ioc , winner_entry , winner_name , loser_rank_points , loser_name , loser_ht , year , loser_ioc , tourney_id , winner_age , winner_ht , winner_hand , round , winner_id , winner_rank , best_of , surface , loser_age , draw_size , loser_entry , tourney_level , tourney_name , winner_rank_points , match_num , tourney_date , loser_hand , loser_seed , winner_seed , loser_rank , score 6-0\", loser_id , minutes | games : winner_ioc , winner_entry , winner_name , loser_rank_points , loser_name , loser_ht , year , loser_ioc , tourney_id , winner_age , winner_ht , winner_hand , round , winner_id , winner_rank , best_of , surface , loser_age , draw_size , loser_entry , tourney_level , tourney_name , winner_rank_points , match_num , tourney_date , loser_hand , loser_seed , winner_seed , loser_rank , score 6-0\", loser_id , minutes | players : hand , country_code , last_name , birth_date , first_name , player_id | rankings : ranking_date , tours , ranking_points , ranking , player_id", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name of tourney": "matches.tourney_name", + "matches": "matches" + } + }, + { + "question": "what are the #names of tournaments# that have more than 10 #matches# ?", + "db_id": "wta_1", + "orig_query": "select tourney_name from matches group by tourney_name having count(*) > 10", + "schema_with_content": "contests : score (\"6-4 2-6 6-3\", \"6-4 7-6(2)\", \"4-6 7-5 6-2\"), minutes (78, 60, 93), match_num (214, 264, 286), winner_hand (\"R\", \"L\"), tourney_level (\"I\", \"G\", \"P\"), tourney_id (\"2017-M006\", \"2016-M007\", \"2017-1094\"), round (\"BR\", \"QF\", \"SF\"), winner_entry (\"\"), loser_rank (9, 19, 32), surface (\"Hard\", \"Clay\", \"Grass\"), loser_seed (17, 31, 7), loser_entry (\"\"), winner_age (27.947980835, 30.5954825462, 21.626283367600003), winner_ioc (\"HUN\", \"GER\", \"SRB\"), best_of (3), tourney_date (20160926, 20160404, 20170529), winner_name (\"Jelena Jankovic\", \"Elina Svitolina\", \"Samantha Stosur\"), draw_size (64, 32, 4), winner_ht (163, 183, 183), tourney_name (\"Dubai\", \"Brisbane\", \"'S-Hertogenbosch\"), year (2013, 2016, 2017), loser_id (201458, 201619, 201495), winner_rank (6, 10, 42), loser_ioc (\"ESP\", \"SRB\", \"CZE\"), winner_rank_points (2416, 2005, 2196), loser_age (22.9869952088, 28.741957563299998, 26.9596167009), loser_name (\"Shuai Peng\", \"Angelique Kerber\", \"Carla Suarez Navarro\"), winner_id (201455, 201506, 201455), loser_hand (\"R\", \"L\"), loser_rank_points (4287, 4742, 3250), winner_seed (7, 15, 3), loser_ht (165, 164, 172) | rankings : ranking (42, 1317, 341), ranking_date (19871102, 19930419, 19950227), tours (6, 12, 38), ranking_points (2760, 540, 5596), player_id (213944, 214744, 203579) | games : score (\"6-4 2-6 6-3\", \"6-4 7-6(2)\", \"4-6 7-5 6-2\"), minutes (78, 60, 93), match_num (214, 264, 286), winner_hand (\"R\", \"L\"), tourney_level (\"I\", \"G\", \"P\"), tourney_id (\"2017-M006\", \"2016-M007\", \"2017-1094\"), round (\"BR\", \"QF\", \"SF\"), winner_entry (\"\"), loser_rank (9, 19, 32), surface (\"Hard\", \"Clay\", \"Grass\"), loser_seed (17, 31, 7), loser_entry (\"\"), winner_age (27.947980835, 30.5954825462, 21.626283367600003), winner_ioc (\"HUN\", \"GER\", \"SRB\"), best_of (3), tourney_date (20160926, 20160404, 20170529), winner_name (\"Jelena Jankovic\", \"Elina Svitolina\", \"Samantha Stosur\"), draw_size (64, 32, 4), winner_ht (163, 183, 183), tourney_name (\"Dubai\", \"Brisbane\", \"'S-Hertogenbosch\"), year (2013, 2016, 2017), loser_id (201458, 201619, 201495), winner_rank (6, 10, 42), loser_ioc (\"ESP\", \"SRB\", \"CZE\"), winner_rank_points (2416, 2005, 2196), loser_age (22.9869952088, 28.741957563299998, 26.9596167009), loser_name (\"Shuai Peng\", \"Angelique Kerber\", \"Carla Suarez Navarro\"), winner_id (201455, 201506, 201455), loser_hand (\"R\", \"L\"), loser_rank_points (4287, 4742, 3250), winner_seed (7, 15, 3), loser_ht (165, 164, 172) | players : country_code (\"TCH\", \"SEN\", \"ARM\"), player_id (207988, 208703, 213992), hand (\"R\", \"L\", \"L\"), first_name (\"Vishesh\", \"Sylvana\", \"Burce\"), birth_date (19731026, 20000828, 19681101), last_name (\"Van Doren\", \"Merenkova\", \"Jelinkova\")", + "schema_without_content": "contests : score \", \"4-6 7-5 6-2\", minutes , match_num , winner_hand , tourney_level , tourney_id , round , winner_entry , loser_rank , surface , loser_seed , loser_entry , winner_age , winner_ioc , best_of , tourney_date , winner_name , draw_size , winner_ht , tourney_name , year , loser_id , winner_rank , loser_ioc , winner_rank_points , loser_age , loser_name , winner_id , loser_hand , loser_rank_points , winner_seed , loser_ht | rankings : ranking , ranking_date , tours , ranking_points , player_id | games : score \", \"4-6 7-5 6-2\", minutes , match_num , winner_hand , tourney_level , tourney_id , round , winner_entry , loser_rank , surface , loser_seed , loser_entry , winner_age , winner_ioc , best_of , tourney_date , winner_name , draw_size , winner_ht , tourney_name , year , loser_id , winner_rank , loser_ioc , winner_rank_points , loser_age , loser_name , winner_id , loser_hand , loser_rank_points , winner_seed , loser_ht | players : country_code , player_id , hand , first_name , birth_date , last_name", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names of tournaments": "matches.tourney_name", + "matches": "matches" + } + }, + { + "question": "list the #names of all winners# who played in both 2013 and 2016.", + "db_id": "wta_1", + "orig_query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", + "schema_with_content": "rankings : ranking (1190, 1498, 1045), ranking_points (3322, 4508, 546), tours (27, 34, 41), ranking_date (20060501, 19890206, 20020429), player_id (202672, 206211, 205797) | games : winner_entry (\"\"), match_num (220, 152, 155), score (\"6-4 4-6 6-3\", \"6-1 6-7(2) 6-3\", \"6-3 3-6 7-6(2)\"), loser_ioc (\"CZE\", \"CHN\", \"POL\"), loser_seed (6, 17, 24), draw_size (4, 64, 128), tourney_name (\"Brisbane\", \"Prague\", \"Cincinnati\"), winner_id (201458, 201585, 201495), winner_rank (8, 21, 44), winner_ht (178, 162, 182), loser_entry (\"\"), loser_hand (\"R\", \"L\"), best_of (3), tourney_level (\"P\", \"P\", \"G\"), winner_seed (4, 15, 16), winner_rank_points (4370, 3780, 5310), minutes (80, 89, 68), loser_rank (46, 31, 32), winner_hand (\"R\", \"L\"), winner_name (\"Dominika Cibulkova\", \"Kristina Mladenovic\", \"Carla Suarez Navarro\"), tourney_date (20170508, 20160404, 20170410), winner_age (35.6440793977, 24.7857631759, 27.4743326489), loser_age (36.7173169062, 29.2073921971, 25.650924024600002), winner_ioc (\"FRA\", \"JPN\", \"NED\"), loser_id (201311, 201527, 201311), tourney_id (\"2016-O16\", \"2017-1098\", \"2016-1087\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (163, 175, 184), loser_rank_points (1845, 1565, 2025), loser_name (\"Timea Babos\", \"Serena Williams\", \"Agnieszka Radwanska\"), round (\"F\", \"SF\", \"R16\") | players : birth_date (19950218, 19740429, 19800701), first_name (\"Moe\", \"Alexsandra\", \"Roana\"), country_code (\"LTU\", \"TCH\", \"CZE\"), hand (\"U\", \"R\", \"L\"), last_name (\"Bornschein\", \"Rolle\", \"Ferrero\"), player_id (210353, 207984, 207423) | contests : winner_entry (\"\"), match_num (220, 152, 155), score (\"6-4 4-6 6-3\", \"6-1 6-7(2) 6-3\", \"6-3 3-6 7-6(2)\"), loser_ioc (\"CZE\", \"CHN\", \"POL\"), loser_seed (6, 17, 24), draw_size (4, 64, 128), tourney_name (\"Brisbane\", \"Prague\", \"Cincinnati\"), winner_id (201458, 201585, 201495), winner_rank (8, 21, 44), winner_ht (178, 162, 182), loser_entry (\"\"), loser_hand (\"R\", \"L\"), best_of (3), tourney_level (\"P\", \"P\", \"G\"), winner_seed (4, 15, 16), winner_rank_points (4370, 3780, 5310), minutes (80, 89, 68), loser_rank (46, 31, 32), winner_hand (\"R\", \"L\"), winner_name (\"Dominika Cibulkova\", \"Kristina Mladenovic\", \"Carla Suarez Navarro\"), tourney_date (20170508, 20160404, 20170410), winner_age (35.6440793977, 24.7857631759, 27.4743326489), loser_age (36.7173169062, 29.2073921971, 25.650924024600002), winner_ioc (\"FRA\", \"JPN\", \"NED\"), loser_id (201311, 201527, 201311), tourney_id (\"2016-O16\", \"2017-1098\", \"2016-1087\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (163, 175, 184), loser_rank_points (1845, 1565, 2025), loser_name (\"Timea Babos\", \"Serena Williams\", \"Agnieszka Radwanska\"), round (\"F\", \"SF\", \"R16\")", + "schema_without_content": "rankings : ranking , ranking_points , tours , ranking_date , player_id | games : winner_entry , match_num , score 6-3\", \"6-3 3-6 7-6\", loser_ioc , loser_seed , draw_size , tourney_name , winner_id , winner_rank , winner_ht , loser_entry , loser_hand , best_of , tourney_level , winner_seed , winner_rank_points , minutes , loser_rank , winner_hand , winner_name , tourney_date , winner_age , loser_age , winner_ioc , loser_id , tourney_id , year , surface , loser_ht , loser_rank_points , loser_name , round | players : birth_date , first_name , country_code , hand , last_name , player_id | contests : winner_entry , match_num , score 6-3\", \"6-3 3-6 7-6\", loser_ioc , loser_seed , draw_size , tourney_name , winner_id , winner_rank , winner_ht , loser_entry , loser_hand , best_of , tourney_level , winner_seed , winner_rank_points , minutes , loser_rank , winner_hand , winner_name , tourney_date , winner_age , loser_age , winner_ioc , loser_id , tourney_id , year , surface , loser_ht , loser_rank_points , loser_name , round", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names of all winners": "matches.winner_name" + } + }, + { + "question": "what are the #names of players# who #won# in both 2013 and 2016?", + "db_id": "wta_1", + "orig_query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", + "schema_with_content": "rankings : ranking_date (20170612, 19990927, 20071210), player_id (202420, 214187, 211107), ranking (308, 90, 1188), tours (34, 41, 30), ranking_points (4116, 3685, 1486) | players : last_name (\"Aran Torrente\", \"Bighiu\", \"Rogozinska Dzik\"), first_name (\"Claudia Paulina\", \"Bo Ra\", \"Anique\"), player_id (213713, 215108, 218748), country_code (\"HAI\", \"MNE\", \"NED\"), birth_date (19781017, 19731223, 19790224), hand (\"R\", \"L\", \"R\") | games : loser_rank_points (4776, 1700, 6150), minutes (93, 131, 77), loser_rank (66, 13, 9), winner_hand (\"R\", \"L\"), draw_size (4, 64, 32), tourney_level (\"W\", \"P\", \"P\"), loser_seed (5, 8, 24), winner_age (24.922655715300003, 27.613963039, 25.601642710500002), best_of (3), loser_ht (172, 185, 162), winner_entry (\"\"), score (\"6-4 1-6 7-5\", \"7-5 7-6(2)\", \"7-5 6-1\"), tourney_id (\"2016-M001\", \"2016-1067\", \"2016-M015\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), winner_ioc (\"ITA\", \"BLR\", \"BLR\"), tourney_name (\"Washington\", \"Kaohsiung\", \"Gstaad\"), winner_name (\"Yanina Wickmayer\", \"Petra Kvitova\", \"Na Li\"), winner_rank_points (4985, 2695, 3010), winner_rank (43, 42, 40), match_num (294, 295, 272), winner_ht (177, 159, 178), winner_id (202494, 202428, 202428), loser_age (36.1040383299, 30.8254620123, 28.449007529099998), round (\"SF\", \"RR\", \"QF\"), loser_entry (\"\"), loser_ioc (\"SUI\", \"BLR\", \"DEN\"), loser_name (\"Venus Williams\", \"Samantha Stosur\", \"Kiki Bertens\"), tourney_date (20170522, 20160509, 20170102), loser_hand (\"R\", \"L\"), loser_id (201320, 201320, 201514), winner_seed (15, 15, 3) | contests : loser_rank_points (4776, 1700, 6150), minutes (93, 131, 77), loser_rank (66, 13, 9), winner_hand (\"R\", \"L\"), draw_size (4, 64, 32), tourney_level (\"W\", \"P\", \"P\"), loser_seed (5, 8, 24), winner_age (24.922655715300003, 27.613963039, 25.601642710500002), best_of (3), loser_ht (172, 185, 162), winner_entry (\"\"), score (\"6-4 1-6 7-5\", \"7-5 7-6(2)\", \"7-5 6-1\"), tourney_id (\"2016-M001\", \"2016-1067\", \"2016-M015\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), winner_ioc (\"ITA\", \"BLR\", \"BLR\"), tourney_name (\"Washington\", \"Kaohsiung\", \"Gstaad\"), winner_name (\"Yanina Wickmayer\", \"Petra Kvitova\", \"Na Li\"), winner_rank_points (4985, 2695, 3010), winner_rank (43, 42, 40), match_num (294, 295, 272), winner_ht (177, 159, 178), winner_id (202494, 202428, 202428), loser_age (36.1040383299, 30.8254620123, 28.449007529099998), round (\"SF\", \"RR\", \"QF\"), loser_entry (\"\"), loser_ioc (\"SUI\", \"BLR\", \"DEN\"), loser_name (\"Venus Williams\", \"Samantha Stosur\", \"Kiki Bertens\"), tourney_date (20170522, 20160509, 20170102), loser_hand (\"R\", \"L\"), loser_id (201320, 201320, 201514), winner_seed (15, 15, 3)", + "schema_without_content": "rankings : ranking_date , player_id , ranking , tours , ranking_points | players : last_name , first_name , player_id , country_code , birth_date , hand | games : loser_rank_points , minutes , loser_rank , winner_hand , draw_size , tourney_level , loser_seed , winner_age , best_of , loser_ht , winner_entry , score \", \"7-5 6-1\", tourney_id , year , surface , winner_ioc , tourney_name , winner_name , winner_rank_points , winner_rank , match_num , winner_ht , winner_id , loser_age , round , loser_entry , loser_ioc , loser_name , tourney_date , loser_hand , loser_id , winner_seed | contests : loser_rank_points , minutes , loser_rank , winner_hand , draw_size , tourney_level , loser_seed , winner_age , best_of , loser_ht , winner_entry , score \", \"7-5 6-1\", tourney_id , year , surface , winner_ioc , tourney_name , winner_name , winner_rank_points , winner_rank , match_num , winner_ht , winner_id , loser_age , round , loser_entry , loser_ioc , loser_name , tourney_date , loser_hand , loser_id , winner_seed", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names of players": "matches.winner_name", + "won": "matches" + } + }, + { + "question": "list the #number of all matches# who played in #years# of 2013 or 2016.", + "db_id": "wta_1", + "orig_query": "select count(*) from matches where year = 2013 or year = 2016", + "schema_with_content": "games : loser_rank_points (3120, 3135, 2054), winner_id (201520, 201505, 201615), winner_rank_points (5270, 5270, 4670), loser_id (201474, 202429, 201505), loser_entry (\"\"), loser_ioc (\"CZE\", \"SUI\", \"TPE\"), loser_seed (2, 4, 12), minutes (85, 73, 165), loser_hand (\"R\", \"L\"), winner_age (24.2902121834, 24.501026694, 24.7802874743), tourney_name (\"Sydney\", \"Linz\", \"Eastbourne\"), loser_name (\"Barbora Zahlavova Strycova\", \"Lucie Safarova\", \"Sloane Stephens\"), best_of (3), match_num (290, 201, 298), draw_size (4, 64, 4), score (\"6-1 3-0 RET\", \"4-6 7-6(2) 6-3\", \"2-6 6-4 6-3\"), winner_rank (27, 50, 48), round (\"BR\", \"QF\", \"SF\"), winner_ht (178, 159, 173), loser_ht (185, 163, 180), winner_hand (\"R\", \"L\"), winner_seed (28, 13, 8), winner_name (\"Garbine Muguruza\", \"Serena Williams\", \"Yanina Wickmayer\"), loser_rank (27, 8, 66), tourney_level (\"I\", \"G\", \"I\"), surface (\"Hard\", \"Clay\", \"Grass\"), tourney_id (\"2016-1051\", \"2017-0406\", \"2016-0804\"), tourney_date (20160926, 20170116, 20160307), winner_ioc (\"JPN\", \"HUN\", \"FRA\"), year (2013, 2016, 2017), winner_entry (\"\"), loser_age (28.402464065700002, 27.0937713895, 26.527036276500002) | rankings : ranking_date (19980420, 20030106, 19871005), ranking_points (8053, 6250, 990), tours (25, 39, 20), player_id (201616, 202468, 204263), ranking (1208, 1475, 717) | players : last_name (\"Castellano\", \"Kroese\", \"Franko\"), hand (\"R\", \"L\", \"U\"), first_name (\"Elysia\", \"Sofiya\", \"Heden\"), country_code (\"CAN\", \"LUX\", \"TCH\"), player_id (211741, 211208, 209536), birth_date (19890807, 19960806, 19461027) | contests : loser_rank_points (3120, 3135, 2054), winner_id (201520, 201505, 201615), winner_rank_points (5270, 5270, 4670), loser_id (201474, 202429, 201505), loser_entry (\"\"), loser_ioc (\"CZE\", \"SUI\", \"TPE\"), loser_seed (2, 4, 12), minutes (85, 73, 165), loser_hand (\"R\", \"L\"), winner_age (24.2902121834, 24.501026694, 24.7802874743), tourney_name (\"Sydney\", \"Linz\", \"Eastbourne\"), loser_name (\"Barbora Zahlavova Strycova\", \"Lucie Safarova\", \"Sloane Stephens\"), best_of (3), match_num (290, 201, 298), draw_size (4, 64, 4), score (\"6-1 3-0 RET\", \"4-6 7-6(2) 6-3\", \"2-6 6-4 6-3\"), winner_rank (27, 50, 48), round (\"BR\", \"QF\", \"SF\"), winner_ht (178, 159, 173), loser_ht (185, 163, 180), winner_hand (\"R\", \"L\"), winner_seed (28, 13, 8), winner_name (\"Garbine Muguruza\", \"Serena Williams\", \"Yanina Wickmayer\"), loser_rank (27, 8, 66), tourney_level (\"I\", \"G\", \"I\"), surface (\"Hard\", \"Clay\", \"Grass\"), tourney_id (\"2016-1051\", \"2017-0406\", \"2016-0804\"), tourney_date (20160926, 20170116, 20160307), winner_ioc (\"JPN\", \"HUN\", \"FRA\"), year (2013, 2016, 2017), winner_entry (\"\"), loser_age (28.402464065700002, 27.0937713895, 26.527036276500002)", + "schema_without_content": "games : loser_rank_points , winner_id , winner_rank_points , loser_id , loser_entry , loser_ioc , loser_seed , minutes , loser_hand , winner_age , tourney_name , loser_name , best_of , match_num , draw_size , score 6-3\", \"2-6 6-4 6-3\", winner_rank , round , winner_ht , loser_ht , winner_hand , winner_seed , winner_name , loser_rank , tourney_level , surface , tourney_id , tourney_date , winner_ioc , year , winner_entry , loser_age | rankings : ranking_date , ranking_points , tours , player_id , ranking | players : last_name , hand , first_name , country_code , player_id , birth_date | contests : loser_rank_points , winner_id , winner_rank_points , loser_id , loser_entry , loser_ioc , loser_seed , minutes , loser_hand , winner_age , tourney_name , loser_name , best_of , match_num , draw_size , score 6-3\", \"2-6 6-4 6-3\", winner_rank , round , winner_ht , loser_ht , winner_hand , winner_seed , winner_name , loser_rank , tourney_level , surface , tourney_id , tourney_date , winner_ioc , year , winner_entry , loser_age", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "number of all matches": "matches", + "years": "matches.year" + } + }, + { + "question": "how many #matches# were played in #2013# or #2016# ?", + "db_id": "wta_1", + "orig_query": "select count(*) from matches where year = 2013 or year = 2016", + "schema_with_content": "players : first_name (\"Niamh\", \"Ayushi\", \"Sonali\"), player_id (220550, 218863, 215953), hand (\"L\", \"R\", \"\"), country_code (\"SEN\", \"MAS\", \"KOR\"), birth_date (19610912, 19701014, 19961226), last_name (\"Detiuc\", \"Kerek\", \"Fauviau\") | rankings : ranking_points (6809, 1264, 1990), player_id (211725, 211222, 211063), ranking (125, 47, 961), ranking_date (20070101, 20020121, 20080915), tours (41, 22, 3) | games : winner_name (\"Samantha Stosur\", \"Jelena Jankovic\", \"Anastasia Pavlyuchenkova\"), draw_size (4, 4, 4), winner_seed (24, 6, 8), loser_seed (29, 30, 27), loser_name (\"Sorana Cirstea\", \"Mona Barthel\", \"Simona Halep\"), tourney_name (\"Biel\", \"Sydney\", \"Singapore\"), tourney_date (20170508, 20161017, 20170410), winner_hand (\"R\", \"L\"), score (\"6-2 6-1\", \"7-6(2) 7-6(5)\", \"4-6 6-3 6-4\"), winner_rank_points (3590, 1658, 4287), winner_ioc (\"BLR\", \"FRA\", \"RUS\"), loser_entry (\"\"), loser_id (201593, 201615, 201325), tourney_level (\"G\", \"P\", \"P\"), winner_rank (2, 12, 8), year (2013, 2016, 2017), loser_ioc (\"ROU\", \"POL\", \"CZE\"), loser_rank_points (4831, 1912, 5340), loser_age (23.0253251198, 30.0944558522, 24.249144421599997), winner_age (23.7344284736, 36.027378507899996, 22.7926078029), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), loser_hand (\"R\", \"L\"), winner_ht (185, 168, 184), loser_ht (161, 181, 162), winner_id (201521, 201499, 201366), round (\"BR\", \"SF\", \"SF\"), loser_rank (45, 19, 9), winner_entry (\"\"), minutes (71, 148, 67), match_num (298, 163, 211), tourney_id (\"2016-M004\", \"2017-M016\", \"2016-0710\") | contests : winner_name (\"Samantha Stosur\", \"Jelena Jankovic\", \"Anastasia Pavlyuchenkova\"), draw_size (4, 4, 4), winner_seed (24, 6, 8), loser_seed (29, 30, 27), loser_name (\"Sorana Cirstea\", \"Mona Barthel\", \"Simona Halep\"), tourney_name (\"Biel\", \"Sydney\", \"Singapore\"), tourney_date (20170508, 20161017, 20170410), winner_hand (\"R\", \"L\"), score (\"6-2 6-1\", \"7-6(2) 7-6(5)\", \"4-6 6-3 6-4\"), winner_rank_points (3590, 1658, 4287), winner_ioc (\"BLR\", \"FRA\", \"RUS\"), loser_entry (\"\"), loser_id (201593, 201615, 201325), tourney_level (\"G\", \"P\", \"P\"), winner_rank (2, 12, 8), year (2013, 2016, 2017), loser_ioc (\"ROU\", \"POL\", \"CZE\"), loser_rank_points (4831, 1912, 5340), loser_age (23.0253251198, 30.0944558522, 24.249144421599997), winner_age (23.7344284736, 36.027378507899996, 22.7926078029), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), loser_hand (\"R\", \"L\"), winner_ht (185, 168, 184), loser_ht (161, 181, 162), winner_id (201521, 201499, 201366), round (\"BR\", \"SF\", \"SF\"), loser_rank (45, 19, 9), winner_entry (\"\"), minutes (71, 148, 67), match_num (298, 163, 211), tourney_id (\"2016-M004\", \"2017-M016\", \"2016-0710\")", + "schema_without_content": "players : first_name , player_id , hand , country_code , birth_date , last_name | rankings : ranking_points , player_id , ranking , ranking_date , tours | games : winner_name , draw_size , winner_seed , loser_seed , loser_name , tourney_name , tourney_date , winner_hand , score 7-6\", \"4-6 6-3 6-4\", winner_rank_points , winner_ioc , loser_entry , loser_id , tourney_level , winner_rank , year , loser_ioc , loser_rank_points , loser_age , winner_age , best_of , surface , loser_hand , winner_ht , loser_ht , winner_id , round , loser_rank , winner_entry , minutes , match_num , tourney_id | contests : winner_name , draw_size , winner_seed , loser_seed , loser_name , tourney_name , tourney_date , winner_hand , score 7-6\", \"4-6 6-3 6-4\", winner_rank_points , winner_ioc , loser_entry , loser_id , tourney_level , winner_rank , year , loser_ioc , loser_rank_points , loser_age , winner_age , best_of , surface , loser_hand , winner_ht , loser_ht , winner_id , round , loser_rank , winner_entry , minutes , match_num , tourney_id", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "matches": "matches", + "2013": "matches.year", + "2016": "matches.year" + } + }, + { + "question": "what are the #country code# and #first name of the players# who #won# in both #tourney wta championships# and #australian open# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'WTA Championships' intersect select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'Australian Open'", + "schema_with_content": "rankings : player_id (211242, 215926, 215791), ranking_points (3510, 3958, 1054), ranking (1236, 894, 658), tours (1, 26, 31), ranking_date (20040726, 20170814, 20020923) | athletes : country_code (\"LES\", \"TJK\", \"JPN\"), first_name (\"Guljahan\", \"Sol Maria\", \"Yihong\"), birth_date (19811114, 19840412, 20000313), hand (\"U\", \"\", \"U\"), last_name (\"Salgi\", \"Sukhova\", \"Moratelli\"), player_id (211724, 219367, 207721) | matches : tourney_id (\"2017-M024\", \"2016-M004\", \"2016-1049\"), match_num (199, 221, 285), round (\"BR\", \"SF\", \"SF\"), winner_hand (\"R\", \"L\"), winner_entry (\"\"), winner_name (\"Samantha Stosur\", \"Karolina Pliskova\", \"Ekaterina Makarova\"), loser_rank_points (3698, 2641, 3465), loser_seed (22, 17, 5), loser_name (\"Barbora Zahlavova Strycova\", \"Stefanie Voegele\", \"Monica Niculescu\"), loser_ht (183, 165, 182), winner_rank_points (1025, 3715, 9245), tourney_level (\"I\", \"I\", \"I\"), draw_size (4, 8, 128), loser_ioc (\"GER\", \"BEL\", \"SRB\"), loser_hand (\"R\", \"L\"), tourney_date (20170213, 20170821, 20170403), winner_age (28.9336071184, 32.0164271047, 32.9719370294), loser_rank (3, 24, 39), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (23.0253251198, 23.961670089000002, 26.573579739899998), tourney_name (\"Auckland\", \"Miami\", \"WTA Championships\"), winner_id (201311, 201504, 201520), best_of (3), winner_ht (159, 181, 173), winner_seed (30, 15, 28), minutes (78, 90, 149), winner_ioc (\"CHN\", \"UKR\", \"SVK\"), winner_rank (14, 7, 33), loser_id (201320, 201527, 201594), loser_entry (\"\"), score (\"6-4 6-7(4) 6-1\", \"6-4 6-0\", \"6-3 7-6(4)\"), year (2013, 2016, 2017) | competitors : country_code (\"LES\", \"TJK\", \"JPN\"), first_name (\"Guljahan\", \"Sol Maria\", \"Yihong\"), birth_date (19811114, 19840412, 20000313), hand (\"U\", \"\", \"U\"), last_name (\"Salgi\", \"Sukhova\", \"Moratelli\"), player_id (211724, 219367, 207721)", + "schema_without_content": "rankings : player_id , ranking_points , ranking , tours , ranking_date | athletes : country_code , first_name , birth_date , hand , last_name , player_id | matches : tourney_id , match_num , round , winner_hand , winner_entry , winner_name , loser_rank_points , loser_seed , loser_name , loser_ht , winner_rank_points , tourney_level , draw_size , loser_ioc , loser_hand , tourney_date , winner_age , loser_rank , surface , loser_age , tourney_name , winner_id , best_of , winner_ht , winner_seed , minutes , winner_ioc , winner_rank , loser_id , loser_entry , score 6-1\", \"6-4 6-0\", \"6-3 7-6\", year | competitors : country_code , first_name , birth_date , hand , last_name , player_id", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "country code": "players.country_code", + "first name of the players": "players.first_name", + "won": "matches.winner_id", + "tourney WTA Championships": "matches.tourney_name", + "Australian Open": "matches.tourney_name" + } + }, + { + "question": "what are the #country code# and #first name of the players# who #won# in both #tourney wta championships# and #australian open# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'WTA Championships' intersect select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'Australian Open'", + "schema_with_content": "rankings : player_id (205714, 201584, 210823), ranking_date (19941205, 20130624, 19870413), ranking_points (1782, 1578, 5772), tours (26, 31, 7), ranking (1106, 168, 127) | contests : round (\"QF\", \"QF\", \"R16\"), score (\"7-5 6-4\", \"6-2 4-6 6-3\", \"6-1 4-6 6-2\"), winner_age (23.783709787800003, 30.5954825462, 27.7371663244), tourney_name (\"Rabat\", \"St. Petersburg\", \"Dubai\"), winner_seed (19, 16, 5), loser_ioc (\"CZE\", \"FRA\", \"BEL\"), year (2013, 2016, 2017), match_num (155, 217, 254), loser_name (\"Ana Ivanovic\", \"Victoria Azarenka\", \"Lesia Tsurenko\"), winner_rank_points (2186, 6375, 1026), surface (\"Hard\", \"Clay\", \"Grass\"), winner_ht (184, 170, 178), tourney_id (\"2017-M020\", \"2016-0300\", \"2017-0804\"), loser_rank_points (1635, 4550, 6010), winner_name (\"Angelique Kerber\", \"Garbine Muguruza\", \"Caroline Wozniacki\"), loser_id (201347, 201662, 201535), winner_rank (53, 14, 53), loser_entry (\"\"), loser_ht (169, 176, 177), minutes (175, 101, 68), loser_seed (31, 30, 1), draw_size (32, 32, 128), loser_rank (52, 14, 13), winner_hand (\"R\", \"L\"), winner_entry (\"\"), loser_hand (\"R\", \"L\"), loser_age (36.1998631075, 26.3819301848, 28.449007529099998), tourney_date (20160321, 20170501, 20160509), winner_ioc (\"CHN\", \"BLR\", \"SWE\"), tourney_level (\"I\", \"P\", \"I\"), winner_id (201506, 201585, 201505), best_of (3) | players : first_name (\"Min Hwa\", \"Maho\", \"Juliet\"), hand (\"U\", \"R\", \"U\"), player_id (207389, 208744, 210021), country_code (\"ALB\", \"MDA\", \"SCG\"), birth_date (19680806, 19790831, 19731012), last_name (\"Hirsch\", \"Bajchikova\", \"Vasenina\") | games : round (\"QF\", \"QF\", \"R16\"), score (\"7-5 6-4\", \"6-2 4-6 6-3\", \"6-1 4-6 6-2\"), winner_age (23.783709787800003, 30.5954825462, 27.7371663244), tourney_name (\"Rabat\", \"St. Petersburg\", \"Dubai\"), winner_seed (19, 16, 5), loser_ioc (\"CZE\", \"FRA\", \"BEL\"), year (2013, 2016, 2017), match_num (155, 217, 254), loser_name (\"Ana Ivanovic\", \"Victoria Azarenka\", \"Lesia Tsurenko\"), winner_rank_points (2186, 6375, 1026), surface (\"Hard\", \"Clay\", \"Grass\"), winner_ht (184, 170, 178), tourney_id (\"2017-M020\", \"2016-0300\", \"2017-0804\"), loser_rank_points (1635, 4550, 6010), winner_name (\"Angelique Kerber\", \"Garbine Muguruza\", \"Caroline Wozniacki\"), loser_id (201347, 201662, 201535), winner_rank (53, 14, 53), loser_entry (\"\"), loser_ht (169, 176, 177), minutes (175, 101, 68), loser_seed (31, 30, 1), draw_size (32, 32, 128), loser_rank (52, 14, 13), winner_hand (\"R\", \"L\"), winner_entry (\"\"), loser_hand (\"R\", \"L\"), loser_age (36.1998631075, 26.3819301848, 28.449007529099998), tourney_date (20160321, 20170501, 20160509), winner_ioc (\"CHN\", \"BLR\", \"SWE\"), tourney_level (\"I\", \"P\", \"I\"), winner_id (201506, 201585, 201505), best_of (3)", + "schema_without_content": "rankings : player_id , ranking_date , ranking_points , tours , ranking | contests : round , score , winner_age , tourney_name , winner_seed , loser_ioc , year , match_num , loser_name , winner_rank_points , surface , winner_ht , tourney_id , loser_rank_points , winner_name , loser_id , winner_rank , loser_entry , loser_ht , minutes , loser_seed , draw_size , loser_rank , winner_hand , winner_entry , loser_hand , loser_age , tourney_date , winner_ioc , tourney_level , winner_id , best_of | players : first_name , hand , player_id , country_code , birth_date , last_name | games : round , score , winner_age , tourney_name , winner_seed , loser_ioc , year , match_num , loser_name , winner_rank_points , surface , winner_ht , tourney_id , loser_rank_points , winner_name , loser_id , winner_rank , loser_entry , loser_ht , minutes , loser_seed , draw_size , loser_rank , winner_hand , winner_entry , loser_hand , loser_age , tourney_date , winner_ioc , tourney_level , winner_id , best_of", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "country code": "players.country_code", + "first name of the players": "players.first_name", + "won": "matches.winner_id", + "tourney WTA Championships": "matches.tourney_name", + "Australian Open": "matches.tourney_name" + } + }, + { + "question": "what are the #first names# and #country codes for players# who #won# both the #wta championships# and the #australian open# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'WTA Championships' intersect select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'Australian Open'", + "schema_with_content": "competitors : hand (\"R\", \"\", \"L\"), country_code (\"NAM\", \"PER\", \"MRN\"), first_name (\"Varvara\", \"Pornrampha\", \"Zaiga\"), player_id (213901, 218578, 210025), last_name (\"Sakalaridi\", \"Jerjomina\", \"Negri\"), birth_date (19880207, 19850616, 19930527) | matches : winner_id (201474, 201615, 202429), best_of (3), loser_age (24.2245037645, 25.6317590691, 32.1314168378), tourney_date (20131021, 20170306, 20170130), winner_rank (43, 12, 2), loser_rank (47, 8, 9), loser_rank_points (4425, 1220, 2730), winner_seed (24, 19, 28), loser_seed (13, 15, 7), loser_entry (\"\"), tourney_id (\"2017-M010\", \"2017-1094\", \"2017-M006\"), loser_id (201520, 201366, 201421), surface (\"Hard\", \"Clay\", \"Grass\"), winner_ioc (\"JPN\", \"ESP\", \"JPN\"), loser_ioc (\"CHN\", \"SRB\", \"NED\"), score (\"4-6 6-4 7-6(3)\", \"7-5 6-7(2) 6-2\", \"6-2 5-7 6-4\"), loser_hand (\"R\", \"L\"), winner_entry (\"\"), round (\"BR\", \"RR\", \"SF\"), tourney_name (\"Wuhan\", \"Monterrey\", \"Olympics\"), winner_name (\"Kiki Bertens\", \"Yanina Wickmayer\", \"Ekaterina Makarova\"), loser_name (\"Garbine Muguruza\", \"Julia Goerges\", \"Victoria Azarenka\"), winner_ht (161, 177, 161), winner_rank_points (5330, 1800, 3590), minutes (71, 152, 91), winner_hand (\"R\", \"L\"), draw_size (4, 8, 128), match_num (300, 206, 293), winner_age (24.9993155373, 28.517453798800002, 32.0711841205), year (2013, 2016, 2017), loser_ht (178, 184, 180), tourney_level (\"W\", \"I\", \"W\") | rankings : ranking (89, 1027, 143), tours (9, 26, 31), ranking_date (20170724, 19940704, 20050912), ranking_points (3760, 1103, 4768), player_id (212041, 202682, 206110) | athletes : hand (\"R\", \"\", \"L\"), country_code (\"NAM\", \"PER\", \"MRN\"), first_name (\"Varvara\", \"Pornrampha\", \"Zaiga\"), player_id (213901, 218578, 210025), last_name (\"Sakalaridi\", \"Jerjomina\", \"Negri\"), birth_date (19880207, 19850616, 19930527)", + "schema_without_content": "competitors : hand , country_code , first_name , player_id , last_name , birth_date | matches : winner_id , best_of , loser_age , tourney_date , winner_rank , loser_rank , loser_rank_points , winner_seed , loser_seed , loser_entry , tourney_id , loser_id , surface , winner_ioc , loser_ioc , score \", \"7-5 6-7 6-2\", \"6-2 5-7 6-4\", loser_hand , winner_entry , round , tourney_name , winner_name , loser_name , winner_ht , winner_rank_points , minutes , winner_hand , draw_size , match_num , winner_age , year , loser_ht , tourney_level | rankings : ranking , tours , ranking_date , ranking_points , player_id | athletes : hand , country_code , first_name , player_id , last_name , birth_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first names": "players.first_name", + "country codes for players": "players.country_code", + "won": "matches.winner_id", + "WTA Championships": "matches.tourney_name", + "Australian Open": "matches.tourney_name" + } + }, + { + "question": "what are the #first names# and #country codes for players# who #won# both the #wta championships# and the #australian open# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'WTA Championships' intersect select t1.country_code, t1.first_name from players as t1 join matches as t2 on t1.player_id = t2.winner_id where t2.tourney_name = 'Australian Open'", + "schema_with_content": "games : winner_ht (177, 173, 159), winner_hand (\"R\", \"L\"), winner_seed (12, 8, 8), winner_id (201521, 201518, 201521), loser_rank (56, 47, 10), loser_age (22.3463381246, 32.3586584531, 24.6406570842), best_of (3), loser_rank_points (2101, 1242, 1995), winner_ioc (\"USA\", \"UKR\", \"DEN\"), loser_hand (\"R\", \"L\"), tourney_date (20160801, 20160801, 20170410), winner_age (24.2245037645, 25.0622861054, 28.5557837098), match_num (286, 280, 260), minutes (75, 100, 62), winner_rank_points (2730, 6860, 9030), loser_ioc (\"ROU\", \"BEL\", \"TPE\"), score (\"3-6 6-2 6-3\", \"6-4 6-2\", \"7-6(4) 6-2\"), tourney_name (\"Wuhan\", \"Rabat\", \"Acapulco\"), winner_entry (\"\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (174, 174, 179), draw_size (12, 8, 32), round (\"F\", \"F\", \"RR\"), loser_seed (1, 28, 29), winner_name (\"Elena Vesnina\", \"Alize Cornet\", \"Lucie Safarova\"), loser_entry (\"\"), year (2013, 2016, 2017), tourney_id (\"2016-1064\", \"2016-1087\", \"2017-1039\"), winner_rank (13, 31, 19), loser_id (200748, 200033, 201506), loser_name (\"Caroline Wozniacki\", \"Camila Giorgi\", \"Ekaterina Makarova\"), tourney_level (\"P\", \"P\", \"W\") | rankings : tours (12, 38, 8), ranking (874, 212, 1312), ranking_points (437, 9575, 1968), player_id (206033, 214770, 203533), ranking_date (20050307, 20071126, 20081103) | players : country_code (\"ISR\", \"UNK\", \"KOR\"), hand (\"U\", \"U\", \"\"), first_name (\"Houda\", \"Varvara\", \"Kamonwan\"), birth_date (19961125, 19980324, 20010730), last_name (\"Niepel\", \"Lujan\", \"Andres Rodriguez\"), player_id (208453, 213927, 205564) | contests : winner_ht (177, 173, 159), winner_hand (\"R\", \"L\"), winner_seed (12, 8, 8), winner_id (201521, 201518, 201521), loser_rank (56, 47, 10), loser_age (22.3463381246, 32.3586584531, 24.6406570842), best_of (3), loser_rank_points (2101, 1242, 1995), winner_ioc (\"USA\", \"UKR\", \"DEN\"), loser_hand (\"R\", \"L\"), tourney_date (20160801, 20160801, 20170410), winner_age (24.2245037645, 25.0622861054, 28.5557837098), match_num (286, 280, 260), minutes (75, 100, 62), winner_rank_points (2730, 6860, 9030), loser_ioc (\"ROU\", \"BEL\", \"TPE\"), score (\"3-6 6-2 6-3\", \"6-4 6-2\", \"7-6(4) 6-2\"), tourney_name (\"Wuhan\", \"Rabat\", \"Acapulco\"), winner_entry (\"\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (174, 174, 179), draw_size (12, 8, 32), round (\"F\", \"F\", \"RR\"), loser_seed (1, 28, 29), winner_name (\"Elena Vesnina\", \"Alize Cornet\", \"Lucie Safarova\"), loser_entry (\"\"), year (2013, 2016, 2017), tourney_id (\"2016-1064\", \"2016-1087\", \"2017-1039\"), winner_rank (13, 31, 19), loser_id (200748, 200033, 201506), loser_name (\"Caroline Wozniacki\", \"Camila Giorgi\", \"Ekaterina Makarova\"), tourney_level (\"P\", \"P\", \"W\")", + "schema_without_content": "games : winner_ht , winner_hand , winner_seed , winner_id , loser_rank , loser_age , best_of , loser_rank_points , winner_ioc , loser_hand , tourney_date , winner_age , match_num , minutes , winner_rank_points , loser_ioc , score 6-2\", tourney_name , winner_entry , surface , loser_ht , draw_size , round , loser_seed , winner_name , loser_entry , year , tourney_id , winner_rank , loser_id , loser_name , tourney_level | rankings : tours , ranking , ranking_points , player_id , ranking_date | players : country_code , hand , first_name , birth_date , last_name , player_id | contests : winner_ht , winner_hand , winner_seed , winner_id , loser_rank , loser_age , best_of , loser_rank_points , winner_ioc , loser_hand , tourney_date , winner_age , match_num , minutes , winner_rank_points , loser_ioc , score 6-2\", tourney_name , winner_entry , surface , loser_ht , draw_size , round , loser_seed , winner_name , loser_entry , year , tourney_id , winner_rank , loser_id , loser_name , tourney_level", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "first names": "players.first_name", + "country codes for players": "players.country_code", + "won": "matches.winner_id", + "WTA Championships": "matches.tourney_name", + "Australian Open": "matches.tourney_name" + } + }, + { + "question": "find the #first name# and #country code of the oldest player# .", + "db_id": "wta_1", + "orig_query": "select first_name, country_code from players order by birth_date limit 1", + "schema_with_content": "matches : loser_seed (13, 7, 16), year (2013, 2016, 2017), winner_ht (161, 174, 170), tourney_id (\"2016-1067\", \"2017-M024\", \"2016-0806\"), winner_entry (\"\"), winner_name (\"Barbora Zahlavova Strycova\", \"Madison Keys\", \"Sloane Stephens\"), loser_rank (59, 61, 60), winner_seed (11, 22, 18), loser_id (202429, 201366, 201465), winner_rank (21, 23, 82), winner_ioc (\"SVK\", \"UKR\", \"HUN\"), loser_name (\"Ana Ivanovic\", \"Dominika Cibulkova\", \"Yanina Wickmayer\"), winner_id (201595, 201311, 200033), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (123, 122, 51), loser_ioc (\"CHN\", \"JPN\", \"HUN\"), winner_age (22.3080082136, 25.7522245038, 28.4407939767), match_num (274, 148, 286), round (\"QF\", \"QF\", \"R16\"), best_of (3), winner_rank_points (1645, 2871, 2390), loser_rank_points (3483, 1936, 4100), tourney_date (20170424, 20160801, 20160321), tourney_name (\"Miami\", \"Biel\", \"Rome\"), loser_entry (\"\"), loser_ht (176, 169, 162), score (\"3-6 6-3 6-4\", \"7-6(5) 1-6 6-0\", \"6-3 3-6 6-3 \"), tourney_level (\"G\", \"G\", \"G\"), winner_hand (\"R\", \"L\"), loser_age (21.472963723499998, 32.9719370294, 25.273100616), loser_hand (\"R\", \"L\"), draw_size (128, 32, 32) | competitors : last_name (\"Muci Torres\", \"Ghedin\", \"Kimhi\"), first_name (\"Paiao Asinata\", \"Heather\", \"Hester\"), hand (\"\", \"\", \"\"), player_id (210591, 204532, 205118), birth_date (20000120, 19951126, 19411111), country_code (\"ARG\", \"POC\", \"ROU\") | athletes : last_name (\"Muci Torres\", \"Ghedin\", \"Kimhi\"), first_name (\"Paiao Asinata\", \"Heather\", \"Hester\"), hand (\"\", \"\", \"\"), player_id (210591, 204532, 205118), birth_date (20000120, 19951126, 19411111), country_code (\"ARG\", \"POC\", \"ROU\") | rankings : player_id (214945, 210910, 203326), ranking_date (20050418, 19981005, 20110815), ranking (40, 1238, 765), ranking_points (1553, 366, 1005), tours (5, 22, 7)", + "schema_without_content": "matches : loser_seed , year , winner_ht , tourney_id , winner_entry , winner_name , loser_rank , winner_seed , loser_id , winner_rank , winner_ioc , loser_name , winner_id , surface , minutes , loser_ioc , winner_age , match_num , round , best_of , winner_rank_points , loser_rank_points , tourney_date , tourney_name , loser_entry , loser_ht , score 1-6 6-0\", \"6-3 3-6 6-3 \", tourney_level , winner_hand , loser_age , loser_hand , draw_size | competitors : last_name , first_name , hand , player_id , birth_date , country_code | athletes : last_name , first_name , hand , player_id , birth_date , country_code | rankings : player_id , ranking_date , ranking , ranking_points , tours", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the oldest player": "players.country_code" + } + }, + { + "question": "what is the #first name# and #country code of the oldest player# ?", + "db_id": "wta_1", + "orig_query": "select first_name, country_code from players order by birth_date limit 1", + "schema_with_content": "matches : loser_rank (30, 37, 20), draw_size (4, 128, 8), tourney_name (\"s-Hertogenbosch\", \"Biel\", \"Toronto\"), tourney_date (20131021, 20160425, 20161010), tourney_level (\"W\", \"I\", \"W\"), match_num (251, 196, 290), loser_age (28.714579055399998, 26.6830937714, 28.5804243669), loser_name (\"Angelique Kerber\", \"Madison Keys\", \"Shuai Peng\"), loser_entry (\"\"), round (\"SF\", \"BR\", \"F\"), winner_ht (162, 183, 184), winner_hand (\"R\", \"L\"), winner_ioc (\"BEL\", \"DEN\", \"BLR\"), loser_seed (9, 18, 1), tourney_id (\"2016-O16\", \"2017-560\", \"2016-1082\"), winner_age (35.6440793977, 30.250513347, 23.783709787800003), best_of (3), loser_id (201347, 201493, 200033), winner_seed (20, 20, 8), winner_rank (34, 15, 25), loser_ioc (\"BEL\", \"SWE\", \"SWE\"), winner_rank_points (8330, 1936, 2895), winner_id (201474, 201585, 202469), loser_hand (\"R\", \"L\"), loser_rank_points (1755, 3280, 4410), loser_ht (172, 163, 175), winner_entry (\"\"), surface (\"Hard\", \"Clay\", \"Grass\"), winner_name (\"Caroline Wozniacki\", \"Angelique Kerber\", \"Caroline Wozniacki\"), year (2013, 2016, 2017), score (\"6-7(5) 6-4 6-3\", \"6-1 6-2\", \"7-6(5) 1-6 6-0\"), minutes (46, 135, 75) | competitors : hand (\"\", \"U\", \"R\"), first_name (\"Sidonia\", \"Magdelena\", \"Luisa\"), player_id (218980, 213302, 220262), birth_date (19710818, 19971118, 19910303), country_code (\"ROU\", \"SMR\", \"BLR\"), last_name (\"Ivancevic\", \"Morgado\", \"Adsuar\") | rankings : player_id (216062, 205869, 209331), tours (12, 31, 41), ranking_points (4542, 574, 2526), ranking_date (19921005, 19930419, 19880201), ranking (320, 1343, 636) | athletes : hand (\"\", \"U\", \"R\"), first_name (\"Sidonia\", \"Magdelena\", \"Luisa\"), player_id (218980, 213302, 220262), birth_date (19710818, 19971118, 19910303), country_code (\"ROU\", \"SMR\", \"BLR\"), last_name (\"Ivancevic\", \"Morgado\", \"Adsuar\")", + "schema_without_content": "matches : loser_rank , draw_size , tourney_name , tourney_date , tourney_level , match_num , loser_age , loser_name , loser_entry , round , winner_ht , winner_hand , winner_ioc , loser_seed , tourney_id , winner_age , best_of , loser_id , winner_seed , winner_rank , loser_ioc , winner_rank_points , winner_id , loser_hand , loser_rank_points , loser_ht , winner_entry , surface , winner_name , year , score 6-4 6-3\", \"6-1 6-2\", \"7-6 1-6 6-0\", minutes | competitors : hand , first_name , player_id , birth_date , country_code , last_name | rankings : player_id , tours , ranking_points , ranking_date , ranking | athletes : hand , first_name , player_id , birth_date , country_code , last_name", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the oldest player": "players.country_code" + } + }, + { + "question": "list the first and #last name of all players# in the order of #birth date# .", + "db_id": "wta_1", + "orig_query": "select first_name, last_name from players order by birth_date", + "schema_with_content": "athletes : hand (\"R\", \"\", \"\"), player_id (212698, 200489, 220067), country_code (\"KGZ\", \"CZE\", \"VEN\"), birth_date (19950917, 19510822, 20010307), last_name (\"Pierce\", \"Husarova\", \"Meir\"), first_name (\"Leila\", \"Rattiya\", \"Jiaqing\") | competitors : hand (\"R\", \"\", \"\"), player_id (212698, 200489, 220067), country_code (\"KGZ\", \"CZE\", \"VEN\"), birth_date (19950917, 19510822, 20010307), last_name (\"Pierce\", \"Husarova\", \"Meir\"), first_name (\"Leila\", \"Rattiya\", \"Jiaqing\") | matches : winner_entry (\"\"), loser_seed (15, 23, 6), winner_age (26.8117727584, 27.4688569473, 28.9336071184), loser_ioc (\"SVK\", \"FRA\", \"POL\"), loser_rank_points (1770, 4060, 2780), winner_ioc (\"BLR\", \"JPN\", \"JPN\"), winner_ht (184, 177, 175), tourney_name (\"Monterrey\", \"Eastbourne\", \"Brisbane\"), draw_size (12, 4, 32), score (\"7-6(5) 7-6(2)\", \"6-7(3) 6-1 6-2\", \"6-3 3-6 6-3 \"), winner_rank (8, 17, 10), loser_rank (61, 1, 7), loser_name (\"Anastasia Pavlyuchenkova\", \"Shuai Peng\", \"Karolina Pliskova\"), match_num (222, 161, 201), minutes (184, 81, 116), winner_seed (13, 28, 4), tourney_level (\"P\", \"P\", \"G\"), best_of (3), loser_age (27.310061601599998, 25.4291581109, 23.4387405886), loser_ht (173, 176, 163), loser_id (201320, 202428, 201366), tourney_date (20160829, 20170227, 20161024), winner_rank_points (4985, 3401, 5850), tourney_id (\"2017-0406\", \"2017-1005\", \"2016-1049\"), surface (\"Hard\", \"Clay\", \"Grass\"), winner_id (200748, 201662, 201419), winner_name (\"Garbine Muguruza\", \"Timea Babos\", \"Jelena Jankovic\"), loser_entry (\"\"), winner_hand (\"R\", \"L\"), loser_hand (\"R\", \"L\"), round (\"BR\", \"RR\", \"QF\"), year (2013, 2016, 2017) | rankings : tours (0, 31, 39), player_id (202085, 211006, 214300), ranking_points (3517, 224, 1412), ranking (965, 988, 1305), ranking_date (20080804, 19961230, 19930503)", + "schema_without_content": "athletes : hand , player_id , country_code , birth_date , last_name , first_name | competitors : hand , player_id , country_code , birth_date , last_name , first_name | matches : winner_entry , loser_seed , winner_age , loser_ioc , loser_rank_points , winner_ioc , winner_ht , tourney_name , draw_size , score 7-6\", \"6-7 6-1 6-2\", \"6-3 3-6 6-3 \", winner_rank , loser_rank , loser_name , match_num , minutes , winner_seed , tourney_level , best_of , loser_age , loser_ht , loser_id , tourney_date , winner_rank_points , tourney_id , surface , winner_id , winner_name , loser_entry , winner_hand , loser_hand , round , year | rankings : tours , player_id , ranking_points , ranking , ranking_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "last name of all players": "players.last_name", + "birth date": "players.birth_date", + "first name": "players.first_name" + } + }, + { + "question": "what are the #full names of all players# , sorted by #birth date# ?", + "db_id": "wta_1", + "orig_query": "select first_name, last_name from players order by birth_date", + "schema_with_content": "matches : loser_seed (26, 6, 3), tourney_name (\"'S-Hertogenbosch\", \"Australian Open\", \"Strasbourg\"), winner_ht (175, 172, 175), winner_seed (10, 20, 7), match_num (274, 260, 287), minutes (134, 72, 86), loser_name (\"Ana Ivanovic\", \"Simona Halep\", \"Anastasia Pavlyuchenkova\"), loser_age (25.4839151266, 23.8275154004, 28.1998631075), tourney_date (20170807, 20160815, 20160627), loser_rank_points (6375, 2695, 1571), loser_entry (\"\"), best_of (3), loser_id (201444, 201616, 201458), surface (\"Hard\", \"Clay\", \"Grass\"), winner_id (201455, 200033, 201311), round (\"F\", \"F\", \"F\"), draw_size (12, 64, 32), loser_rank (27, 3, 26), tourney_id (\"2017-1097\", \"2017-0406\", \"2016-0528\"), score (\"7-6(6) 7-6(4)\", \"6-4 2-6 6-3\", \"7-6(5) 7-6(2)\"), winner_entry (\"\"), winner_hand (\"R\", \"L\"), loser_ht (159, 165, 163), winner_rank_points (4372, 1994, 1994), tourney_level (\"I\", \"W\", \"I\"), winner_ioc (\"AUS\", \"UKR\", \"SVK\"), loser_ioc (\"CZE\", \"HUN\", \"BLR\"), winner_name (\"Elina Svitolina\", \"Kristina Mladenovic\", \"Dominika Cibulkova\"), loser_hand (\"R\", \"L\"), winner_rank (53, 7, 20), winner_age (26.869267624899997, 31.077344284699997, 32.0684462697), year (2013, 2016, 2017) | competitors : first_name (\"Candice\", \"Yee Hong\", \"Norzafira\"), hand (\"L\", \"L\", \"R\"), birth_date (19690203, 19790409, 19920723), last_name (\"Rouckova\", \"Mohn\", \"Akintunde\"), player_id (219551, 214321, 206203), country_code (\"NZL\", \"MEX\", \"rc=\") | rankings : ranking_points (4847, 929, 599), ranking_date (19990927, 20150803, 19980615), tours (35, 1, 2), ranking (683, 600, 1323), player_id (216373, 202933, 202135) | athletes : first_name (\"Candice\", \"Yee Hong\", \"Norzafira\"), hand (\"L\", \"L\", \"R\"), birth_date (19690203, 19790409, 19920723), last_name (\"Rouckova\", \"Mohn\", \"Akintunde\"), player_id (219551, 214321, 206203), country_code (\"NZL\", \"MEX\", \"rc=\")", + "schema_without_content": "matches : loser_seed , tourney_name , winner_ht , winner_seed , match_num , minutes , loser_name , loser_age , tourney_date , loser_rank_points , loser_entry , best_of , loser_id , surface , winner_id , round , draw_size , loser_rank , tourney_id , score 7-6\", \"6-4 2-6 6-3\", \"7-6 7-6\", winner_entry , winner_hand , loser_ht , winner_rank_points , tourney_level , winner_ioc , loser_ioc , winner_name , loser_hand , winner_rank , winner_age , year | competitors : first_name , hand , birth_date , last_name , player_id , country_code | rankings : ranking_points , ranking_date , tours , ranking , player_id | athletes : first_name , hand , birth_date , last_name , player_id , country_code", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "full names of all players": [ + "players.first_name", + "players.last_name" + ], + "birth date": "players.birth_date" + } + }, + { + "question": "list the first and #last name of all players# who are #left / l hand# in the order of #birth date# .", + "db_id": "wta_1", + "orig_query": "select first_name, last_name from players where hand = 'L' order by birth_date", + "schema_with_content": "competitors : last_name (\"Thile\", \"Silverio\", \"Marik\"), country_code (\"OMA\", \"RSA\", \"NED\"), first_name (\"Oliwia\", \"Aleksandrina\", \"Lilly\"), player_id (217274, 209187, 218738), hand (\"R\", \"\", \"L\"), birth_date (19990227, 19760815, 19860301) | rankings : tours (1, 35, 6), ranking (117, 452, 277), ranking_points (3211, 1415, 187), ranking_date (19981012, 19920525, 20040816), player_id (206177, 201650, 206161) | matches : winner_age (28.301163586599998, 23.2361396304, 25.3990417522), winner_hand (\"R\", \"L\"), loser_ht (180, 175, 169), match_num (204, 278, 214), winner_rank_points (1145, 3595, 4985), loser_ioc (\"TPE\", \"SRB\", \"CZE\"), round (\"R32\", \"BR\", \"RR\"), tourney_name (\"Montreal\", \"Sydney\", \"Miami\"), winner_id (201474, 200748, 201505), winner_seed (3, 18, 14), loser_seed (11, 7, 8), winner_rank (13, 44, 30), winner_entry (\"\"), tourney_id (\"2016-M014\", \"2016-1081\", \"2016-1067\"), winner_ioc (\"NED\", \"UKR\", \"AUS\"), year (2013, 2016, 2017), tourney_level (\"I\", \"I\", \"I\"), tourney_date (20160321, 20170306, 20170717), winner_ht (159, 181, 179), loser_age (23.808350444899997, 36.908966461300004, 25.4291581109), loser_id (201506, 201585, 201518), score (\"7-6(0) 6-4\", \"7-5 7-5\", \"3-6 7-6(2) 6-0\"), best_of (3), minutes (121, 112, 60), loser_rank (24, 15, 34), draw_size (128, 64, 128), loser_entry (\"\"), loser_rank_points (3185, 3401, 1565), surface (\"Hard\", \"Clay\", \"Grass\"), winner_name (\"Lucie Safarova\", \"Caroline Wozniacki\", \"Johanna Larsson\"), loser_name (\"Elena Vesnina\", \"Johanna Larsson\", \"Agnieszka Radwanska\"), loser_hand (\"R\", \"L\") | athletes : last_name (\"Thile\", \"Silverio\", \"Marik\"), country_code (\"OMA\", \"RSA\", \"NED\"), first_name (\"Oliwia\", \"Aleksandrina\", \"Lilly\"), player_id (217274, 209187, 218738), hand (\"R\", \"\", \"L\"), birth_date (19990227, 19760815, 19860301)", + "schema_without_content": "competitors : last_name , country_code , first_name , player_id , hand , birth_date | rankings : tours , ranking , ranking_points , ranking_date , player_id | matches : winner_age , winner_hand , loser_ht , match_num , winner_rank_points , loser_ioc , round , tourney_name , winner_id , winner_seed , loser_seed , winner_rank , winner_entry , tourney_id , winner_ioc , year , tourney_level , tourney_date , winner_ht , loser_age , loser_id , score 6-4\", \"7-5 7-5\", \"3-6 7-6 6-0\", best_of , minutes , loser_rank , draw_size , loser_entry , loser_rank_points , surface , winner_name , loser_name , loser_hand | athletes : last_name , country_code , first_name , player_id , hand , birth_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "last name of all players": "players.last_name", + "left / L hand": "players.hand", + "birth date": "players.birth_date", + "first name": "players.first_name" + } + }, + { + "question": "what are the #full names of all left handed players# , in order of #birth date# ?", + "db_id": "wta_1", + "orig_query": "select first_name, last_name from players where hand = 'L' order by birth_date", + "schema_with_content": "competitors : last_name (\"Kurta\", \"Ren\", \"Luboldt\"), player_id (206758, 212245, 202707), first_name (\"Akemi\", \"Ana Luiza\", \"Tanasha\"), hand (\"L\", \"U\", \"R\"), country_code (\"NOR\", \"QAT\", \"CHI\"), birth_date (19641027, 19640825, 19801214) | matches : loser_ioc (\"USA\", \"ROU\", \"ROU\"), loser_rank (1, 33, 13), loser_ht (157, 176, 173), winner_entry (\"\"), loser_age (31.920602327199997, 24.079397672800003, 25.440109514), loser_entry (\"\"), tourney_level (\"I\", \"W\", \"G\"), winner_rank_points (2300, 2475, 3590), match_num (152, 264, 215), tourney_id (\"2016-M006\", \"2017-1039\", \"2017-1094\"), loser_hand (\"R\", \"L\"), winner_hand (\"R\", \"L\"), minutes (51, 148, 22), round (\"BR\", \"BR\", \"R32\"), winner_id (201493, 201520, 201593), winner_rank (44, 58, 4), winner_ioc (\"AUS\", \"CHN\", \"GER\"), tourney_name (\"Washington\", \"Luxembourg\", \"Rome\"), surface (\"Hard\", \"Clay\", \"Grass\"), tourney_date (20170821, 20160118, 20170821), year (2013, 2016, 2017), loser_seed (30, 30, 21), winner_age (27.0034223135, 22.926762491399998, 26.9650924025), winner_name (\"Carla Suarez Navarro\", \"Kristina Mladenovic\", \"Elena Vesnina\"), best_of (3), loser_id (201540, 201465, 200748), score (\"7-6(0) 6-3\", \"7-6(5) 2-6 6-3\", \"7-6(2) 1-6 6-4\"), winner_seed (27, 5, 11), winner_ht (163, 175, 177), loser_name (\"Petra Kvitova\", \"Angelique Kerber\", \"Timea Babos\"), draw_size (4, 4, 32), loser_rank_points (4287, 3010, 8485) | athletes : last_name (\"Kurta\", \"Ren\", \"Luboldt\"), player_id (206758, 212245, 202707), first_name (\"Akemi\", \"Ana Luiza\", \"Tanasha\"), hand (\"L\", \"U\", \"R\"), country_code (\"NOR\", \"QAT\", \"CHI\"), birth_date (19641027, 19640825, 19801214) | rankings : player_id (202695, 203420, 211068), ranking_date (20100719, 19901126, 20111226), ranking_points (1649, 269, 6035), tours (35, 22, 39), ranking (425, 1017, 880)", + "schema_without_content": "competitors : last_name , player_id , first_name , hand , country_code , birth_date | matches : loser_ioc , loser_rank , loser_ht , winner_entry , loser_age , loser_entry , tourney_level , winner_rank_points , match_num , tourney_id , loser_hand , winner_hand , minutes , round , winner_id , winner_rank , winner_ioc , tourney_name , surface , tourney_date , year , loser_seed , winner_age , winner_name , best_of , loser_id , score 6-3\", \"7-6 2-6 6-3\", \"7-6 1-6 6-4\", winner_seed , winner_ht , loser_name , draw_size , loser_rank_points | athletes : last_name , player_id , first_name , hand , country_code , birth_date | rankings : player_id , ranking_date , ranking_points , tours , ranking", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "full names of all left handed players": [ + "players.first_name", + "players.last_name" + ], + "birth date": "players.birth_date" + } + }, + { + "question": "find the #first name# and #country code of the player# who did the most number of #tours# .", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id order by t2.tours desc limit 1", + "schema_with_content": "matches : loser_name (\"Lucie Safarova\", \"Madison Keys\", \"Mona Barthel\"), loser_hand (\"R\", \"L\"), winner_id (202428, 201499, 201518), tourney_date (20170821, 20170116, 20170320), surface (\"Hard\", \"Clay\", \"Grass\"), score (\"7-5 6-7(5) 6-2\", \"6-4 7-6(6)\", \"6-1 4-6 6-1\"), loser_rank_points (1220, 5330, 2730), winner_seed (20, 19, 11), loser_age (23.8877481177, 28.5804243669, 22.4503764545), tourney_id (\"2016-M024\", \"2017-1086\", \"2017-560\"), winner_rank_points (3091, 4216, 4600), loser_ht (172, 163, 161), tourney_name (\"Rome\", \"Prague\", \"Stanford\"), winner_rank (44, 21, 20), best_of (3), loser_ioc (\"RUS\", \"BEL\", \"POL\"), minutes (135, 80, 22), draw_size (32, 8, 4), winner_ioc (\"JPN\", \"SWE\", \"HUN\"), loser_entry (\"\"), winner_name (\"Elena Vesnina\", \"Coco Vandeweghe\", \"Lucie Safarova\"), year (2013, 2016, 2017), winner_age (24.5585215606, 27.718001368899998, 26.9596167009), round (\"R32\", \"SF\", \"QF\"), match_num (217, 209, 224), loser_id (201527, 201347, 201347), winner_ht (179, 180, 175), winner_hand (\"R\", \"L\"), loser_seed (25, 7, 15), tourney_level (\"I\", \"I\", \"G\"), loser_rank (3, 27, 19), winner_entry (\"\") | athletes : last_name (\"Tsuchiya\", \"Safronenka\", \"Suleimenova\"), player_id (216351, 216767, 207685), first_name (\"Liudmila\", \"Imogen\", \"Ina Maria\"), birth_date (19830716, 19841109, 19820911), country_code (\"MLT\", \"JAM\", \"POL\"), hand (\"U\", \"U\", \"\") | competitors : last_name (\"Tsuchiya\", \"Safronenka\", \"Suleimenova\"), player_id (216351, 216767, 207685), first_name (\"Liudmila\", \"Imogen\", \"Ina Maria\"), birth_date (19830716, 19841109, 19820911), country_code (\"MLT\", \"JAM\", \"POL\"), hand (\"U\", \"U\", \"\") | rankings : ranking_date (20160606, 19890626, 20030616), player_id (211594, 202646, 202832), tours (23, 32, 14), ranking_points (207, 934, 5150), ranking (1476, 1135, 153)", + "schema_without_content": "matches : loser_name , loser_hand , winner_id , tourney_date , surface , score 6-2\", \"6-4 7-6\", \"6-1 4-6 6-1\", loser_rank_points , winner_seed , loser_age , tourney_id , winner_rank_points , loser_ht , tourney_name , winner_rank , best_of , loser_ioc , minutes , draw_size , winner_ioc , loser_entry , winner_name , year , winner_age , round , match_num , loser_id , winner_ht , winner_hand , loser_seed , tourney_level , loser_rank , winner_entry | athletes : last_name , player_id , first_name , birth_date , country_code , hand | competitors : last_name , player_id , first_name , birth_date , country_code , hand | rankings : ranking_date , player_id , tours , ranking_points , ranking", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the player": "players.country_code", + "tours": "rankings.tours" + } + }, + { + "question": "find the #first name# and #country code of the player# who did the most number of #tours# .", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id order by t2.tours desc limit 1", + "schema_with_content": "leaderboard : ranking (958, 1213, 280), tours (37, 37, 39), player_id (203558, 202640, 215871), ranking_date (20160307, 19900115, 19891211), ranking_points (2386, 7930, 4475) | matches : loser_entry (\"\"), best_of (3), minutes (104, 145, 88), loser_rank (15, 66, 15), match_num (212, 283, 156), surface (\"Hard\", \"Clay\", \"Grass\"), winner_entry (\"\"), winner_id (201505, 201615, 201521), winner_age (25.6755646817, 22.527036276500002, 23.8494182067), tourney_id (\"2016-M004\", \"2017-1039\", \"2016-1087\"), loser_name (\"Su Wei Hsieh\", \"Venus Williams\", \"Carla Suarez Navarro\"), tourney_date (20160222, 20170130, 20160222), winner_name (\"Barbora Zahlavova Strycova\", \"Johanna Larsson\", \"Petra Kvitova\"), loser_rank_points (2295, 3060, 4310), winner_rank (4, 18, 15), tourney_level (\"W\", \"G\", \"W\"), round (\"BR\", \"R16\", \"F\"), winner_rank_points (8235, 1037, 4742), winner_seed (28, 3, 19), loser_hand (\"R\", \"L\"), draw_size (12, 64, 12), winner_ioc (\"BEL\", \"NED\", \"SRB\"), loser_age (27.4442162902, 23.1786447639, 26.078028747399998), loser_id (201444, 201493, 201427), loser_seed (4, 14, 15), loser_ht (161, 161, 164), loser_ioc (\"USA\", \"HUN\", \"BEL\"), winner_hand (\"R\", \"L\"), winner_ht (174, 179, 182), year (2013, 2016, 2017), tourney_name (\"Hong Kong\", \"Wimbledon\", \"Dubai\"), score (\"7-5 2-6 6-2\", \"6-1 2-6 6-4\", \"W/O\") | players : first_name (\"Florea De Maria\", \"Jessie Felisia\", \"Esra\"), hand (\"R\", \"L\", \"\"), birth_date (19940115, 19801119, 19891003), last_name (\"Obando\", \"Namwong\", \"De Bont\"), country_code (\"AUT\", \"GUA\", \"IND\"), player_id (204057, 203218, 218630) | standings : ranking (958, 1213, 280), tours (37, 37, 39), player_id (203558, 202640, 215871), ranking_date (20160307, 19900115, 19891211), ranking_points (2386, 7930, 4475)", + "schema_without_content": "leaderboard : ranking , tours , player_id , ranking_date , ranking_points | matches : loser_entry , best_of , minutes , loser_rank , match_num , surface , winner_entry , winner_id , winner_age , tourney_id , loser_name , tourney_date , winner_name , loser_rank_points , winner_rank , tourney_level , round , winner_rank_points , winner_seed , loser_hand , draw_size , winner_ioc , loser_age , loser_id , loser_seed , loser_ht , loser_ioc , winner_hand , winner_ht , year , tourney_name , score | players : first_name , hand , birth_date , last_name , country_code , player_id | standings : ranking , tours , player_id , ranking_date , ranking_points", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the player": "players.country_code", + "tours": "rankings.tours" + } + }, + { + "question": "what is the #first name# and #country code of the player# with the most #tours# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id order by t2.tours desc limit 1", + "schema_with_content": "competitors : birth_date (19840613, 19760310, 19920713), last_name (\"Gurkaynak\", \"Neri\", \"Guglielminotti\"), country_code (\"INA\", \"SCG\", \"NAM\"), player_id (214171, 209542, 205855), hand (\"\", \"R\", \"L\"), first_name (\"Emilie\", \"Khume\", \"Lara Isis\") | rankings : player_id (205824, 215386, 206035), ranking (288, 805, 1202), ranking_points (5246, 5437, 1019), ranking_date (20060403, 19921116, 19930215), tours (36, 31, 0) | athletes : birth_date (19840613, 19760310, 19920713), last_name (\"Gurkaynak\", \"Neri\", \"Guglielminotti\"), country_code (\"INA\", \"SCG\", \"NAM\"), player_id (214171, 209542, 205855), hand (\"\", \"R\", \"L\"), first_name (\"Emilie\", \"Khume\", \"Lara Isis\") | matches : minutes (106, 84, 94), loser_entry (\"\"), tourney_id (\"2016-1048\", \"2016-M014\", \"2017-0703\"), winner_name (\"Petra Kvitova\", \"Camila Giorgi\", \"Serena Williams\"), loser_name (\"Anastasia Pavlyuchenkova\", \"Stefanie Voegele\", \"Dominika Cibulkova\"), winner_hand (\"R\", \"L\"), loser_rank_points (2295, 3540, 1460), winner_rank_points (5790, 2456, 2451), loser_seed (21, 32, 6), draw_size (64, 128, 64), loser_rank (27, 1, 60), winner_ioc (\"UKR\", \"UKR\", \"ESP\"), winner_rank (1, 6, 43), tourney_date (20161017, 20170424, 20170410), winner_id (201493, 201506, 201521), tourney_level (\"W\", \"I\", \"G\"), winner_seed (9, 6, 7), tourney_name (\"Sydney\", \"Cincinnati\", \"Zhuhai\"), loser_hand (\"R\", \"L\"), best_of (3), score (\"3-6 6-3 6-4\", \"6-1 2-6 6-4\", \"6-4 3-6 6-3\"), year (2013, 2016, 2017), round (\"F\", \"F\", \"F\"), winner_entry (\"\"), winner_age (28.6105407255, 22.3080082136, 26.7433264887), loser_ht (157, 164, 173), loser_ioc (\"SWE\", \"USA\", \"CZE\"), loser_id (201499, 201458, 201444), loser_age (26.340862423, 23.2717316906, 23.0636550308), match_num (282, 225, 212), winner_ht (176, 162, 162), surface (\"Hard\", \"Clay\", \"Grass\")", + "schema_without_content": "competitors : birth_date , last_name , country_code , player_id , hand , first_name | rankings : player_id , ranking , ranking_points , ranking_date , tours | athletes : birth_date , last_name , country_code , player_id , hand , first_name | matches : minutes , loser_entry , tourney_id , winner_name , loser_name , winner_hand , loser_rank_points , winner_rank_points , loser_seed , draw_size , loser_rank , winner_ioc , winner_rank , tourney_date , winner_id , tourney_level , winner_seed , tourney_name , loser_hand , best_of , score , year , round , winner_entry , winner_age , loser_ht , loser_ioc , loser_id , loser_age , match_num , winner_ht , surface", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the player": "players.country_code", + "tours": "rankings.tours" + } + }, + { + "question": "what is the #first name# and #country code of the player# with the most #tours# ?", + "db_id": "wta_1", + "orig_query": "select t1.country_code, t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id order by t2.tours desc limit 1", + "schema_with_content": "standings : player_id (214972, 215617, 202477), ranking_date (19970303, 20130114, 20090323), tours (38, 24, 41), ranking_points (2981, 527, 291), ranking (861, 278, 81) | players : hand (\"L\", \"\", \"R\"), birth_date (19920425, 19620501, 19650401), first_name (\"Ashley M\", \"Thea Sund\", \"Sehzade\"), last_name (\"Kalyanasundaram\", \"Gajdosova\", \"Lincaru\"), player_id (209177, 204939, 219797), country_code (\"TUN\", \"NCA\", \"PHI\") | leaderboard : player_id (214972, 215617, 202477), ranking_date (19970303, 20130114, 20090323), tours (38, 24, 41), ranking_points (2981, 527, 291), ranking (861, 278, 81) | matches : winner_hand (\"R\", \"L\"), winner_ht (180, 161, 161), tourney_level (\"P\", \"W\", \"P\"), score (\"7-6(2) 1-6 6-4\", \"3-6 6-1 6-4\", \"6-4 3-6 7-6(3)\"), loser_entry (\"\"), winner_rank_points (2005, 4985, 5850), winner_entry (\"\"), loser_rank_points (2777, 1460, 4287), winner_id (202469, 201506, 201427), tourney_id (\"2016-O16\", \"2017-1039\", \"2016-580\"), loser_seed (8, 16, 6), loser_ht (177, 163, 172), winner_name (\"Venus Williams\", \"Madison Keys\", \"Sara Errani\"), tourney_date (20160815, 20170220, 20160321), draw_size (8, 32, 12), loser_name (\"Julia Goerges\", \"Coco Vandeweghe\", \"Su Wei Hsieh\"), loser_age (23.8877481177, 24.3449691992, 33.0102669405), tourney_name (\"s-Hertogenbosch\", \"Singapore\", \"Istanbul\"), loser_ioc (\"SUI\", \"CZE\", \"UKR\"), winner_rank (1, 17, 31), winner_age (23.811088295700003, 30.7323750856, 28.6105407255), winner_seed (20, 5, 21), year (2013, 2016, 2017), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (40, 40, 62), match_num (258, 289, 204), loser_id (201397, 202470, 201458), loser_hand (\"R\", \"L\"), winner_ioc (\"SWE\", \"UKR\", \"HUN\"), loser_rank (14, 8, 2), round (\"BR\", \"R16\", \"QF\")", + "schema_without_content": "standings : player_id , ranking_date , tours , ranking_points , ranking | players : hand , birth_date , first_name , last_name , player_id , country_code | leaderboard : player_id , ranking_date , tours , ranking_points , ranking | matches : winner_hand , winner_ht , tourney_level , score 1-6 6-4\", \"3-6 6-1 6-4\", \"6-4 3-6 7-6\", loser_entry , winner_rank_points , winner_entry , loser_rank_points , winner_id , tourney_id , loser_seed , loser_ht , winner_name , tourney_date , draw_size , loser_name , loser_age , tourney_name , loser_ioc , winner_rank , winner_age , winner_seed , year , best_of , surface , minutes , match_num , loser_id , loser_hand , winner_ioc , loser_rank , round", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code of the player": "players.country_code", + "tours": "rankings.tours" + } + }, + { + "question": "find the #year# that has the most number of #matches# .", + "db_id": "wta_1", + "orig_query": "select year from matches group by year order by count(*) desc limit 1", + "schema_with_content": "players : player_id (203072, 201573, 218041), country_code (\"KGZ\", \"MAS\", \"FIN\"), hand (\"U\", \"L\", \"L\"), birth_date (19870723, 19940220, 19900815), last_name (\"Abdioglu\", \"Porsz\", \"Dolitze\"), first_name (\"Shayma Seif\", \"Astrid\", \"Lilla\") | contests : round (\"F\", \"BR\", \"BR\"), tourney_id (\"2016-580\", \"2016-540\", \"2016-1052\"), loser_hand (\"R\", \"L\"), tourney_level (\"G\", \"I\", \"W\"), loser_name (\"Sloane Stephens\", \"Irina Camelia Begu\", \"Carla Suarez Navarro\"), winner_seed (11, 9, 8), winner_id (201311, 201615, 201419), winner_name (\"Simona Halep\", \"Karolina Pliskova\", \"Na Li\"), winner_age (28.574948665300003, 23.783709787800003, 28.6105407255), loser_seed (12, 17, 27), winner_hand (\"R\", \"L\"), loser_rank_points (1026, 4190, 4410), loser_entry (\"\"), year (2013, 2016, 2017), score (\"6-2 6-3\", \"4-6 6-4 6-4\", \"7-5 6-3\"), loser_rank (24, 32, 34), minutes (92, 101, 100), winner_ht (176, 172, 159), tourney_date (20160606, 20170227, 20170828), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (28.5804243669, 23.40862423, 27.074606433899998), tourney_name (\"Wuhan\", \"Monterrey\", \"St. Petersburg\"), draw_size (8, 128, 4), loser_ht (173, 183, 181), best_of (3), winner_entry (\"\"), loser_id (201512, 201520, 202494), winner_rank_points (7050, 3050, 3010), winner_rank (43, 30, 43), loser_ioc (\"UKR\", \"ESP\", \"BLR\"), winner_ioc (\"AUS\", \"NED\", \"POL\"), match_num (204, 278, 216) | games : round (\"F\", \"BR\", \"BR\"), tourney_id (\"2016-580\", \"2016-540\", \"2016-1052\"), loser_hand (\"R\", \"L\"), tourney_level (\"G\", \"I\", \"W\"), loser_name (\"Sloane Stephens\", \"Irina Camelia Begu\", \"Carla Suarez Navarro\"), winner_seed (11, 9, 8), winner_id (201311, 201615, 201419), winner_name (\"Simona Halep\", \"Karolina Pliskova\", \"Na Li\"), winner_age (28.574948665300003, 23.783709787800003, 28.6105407255), loser_seed (12, 17, 27), winner_hand (\"R\", \"L\"), loser_rank_points (1026, 4190, 4410), loser_entry (\"\"), year (2013, 2016, 2017), score (\"6-2 6-3\", \"4-6 6-4 6-4\", \"7-5 6-3\"), loser_rank (24, 32, 34), minutes (92, 101, 100), winner_ht (176, 172, 159), tourney_date (20160606, 20170227, 20170828), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (28.5804243669, 23.40862423, 27.074606433899998), tourney_name (\"Wuhan\", \"Monterrey\", \"St. Petersburg\"), draw_size (8, 128, 4), loser_ht (173, 183, 181), best_of (3), winner_entry (\"\"), loser_id (201512, 201520, 202494), winner_rank_points (7050, 3050, 3010), winner_rank (43, 30, 43), loser_ioc (\"UKR\", \"ESP\", \"BLR\"), winner_ioc (\"AUS\", \"NED\", \"POL\"), match_num (204, 278, 216) | rankings : tours (12, 21, 2), ranking_date (20000320, 19991011, 20150824), ranking (501, 113, 1335), player_id (211884, 211817, 215372), ranking_points (521, 707, 2010)", + "schema_without_content": "players : player_id , country_code , hand , birth_date , last_name , first_name | contests : round , tourney_id , loser_hand , tourney_level , loser_name , winner_seed , winner_id , winner_name , winner_age , loser_seed , winner_hand , loser_rank_points , loser_entry , year , score , loser_rank , minutes , winner_ht , tourney_date , surface , loser_age , tourney_name , draw_size , loser_ht , best_of , winner_entry , loser_id , winner_rank_points , winner_rank , loser_ioc , winner_ioc , match_num | games : round , tourney_id , loser_hand , tourney_level , loser_name , winner_seed , winner_id , winner_name , winner_age , loser_seed , winner_hand , loser_rank_points , loser_entry , year , score , loser_rank , minutes , winner_ht , tourney_date , surface , loser_age , tourney_name , draw_size , loser_ht , best_of , winner_entry , loser_id , winner_rank_points , winner_rank , loser_ioc , winner_ioc , match_num | rankings : tours , ranking_date , ranking , player_id , ranking_points", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "year": "matches.year", + "matches": "matches" + } + }, + { + "question": "which #year# had the most #matches# ?", + "db_id": "wta_1", + "orig_query": "select year from matches group by year order by count(*) desc limit 1", + "schema_with_content": "rankings : ranking_points (150, 229, 2268), tours (1, 39, 17), ranking (777, 1359, 332), ranking_date (19870427, 19890626, 19980427), player_id (202441, 206320, 206200) | players : last_name (\"Gibanel Velasco\", \"Casteleyn\", \"Forman\"), country_code (\"CAN\", \"GER\", \"NCA\"), hand (\"L\", \"\", \"\"), first_name (\"Cassia\", \"Maileen\", \"Qianxin\"), player_id (200024, 207301, 217010), birth_date (19980414, 19830823, 19640130) | contests : match_num (199, 286, 300), year (2013, 2016, 2017), tourney_level (\"P\", \"G\", \"I\"), loser_age (30.0944558522, 24.5585215606, 24.4435318275), score (\"6-2 5-7 7-5\", \"7-5 6-7(5) 6-2\", \"7-5 4-6 6-3\"), surface (\"Hard\", \"Clay\", \"Grass\"), winner_hand (\"R\", \"L\"), tourney_date (20160307, 20160627, 20160425), loser_hand (\"R\", \"L\"), winner_entry (\"\"), tourney_id (\"2017-1079\", \"2016-1082\", \"2016-0602\"), draw_size (12, 32, 128), minutes (92, 120, 75), winner_ht (170, 183, 159), winner_name (\"Kiki Bertens\", \"Dominika Cibulkova\", \"Elena Vesnina\"), winner_ioc (\"NED\", \"FRA\", \"CHN\"), loser_rank (28, 11, 46), winner_seed (9, 27, 20), tourney_name (\"Zhuhai\", \"Linz\", \"Rome\"), winner_id (202429, 201504, 201325), loser_rank_points (3795, 947, 4310), loser_ioc (\"DEN\", \"POL\", \"DEN\"), loser_entry (\"\"), loser_id (201520, 201505, 202429), loser_ht (174, 162, 177), round (\"R16\", \"R32\", \"SF\"), winner_rank_points (2915, 3540, 1768), best_of (3), winner_rank (50, 44, 12), winner_age (33.0485968515, 21.0896646133, 27.718001368899998), loser_seed (16, 20, 23), loser_name (\"Sorana Cirstea\", \"Misaki Doi\", \"Camila Giorgi\") | games : match_num (199, 286, 300), year (2013, 2016, 2017), tourney_level (\"P\", \"G\", \"I\"), loser_age (30.0944558522, 24.5585215606, 24.4435318275), score (\"6-2 5-7 7-5\", \"7-5 6-7(5) 6-2\", \"7-5 4-6 6-3\"), surface (\"Hard\", \"Clay\", \"Grass\"), winner_hand (\"R\", \"L\"), tourney_date (20160307, 20160627, 20160425), loser_hand (\"R\", \"L\"), winner_entry (\"\"), tourney_id (\"2017-1079\", \"2016-1082\", \"2016-0602\"), draw_size (12, 32, 128), minutes (92, 120, 75), winner_ht (170, 183, 159), winner_name (\"Kiki Bertens\", \"Dominika Cibulkova\", \"Elena Vesnina\"), winner_ioc (\"NED\", \"FRA\", \"CHN\"), loser_rank (28, 11, 46), winner_seed (9, 27, 20), tourney_name (\"Zhuhai\", \"Linz\", \"Rome\"), winner_id (202429, 201504, 201325), loser_rank_points (3795, 947, 4310), loser_ioc (\"DEN\", \"POL\", \"DEN\"), loser_entry (\"\"), loser_id (201520, 201505, 202429), loser_ht (174, 162, 177), round (\"R16\", \"R32\", \"SF\"), winner_rank_points (2915, 3540, 1768), best_of (3), winner_rank (50, 44, 12), winner_age (33.0485968515, 21.0896646133, 27.718001368899998), loser_seed (16, 20, 23), loser_name (\"Sorana Cirstea\", \"Misaki Doi\", \"Camila Giorgi\")", + "schema_without_content": "rankings : ranking_points , tours , ranking , ranking_date , player_id | players : last_name , country_code , hand , first_name , player_id , birth_date | contests : match_num , year , tourney_level , loser_age , score 6-2\", \"7-5 4-6 6-3\", surface , winner_hand , tourney_date , loser_hand , winner_entry , tourney_id , draw_size , minutes , winner_ht , winner_name , winner_ioc , loser_rank , winner_seed , tourney_name , winner_id , loser_rank_points , loser_ioc , loser_entry , loser_id , loser_ht , round , winner_rank_points , best_of , winner_rank , winner_age , loser_seed , loser_name | games : match_num , year , tourney_level , loser_age , score 6-2\", \"7-5 4-6 6-3\", surface , winner_hand , tourney_date , loser_hand , winner_entry , tourney_id , draw_size , minutes , winner_ht , winner_name , winner_ioc , loser_rank , winner_seed , tourney_name , winner_id , loser_rank_points , loser_ioc , loser_entry , loser_id , loser_ht , round , winner_rank_points , best_of , winner_rank , winner_age , loser_seed , loser_name", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "year": "matches.year", + "matches": "matches" + } + }, + { + "question": "find the #name# and #rank points of the winner# who won the most times.", + "db_id": "wta_1", + "orig_query": "select winner_name, winner_rank_points from matches group by winner_name order by count(*) desc limit 1", + "schema_with_content": "rankings : ranking_date (20070416, 19981109, 19910805), ranking_points (1439, 554, 9005), tours (13, 15, 21), ranking (969, 425, 897), player_id (215948, 214020, 202588) | contests : minutes (70, 71, 118), loser_hand (\"R\", \"L\"), loser_rank (81, 1, 47), loser_seed (5, 8, 9), tourney_date (20170306, 20170508, 20160613), winner_rank_points (4745, 5151, 1936), winner_ht (164, 163, 177), draw_size (12, 64, 4), tourney_id (\"2016-M006\", \"2016-0300\", \"2017-560\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (173, 169, 162), winner_entry (\"\"), tourney_name (\"Biel\", \"Biel\", \"Doha\"), winner_id (201596, 201419, 201504), year (2013, 2016, 2017), winner_rank (13, 37, 10), winner_name (\"Coco Vandeweghe\", \"Johanna Larsson\", \"Dominika Cibulkova\"), winner_age (24.2628336756, 26.6392881588, 26.4777549624), loser_id (201518, 201325, 201425), winner_seed (28, 19, 6), score (\"6-4 7-6(3)\", \"6-2 7-6(5)\", \"6-1 2-6 6-4\"), match_num (272, 219, 285), tourney_level (\"W\", \"G\", \"I\"), loser_ioc (\"UKR\", \"TPE\", \"RUS\"), loser_age (25.4373716632, 24.9965776865, 23.8275154004), round (\"QF\", \"SF\", \"R16\"), winner_hand (\"R\", \"L\"), best_of (3), winner_ioc (\"BEL\", \"BLR\", \"UKR\"), loser_name (\"Angelique Kerber\", \"Venus Williams\", \"Barbora Zahlavova Strycova\"), loser_entry (\"\"), loser_rank_points (785, 6100, 8300) | players : country_code (\"SYR\", \"FIN\", \"IND\"), hand (\"\", \"R\", \"L\"), last_name (\"Medojevic\", \"Bellahouel\", \"Neamtu\"), first_name (\"Miina\", \"Rennae\", \"Fumiko\"), birth_date (19771031, 19990504, 19620121), player_id (204887, 200764, 214251) | games : minutes (70, 71, 118), loser_hand (\"R\", \"L\"), loser_rank (81, 1, 47), loser_seed (5, 8, 9), tourney_date (20170306, 20170508, 20160613), winner_rank_points (4745, 5151, 1936), winner_ht (164, 163, 177), draw_size (12, 64, 4), tourney_id (\"2016-M006\", \"2016-0300\", \"2017-560\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (173, 169, 162), winner_entry (\"\"), tourney_name (\"Biel\", \"Biel\", \"Doha\"), winner_id (201596, 201419, 201504), year (2013, 2016, 2017), winner_rank (13, 37, 10), winner_name (\"Coco Vandeweghe\", \"Johanna Larsson\", \"Dominika Cibulkova\"), winner_age (24.2628336756, 26.6392881588, 26.4777549624), loser_id (201518, 201325, 201425), winner_seed (28, 19, 6), score (\"6-4 7-6(3)\", \"6-2 7-6(5)\", \"6-1 2-6 6-4\"), match_num (272, 219, 285), tourney_level (\"W\", \"G\", \"I\"), loser_ioc (\"UKR\", \"TPE\", \"RUS\"), loser_age (25.4373716632, 24.9965776865, 23.8275154004), round (\"QF\", \"SF\", \"R16\"), winner_hand (\"R\", \"L\"), best_of (3), winner_ioc (\"BEL\", \"BLR\", \"UKR\"), loser_name (\"Angelique Kerber\", \"Venus Williams\", \"Barbora Zahlavova Strycova\"), loser_entry (\"\"), loser_rank_points (785, 6100, 8300)", + "schema_without_content": "rankings : ranking_date , ranking_points , tours , ranking , player_id | contests : minutes , loser_hand , loser_rank , loser_seed , tourney_date , winner_rank_points , winner_ht , draw_size , tourney_id , surface , loser_ht , winner_entry , tourney_name , winner_id , year , winner_rank , winner_name , winner_age , loser_id , winner_seed , score \", \"6-2 7-6\", \"6-1 2-6 6-4\", match_num , tourney_level , loser_ioc , loser_age , round , winner_hand , best_of , winner_ioc , loser_name , loser_entry , loser_rank_points | players : country_code , hand , last_name , first_name , birth_date , player_id | games : minutes , loser_hand , loser_rank , loser_seed , tourney_date , winner_rank_points , winner_ht , draw_size , tourney_id , surface , loser_ht , winner_entry , tourney_name , winner_id , year , winner_rank , winner_name , winner_age , loser_id , winner_seed , score \", \"6-2 7-6\", \"6-1 2-6 6-4\", match_num , tourney_level , loser_ioc , loser_age , round , winner_hand , best_of , winner_ioc , loser_name , loser_entry , loser_rank_points", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "matches.winner_name", + "rank points of the winner": "matches.winner_rank_points" + } + }, + { + "question": "what is the #name of the winner# who has won the most #matches# , and how many #rank points# does this player have?", + "db_id": "wta_1", + "orig_query": "select winner_name, winner_rank_points from matches group by winner_name order by count(*) desc limit 1", + "schema_with_content": "contests : score (\"6-4 6-3 \", \"6-1 4-6 6-2\", \"7-6(5) 6-4\"), loser_hand (\"R\", \"L\"), match_num (297, 300, 214), winner_rank (53, 30, 2), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ioc (\"UKR\", \"RUS\", \"USA\"), tourney_level (\"W\", \"P\", \"I\"), winner_ht (175, 174, 161), loser_rank (5, 23, 19), loser_name (\"Johanna Larsson\", \"Dominika Cibulkova\", \"Sara Errani\"), loser_entry (\"\"), winner_ioc (\"SWE\", \"ESP\", \"DEN\"), winner_hand (\"R\", \"L\"), winner_id (201455, 201455, 201585), winner_rank_points (2895, 5535, 2420), loser_ht (173, 159, 164), tourney_date (20170306, 20170612, 20170619), winner_age (23.6221765914, 24.985626283400002, 21.4346338125), winner_name (\"Venus Williams\", \"Jelena Jankovic\", \"Dominika Cibulkova\"), minutes (142, 119, 66), loser_id (201366, 201499, 202494), tourney_name (\"Luxembourg\", \"Acapulco\", \"Luxembourg\"), tourney_id (\"2016-1048\", \"2016-M020\", \"2017-M035\"), loser_age (28.574948665300003, 22.527036276500002, 28.3258042437), best_of (3), round (\"RR\", \"SF\", \"RR\"), loser_rank_points (1242, 3985, 4790), winner_entry (\"\"), year (2013, 2016, 2017), draw_size (32, 12, 64), winner_seed (6, 16, 16), loser_seed (27, 21, 31) | games : score (\"6-4 6-3 \", \"6-1 4-6 6-2\", \"7-6(5) 6-4\"), loser_hand (\"R\", \"L\"), match_num (297, 300, 214), winner_rank (53, 30, 2), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ioc (\"UKR\", \"RUS\", \"USA\"), tourney_level (\"W\", \"P\", \"I\"), winner_ht (175, 174, 161), loser_rank (5, 23, 19), loser_name (\"Johanna Larsson\", \"Dominika Cibulkova\", \"Sara Errani\"), loser_entry (\"\"), winner_ioc (\"SWE\", \"ESP\", \"DEN\"), winner_hand (\"R\", \"L\"), winner_id (201455, 201455, 201585), winner_rank_points (2895, 5535, 2420), loser_ht (173, 159, 164), tourney_date (20170306, 20170612, 20170619), winner_age (23.6221765914, 24.985626283400002, 21.4346338125), winner_name (\"Venus Williams\", \"Jelena Jankovic\", \"Dominika Cibulkova\"), minutes (142, 119, 66), loser_id (201366, 201499, 202494), tourney_name (\"Luxembourg\", \"Acapulco\", \"Luxembourg\"), tourney_id (\"2016-1048\", \"2016-M020\", \"2017-M035\"), loser_age (28.574948665300003, 22.527036276500002, 28.3258042437), best_of (3), round (\"RR\", \"SF\", \"RR\"), loser_rank_points (1242, 3985, 4790), winner_entry (\"\"), year (2013, 2016, 2017), draw_size (32, 12, 64), winner_seed (6, 16, 16), loser_seed (27, 21, 31) | rankings : tours (9, 20, 18), ranking_date (19870810, 20170529, 19920727), ranking_points (574, 3235, 191), player_id (201466, 203456, 214246), ranking (997, 87, 539) | players : country_code (\"MAR\", \"PAR\", \"OMA\"), hand (\"L\", \"R\", \"R\"), first_name (\"Beatrix\", \"Mary Anne\", \"Mirja\"), player_id (214583, 212427, 215905), birth_date (19451112, 19350630, 19850501), last_name (\"Filippou\", \"Maggen\", \"Heil\")", + "schema_without_content": "contests : score 6-4\", loser_hand , match_num , winner_rank , surface , loser_ioc , tourney_level , winner_ht , loser_rank , loser_name , loser_entry , winner_ioc , winner_hand , winner_id , winner_rank_points , loser_ht , tourney_date , winner_age , winner_name , minutes , loser_id , tourney_name , tourney_id , loser_age , best_of , round , loser_rank_points , winner_entry , year , draw_size , winner_seed , loser_seed | games : score 6-4\", loser_hand , match_num , winner_rank , surface , loser_ioc , tourney_level , winner_ht , loser_rank , loser_name , loser_entry , winner_ioc , winner_hand , winner_id , winner_rank_points , loser_ht , tourney_date , winner_age , winner_name , minutes , loser_id , tourney_name , tourney_id , loser_age , best_of , round , loser_rank_points , winner_entry , year , draw_size , winner_seed , loser_seed | rankings : tours , ranking_date , ranking_points , player_id , ranking | players : country_code , hand , first_name , player_id , birth_date , last_name", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the winner": "matches.winner_name", + "matches": "matches", + "rank points": "matches.winner_rank_points" + } + }, + { + "question": "find the #name of the winner# who has the #highest rank points# and participated in the #australian open tourney# .", + "db_id": "wta_1", + "orig_query": "select winner_name from matches where tourney_name = 'Australian Open' order by winner_rank_points desc limit 1", + "schema_with_content": "rankings : ranking (227, 1416, 1496), tours (29, 1, 37), ranking_date (20040802, 20091005, 20011203), ranking_points (1038, 6196, 524), player_id (206065, 205953, 201347) | games : surface (\"Hard\", \"Clay\", \"Grass\"), tourney_name (\"Wuhan\", \"Prague\", \"Brisbane\"), loser_ioc (\"JPN\", \"ROU\", \"CZE\"), year (2013, 2016, 2017), winner_name (\"Julia Goerges\", \"Barbora Zahlavova Strycova\", \"Sloane Stephens\"), draw_size (12, 128, 64), winner_entry (\"\"), loser_rank_points (5530, 1800, 2525), winner_rank_points (5071, 3715, 3455), best_of (3), tourney_date (20131021, 20170306, 20160620), loser_id (201504, 201425, 200748), match_num (212, 222, 285), score (\"6-4 6-7(4) 6-1\", \"6-7(6) 7-5 6-4\", \"7-6(2) 1-6 6-4\"), round (\"BR\", \"SF\", \"R32\"), winner_rank (52, 40, 4), tourney_level (\"W\", \"W\", \"W\"), tourney_id (\"2016-M035\", \"2016-0703\", \"2017-520\"), loser_entry (\"\"), loser_ht (183, 177, 165), winner_id (201619, 201662, 201594), minutes (142, 129, 80), loser_rank (52, 66, 34), loser_hand (\"R\", \"L\"), winner_ioc (\"UKR\", \"CZE\", \"SRB\"), winner_ht (182, 174, 174), loser_age (27.7754962355, 27.786447638600002, 28.7665982204), winner_age (27.786447638600002, 28.0, 30.250513347), winner_seed (15, 2, 3), loser_name (\"Roberta Vinci\", \"Lucie Safarova\", \"Anastasia Pavlyuchenkova\"), loser_seed (8, 22, 12), winner_hand (\"R\", \"L\") | players : first_name (\"Davinia\", \"Jamie\", \"Nicole Marlene\"), last_name (\"Basbakkal\", \"Van Der Meersch\", \"Mirna\"), player_id (210680, 205317, 208189), birth_date (19800308, 20011015, 19961229), country_code (\"rc=\", \"OMA\", \"GRN\"), hand (\"U\", \"\", \"\") | contests : surface (\"Hard\", \"Clay\", \"Grass\"), tourney_name (\"Wuhan\", \"Prague\", \"Brisbane\"), loser_ioc (\"JPN\", \"ROU\", \"CZE\"), year (2013, 2016, 2017), winner_name (\"Julia Goerges\", \"Barbora Zahlavova Strycova\", \"Sloane Stephens\"), draw_size (12, 128, 64), winner_entry (\"\"), loser_rank_points (5530, 1800, 2525), winner_rank_points (5071, 3715, 3455), best_of (3), tourney_date (20131021, 20170306, 20160620), loser_id (201504, 201425, 200748), match_num (212, 222, 285), score (\"6-4 6-7(4) 6-1\", \"6-7(6) 7-5 6-4\", \"7-6(2) 1-6 6-4\"), round (\"BR\", \"SF\", \"R32\"), winner_rank (52, 40, 4), tourney_level (\"W\", \"W\", \"W\"), tourney_id (\"2016-M035\", \"2016-0703\", \"2017-520\"), loser_entry (\"\"), loser_ht (183, 177, 165), winner_id (201619, 201662, 201594), minutes (142, 129, 80), loser_rank (52, 66, 34), loser_hand (\"R\", \"L\"), winner_ioc (\"UKR\", \"CZE\", \"SRB\"), winner_ht (182, 174, 174), loser_age (27.7754962355, 27.786447638600002, 28.7665982204), winner_age (27.786447638600002, 28.0, 30.250513347), winner_seed (15, 2, 3), loser_name (\"Roberta Vinci\", \"Lucie Safarova\", \"Anastasia Pavlyuchenkova\"), loser_seed (8, 22, 12), winner_hand (\"R\", \"L\")", + "schema_without_content": "rankings : ranking , tours , ranking_date , ranking_points , player_id | games : surface , tourney_name , loser_ioc , year , winner_name , draw_size , winner_entry , loser_rank_points , winner_rank_points , best_of , tourney_date , loser_id , match_num , score 6-1\", \"6-7 7-5 6-4\", \"7-6 1-6 6-4\", round , winner_rank , tourney_level , tourney_id , loser_entry , loser_ht , winner_id , minutes , loser_rank , loser_hand , winner_ioc , winner_ht , loser_age , winner_age , winner_seed , loser_name , loser_seed , winner_hand | players : first_name , last_name , player_id , birth_date , country_code , hand | contests : surface , tourney_name , loser_ioc , year , winner_name , draw_size , winner_entry , loser_rank_points , winner_rank_points , best_of , tourney_date , loser_id , match_num , score 6-1\", \"6-7 7-5 6-4\", \"7-6 1-6 6-4\", round , winner_rank , tourney_level , tourney_id , loser_entry , loser_ht , winner_id , minutes , loser_rank , loser_hand , winner_ioc , winner_ht , loser_age , winner_age , winner_seed , loser_name , loser_seed , winner_hand", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the winner": "matches.winner_name", + "highest rank points": "matches.winner_rank_points", + "Australian Open tourney": "matches.tourney_name" + } + }, + { + "question": "what is the #name of the winner with the most rank points# who participated in the #australian open tournament# ?", + "db_id": "wta_1", + "orig_query": "select winner_name from matches where tourney_name = 'Australian Open' order by winner_rank_points desc limit 1", + "schema_with_content": "contests : loser_id (201421, 201619, 201474), winner_name (\"Garbine Muguruza\", \"Elena Vesnina\", \"Madison Keys\"), loser_rank (15, 9, 7), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (2480, 4670, 2480), winner_entry (\"\"), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), minutes (60, 0, 175), loser_ioc (\"USA\", \"AUS\", \"HUN\"), loser_age (33.700205338800004, 22.4804928131, 25.3798767967), tourney_date (20160418, 20170522, 20160118), loser_rank_points (4585, 2816, 8730), loser_name (\"Alize Cornet\", \"Stefanie Voegele\", \"Magdalena Rybarikova\"), score (\"6-3 4-6 6-4\", \"6-7(4) 6-4 6-3\", \"6-2 6-7(6) 6-2\"), round (\"F\", \"F\", \"R32\"), loser_ht (162, 157, 172), tourney_level (\"I\", \"W\", \"P\"), winner_rank (16, 2, 44), winner_id (201419, 201593, 201594), winner_age (26.340862423, 22.8528405202, 28.5557837098), best_of (3), tourney_id (\"2016-M020\", \"2016-1052\", \"2017-0602\"), draw_size (12, 128, 8), winner_ioc (\"POL\", \"SRB\", \"USA\"), winner_ht (162, 176, 163), loser_seed (28, 30, 7), loser_entry (\"\"), loser_hand (\"R\", \"L\"), match_num (272, 258, 271), tourney_name (\"Birmingham\", \"Florianopolis\", \"Dubai\"), winner_seed (16, 16, 13) | games : loser_id (201421, 201619, 201474), winner_name (\"Garbine Muguruza\", \"Elena Vesnina\", \"Madison Keys\"), loser_rank (15, 9, 7), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (2480, 4670, 2480), winner_entry (\"\"), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), minutes (60, 0, 175), loser_ioc (\"USA\", \"AUS\", \"HUN\"), loser_age (33.700205338800004, 22.4804928131, 25.3798767967), tourney_date (20160418, 20170522, 20160118), loser_rank_points (4585, 2816, 8730), loser_name (\"Alize Cornet\", \"Stefanie Voegele\", \"Magdalena Rybarikova\"), score (\"6-3 4-6 6-4\", \"6-7(4) 6-4 6-3\", \"6-2 6-7(6) 6-2\"), round (\"F\", \"F\", \"R32\"), loser_ht (162, 157, 172), tourney_level (\"I\", \"W\", \"P\"), winner_rank (16, 2, 44), winner_id (201419, 201593, 201594), winner_age (26.340862423, 22.8528405202, 28.5557837098), best_of (3), tourney_id (\"2016-M020\", \"2016-1052\", \"2017-0602\"), draw_size (12, 128, 8), winner_ioc (\"POL\", \"SRB\", \"USA\"), winner_ht (162, 176, 163), loser_seed (28, 30, 7), loser_entry (\"\"), loser_hand (\"R\", \"L\"), match_num (272, 258, 271), tourney_name (\"Birmingham\", \"Florianopolis\", \"Dubai\"), winner_seed (16, 16, 13) | players : player_id (206863, 206669, 204955), birth_date (19831019, 19770311, 19680530), hand (\"\", \"R\", \"\"), country_code (\"ETH\", \"IRQ\", \"PAN\"), first_name (\"Seung Yeon\", \"Jutta\", \"Salima Esmat\"), last_name (\"Plackova\", \"Elvstrom Ekner\", \"Chaves Borges\") | rankings : player_id (205439, 206221, 208267), ranking (845, 81, 235), ranking_date (19921123, 20100531, 20100510), tours (2, 3, 3), ranking_points (3265, 1541, 5155)", + "schema_without_content": "contests : loser_id , winner_name , loser_rank , surface , winner_rank_points , winner_entry , winner_hand , year , minutes , loser_ioc , loser_age , tourney_date , loser_rank_points , loser_name , score 6-4 6-3\", \"6-2 6-7 6-2\", round , loser_ht , tourney_level , winner_rank , winner_id , winner_age , best_of , tourney_id , draw_size , winner_ioc , winner_ht , loser_seed , loser_entry , loser_hand , match_num , tourney_name , winner_seed | games : loser_id , winner_name , loser_rank , surface , winner_rank_points , winner_entry , winner_hand , year , minutes , loser_ioc , loser_age , tourney_date , loser_rank_points , loser_name , score 6-4 6-3\", \"6-2 6-7 6-2\", round , loser_ht , tourney_level , winner_rank , winner_id , winner_age , best_of , tourney_id , draw_size , winner_ioc , winner_ht , loser_seed , loser_entry , loser_hand , match_num , tourney_name , winner_seed | players : player_id , birth_date , hand , country_code , first_name , last_name | rankings : player_id , ranking , ranking_date , tours , ranking_points", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the winner with the most rank points": "matches.winner_name", + "Australian Open tournament": "matches.tourney_name" + } + }, + { + "question": "find the #names of loser# and winner who played in the match with greatest #number of minutes# .", + "db_id": "wta_1", + "orig_query": "select winner_name, loser_name from matches order by minutes desc limit 1", + "schema_with_content": "contests : tourney_level (\"I\", \"I\", \"W\"), winner_seed (9, 18, 27), tourney_name (\"Roland Garros\", \"Cincinnati\", \"Brisbane\"), winner_hand (\"R\", \"L\"), winner_name (\"Venus Williams\", \"Kristina Mladenovic\", \"Angelique Kerber\"), tourney_date (20160118, 20170227, 20170821), loser_hand (\"R\", \"L\"), loser_name (\"Yanina Wickmayer\", \"Agnieszka Radwanska\", \"Timea Babos\"), winner_entry (\"\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (1900, 6940, 2300), round (\"R16\", \"QF\", \"SF\"), score (\"4-6 6-4 6-3\", \"6-2 6-7(6) 6-2\", \"6-7(3) 6-1 6-2\"), loser_rank_points (5205, 3160, 9245), draw_size (12, 128, 4), tourney_id (\"2016-1086\", \"2016-1067\", \"2016-0300\"), loser_seed (7, 15, 21), loser_ioc (\"NED\", \"SRB\", \"ESP\"), winner_age (32.0164271047, 24.8268309377, 28.0355920602), loser_id (201520, 201520, 201311), best_of (3), minutes (176, 117, 117), winner_id (202428, 202494, 201493), loser_age (23.3045859001, 23.8302532512, 25.3798767967), winner_ht (176, 183, 162), loser_entry (\"\"), match_num (152, 163, 216), loser_ht (172, 179, 161), loser_rank (2, 9, 14), winner_ioc (\"NED\", \"ESP\", \"GER\"), winner_rank (18, 48, 42) | rankings : ranking_points (1115, 405, 2390), ranking (725, 680, 570), tours (18, 27, 17), ranking_date (19960610, 20091109, 20170508), player_id (204261, 201390, 204295) | players : birth_date (19940120, 19760818, 19720202), first_name (\"Babs\", \"Sheethal\", \"Noha\"), hand (\"\", \"\", \"R\"), last_name (\"Mccallum\", \"Laitinen\", \"Florea\"), player_id (210069, 203094, 209748), country_code (\"MEX\", \"AZE\", \"CHI\") | games : tourney_level (\"I\", \"I\", \"W\"), winner_seed (9, 18, 27), tourney_name (\"Roland Garros\", \"Cincinnati\", \"Brisbane\"), winner_hand (\"R\", \"L\"), winner_name (\"Venus Williams\", \"Kristina Mladenovic\", \"Angelique Kerber\"), tourney_date (20160118, 20170227, 20170821), loser_hand (\"R\", \"L\"), loser_name (\"Yanina Wickmayer\", \"Agnieszka Radwanska\", \"Timea Babos\"), winner_entry (\"\"), year (2013, 2016, 2017), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (1900, 6940, 2300), round (\"R16\", \"QF\", \"SF\"), score (\"4-6 6-4 6-3\", \"6-2 6-7(6) 6-2\", \"6-7(3) 6-1 6-2\"), loser_rank_points (5205, 3160, 9245), draw_size (12, 128, 4), tourney_id (\"2016-1086\", \"2016-1067\", \"2016-0300\"), loser_seed (7, 15, 21), loser_ioc (\"NED\", \"SRB\", \"ESP\"), winner_age (32.0164271047, 24.8268309377, 28.0355920602), loser_id (201520, 201520, 201311), best_of (3), minutes (176, 117, 117), winner_id (202428, 202494, 201493), loser_age (23.3045859001, 23.8302532512, 25.3798767967), winner_ht (176, 183, 162), loser_entry (\"\"), match_num (152, 163, 216), loser_ht (172, 179, 161), loser_rank (2, 9, 14), winner_ioc (\"NED\", \"ESP\", \"GER\"), winner_rank (18, 48, 42)", + "schema_without_content": "contests : tourney_level , winner_seed , tourney_name , winner_hand , winner_name , tourney_date , loser_hand , loser_name , winner_entry , year , surface , winner_rank_points , round , score 6-2\", \"6-7 6-1 6-2\", loser_rank_points , draw_size , tourney_id , loser_seed , loser_ioc , winner_age , loser_id , best_of , minutes , winner_id , loser_age , winner_ht , loser_entry , match_num , loser_ht , loser_rank , winner_ioc , winner_rank | rankings : ranking_points , ranking , tours , ranking_date , player_id | players : birth_date , first_name , hand , last_name , player_id , country_code | games : tourney_level , winner_seed , tourney_name , winner_hand , winner_name , tourney_date , loser_hand , loser_name , winner_entry , year , surface , winner_rank_points , round , score 6-2\", \"6-7 6-1 6-2\", loser_rank_points , draw_size , tourney_id , loser_seed , loser_ioc , winner_age , loser_id , best_of , minutes , winner_id , loser_age , winner_ht , loser_entry , match_num , loser_ht , loser_rank , winner_ioc , winner_rank", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names of loser": "matches.loser_name", + "number of minutes": "matches.minutes", + "names of winner": "matches.winner_name" + } + }, + { + "question": "what are the #names of the winner# and #loser# who played in the #longest match# ?", + "db_id": "wta_1", + "orig_query": "select winner_name, loser_name from matches order by minutes desc limit 1", + "schema_with_content": "contests : winner_rank_points (1025, 3780, 5270), winner_rank (22, 21, 42), round (\"BR\", \"BR\", \"F\"), winner_name (\"Barbora Zahlavova Strycova\", \"Angelique Kerber\", \"Samantha Stosur\"), loser_ioc (\"SRB\", \"JPN\", \"ESP\"), loser_rank_points (2238, 1870, 4310), winner_ioc (\"SWE\", \"GER\", \"CHN\"), winner_id (201585, 201540, 201425), loser_name (\"Jelena Jankovic\", \"Angelique Kerber\", \"Serena Williams\"), tourney_name (\"Wuhan\", \"Linz\", \"Gstaad\"), tourney_id (\"2016-1048\", \"2017-520\", \"2017-M024\"), loser_entry (\"\"), winner_hand (\"R\", \"L\"), loser_seed (21, 6, 4), winner_seed (15, 20, 13), best_of (3), tourney_date (20160627, 20160822, 20170522), loser_hand (\"R\", \"L\"), winner_ht (185, 175, 176), match_num (148, 260, 287), surface (\"Hard\", \"Clay\", \"Grass\"), winner_entry (\"\"), loser_age (25.3990417522, 27.4442162902, 29.297741273099998), year (2013, 2016, 2017), score (\"7-5 7-5\", \"6-4 7-6(2)\", \"6-4 6-4\"), winner_age (28.9336071184, 23.8494182067, 27.1238877481), minutes (105, 58, 154), loser_rank (60, 8, 34), draw_size (8, 64, 8), loser_ht (182, 162, 172), tourney_level (\"W\", \"P\", \"G\"), loser_id (202469, 201615, 201539) | rankings : player_id (214304, 202627, 201693), ranking_date (20040112, 20050613, 20060619), ranking (410, 1400, 1458), ranking_points (1500, 1492, 1328), tours (25, 14, 25) | players : hand (\"R\", \"L\", \"U\"), birth_date (19830426, 19670715, 19840708), first_name (\"Aleida\", \"Breanna Alexa Bachini\", \"Ji Hee\"), last_name (\"Butkovska\", \"Della Vedova\", \"La Fratta\"), player_id (203786, 215971, 208324), country_code (\"SWE\", \"GUD\", \"CRO\") | games : winner_rank_points (1025, 3780, 5270), winner_rank (22, 21, 42), round (\"BR\", \"BR\", \"F\"), winner_name (\"Barbora Zahlavova Strycova\", \"Angelique Kerber\", \"Samantha Stosur\"), loser_ioc (\"SRB\", \"JPN\", \"ESP\"), loser_rank_points (2238, 1870, 4310), winner_ioc (\"SWE\", \"GER\", \"CHN\"), winner_id (201585, 201540, 201425), loser_name (\"Jelena Jankovic\", \"Angelique Kerber\", \"Serena Williams\"), tourney_name (\"Wuhan\", \"Linz\", \"Gstaad\"), tourney_id (\"2016-1048\", \"2017-520\", \"2017-M024\"), loser_entry (\"\"), winner_hand (\"R\", \"L\"), loser_seed (21, 6, 4), winner_seed (15, 20, 13), best_of (3), tourney_date (20160627, 20160822, 20170522), loser_hand (\"R\", \"L\"), winner_ht (185, 175, 176), match_num (148, 260, 287), surface (\"Hard\", \"Clay\", \"Grass\"), winner_entry (\"\"), loser_age (25.3990417522, 27.4442162902, 29.297741273099998), year (2013, 2016, 2017), score (\"7-5 7-5\", \"6-4 7-6(2)\", \"6-4 6-4\"), winner_age (28.9336071184, 23.8494182067, 27.1238877481), minutes (105, 58, 154), loser_rank (60, 8, 34), draw_size (8, 64, 8), loser_ht (182, 162, 172), tourney_level (\"W\", \"P\", \"G\"), loser_id (202469, 201615, 201539)", + "schema_without_content": "contests : winner_rank_points , winner_rank , round , winner_name , loser_ioc , loser_rank_points , winner_ioc , winner_id , loser_name , tourney_name , tourney_id , loser_entry , winner_hand , loser_seed , winner_seed , best_of , tourney_date , loser_hand , winner_ht , match_num , surface , winner_entry , loser_age , year , score \", \"6-4 6-4\", winner_age , minutes , loser_rank , draw_size , loser_ht , tourney_level , loser_id | rankings : player_id , ranking_date , ranking , ranking_points , tours | players : hand , birth_date , first_name , last_name , player_id , country_code | games : winner_rank_points , winner_rank , round , winner_name , loser_ioc , loser_rank_points , winner_ioc , winner_id , loser_name , tourney_name , tourney_id , loser_entry , winner_hand , loser_seed , winner_seed , best_of , tourney_date , loser_hand , winner_ht , match_num , surface , winner_entry , loser_age , year , score \", \"6-4 6-4\", winner_age , minutes , loser_rank , draw_size , loser_ht , tourney_level , loser_id", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the winner": "matches.winner_name", + "loser": "matches.loser_name", + "longest match": "matches.minutes" + } + }, + { + "question": "find the #average ranking for each player# and their #first name# .", + "db_id": "wta_1", + "orig_query": "select avg(ranking), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "matches : winner_ht (170, 159, 174), winner_hand (\"R\", \"L\"), score (\"4-6 6-4 7-6(3)\", \"7-5 6-3\", \"6-2 5-7 6-4\"), winner_name (\"Caroline Wozniacki\", \"Alize Cornet\", \"Petra Kvitova\"), minutes (72, 66, 153), draw_size (32, 128, 32), loser_entry (\"\"), winner_entry (\"\"), winner_seed (3, 22, 21), best_of (3), tourney_level (\"W\", \"P\", \"W\"), tourney_id (\"2017-1098\", \"2017-M024\", \"2017-M021\"), winner_age (24.900752909, 23.7919233402, 24.5585215606), match_num (220, 292, 296), loser_rank_points (2280, 2525, 1460), loser_seed (19, 5, 22), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (169, 157, 175), winner_id (202494, 201311, 201493), round (\"BR\", \"SF\", \"F\"), winner_rank_points (4287, 5310, 5860), loser_age (23.8877481177, 28.517453798800002, 32.1314168378), tourney_name (\"Kaohsiung\", \"s-Hertogenbosch\", \"s-Hertogenbosch\"), loser_ioc (\"FRA\", \"FRA\", \"HUN\"), loser_hand (\"R\", \"L\"), loser_id (201540, 201535, 201427), loser_rank (27, 10, 112), winner_ioc (\"USA\", \"ROU\", \"ESP\"), winner_rank (10, 5, 5), loser_name (\"Johanna Larsson\", \"Anastasia Pavlyuchenkova\", \"Venus Williams\"), year (2013, 2016, 2017), tourney_date (20170717, 20170220, 20170807) | rankings : tours (38, 23, 31), ranking (501, 1379, 483), player_id (216371, 211043, 201494), ranking_points (2585, 1970, 1585), ranking_date (20110815, 20070402, 20040223) | competitors : first_name (\"Breanna Alexa Bachini\", \"Honami\", \"Stefania Cristina\"), country_code (\"RHO\", \"LUX\", \"GEO\"), hand (\"U\", \"R\", \"U\"), birth_date (19901019, 19910726, 19840520), player_id (217038, 219984, 211245), last_name (\"Gogol\", \"Kelesi\", \"Hermoso\") | athletes : first_name (\"Breanna Alexa Bachini\", \"Honami\", \"Stefania Cristina\"), country_code (\"RHO\", \"LUX\", \"GEO\"), hand (\"U\", \"R\", \"U\"), birth_date (19901019, 19910726, 19840520), player_id (217038, 219984, 211245), last_name (\"Gogol\", \"Kelesi\", \"Hermoso\")", + "schema_without_content": "matches : winner_ht , winner_hand , score \", \"7-5 6-3\", \"6-2 5-7 6-4\", winner_name , minutes , draw_size , loser_entry , winner_entry , winner_seed , best_of , tourney_level , tourney_id , winner_age , match_num , loser_rank_points , loser_seed , surface , loser_ht , winner_id , round , winner_rank_points , loser_age , tourney_name , loser_ioc , loser_hand , loser_id , loser_rank , winner_ioc , winner_rank , loser_name , year , tourney_date | rankings : tours , ranking , player_id , ranking_points , ranking_date | competitors : first_name , country_code , hand , birth_date , player_id , last_name | athletes : first_name , country_code , hand , birth_date , player_id , last_name", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "average ranking for each player": "rankings.ranking", + "first name": "players.first_name" + } + }, + { + "question": "find the #average ranking for each player# and their #first name# .", + "db_id": "wta_1", + "orig_query": "select avg(ranking), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "players : birth_date (19731210, 20010127, 19840718), first_name (\"Fangzhou\", \"Lilya\", \"Pui Wing\"), country_code (\"TJK\", \"BDI\", \"MNE\"), hand (\"L\", \"L\", \"\"), player_id (218877, 214845, 204598), last_name (\"Saravia\", \"Fedosyuk\", \"Stylianidou\") | standings : ranking_date (20100920, 19890724, 20071001), tours (17, 16, 15), ranking (1034, 1425, 1067), ranking_points (1246, 5640, 5896), player_id (206350, 205856, 206348) | matches : winner_seed (28, 11, 20), winner_age (26.6502395619, 36.755646817199995, 24.4407939767), loser_rank (2, 34, 29), winner_id (201596, 201499, 201596), loser_id (201596, 201495, 201421), winner_hand (\"R\", \"L\"), minutes (103, 78, 120), loser_entry (\"\"), round (\"BR\", \"R16\", \"R32\"), draw_size (128, 8, 4), score (\"6-3 7-6(3)\", \"6-3 5-7 9-7\", \"6-0 6-4\"), winner_ioc (\"JPN\", \"CHN\", \"ROU\"), tourney_level (\"P\", \"W\", \"G\"), tourney_id (\"2017-1086\", \"2016-M024\", \"2017-0406\"), winner_rank_points (6860, 5330, 2300), loser_ioc (\"USA\", \"JPN\", \"GER\"), winner_rank (21, 14, 61), tourney_name (\"Sydney\", \"Charleston\", \"Monterrey\"), loser_rank_points (2280, 3440, 2050), tourney_date (20160808, 20170717, 20160523), loser_ht (177, 164, 157), year (2013, 2016, 2017), loser_age (23.4387405886, 24.654346338099998, 21.607118412), winner_name (\"Madison Keys\", \"Na Li\", \"Timea Babos\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_hand (\"R\", \"L\"), winner_ht (161, 185, 178), best_of (3), loser_name (\"Christina Mchale\", \"Dominika Cibulkova\", \"Victoria Azarenka\"), winner_entry (\"\"), match_num (223, 280, 221), loser_seed (9, 25, 22) | leaderboard : ranking_date (20100920, 19890724, 20071001), tours (17, 16, 15), ranking (1034, 1425, 1067), ranking_points (1246, 5640, 5896), player_id (206350, 205856, 206348)", + "schema_without_content": "players : birth_date , first_name , country_code , hand , player_id , last_name | standings : ranking_date , tours , ranking , ranking_points , player_id | matches : winner_seed , winner_age , loser_rank , winner_id , loser_id , winner_hand , minutes , loser_entry , round , draw_size , score \", \"6-3 5-7 9-7\", \"6-0 6-4\", winner_ioc , tourney_level , tourney_id , winner_rank_points , loser_ioc , winner_rank , tourney_name , loser_rank_points , tourney_date , loser_ht , year , loser_age , winner_name , surface , loser_hand , winner_ht , best_of , loser_name , winner_entry , match_num , loser_seed | leaderboard : ranking_date , tours , ranking , ranking_points , player_id", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "average ranking for each player": "rankings.ranking", + "first name": "players.first_name" + } + }, + { + "question": "what are the #first names of all players# , and their #average rankings# ?", + "db_id": "wta_1", + "orig_query": "select avg(ranking), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "matches : year (2013, 2016, 2017), tourney_date (20160606, 20170807, 20160222), tourney_id (\"2017-M020\", \"2016-M035\", \"2017-580\"), round (\"RR\", \"SF\", \"QF\"), match_num (260, 221, 299), loser_ioc (\"JPN\", \"CZE\", \"AUS\"), best_of (3), winner_ioc (\"NED\", \"AUS\", \"NED\"), tourney_level (\"P\", \"W\", \"P\"), loser_hand (\"R\", \"L\"), loser_entry (\"\"), loser_rank_points (1245, 2865, 3116), minutes (173, 63, 57), score (\"7-6(5) 2-6 6-3\", \"6-3 7-6(3)\", \"6-0 7-5 \"), loser_rank (25, 12, 14), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (5450, 1900, 2320), winner_name (\"Victoria Azarenka\", \"Carla Suarez Navarro\", \"Barbora Zahlavova Strycova\"), winner_id (201311, 201585, 201619), winner_rank (31, 20, 43), loser_age (25.3798767967, 27.0472279261, 28.689938398400002), draw_size (12, 12, 8), loser_id (202470, 201458, 201421), winner_entry (\"\"), winner_hand (\"R\", \"L\"), loser_seed (8, 31, 20), winner_age (21.6837782341, 26.8911704312, 36.755646817199995), winner_ht (177, 176, 177), winner_seed (24, 30, 27), loser_name (\"Samantha Stosur\", \"Julia Goerges\", \"Johanna Larsson\"), loser_ht (173, 178, 177), tourney_name (\"Toronto\", \"Miami\", \"Auckland\") | athletes : last_name (\"Yamanaka\", \"Haslinghuis\", \"Probst\"), player_id (216058, 213880, 209438), first_name (\"Yamini\", \"Jindra\", \"Ekaterina\"), birth_date (19871225, 19760410, 19820214), country_code (\"MAS\", \"PER\", \"GUA\"), hand (\"\", \"L\", \"U\") | competitors : last_name (\"Yamanaka\", \"Haslinghuis\", \"Probst\"), player_id (216058, 213880, 209438), first_name (\"Yamini\", \"Jindra\", \"Ekaterina\"), birth_date (19871225, 19760410, 19820214), country_code (\"MAS\", \"PER\", \"GUA\"), hand (\"\", \"L\", \"U\") | rankings : ranking (460, 1051, 123), ranking_points (5805, 5055, 4960), player_id (210338, 202882, 206250), tours (22, 31, 19), ranking_date (20080512, 19890717, 20060731)", + "schema_without_content": "matches : year , tourney_date , tourney_id , round , match_num , loser_ioc , best_of , winner_ioc , tourney_level , loser_hand , loser_entry , loser_rank_points , minutes , score 2-6 6-3\", \"6-3 7-6\", \"6-0 7-5 \", loser_rank , surface , winner_rank_points , winner_name , winner_id , winner_rank , loser_age , draw_size , loser_id , winner_entry , winner_hand , loser_seed , winner_age , winner_ht , winner_seed , loser_name , loser_ht , tourney_name | athletes : last_name , player_id , first_name , birth_date , country_code , hand | competitors : last_name , player_id , first_name , birth_date , country_code , hand | rankings : ranking , ranking_points , player_id , tours , ranking_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first names of all players": "players.first_name", + "average rankings": "rankings.ranking" + } + }, + { + "question": "what are the #first names of all players# , and their #average rankings# ?", + "db_id": "wta_1", + "orig_query": "select avg(ranking), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "standings : ranking_points (299, 8158, 2508), ranking_date (20110228, 20090622, 19970224), ranking (549, 679, 416), tours (13, 18, 36), player_id (206259, 213837, 215983) | leaderboard : ranking_points (299, 8158, 2508), ranking_date (20110228, 20090622, 19970224), ranking (549, 679, 416), tours (13, 18, 36), player_id (206259, 213837, 215983) | matches : loser_rank (10, 27, 20), tourney_id (\"2016-0703\", \"2016-1072\", \"2016-1075\"), loser_id (201517, 201662, 201366), loser_rank_points (2240, 7115, 4555), loser_ioc (\"AUS\", \"SWE\", \"JPN\"), round (\"RR\", \"BR\", \"RR\"), winner_rank_points (2895, 2081, 3855), best_of (3), loser_entry (\"\"), winner_seed (4, 2, 21), year (2013, 2016, 2017), winner_name (\"Caroline Wozniacki\", \"Sara Errani\", \"Timea Babos\"), tourney_level (\"P\", \"P\", \"I\"), winner_ioc (\"CHN\", \"HUN\", \"AUS\"), match_num (299, 223, 276), tourney_date (20160808, 20170529, 20161031), score (\"6-4 6-4\", \"6-7(4) 6-4 6-3\", \"4-6 6-3 6-0\"), winner_ht (183, 174, 179), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (121, 90, 101), winner_rank (7, 16, 9), loser_seed (28, 4, 30), winner_hand (\"R\", \"L\"), loser_ht (182, 157, 163), tourney_name (\"Strasbourg\", \"Monterrey\", \"Dubai\"), loser_hand (\"R\", \"L\"), loser_age (27.3347022587, 31.0006844627, 28.5448323066), winner_age (26.4202600958, 27.463381245700003, 26.4777549624), winner_entry (\"\"), loser_name (\"Julia Goerges\", \"Shuai Peng\", \"Lesia Tsurenko\"), draw_size (4, 4, 32), winner_id (201595, 201495, 201693) | players : last_name (\"Noormohamed\", \"Kulikova\", \"Klebleeva\"), birth_date (19921104, 19800328, 19860714), hand (\"R\", \"L\", \"U\"), first_name (\"Saera\", \"Szu Yu\", \"Antonela\"), country_code (\"KEN\", \"RHO\", \"UNK\"), player_id (206648, 209184, 201078)", + "schema_without_content": "standings : ranking_points , ranking_date , ranking , tours , player_id | leaderboard : ranking_points , ranking_date , ranking , tours , player_id | matches : loser_rank , tourney_id , loser_id , loser_rank_points , loser_ioc , round , winner_rank_points , best_of , loser_entry , winner_seed , year , winner_name , tourney_level , winner_ioc , match_num , tourney_date , score 6-4 6-3\", \"4-6 6-3 6-0\", winner_ht , surface , minutes , winner_rank , loser_seed , winner_hand , loser_ht , tourney_name , loser_hand , loser_age , winner_age , winner_entry , loser_name , draw_size , winner_id | players : last_name , birth_date , hand , first_name , country_code , player_id", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "first names of all players": "players.first_name", + "average rankings": "rankings.ranking" + } + }, + { + "question": "find the total #ranking points for each player# and their #first name# .", + "db_id": "wta_1", + "orig_query": "select sum(ranking_points), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "competitors : hand (\"R\", \"\", \"L\"), last_name (\"Kulkarni\", \"Atay\", \"Van De Velde\"), player_id (207219, 215483, 217874), country_code (\"ZIM\", \"NGR\", \"ANT\"), birth_date (19840626, 19860508, 19821025), first_name (\"Elze\", \"Santa\", \"Voralak\") | matches : loser_ioc (\"FRA\", \"SRB\", \"BEL\"), best_of (3), winner_seed (7, 3, 28), loser_ht (164, 179, 177), winner_hand (\"R\", \"L\"), match_num (295, 296, 293), loser_rank (12, 8, 1), winner_ioc (\"BEL\", \"BEL\", \"BLR\"), loser_entry (\"\"), year (2013, 2016, 2017), winner_age (31.077344284699997, 28.0, 21.0896646133), surface (\"Hard\", \"Clay\", \"Grass\"), loser_id (201539, 200033, 201616), tourney_id (\"2016-M014\", \"2016-M010\", \"2017-1086\"), winner_ht (179, 172, 159), loser_hand (\"R\", \"L\"), winner_rank (18, 23, 5), loser_age (24.0958247775, 24.4407939767, 28.1697467488), loser_rank_points (8000, 4372, 1150), loser_seed (19, 28, 30), loser_name (\"Alize Cornet\", \"Alize Cornet\", \"Monica Niculescu\"), winner_id (201493, 201499, 201540), winner_rank_points (6500, 1095, 1900), winner_entry (\"\"), tourney_name (\"Indian Wells\", \"Us Open\", \"Australian Open\"), score (\"6-1 6-7(2) 6-3\", \"6-7(3) 6-1 6-2\", \"6-3 2-6 6-3\"), tourney_date (20160808, 20160307, 20160620), winner_name (\"Roberta Vinci\", \"Angelique Kerber\", \"Irina Camelia Begu\"), round (\"BR\", \"R16\", \"F\"), draw_size (12, 64, 8), minutes (132, 138, 176), tourney_level (\"G\", \"P\", \"W\") | athletes : hand (\"R\", \"\", \"L\"), last_name (\"Kulkarni\", \"Atay\", \"Van De Velde\"), player_id (207219, 215483, 217874), country_code (\"ZIM\", \"NGR\", \"ANT\"), birth_date (19840626, 19860508, 19821025), first_name (\"Elze\", \"Santa\", \"Voralak\") | rankings : ranking_points (3217, 2017, 3011), player_id (205875, 202457, 204412), ranking (1391, 807, 393), tours (30, 41, 37), ranking_date (20130429, 20130902, 20010319)", + "schema_without_content": "competitors : hand , last_name , player_id , country_code , birth_date , first_name | matches : loser_ioc , best_of , winner_seed , loser_ht , winner_hand , match_num , loser_rank , winner_ioc , loser_entry , year , winner_age , surface , loser_id , tourney_id , winner_ht , loser_hand , winner_rank , loser_age , loser_rank_points , loser_seed , loser_name , winner_id , winner_rank_points , winner_entry , tourney_name , score 6-3\", \"6-7 6-1 6-2\", \"6-3 2-6 6-3\", tourney_date , winner_name , round , draw_size , minutes , tourney_level | athletes : hand , last_name , player_id , country_code , birth_date , first_name | rankings : ranking_points , player_id , ranking , tours , ranking_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ranking points for each player": "rankings.ranking_points", + "first name": "players.first_name" + } + }, + { + "question": "find the total #ranking points for each player# and their #first name# .", + "db_id": "wta_1", + "orig_query": "select sum(ranking_points), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "matches : winner_seed (8, 5, 21), best_of (3), year (2013, 2016, 2017), loser_ioc (\"POL\", \"POL\", \"UKR\"), loser_ht (174, 157, 173), minutes (129, 74, 95), winner_ht (179, 182, 173), surface (\"Hard\", \"Clay\", \"Grass\"), loser_rank (52, 4, 7), tourney_level (\"I\", \"I\", \"P\"), match_num (282, 274, 280), tourney_date (20170213, 20161003, 20170410), loser_name (\"Caroline Wozniacki\", \"Samantha Stosur\", \"Stefanie Voegele\"), winner_id (201505, 201493, 201504), winner_ioc (\"SVK\", \"ROU\", \"ITA\"), draw_size (32, 4, 8), winner_hand (\"R\", \"L\"), winner_entry (\"\"), winner_rank (17, 18, 22), loser_id (201493, 201504, 201325), loser_seed (6, 23, 30), loser_rank_points (1995, 4742, 1729), tourney_name (\"Miami\", \"Sydney\", \"Miami\"), round (\"QF\", \"QF\", \"RR\"), loser_entry (\"\"), score (\"4-6 6-4 6-4\", \"7-6(2) 7-6(5)\", \"7-6(3) 6-3\"), loser_age (23.7919233402, 30.866529774099998, 25.1197809719), winner_name (\"Ekaterina Makarova\", \"Petra Kvitova\", \"Garbine Muguruza\"), loser_hand (\"R\", \"L\"), winner_rank_points (4345, 1658, 3915), tourney_id (\"2017-M009\", \"2016-580\", \"2016-M010\"), winner_age (36.027378507899996, 28.517453798800002, 28.5804243669) | leaderboard : ranking (635, 1074, 646), ranking_points (1403, 3461, 2386), tours (32, 8, 10), player_id (214816, 214812, 215042), ranking_date (19960513, 20040927, 19971215) | standings : ranking (635, 1074, 646), ranking_points (1403, 3461, 2386), tours (32, 8, 10), player_id (214816, 214812, 215042), ranking_date (19960513, 20040927, 19971215) | players : hand (\"R\", \"\", \"\"), last_name (\"Zrubakova\", \"Elgales\", \"Ragona\"), birth_date (19451028, 19490329, 19700822), first_name (\"Natalia L S\", \"Oceane\", \"Sumara\"), player_id (203581, 208667, 208473), country_code (\"AZE\", \"JAM\", \"SRB\")", + "schema_without_content": "matches : winner_seed , best_of , year , loser_ioc , loser_ht , minutes , winner_ht , surface , loser_rank , tourney_level , match_num , tourney_date , loser_name , winner_id , winner_ioc , draw_size , winner_hand , winner_entry , winner_rank , loser_id , loser_seed , loser_rank_points , tourney_name , round , loser_entry , score 7-6\", \"7-6 6-3\", loser_age , winner_name , loser_hand , winner_rank_points , tourney_id , winner_age | leaderboard : ranking , ranking_points , tours , player_id , ranking_date | standings : ranking , ranking_points , tours , player_id , ranking_date | players : hand , last_name , birth_date , first_name , player_id , country_code", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "ranking points for each player": "rankings.ranking_points", + "first name": "players.first_name" + } + }, + { + "question": "what are the #first names of all players# , and their total #ranking points# ?", + "db_id": "wta_1", + "orig_query": "select sum(ranking_points), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "competitors : last_name (\"Ureke\", \"Nurgazieva\", \"Boinay\"), birth_date (19851115, 19770608, 19700907), country_code (\"IRI\", \"AHO\", \"DEN\"), hand (\"\", \"\", \"L\"), first_name (\"Nudnida\", \"Selen\", \"Monia\"), player_id (201798, 218727, 209386) | matches : score (\"7-6(0) 6-4\", \"3-6 6-1 6-1\", \"6-0 7-5 \"), loser_rank_points (5830, 2280, 3090), loser_seed (7, 19, 28), tourney_level (\"I\", \"I\", \"W\"), minutes (108, 199, 98), loser_rank (29, 44, 6), loser_hand (\"R\", \"L\"), winner_seed (1, 22, 19), winner_ioc (\"USA\", \"ESP\", \"SWE\"), tourney_id (\"2017-1052\", \"2016-1049\", \"2016-M015\"), winner_rank (12, 30, 34), winner_rank_points (1076, 3135, 3100), winner_id (201320, 201320, 201506), match_num (285, 214, 196), loser_entry (\"\"), draw_size (8, 4, 32), winner_ht (185, 178, 177), best_of (3), loser_ioc (\"TPE\", \"CHN\", \"BLR\"), tourney_name (\"Wimbledon\", \"Bucharest\", \"Limoges\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_name (\"Lesia Tsurenko\", \"Svetlana Kuznetsova\", \"Anastasia Pavlyuchenkova\"), loser_id (201496, 202494, 201366), tourney_date (20170220, 20160627, 20170102), round (\"R16\", \"SF\", \"R16\"), winner_hand (\"R\", \"L\"), winner_name (\"Barbora Zahlavova Strycova\", \"Simona Halep\", \"Simona Halep\"), winner_entry (\"\"), loser_age (31.1348391513, 36.1040383299, 21.0896646133), year (2013, 2016, 2017), loser_ht (157, 164, 180), winner_age (24.8268309377, 21.472963723499998, 24.7802874743) | rankings : ranking_points (3012, 7690, 924), ranking (82, 644, 186), player_id (211434, 214839, 206374), tours (7, 10, 9), ranking_date (20100104, 19990510, 19950101) | athletes : last_name (\"Ureke\", \"Nurgazieva\", \"Boinay\"), birth_date (19851115, 19770608, 19700907), country_code (\"IRI\", \"AHO\", \"DEN\"), hand (\"\", \"\", \"L\"), first_name (\"Nudnida\", \"Selen\", \"Monia\"), player_id (201798, 218727, 209386)", + "schema_without_content": "competitors : last_name , birth_date , country_code , hand , first_name , player_id | matches : score 6-4\", \"3-6 6-1 6-1\", \"6-0 7-5 \", loser_rank_points , loser_seed , tourney_level , minutes , loser_rank , loser_hand , winner_seed , winner_ioc , tourney_id , winner_rank , winner_rank_points , winner_id , match_num , loser_entry , draw_size , winner_ht , best_of , loser_ioc , tourney_name , surface , loser_name , loser_id , tourney_date , round , winner_hand , winner_name , winner_entry , loser_age , year , loser_ht , winner_age | rankings : ranking_points , ranking , player_id , tours , ranking_date | athletes : last_name , birth_date , country_code , hand , first_name , player_id", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first names of all players": "players.first_name", + "ranking points": "rankings.ranking_points" + } + }, + { + "question": "what are the #first names of all players# , and their total #ranking points# ?", + "db_id": "wta_1", + "orig_query": "select sum(ranking_points), t1.first_name from players as t1 join rankings as t2 on t1.player_id = t2.player_id group by t1.first_name", + "schema_with_content": "leaderboard : ranking_points (642, 1547, 201), tours (17, 30, 25), ranking_date (20161205, 19890710, 20130422), ranking (665, 1024, 75), player_id (203536, 214956, 204320) | matches : winner_entry (\"\"), loser_id (201521, 201539, 201540), round (\"R32\", \"R32\", \"BR\"), winner_hand (\"R\", \"L\"), tourney_date (20170626, 20160725, 20160404), loser_hand (\"R\", \"L\"), tourney_level (\"I\", \"I\", \"G\"), tourney_id (\"2016-0806\", \"2017-M021\", \"2017-M024\"), year (2013, 2016, 2017), winner_seed (14, 4, 4), winner_name (\"Karolina Pliskova\", \"Caroline Wozniacki\", \"Anastasia Pavlyuchenkova\"), winner_ioc (\"ROU\", \"USA\", \"BLR\"), loser_rank_points (5700, 5860, 5070), score (\"6-4 6-3 \", \"6-1 3-6 6-0\", \"6-3 4-6 6-4\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_seed (27, 15, 4), loser_age (25.2210814511, 34.483230663899995, 30.2313483915), match_num (254, 286, 212), minutes (121, 64, 137), winner_rank_points (3116, 2416, 3736), tourney_name (\"Washington\", \"Cincinnati\", \"Rabat\"), loser_ioc (\"POL\", \"ITA\", \"HUN\"), winner_rank (31, 17, 21), winner_age (27.1238877481, 28.2929500342, 25.601642710500002), winner_ht (161, 164, 180), loser_name (\"Ekaterina Makarova\", \"Ekaterina Makarova\", \"Elena Vesnina\"), best_of (3), draw_size (64, 8, 64), loser_ht (180, 174, 170), loser_entry (\"\"), winner_id (201594, 201311, 201535), loser_rank (56, 56, 1) | players : birth_date (19720417, 20011231, 20000728), country_code (\"EST\", \"POR\", \"TKM\"), hand (\"R\", \"L\", \"L\"), last_name (\"Kiyohara\", \"Takuma\", \"Runglerdkriangkrai\"), first_name (\"Plamena\", \"Sarahi\", \"Gal\"), player_id (209974, 208215, 207672) | standings : ranking_points (642, 1547, 201), tours (17, 30, 25), ranking_date (20161205, 19890710, 20130422), ranking (665, 1024, 75), player_id (203536, 214956, 204320)", + "schema_without_content": "leaderboard : ranking_points , tours , ranking_date , ranking , player_id | matches : winner_entry , loser_id , round , winner_hand , tourney_date , loser_hand , tourney_level , tourney_id , year , winner_seed , winner_name , winner_ioc , loser_rank_points , score , surface , loser_seed , loser_age , match_num , minutes , winner_rank_points , tourney_name , loser_ioc , winner_rank , winner_age , winner_ht , loser_name , best_of , draw_size , loser_ht , loser_entry , winner_id , loser_rank | players : birth_date , country_code , hand , last_name , first_name , player_id | standings : ranking_points , tours , ranking_date , ranking , player_id", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "first names of all players": "players.first_name", + "ranking points": "rankings.ranking_points" + } + }, + { + "question": "find the #number of players for each country# .", + "db_id": "wta_1", + "orig_query": "select count(*), country_code from players group by country_code", + "schema_with_content": "matches : winner_name (\"Svetlana Kuznetsova\", \"Karolina Pliskova\", \"Elina Svitolina\"), loser_id (202470, 201444, 201596), loser_name (\"Samantha Stosur\", \"Lesia Tsurenko\", \"Ana Ivanovic\"), loser_ioc (\"SVK\", \"USA\", \"POL\"), year (2013, 2016, 2017), loser_entry (\"\"), winner_ioc (\"USA\", \"HUN\", \"HUN\"), tourney_date (20160725, 20160829, 20160509), winner_age (30.250513347, 23.8494182067, 26.554414784400002), winner_rank (61, 3, 30), loser_hand (\"R\", \"L\"), round (\"QF\", \"R32\", \"BR\"), match_num (161, 300, 226), winner_seed (28, 16, 14), winner_ht (179, 168, 180), winner_hand (\"R\", \"L\"), loser_ht (177, 168, 175), loser_seed (9, 17, 14), tourney_id (\"2017-1098\", \"2017-1027\", \"2017-0703\"), best_of (3), surface (\"Hard\", \"Clay\", \"Grass\"), loser_rank (4, 47, 48), tourney_name (\"Prague\", \"Dubai\", \"Kaohsiung\"), minutes (199, 100, 163), winner_rank_points (5210, 7080, 2580), draw_size (32, 64, 32), winner_entry (\"\"), tourney_level (\"W\", \"G\", \"I\"), loser_age (24.8843258042, 27.0937713895, 24.9965776865), score (\"5-7 6-4 6-1\", \"6-2 6-2\", \"6-7(3) 6-1 6-2\"), loser_rank_points (4005, 4301, 3100), winner_id (201505, 201540, 201619) | rankings : player_id (203380, 201454, 213940), ranking (1358, 662, 1261), ranking_points (20, 2540, 1880), tours (37, 4, 23), ranking_date (20000626, 19990308, 20120430) | athletes : last_name (\"Jillyova\", \"Sosa\", \"Ramos Vinolas\"), country_code (\"CRC\", \"SAM\", \"TOG\"), birth_date (19690608, 19950821, 19720125), first_name (\"Jheni\", \"Yevheniia\", \"Cristelle\"), player_id (220526, 211432, 220260), hand (\"R\", \"\", \"\") | competitors : last_name (\"Jillyova\", \"Sosa\", \"Ramos Vinolas\"), country_code (\"CRC\", \"SAM\", \"TOG\"), birth_date (19690608, 19950821, 19720125), first_name (\"Jheni\", \"Yevheniia\", \"Cristelle\"), player_id (220526, 211432, 220260), hand (\"R\", \"\", \"\")", + "schema_without_content": "matches : winner_name , loser_id , loser_name , loser_ioc , year , loser_entry , winner_ioc , tourney_date , winner_age , winner_rank , loser_hand , round , match_num , winner_seed , winner_ht , winner_hand , loser_ht , loser_seed , tourney_id , best_of , surface , loser_rank , tourney_name , minutes , winner_rank_points , draw_size , winner_entry , tourney_level , loser_age , score 6-1 6-2\", loser_rank_points , winner_id | rankings : player_id , ranking , ranking_points , tours , ranking_date | athletes : last_name , country_code , birth_date , first_name , player_id , hand | competitors : last_name , country_code , birth_date , first_name , player_id , hand", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of players for each country": "players.player_id" + } + }, + { + "question": "how many #players# are from each #country# ?", + "db_id": "wta_1", + "orig_query": "select count(*), country_code from players group by country_code", + "schema_with_content": "competitors : first_name (\"Francoise\", \"Aika\", \"Marinne\"), last_name (\"Coronel\", \"Koldobski\", \"Akerbrandt Bengtsson\"), hand (\"\", \"U\", \"\"), player_id (210037, 204187, 204489), birth_date (19910508, 19960126, 19881022), country_code (\"LUX\", \"YUG\", \"TJK\") | matches : draw_size (128, 128, 12), winner_id (201535, 201595, 201518), winner_rank_points (3445, 2871, 1652), loser_seed (24, 25, 24), loser_rank (32, 6, 11), tourney_name (\"Hong Kong\", \"Luxembourg\", \"Acapulco\"), minutes (110, 67, 74), best_of (3), loser_ioc (\"RUS\", \"SUI\", \"SRB\"), tourney_level (\"G\", \"I\", \"G\"), winner_hand (\"R\", \"L\"), winner_ht (178, 184, 185), winner_age (21.6837782341, 28.6105407255, 24.2628336756), winner_entry (\"\"), loser_name (\"Christina Mchale\", \"Lesia Tsurenko\", \"Ana Ivanovic\"), winner_ioc (\"ROU\", \"BLR\", \"CHN\"), year (2013, 2016, 2017), winner_name (\"Kristina Mladenovic\", \"Timea Babos\", \"Dominika Cibulkova\"), loser_id (201474, 201425, 201499), winner_rank (13, 13, 11), surface (\"Hard\", \"Clay\", \"Grass\"), winner_seed (11, 7, 14), loser_rank_points (3120, 7035, 6390), loser_entry (\"\"), tourney_id (\"2017-1039\", \"2016-540\", \"2016-0804\"), loser_hand (\"R\", \"L\"), score (\"5-7 6-1 6-1\", \"6-1 4-6 6-0\", \"6-4 7-6(1)\"), round (\"QF\", \"R16\", \"RR\"), loser_age (27.0472279261, 24.7994524298, 26.078028747399998), loser_ht (185, 176, 175), tourney_date (20170501, 20170515, 20170501), match_num (197, 287, 204) | rankings : tours (28, 38, 14), ranking (402, 1162, 134), ranking_date (20121231, 20130708, 20160502), player_id (211738, 214939, 208738), ranking_points (3867, 970, 4030) | athletes : first_name (\"Francoise\", \"Aika\", \"Marinne\"), last_name (\"Coronel\", \"Koldobski\", \"Akerbrandt Bengtsson\"), hand (\"\", \"U\", \"\"), player_id (210037, 204187, 204489), birth_date (19910508, 19960126, 19881022), country_code (\"LUX\", \"YUG\", \"TJK\")", + "schema_without_content": "competitors : first_name , last_name , hand , player_id , birth_date , country_code | matches : draw_size , winner_id , winner_rank_points , loser_seed , loser_rank , tourney_name , minutes , best_of , loser_ioc , tourney_level , winner_hand , winner_ht , winner_age , winner_entry , loser_name , winner_ioc , year , winner_name , loser_id , winner_rank , surface , winner_seed , loser_rank_points , loser_entry , tourney_id , loser_hand , score \", round , loser_age , loser_ht , tourney_date , match_num | rankings : tours , ranking , ranking_date , player_id , ranking_points | athletes : first_name , last_name , hand , player_id , birth_date , country_code", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "players": "players", + "country": "players.country_code" + } + }, + { + "question": "find the #code of the country# where has the greatest number of #players# .", + "db_id": "wta_1", + "orig_query": "select country_code from players group by country_code order by count(*) desc limit 1", + "schema_with_content": "rankings : ranking_points (1424, 7147, 3595), ranking_date (19990201, 19931122, 20070507), ranking (739, 1152, 635), tours (0, 16, 33), player_id (204222, 201476, 205556) | competitors : player_id (206040, 200308, 219360), country_code (\"CRC\", \"RUS\", \"SUI\"), hand (\"R\", \"\", \"R\"), birth_date (19850913, 20001225, 19760801), last_name (\"Horat\", \"Stamenkovic\", \"Pedrazzi\"), first_name (\"Severine\", \"Leona\", \"Feronika\") | athletes : player_id (206040, 200308, 219360), country_code (\"CRC\", \"RUS\", \"SUI\"), hand (\"R\", \"\", \"R\"), birth_date (19850913, 20001225, 19760801), last_name (\"Horat\", \"Stamenkovic\", \"Pedrazzi\"), first_name (\"Severine\", \"Leona\", \"Feronika\") | matches : minutes (60, 78, 111), tourney_date (20160815, 20170612, 20131021), winner_hand (\"R\", \"L\"), winner_ioc (\"CZE\", \"NED\", \"SRB\"), loser_rank_points (3483, 1455, 5830), winner_entry (\"\"), loser_name (\"Elina Svitolina\", \"Irina Camelia Begu\", \"Sorana Cirstea\"), winner_id (201521, 201595, 201505), loser_id (201517, 201425, 201320), score (\"7-5 6-7(5) 6-2\", \"6-1 4-6 6-2\", \"7-5 7-5\"), year (2013, 2016, 2017), draw_size (32, 128, 8), loser_rank (28, 5, 34), round (\"RR\", \"BR\", \"QF\"), tourney_level (\"G\", \"I\", \"P\"), winner_ht (173, 178, 162), loser_entry (\"\"), winner_name (\"Simona Halep\", \"Carla Suarez Navarro\", \"Petra Kvitova\"), winner_rank_points (3185, 4345, 2480), tourney_name (\"Moscow\", \"WTA Championships\", \"Miami\"), match_num (206, 219, 288), loser_ioc (\"USA\", \"ITA\", \"SWE\"), loser_hand (\"R\", \"L\"), winner_seed (13, 4, 30), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (30.9787816564, 28.7665982204, 28.741957563299998), best_of (3), winner_rank (7, 31, 48), tourney_id (\"2016-1081\", \"2016-M035\", \"2017-0406\"), loser_ht (159, 185, 180), winner_age (32.0684462697, 25.6125941136, 26.4777549624), loser_seed (30, 27, 21)", + "schema_without_content": "rankings : ranking_points , ranking_date , ranking , tours , player_id | competitors : player_id , country_code , hand , birth_date , last_name , first_name | athletes : player_id , country_code , hand , birth_date , last_name , first_name | matches : minutes , tourney_date , winner_hand , winner_ioc , loser_rank_points , winner_entry , loser_name , winner_id , loser_id , score 6-2\", \"6-1 4-6 6-2\", \"7-5 7-5\", year , draw_size , loser_rank , round , tourney_level , winner_ht , loser_entry , winner_name , winner_rank_points , tourney_name , match_num , loser_ioc , loser_hand , winner_seed , surface , loser_age , best_of , winner_rank , tourney_id , loser_ht , winner_age , loser_seed", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "code of the country": "players.country_code", + "players": "players" + } + }, + { + "question": "what is the #code of the country# with the most #players# ?", + "db_id": "wta_1", + "orig_query": "select country_code from players group by country_code order by count(*) desc limit 1", + "schema_with_content": "matches : loser_age (28.257357974, 27.986310746100003, 29.092402464099997), tourney_date (20170619, 20160606, 20160404), winner_seed (21, 3, 14), minutes (65, 112, 100), winner_rank_points (1658, 4206, 5880), best_of (3), winner_ht (159, 173, 172), winner_rank (45, 31, 27), tourney_id (\"2017-M021\", \"2016-1051\", \"2016-1081\"), winner_entry (\"\"), tourney_level (\"P\", \"I\", \"W\"), loser_hand (\"R\", \"L\"), loser_rank (60, 3, 30), loser_name (\"Angelique Kerber\", \"Carla Suarez Navarro\", \"Mona Barthel\"), loser_entry (\"\"), loser_rank_points (2480, 5151, 5335), winner_name (\"Alize Cornet\", \"Svetlana Kuznetsova\", \"Barbora Zahlavova Strycova\"), winner_hand (\"R\", \"L\"), round (\"QF\", \"R32\", \"BR\"), winner_id (201662, 201619, 201425), surface (\"Hard\", \"Clay\", \"Grass\"), loser_id (201514, 201425, 201504), winner_age (26.6913073238, 28.9336071184, 22.3080082136), winner_ioc (\"SWE\", \"CHN\", \"RUS\"), match_num (210, 208, 214), draw_size (64, 4, 32), loser_seed (17, 23, 25), year (2013, 2016, 2017), score (\"7-6(5) 1-6 6-0\", \"4-6 6-4 7-6(3)\", \"3-6 7-6(4) 6-2\"), loser_ht (179, 165, 176), loser_ioc (\"SRB\", \"USA\", \"NED\"), tourney_name (\"Rome\", \"Miami\", \"Kaohsiung\") | competitors : first_name (\"Lixin\", \"Himari\", \"Talitha\"), hand (\"U\", \"\", \"U\"), country_code (\"TKM\", \"ITA\", \"UAE\"), last_name (\"Youthed\", \"Kunovac\", \"Ang\"), player_id (217122, 217521, 206006), birth_date (19761002, 19801225, 19930925) | rankings : player_id (215693, 203559, 203489), tours (8, 2, 20), ranking_points (972, 1704, 1678), ranking_date (19891204, 19950306, 19911223), ranking (345, 837, 963) | athletes : first_name (\"Lixin\", \"Himari\", \"Talitha\"), hand (\"U\", \"\", \"U\"), country_code (\"TKM\", \"ITA\", \"UAE\"), last_name (\"Youthed\", \"Kunovac\", \"Ang\"), player_id (217122, 217521, 206006), birth_date (19761002, 19801225, 19930925)", + "schema_without_content": "matches : loser_age , tourney_date , winner_seed , minutes , winner_rank_points , best_of , winner_ht , winner_rank , tourney_id , winner_entry , tourney_level , loser_hand , loser_rank , loser_name , loser_entry , loser_rank_points , winner_name , winner_hand , round , winner_id , surface , loser_id , winner_age , winner_ioc , match_num , draw_size , loser_seed , year , score 1-6 6-0\", \"4-6 6-4 7-6\", \"3-6 7-6 6-2\", loser_ht , loser_ioc , tourney_name | competitors : first_name , hand , country_code , last_name , player_id , birth_date | rankings : player_id , tours , ranking_points , ranking_date , ranking | athletes : first_name , hand , country_code , last_name , player_id , birth_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "code of the country": "players.country_code", + "players": "players" + } + }, + { + "question": "find the #codes of countries# that have more than 50 #players# .", + "db_id": "wta_1", + "orig_query": "select country_code from players group by country_code having count(*) > 50", + "schema_with_content": "competitors : player_id (218768, 208594, 216536), hand (\"R\", \"\", \"U\"), first_name (\"Mailen\", \"Pasquale\", \"Linsey\"), last_name (\"Kudelova\", \"Fuda\", \"Dieskova\"), birth_date (19590827, 20000418, 19840724), country_code (\"MEX\", \"EGY\", \"BOT\") | athletes : player_id (218768, 208594, 216536), hand (\"R\", \"\", \"U\"), first_name (\"Mailen\", \"Pasquale\", \"Linsey\"), last_name (\"Kudelova\", \"Fuda\", \"Dieskova\"), birth_date (19590827, 20000418, 19840724), country_code (\"MEX\", \"EGY\", \"BOT\") | rankings : ranking (500, 832, 107), ranking_date (20121231, 19940307, 20060130), player_id (203534, 203308, 201558), ranking_points (3743, 7145, 1598), tours (39, 9, 34) | matches : winner_entry (\"\"), minutes (118, 61, 107), winner_ioc (\"CZE\", \"BEL\", \"JPN\"), loser_entry (\"\"), winner_id (201506, 200748, 201425), loser_seed (8, 9, 2), draw_size (128, 8, 4), loser_name (\"Samantha Stosur\", \"Madison Keys\", \"Christina Mchale\"), tourney_date (20170213, 20161114, 20160111), winner_name (\"Sara Errani\", \"Coco Vandeweghe\", \"Karolina Pliskova\"), loser_ioc (\"SVK\", \"BEL\", \"GER\"), winner_age (25.6700889802, 26.1136208077, 24.4435318275), match_num (207, 196, 276), winner_ht (159, 184, 174), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), loser_rank (3, 81, 52), score (\"5-7 6-4 7-6(1)\", \"7-6(0) 6-3\", \"6-1 6-7(2) 6-4\"), loser_hand (\"R\", \"L\"), surface (\"Hard\", \"Clay\", \"Grass\"), winner_seed (20, 15, 6), loser_age (24.985626283400002, 26.527036276500002, 22.8528405202), winner_rank (53, 35, 22), loser_id (201662, 202429, 201535), loser_ht (176, 181, 169), tourney_name (\"Sydney\", \"Strasbourg\", \"Auckland\"), loser_rank_points (9945, 2975, 2357), winner_rank_points (1870, 5205, 3485), round (\"R16\", \"F\", \"RR\"), tourney_id (\"2017-M035\", \"2016-580\", \"2016-1082\"), best_of (3), tourney_level (\"G\", \"W\", \"W\")", + "schema_without_content": "competitors : player_id , hand , first_name , last_name , birth_date , country_code | athletes : player_id , hand , first_name , last_name , birth_date , country_code | rankings : ranking , ranking_date , player_id , ranking_points , tours | matches : winner_entry , minutes , winner_ioc , loser_entry , winner_id , loser_seed , draw_size , loser_name , tourney_date , winner_name , loser_ioc , winner_age , match_num , winner_ht , winner_hand , year , loser_rank , score \", \"7-6 6-3\", \"6-1 6-7 6-4\", loser_hand , surface , winner_seed , loser_age , winner_rank , loser_id , loser_ht , tourney_name , loser_rank_points , winner_rank_points , round , tourney_id , best_of , tourney_level", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "codes of countries": "players.country_code", + "players": "players" + } + }, + { + "question": "what are the #codes of countries# with more than 50 #players# ?", + "db_id": "wta_1", + "orig_query": "select country_code from players group by country_code having count(*) > 50", + "schema_with_content": "matches : loser_age (30.2313483915, 30.2313483915, 26.9650924025), tourney_date (20160404, 20170306, 20170522), minutes (96, 125, 148), loser_rank (48, 52, 23), winner_rank_points (6500, 6860, 4190), loser_ioc (\"TPE\", \"SVK\", \"CZE\"), winner_entry (\"\"), round (\"F\", \"SF\", \"SF\"), winner_ht (163, 177, 170), loser_name (\"Garbine Muguruza\", \"Petra Kvitova\", \"Lucie Safarova\"), winner_ioc (\"USA\", \"USA\", \"SWE\"), match_num (222, 216, 207), best_of (3), tourney_name (\"Rabat\", \"Beijing\", \"Stanford\"), winner_id (201311, 201619, 201504), tourney_id (\"2016-1051\", \"2017-1086\", \"2016-M010\"), tourney_level (\"W\", \"I\", \"W\"), loser_entry (\"\"), loser_id (201540, 201585, 202429), year (2013, 2016, 2017), winner_rank (5, 8, 40), winner_name (\"Sara Errani\", \"Anastasia Pavlyuchenkova\", \"Samantha Stosur\"), surface (\"Hard\", \"Clay\", \"Grass\"), draw_size (64, 12, 8), score (\"7-6(3) 6-4\", \"6-4 4-6 6-3\", \"4-6 7-5 6-2\"), winner_seed (19, 4, 14), loser_ht (176, 182, 161), winner_hand (\"R\", \"L\"), loser_seed (4, 3, 25), loser_hand (\"R\", \"L\"), winner_age (24.2245037645, 24.8843258042, 23.6002737851), loser_rank_points (2511, 4425, 5175) | athletes : hand (\"\", \"U\", \"L\"), country_code (\"PNG\", \"CHI\", \"UZB\"), player_id (205413, 202531, 202163), first_name (\"Fatmanur\", \"Lesedi\", \"Ayushi\"), last_name (\"Xie\", \"Zaboklicka\", \"Mertena\"), birth_date (19881217, 19980312, 19930716) | competitors : hand (\"\", \"U\", \"L\"), country_code (\"PNG\", \"CHI\", \"UZB\"), player_id (205413, 202531, 202163), first_name (\"Fatmanur\", \"Lesedi\", \"Ayushi\"), last_name (\"Xie\", \"Zaboklicka\", \"Mertena\"), birth_date (19881217, 19980312, 19930716) | rankings : tours (29, 1, 17), ranking_date (19930802, 20110425, 20110606), ranking_points (5225, 291, 8158), ranking (628, 1246, 937), player_id (214301, 203495, 201601)", + "schema_without_content": "matches : loser_age , tourney_date , minutes , loser_rank , winner_rank_points , loser_ioc , winner_entry , round , winner_ht , loser_name , winner_ioc , match_num , best_of , tourney_name , winner_id , tourney_id , tourney_level , loser_entry , loser_id , year , winner_rank , winner_name , surface , draw_size , score 6-4\", \"6-4 4-6 6-3\", \"4-6 7-5 6-2\", winner_seed , loser_ht , winner_hand , loser_seed , loser_hand , winner_age , loser_rank_points | athletes : hand , country_code , player_id , first_name , last_name , birth_date | competitors : hand , country_code , player_id , first_name , last_name , birth_date | rankings : tours , ranking_date , ranking_points , ranking , player_id", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "codes of countries": "players.country_code", + "players": "players" + } + }, + { + "question": "find the #total number of tours for each ranking date# .", + "db_id": "wta_1", + "orig_query": "select sum(tours), ranking_date from rankings group by ranking_date", + "schema_with_content": "standings : ranking_date (19930329, 20120130, 20170213), ranking_points (930, 1397, 115), ranking (1394, 474, 904), tours (7, 18, 8), player_id (203556, 209580, 213753) | matches : loser_rank (37, 2, 1), winner_age (26.8117727584, 26.8117727584, 26.8117727584), winner_hand (\"R\", \"L\"), winner_rank_points (2660, 3050, 2915), loser_id (201514, 201499, 201619), loser_ht (180, 170, 169), winner_id (201347, 202469, 200748), round (\"R32\", \"BR\", \"SF\"), score (\"6-0 7-5 \", \"3-6 7-6(6) 6-0\", \"6-4 7-6(5)\"), winner_ht (172, 183, 180), winner_ioc (\"SWE\", \"ROU\", \"ITA\"), loser_hand (\"R\", \"L\"), year (2013, 2016, 2017), loser_rank_points (2025, 4190, 5860), tourney_date (20170612, 20160418, 20160425), surface (\"Hard\", \"Clay\", \"Grass\"), loser_age (36.5831622177, 22.0479123888, 28.402464065700002), loser_name (\"Christina Mchale\", \"Karolina Pliskova\", \"Kristina Mladenovic\"), loser_entry (\"\"), draw_size (8, 128, 8), winner_seed (27, 14, 1), minutes (77, 179, 162), winner_rank (19, 1, 53), tourney_id (\"2017-1086\", \"2017-0718\", \"2017-580\"), loser_ioc (\"AUS\", \"HUN\", \"CHN\"), winner_name (\"Victoria Azarenka\", \"Venus Williams\", \"Camila Giorgi\"), tourney_name (\"Rome\", \"Katowice\", \"Stuttgart\"), loser_seed (28, 12, 13), winner_entry (\"\"), match_num (254, 155, 211), tourney_level (\"I\", \"P\", \"I\"), best_of (3) | leaderboard : ranking_date (19930329, 20120130, 20170213), ranking_points (930, 1397, 115), ranking (1394, 474, 904), tours (7, 18, 8), player_id (203556, 209580, 213753) | players : player_id (206504, 217287, 208821), birth_date (19810118, 19830308, 19740930), last_name (\"Siegrist\", \"Ericksen\", \"Rosas Garcia\"), hand (\"U\", \"\", \"L\"), first_name (\"Sun Jung\", \"Kenia\", \"Julia\"), country_code (\"GUD\", \"FIJ\", \"HON\")", + "schema_without_content": "standings : ranking_date , ranking_points , ranking , tours , player_id | matches : loser_rank , winner_age , winner_hand , winner_rank_points , loser_id , loser_ht , winner_id , round , score 6-0\", \"6-4 7-6\", winner_ht , winner_ioc , loser_hand , year , loser_rank_points , tourney_date , surface , loser_age , loser_name , loser_entry , draw_size , winner_seed , minutes , winner_rank , tourney_id , loser_ioc , winner_name , tourney_name , loser_seed , winner_entry , match_num , tourney_level , best_of | leaderboard : ranking_date , ranking_points , ranking , tours , player_id | players : player_id , birth_date , last_name , hand , first_name , country_code", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "total number of tours for each ranking date": "rankings.tours" + } + }, + { + "question": "how many #total tours# were there for each #ranking date# ?", + "db_id": "wta_1", + "orig_query": "select sum(tours), ranking_date from rankings group by ranking_date", + "schema_with_content": "leaderboard : tours (17, 12, 40), player_id (206339, 211684, 205837), ranking (618, 323, 1261), ranking_points (2741, 2215, 2741), ranking_date (20110704, 20030707, 19881219) | matches : score (\"6-4 6-2\", \"6-0 7-5 \", \"6-4 7-6(4)\"), tourney_id (\"2017-1098\", \"2016-0806\", \"2016-0703\"), best_of (3), tourney_level (\"G\", \"P\", \"W\"), loser_ioc (\"POL\", \"GER\", \"RUS\"), loser_entry (\"\"), winner_rank_points (3860, 3225, 3100), match_num (155, 296, 287), winner_age (28.2929500342, 27.635865845300003, 21.4346338125), winner_hand (\"R\", \"L\"), loser_seed (27, 22, 28), winner_rank (16, 10, 18), year (2013, 2016, 2017), winner_id (201593, 201325, 201615), tourney_name (\"Wimbledon\", \"Kaohsiung\", \"Beijing\"), winner_seed (7, 24, 4), loser_rank (34, 17, 60), loser_id (201347, 201615, 201397), round (\"R16\", \"F\", \"R32\"), loser_hand (\"R\", \"L\"), surface (\"Hard\", \"Clay\", \"Grass\"), tourney_date (20170828, 20160104, 20160104), minutes (40, 137, 162), winner_ht (184, 181, 164), loser_name (\"Magdalena Rybarikova\", \"Kirsten Flipkens\", \"Agnieszka Radwanska\"), loser_age (28.9144421629, 21.6947296372, 31.9370294319), loser_rank_points (1936, 5770, 2320), winner_entry (\"\"), winner_name (\"Svetlana Kuznetsova\", \"Johanna Larsson\", \"Coco Vandeweghe\"), winner_ioc (\"RUS\", \"ROU\", \"DEN\"), loser_ht (185, 179, 159), draw_size (32, 4, 32) | players : first_name (\"Juliet\", \"Asli\", \"Mir\"), player_id (208193, 205904, 206048), hand (\"\", \"L\", \"L\"), country_code (\"GUA\", \"NCA\", \"MRI\"), last_name (\"Kolb\", \"Olszewska\", \"Golubic\"), birth_date (19850326, 19831218, 19430911) | standings : tours (17, 12, 40), player_id (206339, 211684, 205837), ranking (618, 323, 1261), ranking_points (2741, 2215, 2741), ranking_date (20110704, 20030707, 19881219)", + "schema_without_content": "leaderboard : tours , player_id , ranking , ranking_points , ranking_date | matches : score \", tourney_id , best_of , tourney_level , loser_ioc , loser_entry , winner_rank_points , match_num , winner_age , winner_hand , loser_seed , winner_rank , year , winner_id , tourney_name , winner_seed , loser_rank , loser_id , round , loser_hand , surface , tourney_date , minutes , winner_ht , loser_name , loser_age , loser_rank_points , winner_entry , winner_name , winner_ioc , loser_ht , draw_size | players : first_name , player_id , hand , country_code , last_name , birth_date | standings : tours , player_id , ranking , ranking_points , ranking_date", + "extra_map": null, + "extra_table_map": { + "rankings": [ + "standings", + "leaderboard" + ] + }, + "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" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "column_linking_gt": { + "total tours": "rankings.tours", + "ranking date": "rankings.ranking_date" + } + }, + { + "question": "find the #number of matches# happened in each #year# .", + "db_id": "wta_1", + "orig_query": "select count(*), year from matches group by year", + "schema_with_content": "games : minutes (130, 147, 121), score (\"6-2 2-6 6-1\", \"7-6(4) 6-2\", \"6-7(4) 6-4 6-3\"), winner_name (\"Agnieszka Radwanska\", \"Alize Cornet\", \"Na Li\"), year (2013, 2016, 2017), tourney_id (\"2016-1086\", \"2016-M007\", \"2016-M006\"), best_of (3), round (\"R32\", \"QF\", \"F\"), loser_seed (19, 20, 5), loser_id (200033, 201347, 201493), loser_rank (12, 112, 18), loser_rank_points (5700, 3175, 1991), winner_hand (\"R\", \"L\"), winner_id (201595, 201662, 201474), tourney_name (\"Gstaad\", \"Katowice\", \"Doha\"), winner_rank (44, 7, 27), tourney_level (\"W\", \"G\", \"W\"), winner_seed (8, 8, 30), winner_ioc (\"ITA\", \"SWE\", \"BEL\"), loser_entry (\"\"), winner_age (24.900752909, 23.40862423, 21.0896646133), draw_size (12, 12, 4), match_num (274, 163, 221), tourney_date (20160418, 20160620, 20170227), loser_hand (\"R\", \"L\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_name (\"Lesia Tsurenko\", \"Elena Vesnina\", \"Yanina Wickmayer\"), winner_rank_points (2580, 2451, 2005), loser_ioc (\"CHN\", \"ITA\", \"BEL\"), loser_age (23.0253251198, 24.517453798800002, 31.613963039), winner_ht (176, 170, 182), loser_ht (182, 163, 184), winner_entry (\"\") | players : player_id (211662, 216555, 218646), first_name (\"Valentina\", \"Karni\", \"Marylene\"), birth_date (19870912, 19690228, 19620313), country_code (\"NZL\", \"AZE\", \"RHO\"), hand (\"R\", \"R\", \"\"), last_name (\"Spence Nasim\", \"Csurgo\", \"Ianchuk\") | contests : minutes (130, 147, 121), score (\"6-2 2-6 6-1\", \"7-6(4) 6-2\", \"6-7(4) 6-4 6-3\"), winner_name (\"Agnieszka Radwanska\", \"Alize Cornet\", \"Na Li\"), year (2013, 2016, 2017), tourney_id (\"2016-1086\", \"2016-M007\", \"2016-M006\"), best_of (3), round (\"R32\", \"QF\", \"F\"), loser_seed (19, 20, 5), loser_id (200033, 201347, 201493), loser_rank (12, 112, 18), loser_rank_points (5700, 3175, 1991), winner_hand (\"R\", \"L\"), winner_id (201595, 201662, 201474), tourney_name (\"Gstaad\", \"Katowice\", \"Doha\"), winner_rank (44, 7, 27), tourney_level (\"W\", \"G\", \"W\"), winner_seed (8, 8, 30), winner_ioc (\"ITA\", \"SWE\", \"BEL\"), loser_entry (\"\"), winner_age (24.900752909, 23.40862423, 21.0896646133), draw_size (12, 12, 4), match_num (274, 163, 221), tourney_date (20160418, 20160620, 20170227), loser_hand (\"R\", \"L\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_name (\"Lesia Tsurenko\", \"Elena Vesnina\", \"Yanina Wickmayer\"), winner_rank_points (2580, 2451, 2005), loser_ioc (\"CHN\", \"ITA\", \"BEL\"), loser_age (23.0253251198, 24.517453798800002, 31.613963039), winner_ht (176, 170, 182), loser_ht (182, 163, 184), winner_entry (\"\") | rankings : ranking (699, 864, 231), tours (40, 12, 34), ranking_date (19870511, 20030908, 20030317), ranking_points (264, 1427, 2340), player_id (206343, 205489, 215008)", + "schema_without_content": "games : minutes , score 6-2\", \"6-7 6-4 6-3\", winner_name , year , tourney_id , best_of , round , loser_seed , loser_id , loser_rank , loser_rank_points , winner_hand , winner_id , tourney_name , winner_rank , tourney_level , winner_seed , winner_ioc , loser_entry , winner_age , draw_size , match_num , tourney_date , loser_hand , surface , loser_name , winner_rank_points , loser_ioc , loser_age , winner_ht , loser_ht , winner_entry | players : player_id , first_name , birth_date , country_code , hand , last_name | contests : minutes , score 6-2\", \"6-7 6-4 6-3\", winner_name , year , tourney_id , best_of , round , loser_seed , loser_id , loser_rank , loser_rank_points , winner_hand , winner_id , tourney_name , winner_rank , tourney_level , winner_seed , winner_ioc , loser_entry , winner_age , draw_size , match_num , tourney_date , loser_hand , surface , loser_name , winner_rank_points , loser_ioc , loser_age , winner_ht , loser_ht , winner_entry | rankings : ranking , tours , ranking_date , ranking_points , player_id", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "number of matches": "matches", + "year": "matches.year" + } + }, + { + "question": "how many #matches# were played in each #year# ?", + "db_id": "wta_1", + "orig_query": "select count(*), year from matches group by year", + "schema_with_content": "contests : tourney_name (\"Istanbul\", \"Gstaad\", \"Limoges\"), best_of (3), loser_id (201505, 201615, 201520), loser_rank (20, 30, 36), draw_size (4, 64, 128), winner_age (29.1471594798, 26.6392881588, 24.594113620799998), loser_seed (28, 12, 13), loser_name (\"Jelena Jankovic\", \"Kiki Bertens\", \"Yanina Wickmayer\"), tourney_date (20160509, 20170522, 20170116), winner_name (\"Svetlana Kuznetsova\", \"Elina Svitolina\", \"Victoria Azarenka\"), loser_ioc (\"FRA\", \"ESP\", \"AUS\"), match_num (287, 288, 211), loser_ht (174, 163, 172), winner_seed (21, 22, 30), minutes (80, 153, 60), year (2013, 2016, 2017), tourney_id (\"2017-1027\", \"2016-1048\", \"2016-0804\"), surface (\"Hard\", \"Clay\", \"Grass\"), score (\"4-6 7-5 6-2\", \"6-4 4-6 6-2\", \"6-4 3-6 7-6(3)\"), tourney_level (\"W\", \"W\", \"W\"), winner_ioc (\"SVK\", \"NED\", \"USA\"), loser_rank_points (4100, 2745, 1550), winner_ht (163, 179, 185), round (\"R16\", \"QF\", \"R16\"), loser_hand (\"R\", \"L\"), loser_entry (\"\"), winner_id (201425, 201458, 201458), winner_hand (\"R\", \"L\"), loser_age (24.249144421599997, 32.1314168378, 27.635865845300003), winner_rank (11, 18, 15), winner_rank_points (8000, 3225, 3637), winner_entry (\"\") | games : tourney_name (\"Istanbul\", \"Gstaad\", \"Limoges\"), best_of (3), loser_id (201505, 201615, 201520), loser_rank (20, 30, 36), draw_size (4, 64, 128), winner_age (29.1471594798, 26.6392881588, 24.594113620799998), loser_seed (28, 12, 13), loser_name (\"Jelena Jankovic\", \"Kiki Bertens\", \"Yanina Wickmayer\"), tourney_date (20160509, 20170522, 20170116), winner_name (\"Svetlana Kuznetsova\", \"Elina Svitolina\", \"Victoria Azarenka\"), loser_ioc (\"FRA\", \"ESP\", \"AUS\"), match_num (287, 288, 211), loser_ht (174, 163, 172), winner_seed (21, 22, 30), minutes (80, 153, 60), year (2013, 2016, 2017), tourney_id (\"2017-1027\", \"2016-1048\", \"2016-0804\"), surface (\"Hard\", \"Clay\", \"Grass\"), score (\"4-6 7-5 6-2\", \"6-4 4-6 6-2\", \"6-4 3-6 7-6(3)\"), tourney_level (\"W\", \"W\", \"W\"), winner_ioc (\"SVK\", \"NED\", \"USA\"), loser_rank_points (4100, 2745, 1550), winner_ht (163, 179, 185), round (\"R16\", \"QF\", \"R16\"), loser_hand (\"R\", \"L\"), loser_entry (\"\"), winner_id (201425, 201458, 201458), winner_hand (\"R\", \"L\"), loser_age (24.249144421599997, 32.1314168378, 27.635865845300003), winner_rank (11, 18, 15), winner_rank_points (8000, 3225, 3637), winner_entry (\"\") | players : country_code (\"NCA\", \"ANG\", \"ARG\"), first_name (\"Ria\", \"Rayen\", \"Luisa Fernanda\"), last_name (\"Dzulynsky\", \"Slotow\", \"Marcinkevica\"), hand (\"U\", \"U\", \"U\"), player_id (210607, 210173, 212144), birth_date (19770912, 19950403, 19840629) | rankings : ranking_points (3161, 2425, 3055), ranking_date (20040405, 20060731, 20080114), player_id (214175, 214220, 211820), ranking (539, 853, 613), tours (32, 38, 25)", + "schema_without_content": "contests : tourney_name , best_of , loser_id , loser_rank , draw_size , winner_age , loser_seed , loser_name , tourney_date , winner_name , loser_ioc , match_num , loser_ht , winner_seed , minutes , year , tourney_id , surface , score \", tourney_level , winner_ioc , loser_rank_points , winner_ht , round , loser_hand , loser_entry , winner_id , winner_hand , loser_age , winner_rank , winner_rank_points , winner_entry | games : tourney_name , best_of , loser_id , loser_rank , draw_size , winner_age , loser_seed , loser_name , tourney_date , winner_name , loser_ioc , match_num , loser_ht , winner_seed , minutes , year , tourney_id , surface , score \", tourney_level , winner_ioc , loser_rank_points , winner_ht , round , loser_hand , loser_entry , winner_id , winner_hand , loser_age , winner_rank , winner_rank_points , winner_entry | players : country_code , first_name , last_name , hand , player_id , birth_date | rankings : ranking_points , ranking_date , player_id , ranking , tours", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "matches": "matches", + "year": "matches.year" + } + }, + { + "question": "find the #name# and #rank# of the 3 #youngest winners# across all matches.", + "db_id": "wta_1", + "orig_query": "select distinct winner_name, winner_rank from matches order by winner_age limit 3", + "schema_with_content": "rankings : ranking_points (85, 5820, 2085), ranking_date (20150406, 20111212, 20090209), player_id (220331, 214309, 205877), ranking (437, 485, 299), tours (36, 41, 5) | contests : draw_size (4, 128, 12), best_of (3), winner_rank_points (4236, 3445, 1215), winner_rank (15, 35, 61), winner_hand (\"R\", \"L\"), round (\"F\", \"RR\", \"R16\"), loser_age (24.3449691992, 28.714579055399998, 30.8062970568), loser_rank_points (2780, 1242, 9030), winner_name (\"Serena Williams\", \"Petra Kvitova\", \"Karolina Pliskova\"), winner_ioc (\"UKR\", \"UKR\", \"BLR\"), loser_hand (\"R\", \"L\"), winner_seed (2, 4, 22), loser_seed (22, 21, 32), winner_id (201455, 202429, 202428), winner_ht (162, 180, 170), score (\"4-6 6-4 6-3\", \"6-7(3) 6-4 6-3\", \"7-6(6) 6-1\"), loser_id (200033, 201517, 201311), tourney_level (\"W\", \"G\", \"W\"), tourney_id (\"2017-M024\", \"2016-0806\", \"2017-1039\"), loser_name (\"Simona Halep\", \"Carla Suarez Navarro\", \"Irina Camelia Begu\"), loser_ht (182, 174, 180), surface (\"Hard\", \"Clay\", \"Grass\"), year (2013, 2016, 2017), minutes (86, 153, 148), loser_ioc (\"CHN\", \"SUI\", \"BEL\"), tourney_date (20160523, 20160208, 20161114), match_num (201, 148, 264), tourney_name (\"Birmingham\", \"French Open\", \"Olympics\"), winner_age (27.748117727600004, 22.058863791900002, 24.041067761799997), loser_rank (29, 26, 61), winner_entry (\"\"), loser_entry (\"\") | players : birth_date (19871031, 19941031, 19980312), country_code (\"SWE\", \"UZB\", \"AND\"), first_name (\"Zerene\", \"Rikeetha\", \"Pragya\"), hand (\"\", \"R\", \"\"), last_name (\"Wist\", \"Dorseuil\", \"Caldas\"), player_id (220190, 208391, 218215) | games : draw_size (4, 128, 12), best_of (3), winner_rank_points (4236, 3445, 1215), winner_rank (15, 35, 61), winner_hand (\"R\", \"L\"), round (\"F\", \"RR\", \"R16\"), loser_age (24.3449691992, 28.714579055399998, 30.8062970568), loser_rank_points (2780, 1242, 9030), winner_name (\"Serena Williams\", \"Petra Kvitova\", \"Karolina Pliskova\"), winner_ioc (\"UKR\", \"UKR\", \"BLR\"), loser_hand (\"R\", \"L\"), winner_seed (2, 4, 22), loser_seed (22, 21, 32), winner_id (201455, 202429, 202428), winner_ht (162, 180, 170), score (\"4-6 6-4 6-3\", \"6-7(3) 6-4 6-3\", \"7-6(6) 6-1\"), loser_id (200033, 201517, 201311), tourney_level (\"W\", \"G\", \"W\"), tourney_id (\"2017-M024\", \"2016-0806\", \"2017-1039\"), loser_name (\"Simona Halep\", \"Carla Suarez Navarro\", \"Irina Camelia Begu\"), loser_ht (182, 174, 180), surface (\"Hard\", \"Clay\", \"Grass\"), year (2013, 2016, 2017), minutes (86, 153, 148), loser_ioc (\"CHN\", \"SUI\", \"BEL\"), tourney_date (20160523, 20160208, 20161114), match_num (201, 148, 264), tourney_name (\"Birmingham\", \"French Open\", \"Olympics\"), winner_age (27.748117727600004, 22.058863791900002, 24.041067761799997), loser_rank (29, 26, 61), winner_entry (\"\"), loser_entry (\"\")", + "schema_without_content": "rankings : ranking_points , ranking_date , player_id , ranking , tours | contests : draw_size , best_of , winner_rank_points , winner_rank , winner_hand , round , loser_age , loser_rank_points , winner_name , winner_ioc , loser_hand , winner_seed , loser_seed , winner_id , winner_ht , score 6-4 6-3\", \"7-6 6-1\", loser_id , tourney_level , tourney_id , loser_name , loser_ht , surface , year , minutes , loser_ioc , tourney_date , match_num , tourney_name , winner_age , loser_rank , winner_entry , loser_entry | players : birth_date , country_code , first_name , hand , last_name , player_id | games : draw_size , best_of , winner_rank_points , winner_rank , winner_hand , round , loser_age , loser_rank_points , winner_name , winner_ioc , loser_hand , winner_seed , loser_seed , winner_id , winner_ht , score 6-4 6-3\", \"7-6 6-1\", loser_id , tourney_level , tourney_id , loser_name , loser_ht , surface , year , minutes , loser_ioc , tourney_date , match_num , tourney_name , winner_age , loser_rank , winner_entry , loser_entry", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "matches.winner_name", + "rank": "matches.winner_rank", + "youngest winners": "matches" + } + }, + { + "question": "what are the #names# and #ranks# of the three #youngest winners# across all #matches# ?", + "db_id": "wta_1", + "orig_query": "select distinct winner_name, winner_rank from matches order by winner_age limit 3", + "schema_with_content": "games : winner_seed (10, 15, 20), winner_entry (\"\"), loser_ioc (\"POL\", \"NED\", \"RUS\"), winner_ioc (\"CZE\", \"ESP\", \"RUS\"), winner_age (24.4407939767, 21.472963723499998, 27.7371663244), round (\"R16\", \"BR\", \"RR\"), tourney_level (\"W\", \"W\", \"W\"), tourney_date (20160829, 20170508, 20160808), minutes (54, 98, 107), winner_rank (30, 24, 31), loser_seed (22, 21, 29), loser_entry (\"\"), draw_size (12, 64, 64), loser_id (201493, 201596, 201496), loser_rank_points (1635, 2450, 2871), best_of (3), loser_age (34.483230663899995, 27.310061601599998, 24.7802874743), tourney_name (\"Stuttgart\", \"Rome\", \"Bastad\"), match_num (221, 197, 271), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (177, 182, 159), winner_hand (\"R\", \"L\"), loser_hand (\"R\", \"L\"), year (2013, 2016, 2017), winner_ht (174, 177, 183), winner_name (\"Victoria Azarenka\", \"Simona Halep\", \"Venus Williams\"), winner_id (202469, 201311, 201504), tourney_id (\"2016-1050\", \"2016-1082\", \"2017-M004\"), loser_rank (6, 36, 11), loser_name (\"Mona Barthel\", \"Ana Ivanovic\", \"Sara Errani\"), score (\"6-3 4-6 6-2\", \"1-6 7-6(2) 6-4\", \"6-2 6-0 \"), winner_rank_points (3300, 3485, 1652) | rankings : ranking_points (4636, 890, 3004), tours (32, 9, 8), ranking (321, 132, 392), ranking_date (20090907, 19920608, 20020218), player_id (215296, 215248, 203468) | players : first_name (\"Wioletta\", \"Ji Hye\", \"Peangtarn\"), hand (\"U\", \"R\", \"R\"), player_id (213454, 210094, 203972), country_code (\"NCA\", \"NED\", \"PNG\"), last_name (\"Van Haren\", \"Jarova\", \"Wink\"), birth_date (19771009, 19890331, 19940611) | contests : winner_seed (10, 15, 20), winner_entry (\"\"), loser_ioc (\"POL\", \"NED\", \"RUS\"), winner_ioc (\"CZE\", \"ESP\", \"RUS\"), winner_age (24.4407939767, 21.472963723499998, 27.7371663244), round (\"R16\", \"BR\", \"RR\"), tourney_level (\"W\", \"W\", \"W\"), tourney_date (20160829, 20170508, 20160808), minutes (54, 98, 107), winner_rank (30, 24, 31), loser_seed (22, 21, 29), loser_entry (\"\"), draw_size (12, 64, 64), loser_id (201493, 201596, 201496), loser_rank_points (1635, 2450, 2871), best_of (3), loser_age (34.483230663899995, 27.310061601599998, 24.7802874743), tourney_name (\"Stuttgart\", \"Rome\", \"Bastad\"), match_num (221, 197, 271), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ht (177, 182, 159), winner_hand (\"R\", \"L\"), loser_hand (\"R\", \"L\"), year (2013, 2016, 2017), winner_ht (174, 177, 183), winner_name (\"Victoria Azarenka\", \"Simona Halep\", \"Venus Williams\"), winner_id (202469, 201311, 201504), tourney_id (\"2016-1050\", \"2016-1082\", \"2017-M004\"), loser_rank (6, 36, 11), loser_name (\"Mona Barthel\", \"Ana Ivanovic\", \"Sara Errani\"), score (\"6-3 4-6 6-2\", \"1-6 7-6(2) 6-4\", \"6-2 6-0 \"), winner_rank_points (3300, 3485, 1652)", + "schema_without_content": "games : winner_seed , winner_entry , loser_ioc , winner_ioc , winner_age , round , tourney_level , tourney_date , minutes , winner_rank , loser_seed , loser_entry , draw_size , loser_id , loser_rank_points , best_of , loser_age , tourney_name , match_num , surface , loser_ht , winner_hand , loser_hand , year , winner_ht , winner_name , winner_id , tourney_id , loser_rank , loser_name , score 6-4\", \"6-2 6-0 \", winner_rank_points | rankings : ranking_points , tours , ranking , ranking_date , player_id | players : first_name , hand , player_id , country_code , last_name , birth_date | contests : winner_seed , winner_entry , loser_ioc , winner_ioc , winner_age , round , tourney_level , tourney_date , minutes , winner_rank , loser_seed , loser_entry , draw_size , loser_id , loser_rank_points , best_of , loser_age , tourney_name , match_num , surface , loser_ht , winner_hand , loser_hand , year , winner_ht , winner_name , winner_id , tourney_id , loser_rank , loser_name , score 6-4\", \"6-2 6-0 \", winner_rank_points", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "matches.winner_name", + "ranks": "matches.winner_rank", + "youngest winners": "matches.winner_age", + "matches": "matches" + } + }, + { + "question": "how many different #winners# both participated in the #wta championships# and were #left handed# ?", + "db_id": "wta_1", + "orig_query": "select count(distinct winner_name) from matches where tourney_name = 'WTA Championships' and winner_hand = 'L'", + "schema_with_content": "contests : loser_name (\"Johanna Larsson\", \"Ana Ivanovic\", \"Caroline Wozniacki\"), loser_seed (20, 13, 2), loser_entry (\"\"), score (\"3-6 6-0 6-1\", \"6-2 6-7(4) 7-5\", \"6-7(5) 6-4 6-3\"), winner_id (201458, 201619, 201499), tourney_level (\"W\", \"G\", \"P\"), best_of (3), loser_hand (\"R\", \"L\"), winner_ht (177, 184, 174), minutes (0, 164, 112), loser_ht (178, 162, 179), winner_rank (17, 5, 7), winner_hand (\"R\", \"L\"), tourney_date (20170522, 20160620, 20160822), match_num (226, 251, 281), tourney_name (\"Auckland\", \"Singapore\", \"Wuhan\"), winner_entry (\"\"), tourney_id (\"2017-M010\", \"2016-O16\", \"2016-1087\"), winner_ioc (\"NED\", \"CHN\", \"NED\"), year (2013, 2016, 2017), winner_name (\"Victoria Azarenka\", \"Julia Goerges\", \"Madison Keys\"), loser_age (31.074606433899998, 25.842573579699998, 28.167008898000002), loser_id (201427, 201496, 201458), loser_rank (34, 15, 10), draw_size (128, 32, 4), winner_age (26.4202600958, 28.1724845996, 22.135523614), loser_rank_points (1260, 1577, 6751), winner_rank_points (2050, 1076, 3715), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ioc (\"SVK\", \"USA\", \"DEN\"), winner_seed (6, 9, 24), round (\"BR\", \"RR\", \"RR\") | games : loser_name (\"Johanna Larsson\", \"Ana Ivanovic\", \"Caroline Wozniacki\"), loser_seed (20, 13, 2), loser_entry (\"\"), score (\"3-6 6-0 6-1\", \"6-2 6-7(4) 7-5\", \"6-7(5) 6-4 6-3\"), winner_id (201458, 201619, 201499), tourney_level (\"W\", \"G\", \"P\"), best_of (3), loser_hand (\"R\", \"L\"), winner_ht (177, 184, 174), minutes (0, 164, 112), loser_ht (178, 162, 179), winner_rank (17, 5, 7), winner_hand (\"R\", \"L\"), tourney_date (20170522, 20160620, 20160822), match_num (226, 251, 281), tourney_name (\"Auckland\", \"Singapore\", \"Wuhan\"), winner_entry (\"\"), tourney_id (\"2017-M010\", \"2016-O16\", \"2016-1087\"), winner_ioc (\"NED\", \"CHN\", \"NED\"), year (2013, 2016, 2017), winner_name (\"Victoria Azarenka\", \"Julia Goerges\", \"Madison Keys\"), loser_age (31.074606433899998, 25.842573579699998, 28.167008898000002), loser_id (201427, 201496, 201458), loser_rank (34, 15, 10), draw_size (128, 32, 4), winner_age (26.4202600958, 28.1724845996, 22.135523614), loser_rank_points (1260, 1577, 6751), winner_rank_points (2050, 1076, 3715), surface (\"Hard\", \"Clay\", \"Grass\"), loser_ioc (\"SVK\", \"USA\", \"DEN\"), winner_seed (6, 9, 24), round (\"BR\", \"RR\", \"RR\") | rankings : ranking (452, 486, 804), ranking_date (20000814, 19980817, 20041101), tours (10, 5, 21), ranking_points (761, 3176, 145), player_id (215437, 205892, 211844) | players : last_name (\"Cabaj Awad\", \"Melihova\", \"Segura Perez\"), hand (\"\", \"L\", \"L\"), player_id (204530, 211937, 216914), first_name (\"Asha Saravana\", \"Tomoe\", \"Chira\"), country_code (\"VIE\", \"IRL\", \"BAH\"), birth_date (19941101, 19990818, 19750404)", + "schema_without_content": "contests : loser_name , loser_seed , loser_entry , score 7-5\", \"6-7 6-4 6-3\", winner_id , tourney_level , best_of , loser_hand , winner_ht , minutes , loser_ht , winner_rank , winner_hand , tourney_date , match_num , tourney_name , winner_entry , tourney_id , winner_ioc , year , winner_name , loser_age , loser_id , loser_rank , draw_size , winner_age , loser_rank_points , winner_rank_points , surface , loser_ioc , winner_seed , round | games : loser_name , loser_seed , loser_entry , score 7-5\", \"6-7 6-4 6-3\", winner_id , tourney_level , best_of , loser_hand , winner_ht , minutes , loser_ht , winner_rank , winner_hand , tourney_date , match_num , tourney_name , winner_entry , tourney_id , winner_ioc , year , winner_name , loser_age , loser_id , loser_rank , draw_size , winner_age , loser_rank_points , winner_rank_points , surface , loser_ioc , winner_seed , round | rankings : ranking , ranking_date , tours , ranking_points , player_id | players : last_name , hand , player_id , first_name , country_code , birth_date", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "winners": "matches.winner_name", + "WTA Championships": "matches.tourney_name", + "left handed": "matches.winner_hand" + } + }, + { + "question": "find the #number of left handed winners# who participated in the #wta championships# .", + "db_id": "wta_1", + "orig_query": "select count(distinct winner_name) from matches where tourney_name = 'WTA Championships' and winner_hand = 'L'", + "schema_with_content": "rankings : ranking (243, 652, 737), player_id (202694, 205946, 214254), tours (15, 31, 22), ranking_date (19931018, 19901231, 20060109), ranking_points (2610, 3395, 3245) | players : country_code (\"SRI\", \"BIH\", \"BER\"), hand (\"L\", \"L\", \"\"), birth_date (19900913, 19880410, 19640913), player_id (203609, 203931, 210623), first_name (\"Catarina Castro\", \"Iulia Maria\", \"Rikeetha\"), last_name (\"Hoffpauir\", \"Cabak\", \"Mihaljevic\") | contests : loser_age (31.7289527721, 23.8220396988, 30.904859685100003), loser_entry (\"\"), winner_name (\"Coco Vandeweghe\", \"Petra Kvitova\", \"Victoria Azarenka\"), draw_size (32, 32, 4), tourney_name (\"St. Petersburg\", \"Sydney\", \"Rabat\"), minutes (120, 134, 135), round (\"RR\", \"R32\", \"RR\"), tourney_id (\"2016-1052\", \"2016-M015\", \"2016-1064\"), winner_id (201585, 201458, 200748), loser_seed (14, 24, 8), loser_id (201325, 201517, 201505), loser_name (\"Elina Svitolina\", \"Ekaterina Makarova\", \"Yanina Wickmayer\"), tourney_date (20170213, 20170717, 20160404), loser_hand (\"R\", \"L\"), winner_rank (53, 12, 24), best_of (3), tourney_level (\"P\", \"G\", \"W\"), match_num (293, 297, 197), winner_ht (179, 174, 176), winner_age (25.6317590691, 24.985626283400002, 23.0444900753), winner_rank_points (1695, 4100, 5790), year (2013, 2016, 2017), winner_seed (10, 24, 4), surface (\"Hard\", \"Clay\", \"Grass\"), loser_rank_points (1870, 1160, 6080), winner_entry (\"\"), loser_rank (20, 18, 11), loser_ht (163, 163, 168), winner_hand (\"R\", \"L\"), winner_ioc (\"CHN\", \"SWE\", \"JPN\"), loser_ioc (\"TPE\", \"SUI\", \"SUI\"), score (\"6-1 6-1\", \"7-6(5) 1-6 6-0\", \"7-6(6) 7-6(4)\") | games : loser_age (31.7289527721, 23.8220396988, 30.904859685100003), loser_entry (\"\"), winner_name (\"Coco Vandeweghe\", \"Petra Kvitova\", \"Victoria Azarenka\"), draw_size (32, 32, 4), tourney_name (\"St. Petersburg\", \"Sydney\", \"Rabat\"), minutes (120, 134, 135), round (\"RR\", \"R32\", \"RR\"), tourney_id (\"2016-1052\", \"2016-M015\", \"2016-1064\"), winner_id (201585, 201458, 200748), loser_seed (14, 24, 8), loser_id (201325, 201517, 201505), loser_name (\"Elina Svitolina\", \"Ekaterina Makarova\", \"Yanina Wickmayer\"), tourney_date (20170213, 20170717, 20160404), loser_hand (\"R\", \"L\"), winner_rank (53, 12, 24), best_of (3), tourney_level (\"P\", \"G\", \"W\"), match_num (293, 297, 197), winner_ht (179, 174, 176), winner_age (25.6317590691, 24.985626283400002, 23.0444900753), winner_rank_points (1695, 4100, 5790), year (2013, 2016, 2017), winner_seed (10, 24, 4), surface (\"Hard\", \"Clay\", \"Grass\"), loser_rank_points (1870, 1160, 6080), winner_entry (\"\"), loser_rank (20, 18, 11), loser_ht (163, 163, 168), winner_hand (\"R\", \"L\"), winner_ioc (\"CHN\", \"SWE\", \"JPN\"), loser_ioc (\"TPE\", \"SUI\", \"SUI\"), score (\"6-1 6-1\", \"7-6(5) 1-6 6-0\", \"7-6(6) 7-6(4)\")", + "schema_without_content": "rankings : ranking , player_id , tours , ranking_date , ranking_points | players : country_code , hand , birth_date , player_id , first_name , last_name | contests : loser_age , loser_entry , winner_name , draw_size , tourney_name , minutes , round , tourney_id , winner_id , loser_seed , loser_id , loser_name , tourney_date , loser_hand , winner_rank , best_of , tourney_level , match_num , winner_ht , winner_age , winner_rank_points , year , winner_seed , surface , loser_rank_points , winner_entry , loser_rank , loser_ht , winner_hand , winner_ioc , loser_ioc , score 1-6 6-0\", \"7-6 7-6\" | games : loser_age , loser_entry , winner_name , draw_size , tourney_name , minutes , round , tourney_id , winner_id , loser_seed , loser_id , loser_name , tourney_date , loser_hand , winner_rank , best_of , tourney_level , match_num , winner_ht , winner_age , winner_rank_points , year , winner_seed , surface , loser_rank_points , winner_entry , loser_rank , loser_ht , winner_hand , winner_ioc , loser_ioc , score 1-6 6-0\", \"7-6 7-6\"", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "number of left handed winners": "matches.winner_name", + "WTA Championships": "matches.tourney_name" + } + }, + { + "question": "find the #first name# , #country code# and b #irth date of the winner# who has the highest r #ank points in all matches.# ", + "db_id": "wta_1", + "orig_query": "select t1.first_name, t1.country_code, t1.birth_date from players as t1 join matches as t2 on t1.player_id = t2.winner_id order by t2.winner_rank_points desc limit 1", + "schema_with_content": "athletes : hand (\"L\", \"R\", \"U\"), country_code (\"MLT\", \"LIB\", \"AZE\"), first_name (\"Ieva\", \"Ingunn\", \"Anusha\"), player_id (216349, 209388, 203591), birth_date (19970421, 19740522, 19920118), last_name (\"Shigekawa\", \"Perugini\", \"Ciufrila\") | rankings : player_id (211982, 213553, 203584), ranking_date (20101115, 19920427, 19901001), ranking_points (3201, 6170, 1097), ranking (583, 665, 944), tours (21, 36, 4) | competitors : hand (\"L\", \"R\", \"U\"), country_code (\"MLT\", \"LIB\", \"AZE\"), first_name (\"Ieva\", \"Ingunn\", \"Anusha\"), player_id (216349, 209388, 203591), birth_date (19970421, 19740522, 19920118), last_name (\"Shigekawa\", \"Perugini\", \"Ciufrila\") | matches : loser_rank (27, 48, 25), winner_age (31.6906228611, 30.904859685100003, 28.1724845996), winner_hand (\"R\", \"L\"), loser_hand (\"R\", \"L\"), winner_rank_points (7050, 2660, 1145), loser_name (\"Elena Vesnina\", \"Mona Barthel\", \"Angelique Kerber\"), winner_ht (181, 168, 182), year (2013, 2016, 2017), round (\"R16\", \"SF\", \"SF\"), loser_rank_points (947, 4310, 1577), winner_seed (16, 22, 13), tourney_id (\"2017-M021\", \"2017-0806\", \"2016-M006\"), winner_rank (26, 26, 20), loser_id (202470, 202470, 201593), score (\"6-2 7-6(5)\", \"3-6 7-6(6) 6-0\", \"6-1 6-2\"), winner_entry (\"\"), tourney_date (20160725, 20170306, 20170828), loser_entry (\"\"), loser_age (29.2073921971, 27.928815879499997, 25.3798767967), winner_id (201458, 201325, 201458), loser_seed (20, 22, 22), tourney_name (\"Budapest\", \"Stuttgart\", \"Us Open\"), loser_ht (176, 168, 178), match_num (288, 291, 202), surface (\"Hard\", \"Clay\", \"Grass\"), draw_size (128, 12, 64), best_of (3), winner_ioc (\"BEL\", \"RUS\", \"ITA\"), tourney_level (\"I\", \"I\", \"P\"), winner_name (\"Madison Keys\", \"Lesia Tsurenko\", \"Sloane Stephens\"), loser_ioc (\"UKR\", \"SUI\", \"ROU\"), minutes (168, 63, 40)", + "schema_without_content": "athletes : hand , country_code , first_name , player_id , birth_date , last_name | rankings : player_id , ranking_date , ranking_points , ranking , tours | competitors : hand , country_code , first_name , player_id , birth_date , last_name | matches : loser_rank , winner_age , winner_hand , loser_hand , winner_rank_points , loser_name , winner_ht , year , round , loser_rank_points , winner_seed , tourney_id , winner_rank , loser_id , score \", \"3-6 7-6 6-0\", \"6-1 6-2\", winner_entry , tourney_date , loser_entry , loser_age , winner_id , loser_seed , tourney_name , loser_ht , match_num , surface , draw_size , best_of , winner_ioc , tourney_level , winner_name , loser_ioc , minutes", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code": "players.country_code", + "irth date of the winner": "matches.winner_id", + "ank points in all matches.": "matches", + "birth date": "players.birth_date", + "rank points": "matches.winner_rank_points" + } + }, + { + "question": "find the #first name# , #country code# and b #irth date of the winner# who has the highest r #ank points in all matches.# ", + "db_id": "wta_1", + "orig_query": "select t1.first_name, t1.country_code, t1.birth_date from players as t1 join matches as t2 on t1.player_id = t2.winner_id order by t2.winner_rank_points desc limit 1", + "schema_with_content": "rankings : ranking (1111, 1128, 1074), ranking_date (19960108, 20131216, 19921109), ranking_points (4735, 2114, 3365), tours (18, 28, 9), player_id (201525, 203442, 201568) | contests : minutes (93, 111, 99), winner_id (201366, 201693, 201311), winner_ht (179, 185, 162), loser_rank_points (2045, 1562, 2010), winner_name (\"Barbora Zahlavova Strycova\", \"Madison Keys\", \"Agnieszka Radwanska\"), winner_age (22.058863791900002, 24.7802874743, 29.1471594798), score (\"7-6(5) 2-6 6-3\", \"6-1 6-7(2) 6-3\", \"6-4 6-2\"), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), winner_entry (\"\"), loser_ioc (\"FRA\", \"SWE\", \"RUS\"), loser_rank (61, 56, 112), winner_seed (14, 11, 9), tourney_name (\"Charleston\", \"Beijing\", \"Kaohsiung\"), tourney_id (\"2016-580\", \"2016-M024\", \"2016-0528\"), loser_age (28.574948665300003, 23.4387405886, 25.6317590691), round (\"R16\", \"R32\", \"RR\"), winner_ioc (\"ITA\", \"NED\", \"DEN\"), loser_hand (\"R\", \"L\"), tourney_level (\"G\", \"P\", \"P\"), draw_size (4, 4, 12), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (2375, 2146, 1658), best_of (3), loser_seed (7, 14, 6), loser_ht (164, 185, 161), winner_rank (26, 61, 27), tourney_date (20170626, 20161024, 20131021), match_num (148, 210, 226), loser_entry (\"\"), loser_id (201517, 201506, 201425), loser_name (\"Sara Errani\", \"Ana Ivanovic\", \"Timea Babos\") | players : hand (\"R\", \"L\", \"U\"), player_id (210926, 211385, 208723), country_code (\"ITA\", \"ANG\", \"PER\"), last_name (\"Gooden\", \"Prausa\", \"Sitja Gibert\"), first_name (\"Irma\", \"Nicolle Andrea\", \"Takhmina\"), birth_date (19890723, 19621014, 19850706) | games : minutes (93, 111, 99), winner_id (201366, 201693, 201311), winner_ht (179, 185, 162), loser_rank_points (2045, 1562, 2010), winner_name (\"Barbora Zahlavova Strycova\", \"Madison Keys\", \"Agnieszka Radwanska\"), winner_age (22.058863791900002, 24.7802874743, 29.1471594798), score (\"7-6(5) 2-6 6-3\", \"6-1 6-7(2) 6-3\", \"6-4 6-2\"), winner_hand (\"R\", \"L\"), year (2013, 2016, 2017), winner_entry (\"\"), loser_ioc (\"FRA\", \"SWE\", \"RUS\"), loser_rank (61, 56, 112), winner_seed (14, 11, 9), tourney_name (\"Charleston\", \"Beijing\", \"Kaohsiung\"), tourney_id (\"2016-580\", \"2016-M024\", \"2016-0528\"), loser_age (28.574948665300003, 23.4387405886, 25.6317590691), round (\"R16\", \"R32\", \"RR\"), winner_ioc (\"ITA\", \"NED\", \"DEN\"), loser_hand (\"R\", \"L\"), tourney_level (\"G\", \"P\", \"P\"), draw_size (4, 4, 12), surface (\"Hard\", \"Clay\", \"Grass\"), winner_rank_points (2375, 2146, 1658), best_of (3), loser_seed (7, 14, 6), loser_ht (164, 185, 161), winner_rank (26, 61, 27), tourney_date (20170626, 20161024, 20131021), match_num (148, 210, 226), loser_entry (\"\"), loser_id (201517, 201506, 201425), loser_name (\"Sara Errani\", \"Ana Ivanovic\", \"Timea Babos\")", + "schema_without_content": "rankings : ranking , ranking_date , ranking_points , tours , player_id | contests : minutes , winner_id , winner_ht , loser_rank_points , winner_name , winner_age , score 2-6 6-3\", \"6-1 6-7 6-3\", \"6-4 6-2\", winner_hand , year , winner_entry , loser_ioc , loser_rank , winner_seed , tourney_name , tourney_id , loser_age , round , winner_ioc , loser_hand , tourney_level , draw_size , surface , winner_rank_points , best_of , loser_seed , loser_ht , winner_rank , tourney_date , match_num , loser_entry , loser_id , loser_name | players : hand , player_id , country_code , last_name , first_name , birth_date | games : minutes , winner_id , winner_ht , loser_rank_points , winner_name , winner_age , score 2-6 6-3\", \"6-1 6-7 6-3\", \"6-4 6-2\", winner_hand , year , winner_entry , loser_ioc , loser_rank , winner_seed , tourney_name , tourney_id , loser_age , round , winner_ioc , loser_hand , tourney_level , draw_size , surface , winner_rank_points , best_of , loser_seed , loser_ht , winner_rank , tourney_date , match_num , loser_entry , loser_id , loser_name", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code": "players.country_code", + "irth date of the winner": "matches.winner_id", + "ank points in all matches.": "matches", + "birth date": "players.birth_date", + "rank points": "matches.winner_rank_points" + } + }, + { + "question": "what is the #first name# , #country code# , and bi #rth date of the player w# ith the most #winner rank points# across all matches?", + "db_id": "wta_1", + "orig_query": "select t1.first_name, t1.country_code, t1.birth_date from players as t1 join matches as t2 on t1.player_id = t2.winner_id order by t2.winner_rank_points desc limit 1", + "schema_with_content": "competitors : first_name (\"Yeon Ju\", \"Claudia Noemi\", \"Saranga\"), country_code (\"ISR\", \"GUD\", \"ARG\"), hand (\"\", \"R\", \"\"), player_id (202634, 209503, 214319), last_name (\"Hoormaert\", \"Simionescu\", \"Pujol Rotger\"), birth_date (19911114, 19850628, 19760915) | athletes : first_name (\"Yeon Ju\", \"Claudia Noemi\", \"Saranga\"), country_code (\"ISR\", \"GUD\", \"ARG\"), hand (\"\", \"R\", \"\"), player_id (202634, 209503, 214319), last_name (\"Hoormaert\", \"Simionescu\", \"Pujol Rotger\"), birth_date (19911114, 19850628, 19760915) | rankings : tours (35, 9, 24), ranking_points (431, 289, 2871), ranking (1229, 1455, 531), ranking_date (20051212, 20060814, 20080317), player_id (206307, 214176, 211495) | matches : loser_ioc (\"ITA\", \"FRA\", \"RUS\"), loser_entry (\"\"), loser_ht (182, 183, 162), surface (\"Hard\", \"Clay\", \"Grass\"), winner_name (\"Coco Vandeweghe\", \"Irina Camelia Begu\", \"Yanina Wickmayer\"), tourney_level (\"W\", \"W\", \"I\"), loser_rank (37, 59, 9), minutes (111, 107, 46), loser_age (28.449007529099998, 23.5592060233, 22.0971937029), loser_rank_points (5340, 3960, 2480), winner_ioc (\"AUS\", \"FRA\", \"POL\"), loser_hand (\"R\", \"L\"), best_of (3), winner_entry (\"\"), tourney_name (\"Bastad\", \"Kaohsiung\", \"Monterrey\"), winner_id (201619, 202428, 200748), loser_seed (21, 12, 24), winner_rank_points (5450, 4236, 1215), round (\"QF\", \"R32\", \"BR\"), winner_rank (8, 20, 42), loser_id (201521, 202428, 202429), winner_age (28.733744011, 23.041752224499998, 22.058863791900002), winner_seed (15, 18, 21), draw_size (12, 32, 12), winner_ht (177, 183, 176), year (2013, 2016, 2017), tourney_id (\"2017-0718\", \"2016-1064\", \"2017-0718\"), score (\"3-6 6-2 6-2\", \"6-0 6-4\", \"6-2 6-0\"), winner_hand (\"R\", \"L\"), match_num (202, 264, 225), loser_name (\"Yanina Wickmayer\", \"Garbine Muguruza\", \"Elena Vesnina\"), tourney_date (20170410, 20170626, 20170717)", + "schema_without_content": "competitors : first_name , country_code , hand , player_id , last_name , birth_date | athletes : first_name , country_code , hand , player_id , last_name , birth_date | rankings : tours , ranking_points , ranking , ranking_date , player_id | matches : loser_ioc , loser_entry , loser_ht , surface , winner_name , tourney_level , loser_rank , minutes , loser_age , loser_rank_points , winner_ioc , loser_hand , best_of , winner_entry , tourney_name , winner_id , loser_seed , winner_rank_points , round , winner_rank , loser_id , winner_age , winner_seed , draw_size , winner_ht , year , tourney_id , score , winner_hand , match_num , loser_name , tourney_date", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code": "players.country_code", + "rth date of the player w": "players", + "winner rank points": "matches.winner_rank_points", + "birth date": "players.birth_date" + } + }, + { + "question": "what is the #first name# , #country code# , and bi #rth date of the player w# ith the most #winner rank points# across all matches?", + "db_id": "wta_1", + "orig_query": "select t1.first_name, t1.country_code, t1.birth_date from players as t1 join matches as t2 on t1.player_id = t2.winner_id order by t2.winner_rank_points desc limit 1", + "schema_with_content": "players : birth_date (20000717, 19841226, 19801222), last_name (\"Solankar\", \"Brouleau\", \"Noceto\"), first_name (\"Sonja\", \"Maaya\", \"Ziyu\"), country_code (\"ARM\", \"MEX\", \"BLR\"), hand (\"\", \"L\", \"U\"), player_id (207453, 215755, 203787) | games : best_of (3), year (2013, 2016, 2017), winner_seed (24, 14, 14), loser_id (201616, 201444, 201425), loser_ioc (\"BLR\", \"BLR\", \"ESP\"), winner_name (\"Jelena Jankovic\", \"Simona Halep\", \"Serena Williams\"), winner_rank (8, 21, 22), winner_rank_points (3445, 1965, 1768), winner_age (26.8829568789, 28.0, 27.718001368899998), winner_entry (\"\"), winner_hand (\"R\", \"L\"), winner_ht (176, 184, 159), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (94, 88, 176), draw_size (32, 8, 32), tourney_level (\"P\", \"I\", \"W\"), loser_rank_points (6100, 2210, 2370), tourney_name (\"Charleston\", \"Limoges\", \"Bastad\"), score (\"2-6 6-3 1-0 RET\", \"6-2 2-6 6-1\", \"6-3 4-6 6-4\"), round (\"SF\", \"R16\", \"RR\"), winner_ioc (\"ESP\", \"SVK\", \"BEL\"), loser_name (\"Barbora Zahlavova Strycova\", \"Venus Williams\", \"Roberta Vinci\"), loser_entry (\"\"), winner_id (201662, 201419, 201615), loser_ht (173, 168, 180), loser_seed (21, 8, 24), tourney_date (20160926, 20160926, 20160926), match_num (208, 300, 202), loser_age (24.889801505799998, 24.2245037645, 27.5592060233), loser_rank (66, 22, 26), tourney_id (\"2016-0300\", \"2017-M020\", \"2016-1075\"), loser_hand (\"R\", \"L\") | contests : best_of (3), year (2013, 2016, 2017), winner_seed (24, 14, 14), loser_id (201616, 201444, 201425), loser_ioc (\"BLR\", \"BLR\", \"ESP\"), winner_name (\"Jelena Jankovic\", \"Simona Halep\", \"Serena Williams\"), winner_rank (8, 21, 22), winner_rank_points (3445, 1965, 1768), winner_age (26.8829568789, 28.0, 27.718001368899998), winner_entry (\"\"), winner_hand (\"R\", \"L\"), winner_ht (176, 184, 159), surface (\"Hard\", \"Clay\", \"Grass\"), minutes (94, 88, 176), draw_size (32, 8, 32), tourney_level (\"P\", \"I\", \"W\"), loser_rank_points (6100, 2210, 2370), tourney_name (\"Charleston\", \"Limoges\", \"Bastad\"), score (\"2-6 6-3 1-0 RET\", \"6-2 2-6 6-1\", \"6-3 4-6 6-4\"), round (\"SF\", \"R16\", \"RR\"), winner_ioc (\"ESP\", \"SVK\", \"BEL\"), loser_name (\"Barbora Zahlavova Strycova\", \"Venus Williams\", \"Roberta Vinci\"), loser_entry (\"\"), winner_id (201662, 201419, 201615), loser_ht (173, 168, 180), loser_seed (21, 8, 24), tourney_date (20160926, 20160926, 20160926), match_num (208, 300, 202), loser_age (24.889801505799998, 24.2245037645, 27.5592060233), loser_rank (66, 22, 26), tourney_id (\"2016-0300\", \"2017-M020\", \"2016-1075\"), loser_hand (\"R\", \"L\") | rankings : tours (17, 10, 19), ranking_date (20150803, 19990118, 19980810), player_id (213628, 205522, 206404), ranking (541, 1059, 476), ranking_points (4332, 2210, 2057)", + "schema_without_content": "players : birth_date , last_name , first_name , country_code , hand , player_id | games : best_of , year , winner_seed , loser_id , loser_ioc , winner_name , winner_rank , winner_rank_points , winner_age , winner_entry , winner_hand , winner_ht , surface , minutes , draw_size , tourney_level , loser_rank_points , tourney_name , score , round , winner_ioc , loser_name , loser_entry , winner_id , loser_ht , loser_seed , tourney_date , match_num , loser_age , loser_rank , tourney_id , loser_hand | contests : best_of , year , winner_seed , loser_id , loser_ioc , winner_name , winner_rank , winner_rank_points , winner_age , winner_entry , winner_hand , winner_ht , surface , minutes , draw_size , tourney_level , loser_rank_points , tourney_name , score , round , winner_ioc , loser_name , loser_entry , winner_id , loser_ht , loser_seed , tourney_date , match_num , loser_age , loser_rank , tourney_id , loser_hand | rankings : tours , ranking_date , player_id , ranking , ranking_points", + "extra_map": null, + "extra_table_map": { + "matches": [ + "games", + "contests" + ] + }, + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "players.first_name", + "country code": "players.country_code", + "rth date of the player w": "players", + "winner rank points": "matches.winner_rank_points", + "birth date": "players.birth_date" + } + }, + { + "question": "find the #number of players for each hand type# .", + "db_id": "wta_1", + "orig_query": "select count(*), hand from players group by hand", + "schema_with_content": "rankings : ranking_date (20000501, 19910506, 20000424), tours (14, 37, 20), ranking_points (1816, 334, 1646), player_id (204356, 202479, 214347), ranking (1062, 189, 27) | matches : tourney_date (20170515, 20170227, 20170116), winner_ioc (\"CZE\", \"SRB\", \"POL\"), score (\"4-6 6-4 7-6(3)\", \"7-6(2) 6-2\", \"2-6 6-4 6-1\"), tourney_id (\"2016-0806\", \"2016-1064\", \"2017-1097\"), loser_id (201474, 201397, 201539), winner_ht (183, 175, 159), winner_entry (\"\"), minutes (179, 66, 86), loser_ht (173, 161, 161), loser_rank (17, 56, 26), winner_hand (\"R\", \"L\"), winner_age (25.264887063699998, 26.6392881588, 22.4503764545), loser_rank_points (4975, 2865, 1770), tourney_name (\"Rome\", \"Prague\", \"Stuttgart\"), loser_hand (\"R\", \"L\"), best_of (3), winner_seed (4, 8, 9), loser_age (23.8220396988, 28.3258042437, 33.700205338800004), loser_entry (\"\"), loser_ioc (\"SUI\", \"NED\", \"ROU\"), tourney_level (\"W\", \"W\", \"I\"), round (\"SF\", \"BR\", \"F\"), loser_seed (11, 26, 4), winner_rank_points (3185, 2480, 1290), winner_id (201540, 200033, 201419), year (2013, 2016, 2017), winner_rank (2, 13, 24), winner_name (\"Samantha Stosur\", \"Madison Keys\", \"Ekaterina Makarova\"), match_num (204, 219, 212), surface (\"Hard\", \"Clay\", \"Grass\"), draw_size (12, 32, 4), loser_name (\"Su Wei Hsieh\", \"Caroline Wozniacki\", \"Coco Vandeweghe\") | athletes : country_code (\"CRO\", \"SLO\", \"ITA\"), player_id (215005, 217763, 206039), hand (\"R\", \"R\", \"U\"), birth_date (19970530, 19911121, 19800730), first_name (\"Vita\", \"Makenna\", \"Clementina Eugenia\"), last_name (\"Leiva\", \"Halle\", \"Jarlskog\") | competitors : country_code (\"CRO\", \"SLO\", \"ITA\"), player_id (215005, 217763, 206039), hand (\"R\", \"R\", \"U\"), birth_date (19970530, 19911121, 19800730), first_name (\"Vita\", \"Makenna\", \"Clementina Eugenia\"), last_name (\"Leiva\", \"Halle\", \"Jarlskog\")", + "schema_without_content": "rankings : ranking_date , tours , ranking_points , player_id , ranking | matches : tourney_date , winner_ioc , score \", \"7-6 6-2\", \"2-6 6-4 6-1\", tourney_id , loser_id , winner_ht , winner_entry , minutes , loser_ht , loser_rank , winner_hand , winner_age , loser_rank_points , tourney_name , loser_hand , best_of , winner_seed , loser_age , loser_entry , loser_ioc , tourney_level , round , loser_seed , winner_rank_points , winner_id , year , winner_rank , winner_name , match_num , surface , draw_size , loser_name | athletes : country_code , player_id , hand , birth_date , first_name , last_name | competitors : country_code , player_id , hand , birth_date , first_name , last_name", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of players for each hand type": "players.player_id" + } + }, + { + "question": "how many #players# are there for each #hand type# ?", + "db_id": "wta_1", + "orig_query": "select count(*), hand from players group by hand", + "schema_with_content": "rankings : player_id (206069, 211680, 205918), ranking_date (19920427, 20160523, 19940912), tours (35, 41, 33), ranking (1322, 143, 749), ranking_points (5250, 387, 1632) | athletes : country_code (\"TOG\", \"AND\", \"EGY\"), birth_date (19821013, 19580227, 19950715), hand (\"R\", \"L\", \"U\"), last_name (\"Gutierrez Quiroga\", \"Davidescu\", \"Letseka\"), first_name (\"Norzahara\", \"Vida\", \"Yixuan\"), player_id (212258, 205678, 203710) | competitors : country_code (\"TOG\", \"AND\", \"EGY\"), birth_date (19821013, 19580227, 19950715), hand (\"R\", \"L\", \"U\"), last_name (\"Gutierrez Quiroga\", \"Davidescu\", \"Letseka\"), first_name (\"Norzahara\", \"Vida\", \"Yixuan\"), player_id (212258, 205678, 203710) | matches : winner_rank (3, 21, 42), loser_ht (175, 163, 172), winner_ioc (\"JPN\", \"CHN\", \"CHN\"), winner_age (26.8829568789, 23.0444900753, 27.2005475702), winner_id (201458, 201596, 201366), tourney_date (20170529, 20160208, 20160801), loser_id (201455, 201474, 201662), loser_seed (11, 15, 21), draw_size (128, 4, 8), year (2013, 2016, 2017), loser_rank (31, 6, 16), loser_hand (\"R\", \"L\"), winner_ht (168, 175, 181), winner_hand (\"R\", \"L\"), round (\"F\", \"BR\", \"F\"), loser_ioc (\"DEN\", \"ROU\", \"BLR\"), loser_entry (\"\"), surface (\"Hard\", \"Clay\", \"Grass\"), loser_name (\"Petra Kvitova\", \"Agnieszka Radwanska\", \"Monica Niculescu\"), score (\"6-1 6-4\", \"3-6 6-0 6-1\", \"6-7(3) 6-2 6-3\"), tourney_id (\"2017-0703\", \"2017-0406\", \"2016-0806\"), loser_rank_points (1550, 3715, 5175), winner_name (\"Victoria Azarenka\", \"Julia Goerges\", \"Julia Goerges\"), tourney_level (\"W\", \"I\", \"P\"), minutes (137, 60, 105), winner_rank_points (6380, 1900, 9030), winner_seed (13, 5, 22), match_num (202, 276, 281), loser_age (31.6906228611, 31.249828884299998, 29.297741273099998), best_of (3), tourney_name (\"Bastad\", \"Olympics\", \"s-Hertogenbosch\"), winner_entry (\"\")", + "schema_without_content": "rankings : player_id , ranking_date , tours , ranking , ranking_points | athletes : country_code , birth_date , hand , last_name , first_name , player_id | competitors : country_code , birth_date , hand , last_name , first_name , player_id | matches : winner_rank , loser_ht , winner_ioc , winner_age , winner_id , tourney_date , loser_id , loser_seed , draw_size , year , loser_rank , loser_hand , winner_ht , winner_hand , round , loser_ioc , loser_entry , surface , loser_name , score 6-2 6-3\", tourney_id , loser_rank_points , winner_name , tourney_level , minutes , winner_rank_points , winner_seed , match_num , loser_age , best_of , tourney_name , winner_entry", + "extra_map": null, + "extra_table_map": { + "players": [ + "athletes", + "competitors" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "players": "players", + "hand type": "players.hand" + } + }, + { + "question": "how many #ships ended up being 'captured'# ?", + "db_id": "battle_death", + "orig_query": "select count(*) from ship where disposition_of_ship = 'Captured'", + "schema_with_content": "vessel : ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Wrecked\", \"Captured\", \"Scuttled\"), name (\"HMS Atalanta\", \"Mary\", \"Mary\"), id (6, 2, 5), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (6, 8, 5), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\") | navy : ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Wrecked\", \"Captured\", \"Scuttled\"), name (\"HMS Atalanta\", \"Mary\", \"Mary\"), id (6, 2, 5), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (6, 8, 5), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\") | death : killed (0, 25, 4), injured (0, 9, 5), note (\"WestMidnapore, West Bengal\", \"Sundargarh, Odisha\", \"Bokaro, Jharkhand\"), caused_by_ship_id (5, 5, 5), id (12, 4, 1) | battle : date (\"31 June 1208\", \"June 1205\", \"4 September 1207\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), bulgarian_commander (\"Boril\", \"Kaloyan\", \"Kaloyan\"), latin_commander (\"Boniface of Montferrat\", \"Thierry de Termond\", \"Thierry de Termond\"), name (\"Battle of Messinopolis\", \"Battle of Boruy\", \"Battle of Rusion\"), id (2, 4, 2)", + "schema_without_content": "vessel : ship_type , disposition_of_ship , name , id , tonnage , lost_in_battle , location | navy : ship_type , disposition_of_ship , name , id , tonnage , lost_in_battle , location | death : killed , injured , note , caused_by_ship_id , id | battle : date , result , bulgarian_commander , latin_commander , name , id", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "ships ended up being 'Captured'": "ship.disposition_of_ship" + } + }, + { + "question": "list the #name# and #tonnage# ordered by in descending alphaetical order for the names.", + "db_id": "battle_death", + "orig_query": "select name, tonnage from ship order by name desc", + "schema_with_content": "navy : disposition_of_ship (\"Captured\", \"Sank\", \"Sank\"), tonnage (\"t\", \"391\", \"225\"), id (2, 7, 1), name (\"Three Brothers\", \"Mary\", \"HMS Avon\"), lost_in_battle (7, 8, 8), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\") | vessel : disposition_of_ship (\"Captured\", \"Sank\", \"Sank\"), tonnage (\"t\", \"391\", \"225\"), id (2, 7, 1), name (\"Three Brothers\", \"Mary\", \"HMS Avon\"), lost_in_battle (7, 8, 8), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\") | battle : name (\"Battle of Messinopolis\", \"Battle of Messinopolis\", \"Siege of Constantinople\"), date (\"31 January 1206\", \"31 January 1206\", \"4 September 1207\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), bulgarian_commander (\"Unknown\", \"Unknown\", \"Ivan Asen II\"), latin_commander (\"Henry I\", \"Baldwin I\", \"Unknown\"), id (2, 5, 2) | death : id (8, 11, 6), note (\"Erraboru, Chhattisgarh\", \"Erraboru, Chhattisgarh\", \"Dantewada, Chhattisgarh\"), injured (0, 9, 5), killed (14, 14, 29), caused_by_ship_id (1, 5, 1)", + "schema_without_content": "navy : disposition_of_ship , tonnage , id , name , lost_in_battle , ship_type , location | vessel : disposition_of_ship , tonnage , id , name , lost_in_battle , ship_type , location | battle : name , date , result , bulgarian_commander , latin_commander , id | death : id , note , injured , killed , caused_by_ship_id", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "ship.name", + "tonnage": "ship.tonnage" + } + }, + { + "question": "what are the #death# and #injury# situations caused by the #ship with tonnage# 't'?", + "db_id": "battle_death", + "orig_query": "select t1.killed, t1.injured from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id where t2.tonnage = 't'", + "schema_with_content": "vessel : location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Sank\", \"Wrecked\", \"Scuttled\"), lost_in_battle (8, 5, 7), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), tonnage (\"t\", \"391\", \"225\"), name (\"Three Brothers\", \"Three Brothers\", \"Mary\"), id (3, 2, 2) | navy : location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Sank\", \"Wrecked\", \"Scuttled\"), lost_in_battle (8, 5, 7), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), tonnage (\"t\", \"391\", \"225\"), name (\"Three Brothers\", \"Three Brothers\", \"Mary\"), id (3, 2, 2) | death : caused_by_ship_id (1, 1, 1), note (\"WestMidnapore, West Bengal\", \"WestMidnapore, West Bengal\", \"East Champaran, Bihar\"), id (12, 11, 13), injured (0, 9, 5), killed (8, 29, 2) | battle : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), latin_commander (\"Henry I\", \"Boniface of Montferrat\", \"Boniface of Montferrat\"), date (\"February 1206\", \"February 1206\", \"June 1205\"), bulgarian_commander (\"Unknown\", \"Unknown\", \"Boril\"), name (\"Battle of Serres\", \"Battle of Philippopolis\", \"Battle of Philippopolis\"), id (1, 6, 5)", + "schema_without_content": "vessel : location , disposition_of_ship , lost_in_battle , ship_type , tonnage , name , id | navy : location , disposition_of_ship , lost_in_battle , ship_type , tonnage , name , id | death : caused_by_ship_id , note , id , injured , killed | battle : result , latin_commander , date , bulgarian_commander , name , id", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "death": "death.killed", + "injury": "death.injured", + "ship with tonnage": "ship.tonnage" + } + }, + { + "question": "what are the #death# and #injury# situations caused by the #ship with tonnage# 't'?", + "db_id": "battle_death", + "orig_query": "select t1.killed, t1.injured from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id where t2.tonnage = 't'", + "schema_with_content": "mortality : note (\"Kanker, Chhattisgarh\", \"Dantewada, Chhattisgarh\", \"WestMidnapore, West Bengal\"), id (1, 1, 11), injured (0, 9, 5), caused_by_ship_id (1, 3, 6), killed (0, 14, 14) | battle : name (\"Battle of Philippopolis\", \"Battle of Adrianople\", \"Siege of Constantinople\"), id (5, 2, 7), bulgarian_commander (\"Boril\", \"Ivan Asen II\", \"Kaloyan\"), latin_commander (\"Henry I\", \"Unknown\", \"John of Brienne\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), date (\"31 June 1208\", \"1235\", \"1235\") | fatality : note (\"Kanker, Chhattisgarh\", \"Dantewada, Chhattisgarh\", \"WestMidnapore, West Bengal\"), id (1, 1, 11), injured (0, 9, 5), caused_by_ship_id (1, 3, 6), killed (0, 14, 14) | ship : disposition_of_ship (\"Captured\", \"Scuttled\", \"Sank\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), lost_in_battle (4, 6, 4), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\"), id (6, 2, 3), name (\"Mary\", \"Mary\", \"Mary\")", + "schema_without_content": "mortality : note , id , injured , caused_by_ship_id , killed | battle : name , id , bulgarian_commander , latin_commander , result , date | fatality : note , id , injured , caused_by_ship_id , killed | ship : disposition_of_ship , ship_type , lost_in_battle , location , tonnage , id , name", + "extra_map": null, + "extra_table_map": { + "death": [ + "fatality", + "mortality" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "column_linking_gt": { + "death": "death.killed", + "injury": "death.injured", + "ship with tonnage": "ship.tonnage" + } + }, + { + "question": "what are the #name# and #results# of the battles when the #bulgarian commander# is not 'boril'", + "db_id": "battle_death", + "orig_query": "select name, result from battle where bulgarian_commander != 'Boril'", + "schema_with_content": "warfare : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), latin_commander (\"Henry I\", \"Henry I\", \"Baldwin I\"), date (\"4 September 1207\", \"31 June 1208\", \"4 September 1207\"), id (5, 8, 5), bulgarian_commander (\"Ivan Asen II\", \"Kaloyan\", \"Boril\"), name (\"Battle of Messinopolis\", \"Battle of Adrianople\", \"Battle of Boruy\") | ship : name (\"HMS Atalanta\", \"HMS Avon\", \"Bon Accord\"), id (5, 1, 3), lost_in_battle (7, 5, 7), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Captured\", \"Scuttled\", \"Captured\") | conflict : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), latin_commander (\"Henry I\", \"Henry I\", \"Baldwin I\"), date (\"4 September 1207\", \"31 June 1208\", \"4 September 1207\"), id (5, 8, 5), bulgarian_commander (\"Ivan Asen II\", \"Kaloyan\", \"Boril\"), name (\"Battle of Messinopolis\", \"Battle of Adrianople\", \"Battle of Boruy\") | death : injured (0, 9, 5), caused_by_ship_id (5, 5, 3), note (\"Kanker, Chhattisgarh\", \"Gajapati, Odisha\", \"Erraboru, Chhattisgarh\"), killed (4, 14, 25), id (10, 4, 10)", + "schema_without_content": "warfare : result , latin_commander , date , id , bulgarian_commander , name | ship : name , id , lost_in_battle , location , tonnage , ship_type , disposition_of_ship | conflict : result , latin_commander , date , id , bulgarian_commander , name | death : injured , caused_by_ship_id , note , killed , id", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "battle.name", + "results": "battle.result", + "bulgarian commander": "battle.bulgarian_commander" + } + }, + { + "question": "what are the different #ids# and #names of the battles that lost# any 'brig' type shipes?", + "db_id": "battle_death", + "orig_query": "select distinct t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.ship_type = 'Brig'", + "schema_with_content": "conflict : latin_commander (\"John of Brienne\", \"Thierry de Termond\", \"Unknown\"), name (\"Battle of Messinopolis\", \"Battle of Adrianople\", \"Battle of Messinopolis\"), bulgarian_commander (\"Kaloyan\", \"Unknown\", \"Boril\"), id (8, 5, 2), date (\"31 January 1206\", \"June 1205\", \"1235\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | warfare : latin_commander (\"John of Brienne\", \"Thierry de Termond\", \"Unknown\"), name (\"Battle of Messinopolis\", \"Battle of Adrianople\", \"Battle of Messinopolis\"), bulgarian_commander (\"Kaloyan\", \"Unknown\", \"Boril\"), id (8, 5, 2), date (\"31 January 1206\", \"June 1205\", \"1235\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | death : killed (0, 14, 3), injured (0, 9, 5), caused_by_ship_id (2, 6, 3), note (\"Sundargarh, Odisha\", \"East Champaran, Bihar\", \"East Champaran, Bihar\"), id (6, 4, 11) | ship : name (\"HMS Atalanta\", \"Three Brothers\", \"Mary\"), lost_in_battle (4, 5, 4), id (3, 4, 1), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Wrecked\", \"Wrecked\", \"Scuttled\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\")", + "schema_without_content": "conflict : latin_commander , name , bulgarian_commander , id , date , result | warfare : latin_commander , name , bulgarian_commander , id , date , result | death : killed , injured , caused_by_ship_id , note , id | ship : name , lost_in_battle , id , tonnage , ship_type , disposition_of_ship , location", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ids": "battle.id", + "names of the battles that lost": "battle.name", + "ship type": "ship.ship_type" + } + }, + { + "question": "what are the different #ids# and #names of the battles that lost# any 'brig' type shipes?", + "db_id": "battle_death", + "orig_query": "select distinct t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.ship_type = 'Brig'", + "schema_with_content": "navy : id (7, 6, 7), lost_in_battle (6, 4, 6), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Captured\", \"Captured\", \"Captured\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\"), name (\"HMS Atalanta\", \"Three Brothers\", \"Mary\") | death : caused_by_ship_id (5, 1, 3), id (13, 11, 7), killed (3, 8, 0), injured (0, 9, 5), note (\"Bastar, Chattisgarh\", \"Gajapati, Odisha\", \"Gajapati, Odisha\") | vessel : id (7, 6, 7), lost_in_battle (6, 4, 6), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Captured\", \"Captured\", \"Captured\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\"), name (\"HMS Atalanta\", \"Three Brothers\", \"Mary\") | battle : date (\"February 1206\", \"31 January 1206\", \"1235\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), id (8, 4, 7), name (\"Battle of Rodosto\", \"Siege of Constantinople\", \"Battle of Boruy\"), bulgarian_commander (\"Boril\", \"Boril\", \"Ivan Asen II\"), latin_commander (\"Boniface of Montferrat\", \"Henry I\", \"Boniface of Montferrat\")", + "schema_without_content": "navy : id , lost_in_battle , ship_type , disposition_of_ship , location , tonnage , name | death : caused_by_ship_id , id , killed , injured , note | vessel : id , lost_in_battle , ship_type , disposition_of_ship , location , tonnage , name | battle : date , result , id , name , bulgarian_commander , latin_commander", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "battle.id", + "names of the battles that lost": "battle.name", + "ship type": "ship.ship_type" + } + }, + { + "question": "what are the #ids# and #names of the battles# that led to more than 10 people #killed# in total.", + "db_id": "battle_death", + "orig_query": "select t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle join death as t3 on t2.id = t3.caused_by_ship_id group by t1.id having sum(t3.killed) > 10", + "schema_with_content": "warfare : id (7, 7, 3), date (\"31 January 1206\", \"31 January 1206\", \"14 April 1205\"), bulgarian_commander (\"Boril\", \"Kaloyan\", \"Boril\"), name (\"Siege of Constantinople\", \"Battle of Rusion\", \"Battle of Adrianople\"), latin_commander (\"Henry I\", \"Henry I\", \"John of Brienne\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | death : killed (8, 3, 8), note (\"Gajapati, Odisha\", \"Kanker, Chhattisgarh\", \"Kanker, Chhattisgarh\"), caused_by_ship_id (6, 5, 6), id (7, 9, 6), injured (0, 9, 5) | conflict : id (7, 7, 3), date (\"31 January 1206\", \"31 January 1206\", \"14 April 1205\"), bulgarian_commander (\"Boril\", \"Kaloyan\", \"Boril\"), name (\"Siege of Constantinople\", \"Battle of Rusion\", \"Battle of Adrianople\"), latin_commander (\"Henry I\", \"Henry I\", \"John of Brienne\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | ship : name (\"HMS Atalanta\", \"Lettice\", \"Mary\"), id (1, 4, 3), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Scuttled\", \"Sank\", \"Sank\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (4, 8, 4)", + "schema_without_content": "warfare : id , date , bulgarian_commander , name , latin_commander , result | death : killed , note , caused_by_ship_id , id , injured | conflict : id , date , bulgarian_commander , name , latin_commander , result | ship : name , id , location , disposition_of_ship , ship_type , tonnage , lost_in_battle", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ids": "battle.id", + "names of the battles": "battle.name", + "killed": "death.killed" + } + }, + { + "question": "what are the #ids# and #names of the battles# that led to more than 10 people #killed# in total.", + "db_id": "battle_death", + "orig_query": "select t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle join death as t3 on t2.id = t3.caused_by_ship_id group by t1.id having sum(t3.killed) > 10", + "schema_with_content": "vessel : id (2, 3, 6), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), name (\"Bacchus\", \"Lettice\", \"Bon Accord\"), lost_in_battle (8, 5, 4), disposition_of_ship (\"Sank\", \"Wrecked\", \"Sank\") | death : id (8, 1, 13), note (\"Gajapati, Odisha\", \"Bokaro, Jharkhand\", \"Gajapati, Odisha\"), injured (0, 9, 5), killed (25, 8, 8), caused_by_ship_id (6, 6, 2) | battle : latin_commander (\"Henry I\", \"Henry I\", \"Thierry de Termond\"), bulgarian_commander (\"Unknown\", \"Kaloyan\", \"Ivan Asen II\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Battle of Adrianople\", \"Battle of Rodosto\", \"Battle of Philippopolis\"), date (\"1235\", \"June 1205\", \"4 September 1207\"), id (4, 6, 3) | navy : id (2, 3, 6), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), name (\"Bacchus\", \"Lettice\", \"Bon Accord\"), lost_in_battle (8, 5, 4), disposition_of_ship (\"Sank\", \"Wrecked\", \"Sank\")", + "schema_without_content": "vessel : id , tonnage , ship_type , location , name , lost_in_battle , disposition_of_ship | death : id , note , injured , killed , caused_by_ship_id | battle : latin_commander , bulgarian_commander , result , name , date , id | navy : id , tonnage , ship_type , location , name , lost_in_battle , disposition_of_ship", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "battle.id", + "names of the battles": "battle.name", + "killed": "death.killed" + } + }, + { + "question": "what are the #ids# and #names of the battles# that led to more than 10 people #killed# in total.", + "db_id": "battle_death", + "orig_query": "select t1.id, t1.name from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle join death as t3 on t2.id = t3.caused_by_ship_id group by t1.id having sum(t3.killed) > 10", + "schema_with_content": "ship : lost_in_battle (4, 7, 5), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), tonnage (\"t\", \"391\", \"225\"), id (7, 7, 6), name (\"HMS Atalanta\", \"Bon Accord\", \"HMS Atalanta\"), disposition_of_ship (\"Captured\", \"Captured\", \"Wrecked\") | battle : date (\"14 April 1205\", \"1235\", \"31 January 1206\"), name (\"Battle of Rusion\", \"Battle of Serres\", \"Battle of Philippopolis\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), latin_commander (\"John of Brienne\", \"Boniface of Montferrat\", \"John of Brienne\"), id (5, 8, 5), bulgarian_commander (\"Ivan Asen II\", \"Ivan Asen II\", \"Ivan Asen II\") | fatality : caused_by_ship_id (2, 3, 2), injured (0, 9, 5), killed (2, 8, 0), id (2, 13, 10), note (\"Gajapati, Odisha\", \"Bastar, Chattisgarh\", \"Bokaro, Jharkhand\") | mortality : caused_by_ship_id (2, 3, 2), injured (0, 9, 5), killed (2, 8, 0), id (2, 13, 10), note (\"Gajapati, Odisha\", \"Bastar, Chattisgarh\", \"Bokaro, Jharkhand\")", + "schema_without_content": "ship : lost_in_battle , location , ship_type , tonnage , id , name , disposition_of_ship | battle : date , name , result , latin_commander , id , bulgarian_commander | fatality : caused_by_ship_id , injured , killed , id , note | mortality : caused_by_ship_id , injured , killed , id , note", + "extra_map": null, + "extra_table_map": { + "death": [ + "fatality", + "mortality" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "column_linking_gt": { + "ids": "battle.id", + "names of the battles": "battle.name", + "killed": "death.killed" + } + }, + { + "question": "what is the #ship id# and #name# that caused most total #injuries# ?", + "db_id": "battle_death", + "orig_query": "select t2.id, t2.name from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id group by t2.id order by count(*) desc limit 1", + "schema_with_content": "battle : date (\"4 September 1207\", \"June 1205\", \"February 1206\"), id (3, 1, 4), latin_commander (\"Unknown\", \"Baldwin I\", \"John of Brienne\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), bulgarian_commander (\"Ivan Asen II\", \"Kaloyan\", \"Kaloyan\"), name (\"Battle of Rusion\", \"Battle of Messinopolis\", \"Battle of Messinopolis\") | navy : disposition_of_ship (\"Captured\", \"Captured\", \"Captured\"), id (2, 3, 2), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), name (\"HMS Atalanta\", \"HMS Atalanta\", \"Bacchus\"), lost_in_battle (8, 4, 4), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\") | vessel : disposition_of_ship (\"Captured\", \"Captured\", \"Captured\"), id (2, 3, 2), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), name (\"HMS Atalanta\", \"HMS Atalanta\", \"Bacchus\"), lost_in_battle (8, 4, 4), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\") | death : caused_by_ship_id (5, 5, 4), killed (4, 0, 8), injured (0, 9, 5), note (\"Dantewada, Chhattisgarh\", \"East Champaran, Bihar\", \"Gajapati, Odisha\"), id (12, 9, 13)", + "schema_without_content": "battle : date , id , latin_commander , result , bulgarian_commander , name | navy : disposition_of_ship , id , ship_type , name , lost_in_battle , location , tonnage | vessel : disposition_of_ship , id , ship_type , name , lost_in_battle , location , tonnage | death : caused_by_ship_id , killed , injured , note , id", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "ship id": "ship.id", + "name": "ship.name", + "injuries": "death.injured" + } + }, + { + "question": "what is the #ship id# and #name# that caused most total #injuries# ?", + "db_id": "battle_death", + "orig_query": "select t2.id, t2.name from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id group by t2.id order by count(*) desc limit 1", + "schema_with_content": "ship : ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Wrecked\", \"Sank\", \"Captured\"), name (\"Three Brothers\", \"Three Brothers\", \"Bon Accord\"), id (4, 3, 2), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (5, 5, 5) | fatality : injured (0, 9, 5), caused_by_ship_id (4, 1, 2), killed (3, 29, 25), id (6, 5, 2), note (\"Sundargarh, Odisha\", \"Bastar, Chattisgarh\", \"Kanker, Chhattisgarh\") | battle : bulgarian_commander (\"Unknown\", \"Ivan Asen II\", \"Kaloyan\"), date (\"June 1205\", \"February 1206\", \"1235\"), id (4, 6, 5), latin_commander (\"Henry I\", \"Unknown\", \"Henry I\"), name (\"Battle of Boruy\", \"Battle of Adrianople\", \"Battle of Serres\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | mortality : injured (0, 9, 5), caused_by_ship_id (4, 1, 2), killed (3, 29, 25), id (6, 5, 2), note (\"Sundargarh, Odisha\", \"Bastar, Chattisgarh\", \"Kanker, Chhattisgarh\")", + "schema_without_content": "ship : ship_type , disposition_of_ship , name , id , location , tonnage , lost_in_battle | fatality : injured , caused_by_ship_id , killed , id , note | battle : bulgarian_commander , date , id , latin_commander , name , result | mortality : injured , caused_by_ship_id , killed , id , note", + "extra_map": null, + "extra_table_map": { + "death": [ + "fatality", + "mortality" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "column_linking_gt": { + "ship id": "ship.id", + "name": "ship.name", + "injuries": "death.injured" + } + }, + { + "question": "what are the distinct #battle names# which are between #bulgarian commander# 'kaloyan' and #latin commander# 'baldwin i'?", + "db_id": "battle_death", + "orig_query": "select name from battle where bulgarian_commander = 'Kaloyan' and latin_commander = 'Baldwin I'", + "schema_with_content": "ship : name (\"HMS Avon\", \"Bacchus\", \"HMS Atalanta\"), lost_in_battle (6, 5, 8), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), id (2, 3, 7), disposition_of_ship (\"Wrecked\", \"Captured\", \"Sank\"), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\") | conflict : bulgarian_commander (\"Boril\", \"Boril\", \"Boril\"), id (4, 1, 3), date (\"31 January 1206\", \"31 June 1208\", \"14 April 1205\"), name (\"Battle of Serres\", \"Siege of Constantinople\", \"Battle of Messinopolis\"), latin_commander (\"Baldwin I\", \"Unknown\", \"Unknown\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\") | death : note (\"Erraboru, Chhattisgarh\", \"Bokaro, Jharkhand\", \"Erraboru, Chhattisgarh\"), id (6, 1, 10), caused_by_ship_id (2, 2, 6), killed (8, 14, 14), injured (0, 9, 5) | warfare : bulgarian_commander (\"Boril\", \"Boril\", \"Boril\"), id (4, 1, 3), date (\"31 January 1206\", \"31 June 1208\", \"14 April 1205\"), name (\"Battle of Serres\", \"Siege of Constantinople\", \"Battle of Messinopolis\"), latin_commander (\"Baldwin I\", \"Unknown\", \"Unknown\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\")", + "schema_without_content": "ship : name , lost_in_battle , location , id , disposition_of_ship , tonnage , ship_type | conflict : bulgarian_commander , id , date , name , latin_commander , result | death : note , id , caused_by_ship_id , killed , injured | warfare : bulgarian_commander , id , date , name , latin_commander , result", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "battle names": "battle.name", + "bulgarian commander": "battle.bulgarian_commander", + "latin commander": "battle.latin_commander" + } + }, + { + "question": "how many #battles# did not #lose any ship with tonnage# '225'?", + "db_id": "battle_death", + "orig_query": "select count(*) from battle where id not in (select lost_in_battle from ship where tonnage = '225')", + "schema_with_content": "conflict : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), id (5, 2, 4), latin_commander (\"Henry I\", \"Boniface of Montferrat\", \"Boniface of Montferrat\"), name (\"Battle of Serres\", \"Battle of Messinopolis\", \"Battle of Adrianople\"), date (\"14 April 1205\", \"14 April 1205\", \"31 June 1208\"), bulgarian_commander (\"Unknown\", \"Ivan Asen II\", \"Unknown\") | warfare : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), id (5, 2, 4), latin_commander (\"Henry I\", \"Boniface of Montferrat\", \"Boniface of Montferrat\"), name (\"Battle of Serres\", \"Battle of Messinopolis\", \"Battle of Adrianople\"), date (\"14 April 1205\", \"14 April 1205\", \"31 June 1208\"), bulgarian_commander (\"Unknown\", \"Ivan Asen II\", \"Unknown\") | ship : location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Wrecked\", \"Sank\", \"Wrecked\"), id (3, 7, 7), lost_in_battle (4, 4, 4), name (\"HMS Avon\", \"Three Brothers\", \"Bon Accord\"), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\") | death : note (\"East Champaran, Bihar\", \"Sundargarh, Odisha\", \"WestMidnapore, West Bengal\"), killed (0, 2, 3), injured (0, 9, 5), id (9, 7, 13), caused_by_ship_id (1, 3, 2)", + "schema_without_content": "conflict : result , id , latin_commander , name , date , bulgarian_commander | warfare : result , id , latin_commander , name , date , bulgarian_commander | ship : location , disposition_of_ship , id , lost_in_battle , name , tonnage , ship_type | death : note , killed , injured , id , caused_by_ship_id", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "battles": "battle", + "lose any ship with tonnage": "ship.lost_in_battle" + } + }, + { + "question": "how many #battles# did not #lose any ship with tonnage# '225'?", + "db_id": "battle_death", + "orig_query": "select count(*) from battle where id not in (select lost_in_battle from ship where tonnage = '225')", + "schema_with_content": "battle : latin_commander (\"Henry I\", \"John of Brienne\", \"Unknown\"), bulgarian_commander (\"Kaloyan\", \"Boril\", \"Boril\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Battle of Rodosto\", \"Battle of Boruy\", \"Siege of Constantinople\"), id (1, 6, 8), date (\"June 1205\", \"June 1205\", \"4 September 1207\") | vessel : disposition_of_ship (\"Sank\", \"Captured\", \"Wrecked\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), lost_in_battle (4, 8, 4), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), name (\"Bon Accord\", \"Bon Accord\", \"Three Brothers\"), id (5, 4, 6), tonnage (\"t\", \"391\", \"225\") | navy : disposition_of_ship (\"Sank\", \"Captured\", \"Wrecked\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), lost_in_battle (4, 8, 4), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), name (\"Bon Accord\", \"Bon Accord\", \"Three Brothers\"), id (5, 4, 6), tonnage (\"t\", \"391\", \"225\") | death : injured (0, 9, 5), note (\"East Champaran, Bihar\", \"WestMidnapore, West Bengal\", \"Kanker, Chhattisgarh\"), caused_by_ship_id (6, 6, 3), id (13, 10, 1), killed (0, 0, 29)", + "schema_without_content": "battle : latin_commander , bulgarian_commander , result , name , id , date | vessel : disposition_of_ship , location , lost_in_battle , ship_type , name , id , tonnage | navy : disposition_of_ship , location , lost_in_battle , ship_type , name , id , tonnage | death : injured , note , caused_by_ship_id , id , killed", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "battles": "battle", + "lose any ship with tonnage": "ship.lost_in_battle" + } + }, + { + "question": "list the #name# and #date the battle# that has #lost the ship named 'lettice'# and the #ship named 'hms atalanta'# ", + "db_id": "battle_death", + "orig_query": "select t1.name, t1.date from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.name = 'Lettice' intersect select t1.name, t1.date from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.name = 'HMS Atalanta'", + "schema_with_content": "conflict : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Battle of Philippopolis\", \"Battle of Serres\", \"Battle of Rodosto\"), date (\"June 1205\", \"June 1205\", \"31 January 1206\"), latin_commander (\"Unknown\", \"Thierry de Termond\", \"Henry I\"), id (2, 4, 6), bulgarian_commander (\"Kaloyan\", \"Unknown\", \"Boril\") | ship : id (7, 2, 7), lost_in_battle (8, 5, 8), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), tonnage (\"t\", \"391\", \"225\"), name (\"Three Brothers\", \"Mary\", \"Bon Accord\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Sank\", \"Sank\", \"Sank\") | warfare : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Battle of Philippopolis\", \"Battle of Serres\", \"Battle of Rodosto\"), date (\"June 1205\", \"June 1205\", \"31 January 1206\"), latin_commander (\"Unknown\", \"Thierry de Termond\", \"Henry I\"), id (2, 4, 6), bulgarian_commander (\"Kaloyan\", \"Unknown\", \"Boril\") | death : caused_by_ship_id (4, 2, 5), killed (8, 2, 29), note (\"East Champaran, Bihar\", \"Gajapati, Odisha\", \"Gajapati, Odisha\"), id (8, 4, 13), injured (0, 9, 5)", + "schema_without_content": "conflict : result , name , date , latin_commander , id , bulgarian_commander | ship : id , lost_in_battle , ship_type , tonnage , name , location , disposition_of_ship | warfare : result , name , date , latin_commander , id , bulgarian_commander | death : caused_by_ship_id , killed , note , id , injured", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "battle.name", + "date the battle": "battle.date", + "lost the ship named 'Lettice'": "battle.name", + "ship named 'HMS Atalanta'": "battle.name" + } + }, + { + "question": "list the #name# and #date the battle# that has #lost the ship named 'lettice'# and the #ship named 'hms atalanta'# ", + "db_id": "battle_death", + "orig_query": "select t1.name, t1.date from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.name = 'Lettice' intersect select t1.name, t1.date from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.name = 'HMS Atalanta'", + "schema_with_content": "death : injured (0, 9, 5), id (2, 1, 3), killed (0, 14, 25), caused_by_ship_id (3, 4, 2), note (\"Dantewada, Chhattisgarh\", \"Bokaro, Jharkhand\", \"Sundargarh, Odisha\") | battle : date (\"31 January 1206\", \"14 April 1205\", \"1235\"), latin_commander (\"Thierry de Termond\", \"Thierry de Termond\", \"Thierry de Termond\"), id (1, 1, 7), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), bulgarian_commander (\"Ivan Asen II\", \"Boril\", \"Unknown\"), name (\"Siege of Constantinople\", \"Battle of Rusion\", \"Siege of Constantinople\") | vessel : ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Sank\", \"Captured\", \"Sank\"), name (\"Mary\", \"Three Brothers\", \"Bacchus\"), lost_in_battle (8, 7, 7), id (5, 3, 7), tonnage (\"t\", \"391\", \"225\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\") | navy : ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), disposition_of_ship (\"Sank\", \"Captured\", \"Sank\"), name (\"Mary\", \"Three Brothers\", \"Bacchus\"), lost_in_battle (8, 7, 7), id (5, 3, 7), tonnage (\"t\", \"391\", \"225\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\")", + "schema_without_content": "death : injured , id , killed , caused_by_ship_id , note | battle : date , latin_commander , id , result , bulgarian_commander , name | vessel : ship_type , disposition_of_ship , name , lost_in_battle , id , tonnage , location | navy : ship_type , disposition_of_ship , name , lost_in_battle , id , tonnage , location", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "battle.name", + "date the battle": "battle.date", + "lost the ship named 'Lettice'": "battle.name", + "ship named 'HMS Atalanta'": "battle.name" + } + }, + { + "question": "show #names# , #results# and #bulgarian commanders# of the battles with no #ships# lost in the 'english channel'.", + "db_id": "battle_death", + "orig_query": "select name, result, bulgarian_commander from battle except select t1.name, t1.result, t1.bulgarian_commander from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.location = 'English Channel'", + "schema_with_content": "ship : name (\"HMS Atalanta\", \"Mary\", \"Lettice\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), disposition_of_ship (\"Captured\", \"Scuttled\", \"Captured\"), lost_in_battle (8, 4, 4), tonnage (\"t\", \"391\", \"225\"), id (1, 6, 1), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\") | death : id (11, 12, 4), injured (0, 9, 5), killed (4, 2, 4), note (\"Kanker, Chhattisgarh\", \"East Champaran, Bihar\", \"WestMidnapore, West Bengal\"), caused_by_ship_id (4, 3, 3) | conflict : bulgarian_commander (\"Boril\", \"Ivan Asen II\", \"Boril\"), name (\"Battle of Serres\", \"Battle of Rodosto\", \"Battle of Adrianople\"), date (\"4 September 1207\", \"1235\", \"14 April 1205\"), latin_commander (\"John of Brienne\", \"Henry I\", \"Henry I\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), id (6, 8, 8) | warfare : bulgarian_commander (\"Boril\", \"Ivan Asen II\", \"Boril\"), name (\"Battle of Serres\", \"Battle of Rodosto\", \"Battle of Adrianople\"), date (\"4 September 1207\", \"1235\", \"14 April 1205\"), latin_commander (\"John of Brienne\", \"Henry I\", \"Henry I\"), result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), id (6, 8, 8)", + "schema_without_content": "ship : name , location , disposition_of_ship , lost_in_battle , tonnage , id , ship_type | death : id , injured , killed , note , caused_by_ship_id | conflict : bulgarian_commander , name , date , latin_commander , result , id | warfare : bulgarian_commander , name , date , latin_commander , result , id", + "extra_map": null, + "extra_table_map": { + "battle": [ + "warfare", + "conflict" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names": "battle.name", + "results": "battle.result", + "bulgarian commanders": "battle.bulgarian_commander", + "hips lost": "ship.lost_in_battle", + "ships": "ship", + "English Channel": "ship.location" + } + }, + { + "question": "show #names# , #results# and #bulgarian commanders# of the battles with no #ships# lost in the 'english channel'.", + "db_id": "battle_death", + "orig_query": "select name, result, bulgarian_commander from battle except select t1.name, t1.result, t1.bulgarian_commander from battle as t1 join ship as t2 on t1.id = t2.lost_in_battle where t2.location = 'English Channel'", + "schema_with_content": "vessel : disposition_of_ship (\"Scuttled\", \"Sank\", \"Captured\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), name (\"Mary\", \"Bon Accord\", \"Mary\"), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (4, 7, 6), id (6, 6, 5), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\") | navy : disposition_of_ship (\"Scuttled\", \"Sank\", \"Captured\"), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), name (\"Mary\", \"Bon Accord\", \"Mary\"), tonnage (\"t\", \"391\", \"225\"), lost_in_battle (4, 7, 6), id (6, 6, 5), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\") | death : note (\"Bastar, Chattisgarh\", \"Bastar, Chattisgarh\", \"Sundargarh, Odisha\"), caused_by_ship_id (2, 6, 5), id (7, 13, 10), injured (0, 9, 5), killed (0, 8, 4) | battle : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Siege of Constantinople\", \"Battle of Adrianople\", \"Battle of Rodosto\"), id (3, 8, 6), latin_commander (\"Boniface of Montferrat\", \"Thierry de Termond\", \"Henry I\"), bulgarian_commander (\"Unknown\", \"Boril\", \"Boril\"), date (\"14 April 1205\", \"June 1205\", \"4 September 1207\")", + "schema_without_content": "vessel : disposition_of_ship , location , name , tonnage , lost_in_battle , id , ship_type | navy : disposition_of_ship , location , name , tonnage , lost_in_battle , id , ship_type | death : note , caused_by_ship_id , id , injured , killed | battle : result , name , id , latin_commander , bulgarian_commander , date", + "extra_map": null, + "extra_table_map": { + "ship": [ + "vessel", + "navy" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "battle.name", + "results": "battle.result", + "bulgarian commanders": "battle.bulgarian_commander", + "hips lost": "ship.lost_in_battle", + "ships": "ship", + "English Channel": "ship.location" + } + }, + { + "question": "what are the #notes of the death events# which has substring 'east'?", + "db_id": "battle_death", + "orig_query": "select note from death where note like '%East%'", + "schema_with_content": "ship : disposition_of_ship (\"Captured\", \"Scuttled\", \"Captured\"), name (\"Mary\", \"HMS Avon\", \"Bacchus\"), tonnage (\"t\", \"391\", \"225\"), ship_type (\"Brig\", \"18-gun Brig\", \"8 gun Brig\"), lost_in_battle (6, 4, 4), location (\"English Channel\", \"SW Approaches\", \"Mid-Atlantic\"), id (1, 4, 1) | fatality : caused_by_ship_id (5, 5, 1), id (8, 10, 3), killed (25, 8, 2), note (\"Sundargarh, Odisha\", \"Erraboru, Chhattisgarh\", \"East Champaran, Bihar\"), injured (0, 9, 5) | mortality : caused_by_ship_id (5, 5, 1), id (8, 10, 3), killed (25, 8, 2), note (\"Sundargarh, Odisha\", \"Erraboru, Chhattisgarh\", \"East Champaran, Bihar\"), injured (0, 9, 5) | battle : result (\"Bulgarian victory\", \"Latin victory\", \"Two Year Truce\"), name (\"Battle of Boruy\", \"Battle of Adrianople\", \"Battle of Adrianople\"), id (6, 5, 2), date (\"June 1205\", \"1235\", \"February 1206\"), latin_commander (\"Thierry de Termond\", \"Henry I\", \"Boniface of Montferrat\"), bulgarian_commander (\"Ivan Asen II\", \"Kaloyan\", \"Kaloyan\")", + "schema_without_content": "ship : disposition_of_ship , name , tonnage , ship_type , lost_in_battle , location , id | fatality : caused_by_ship_id , id , killed , note , injured | mortality : caused_by_ship_id , id , killed , note , injured | battle : result , name , id , date , latin_commander , bulgarian_commander", + "extra_map": null, + "extra_table_map": { + "death": [ + "fatality", + "mortality" + ] + }, + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "column_linking_gt": { + "notes of the death events": "death.note" + } + }, + { + "question": "how is the #math course# described?", + "db_id": "student_transcripts_tracking", + "orig_query": "select course_description from courses where course_name = 'math'", + "schema_with_content": "departments : department_description (\"in\", \"error\", \"nihil\"), other_details (None), department_name (\"linguistic\", \"law\", \"linguistic\"), department_id (15, 13, 5) | Subjects : course_name (\"fr\", \"fr\", \"os\"), other_details (None), course_id (13, 3, 15), course_description (\"q\", \"c\", \"w\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (3, 11, 12), degree_summary_description (\"assumenda\", \"unde\", \"qui\"), degree_program_id (11, 8, 5), other_details (None) | students : student_id (4, 14, 4), last_name (\"Kemmer\", \"Schuppe\", \"Ward\"), cell_mobile_number (\"09700166582\", \"436.613.7683\", \"171-642-5684\"), other_student_details (\"atque\", \"laborum\", \"voluptatem\"), ssn (\"3\", \"402\", \"156\"), first_name (\"Delaney\", \"Frida\", \"Reva\"), current_address_id (2, 14, 7), middle_name (\"Vaughn\", \"Mossie\", \"Brooklyn\"), date_first_registered (\"2014-03-28 05:48:23\", \"2017-01-04 08:10:25\", \"2009-09-25 00:14:25\"), permanent_address_id (11, 14, 4), date_left (\"2013-10-05 17:41:28\", \"1990-09-01 05:03:27\", \"2014-05-30 23:32:02\"), email_address (\"nbruen@example.org\", \"beth42@example.org\", \"mya88@example.org\") | student_enrolment : degree_program_id (12, 11, 8), student_enrolment_id (12, 10, 8), other_details (None), student_id (4, 5, 6), semester_id (2, 9, 1) | transcripts : other_details (None), transcript_id (1, 15, 7), transcript_date (\"1990-03-05 11:59:41\", \"1988-04-30 01:19:47\", \"1975-05-06 12:04:47\") | Modules : course_name (\"fr\", \"fr\", \"os\"), other_details (None), course_id (13, 3, 15), course_description (\"q\", \"c\", \"w\") | addresses : line_3 (None), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"202 Hessel Views Apt. 468\", \"858 Peggie Bypass Suite 212\"), country (\"Gabon\", \"Kyrgyz Republic\", \"New Caledonia\"), line_2 (\"Apt. 335\", \"Apt. 335\", \"Apt. 406\"), state_province_county (\"Delaware\", \"Arkansas\", \"Wyoming\"), zip_postcode (\"847\", \"943\", \"895\"), city (\"Lake Laishafurt\", \"Goodwinhaven\", \"Port Oceane\"), other_address_details (None), address_id (13, 3, 7) | sections : section_name (\"e\", \"a\", \"y\"), section_description (\"et\", \"voluptatem\", \"quis\"), section_id (13, 8, 11), other_details (None), course_id (2, 7, 2) | student_enrolment_courses : course_id (13, 6, 12), student_course_id (70882679, 28982908, 7), student_enrolment_id (8, 14, 9) | semesters : semester_description (\"w\", \"w\", \"y\"), semester_name (\"spring 2013\", \"fall 2010\", \"spring 2019\"), other_details (None), semester_id (8, 6, 12) | transcript_contents : transcript_id (4, 12, 9), student_course_id (2, 96, 76)", + "schema_without_content": "departments : department_description , other_details , department_name , department_id | Subjects : course_name , other_details , course_id , course_description | degree_programs : degree_summary_name , department_id , degree_summary_description , degree_program_id , other_details | students : student_id , last_name , cell_mobile_number , other_student_details , ssn , first_name , current_address_id , middle_name , date_first_registered , permanent_address_id , date_left , email_address | student_enrolment : degree_program_id , student_enrolment_id , other_details , student_id , semester_id | transcripts : other_details , transcript_id , transcript_date | Modules : course_name , other_details , course_id , course_description | addresses : line_3 , line_1 , country , line_2 , state_province_county , zip_postcode , city , other_address_details , address_id | sections : section_name , section_description , section_id , other_details , course_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | semesters : semester_description , semester_name , other_details , semester_id | transcript_contents : transcript_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "math course": "Courses.course_name", + "course description": "Courses.course_description" + } + }, + { + "question": "what are the #descriptions for all the math courses# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select course_description from courses where course_name = 'math'", + "schema_with_content": "sections : other_details (None), section_id (9, 2, 3), section_description (\"ex\", \"qui\", \"ad\"), course_id (1, 1, 10), section_name (\"g\", \"d\", \"k\") | departments : department_name (\"dance\", \"statistics\", \"art\"), department_description (\"non\", \"nihil\", \"doloribus\"), other_details (None), department_id (15, 3, 13) | transcript_contents : student_course_id (76, 0, 0), transcript_id (11, 2, 5) | transcripts : transcript_id (8, 1, 12), transcript_date (\"1985-08-21 09:32:39\", \"2010-12-13 10:55:15\", \"1998-11-22 12:18:29\"), other_details (None) | students : student_id (7, 5, 8), permanent_address_id (5, 9, 3), email_address (\"swift.kolby@example.com\", \"johns.unique@example.net\", \"erwin.zboncak@example.com\"), date_first_registered (\"1971-02-05 07:28:23\", \"1997-03-20 16:47:25\", \"1971-02-05 07:28:23\"), date_left (\"2017-07-09 21:38:43\", \"2004-12-08 05:29:11\", \"1999-08-24 00:07:10\"), last_name (\"Schuppe\", \"Rogahn\", \"Carroll\"), other_student_details (\"rerum\", \"assumenda\", \"facilis\"), current_address_id (6, 9, 14), cell_mobile_number (\"1-879-796-8987x164\", \"1-009-710-5151\", \"877.549.9067x8723\"), middle_name (\"Judd\", \"Mona\", \"Violet\"), ssn (\"\", \"965\", \"\"), first_name (\"Jett\", \"Milton\", \"Jarvis\") | degree_programs : department_id (15, 15, 8), degree_program_id (6, 12, 6), other_details (None), degree_summary_description (\"aperiam\", \"officiis\", \"officiis\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | Subjects : course_name (\"rs\", \"fr\", \"db\"), other_details (None), course_id (15, 1, 3), course_description (\"c\", \"k\", \"p\") | Modules : course_name (\"rs\", \"fr\", \"db\"), other_details (None), course_id (15, 1, 3), course_description (\"c\", \"k\", \"p\") | student_enrolment : student_enrolment_id (11, 2, 10), degree_program_id (10, 4, 10), student_id (1, 9, 9), other_details (None), semester_id (6, 2, 12) | student_enrolment_courses : course_id (13, 2, 4), student_course_id (76, 7, 70882679), student_enrolment_id (6, 6, 14) | semesters : semester_id (13, 3, 14), semester_name (\"spring 2017\", \"summer 2010\", \"winter 2010\"), semester_description (\"f\", \"w\", \"q\"), other_details (None) | addresses : other_address_details (None), zip_postcode (\"847\", \"148\", \"638\"), line_3 (None), country (\"Lesotho\", \"Cook Islands\", \"Burundi\"), address_id (2, 7, 7), line_2 (\"Suite 703\", \"Apt. 305\", \"Suite 079\"), city (\"Lake Laishafurt\", \"North Omer\", \"Lake Laishafurt\"), state_province_county (\"Kansas\", \"Kansas\", \"SouthDakota\"), line_1 (\"7081 Eda Center\", \"193 Marlin Brook\", \"202 Hessel Views Apt. 468\")", + "schema_without_content": "sections : other_details , section_id , section_description , course_id , section_name | departments : department_name , department_description , other_details , department_id | transcript_contents : student_course_id , transcript_id | transcripts : transcript_id , transcript_date , other_details | students : student_id , permanent_address_id , email_address , date_first_registered , date_left , last_name , other_student_details , current_address_id , cell_mobile_number , middle_name , ssn , first_name | degree_programs : department_id , degree_program_id , other_details , degree_summary_description , degree_summary_name | Subjects : course_name , other_details , course_id , course_description | Modules : course_name , other_details , course_id , course_description | student_enrolment : student_enrolment_id , degree_program_id , student_id , other_details , semester_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | semesters : semester_id , semester_name , semester_description , other_details | addresses : other_address_details , zip_postcode , line_3 , country , address_id , line_2 , city , state_province_county , line_1", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "descriptions for all the math courses": "Courses.course_description" + } + }, + { + "question": "what is the #zip code of the address in the city# port chelsea?", + "db_id": "student_transcripts_tracking", + "orig_query": "select zip_postcode from addresses where city = 'Port Chelsea'", + "schema_with_content": "sections : section_description (\"qui\", \"facilis\", \"ad\"), other_details (None), section_name (\"c\", \"f\", \"l\"), course_id (5, 7, 5), section_id (11, 3, 15) | semesters : semester_name (\"winter 2018\", \"fall 2018\", \"spring 2019\"), semester_id (14, 8, 3), semester_description (\"l\", \"q\", \"c\"), other_details (None) | degree_programs : other_details (None), department_id (7, 14, 8), degree_program_id (1, 11, 6), degree_summary_description (\"architecto\", \"et\", \"earum\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | students : date_first_registered (\"2018-03-13 09:56:22\", \"1989-05-24 23:31:29\", \"2009-09-25 00:14:25\"), last_name (\"Ankunding\", \"Christiansen\", \"Rogahn\"), other_student_details (\"voluptatem\", \"qui\", \"voluptatem\"), ssn (\"494\", \"68095\", \"141072406\"), student_id (7, 15, 2), cell_mobile_number (\"(507)365-8405\", \"(605)919-3594x3661\", \"03174364122\"), middle_name (\"Brooklyn\", \"Golda\", \"Mona\"), permanent_address_id (8, 11, 5), date_left (\"2013-10-05 17:41:28\", \"2007-03-31 09:53:19\", \"2013-10-05 17:41:28\"), email_address (\"nya.lesch@example.net\", \"swift.kolby@example.com\", \"nbruen@example.org\"), first_name (\"Frida\", \"Jordy\", \"Delaney\"), current_address_id (1, 10, 12) | student_enrolment_courses : course_id (3, 11, 13), student_course_id (83814225, 45105806, 681404), student_enrolment_id (14, 13, 2) | transcripts : transcript_date (\"2002-09-24 06:11:49\", \"2013-06-30 13:01:40\", \"2010-12-13 10:55:15\"), transcript_id (11, 13, 5), other_details (None) | Locations : line_3 (None), city (\"Goodwinhaven\", \"Prohaskafort\", \"North Omer\"), line_1 (\"7081 Eda Center\", \"2294 Grant Square Apt. 235\", \"202 Hessel Views Apt. 468\"), line_2 (\"Apt. 406\", \"Suite 079\", \"Apt. 468\"), zip_postcode (\"902\", \"902\", \"943\"), state_province_county (\"Idaho\", \"Florida\", \"NorthCarolina\"), other_address_details (None), address_id (14, 11, 6), country (\"Burundi\", \"Saudi Arabia\", \"Croatia\") | courses : course_description (\"w\", \"w\", \"p\"), course_name (\"en\", \"ai\", \"ml\"), other_details (None), course_id (3, 3, 13) | transcript_contents : transcript_id (13, 9, 4), student_course_id (96, 2, 76) | student_enrolment : semester_id (6, 4, 9), degree_program_id (5, 3, 2), student_id (6, 9, 7), student_enrolment_id (3, 3, 12), other_details (None) | departments : department_description (\"nihil\", \"in\", \"nisi\"), other_details (None), department_id (5, 8, 8), department_name (\"medical\", \"management\", \"management\") | Residences : line_3 (None), city (\"Goodwinhaven\", \"Prohaskafort\", \"North Omer\"), line_1 (\"7081 Eda Center\", \"2294 Grant Square Apt. 235\", \"202 Hessel Views Apt. 468\"), line_2 (\"Apt. 406\", \"Suite 079\", \"Apt. 468\"), zip_postcode (\"902\", \"902\", \"943\"), state_province_county (\"Idaho\", \"Florida\", \"NorthCarolina\"), other_address_details (None), address_id (14, 11, 6), country (\"Burundi\", \"Saudi Arabia\", \"Croatia\")", + "schema_without_content": "sections : section_description , other_details , section_name , course_id , section_id | semesters : semester_name , semester_id , semester_description , other_details | degree_programs : other_details , department_id , degree_program_id , degree_summary_description , degree_summary_name | students : date_first_registered , last_name , other_student_details , ssn , student_id , cell_mobile_number 365-8405\", \"919-3594x3661\", \"03174364122\", middle_name , permanent_address_id , date_left , email_address , first_name , current_address_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | transcripts : transcript_date , transcript_id , other_details | Locations : line_3 , city , line_1 , line_2 , zip_postcode , state_province_county , other_address_details , address_id , country | courses : course_description , course_name , other_details , course_id | transcript_contents : transcript_id , student_course_id | student_enrolment : semester_id , degree_program_id , student_id , student_enrolment_id , other_details | departments : department_description , other_details , department_id , department_name | Residences : line_3 , city , line_1 , line_2 , zip_postcode , state_province_county , other_address_details , address_id , country", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "zip code of the address in the city": "Addresses.zip_postcode" + } + }, + { + "question": "what is the #zip code for port chelsea# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select zip_postcode from addresses where city = 'Port Chelsea'", + "schema_with_content": "Residences : zip_postcode (\"148\", \"895\", \"148\"), state_province_county (\"Wyoming\", \"WestVirginia\", \"Idaho\"), country (\"Saudi Arabia\", \"Gibraltar\", \"Iceland\"), line_3 (None), city (\"South Palma\", \"Prohaskafort\", \"Prohaskafort\"), line_2 (\"Suite 865\", \"Suite 239\", \"Suite 674\"), line_1 (\"202 Hessel Views Apt. 468\", \"74046 Metz Walk Apt. 113\", \"67942 Carlotta Ferry Apt. 686\"), address_id (8, 14, 14), other_address_details (None) | semesters : other_details (None), semester_name (\"spring 2010\", \"winter 2010\", \"fall 2018\"), semester_id (13, 11, 12), semester_description (\"f\", \"w\", \"l\") | student_enrolment_courses : course_id (2, 13, 4), student_enrolment_id (5, 13, 5), student_course_id (8, 0, 1) | transcript_contents : student_course_id (0, 45105806, 7), transcript_id (12, 6, 8) | transcripts : other_details (None), transcript_date (\"1986-07-12 07:27:29\", \"2013-06-30 13:01:40\", \"1985-04-29 01:20:20\"), transcript_id (14, 15, 2) | students : date_left (\"2006-08-04 17:26:49\", \"2013-10-05 17:41:28\", \"1971-05-17 19:28:49\"), date_first_registered (\"2009-09-25 00:14:25\", \"1989-05-24 23:31:29\", \"2014-03-28 05:48:23\"), email_address (\"jillian26@example.net\", \"nbruen@example.org\", \"dell43@example.net\"), current_address_id (15, 2, 9), middle_name (\"Aaliyah\", \"Violet\", \"Aaliyah\"), other_student_details (\"et\", \"omnis\", \"facilis\"), ssn (\"156\", \"\", \"668\"), student_id (13, 5, 13), permanent_address_id (8, 5, 9), cell_mobile_number (\"171-642-5684\", \"877.549.9067x8723\", \"(462)246-7921\"), last_name (\"Weimann\", \"Carroll\", \"Kemmer\"), first_name (\"Jarvis\", \"Delaney\", \"Stanford\") | departments : other_details (None), department_name (\"statistics\", \"math\", \"math\"), department_id (13, 12, 6), department_description (\"nostrum\", \"autem\", \"dolorem\") | student_enrolment : student_enrolment_id (13, 3, 4), other_details (None), student_id (12, 14, 5), semester_id (9, 13, 4), degree_program_id (11, 8, 5) | Locations : zip_postcode (\"148\", \"895\", \"148\"), state_province_county (\"Wyoming\", \"WestVirginia\", \"Idaho\"), country (\"Saudi Arabia\", \"Gibraltar\", \"Iceland\"), line_3 (None), city (\"South Palma\", \"Prohaskafort\", \"Prohaskafort\"), line_2 (\"Suite 865\", \"Suite 239\", \"Suite 674\"), line_1 (\"202 Hessel Views Apt. 468\", \"74046 Metz Walk Apt. 113\", \"67942 Carlotta Ferry Apt. 686\"), address_id (8, 14, 14), other_address_details (None) | sections : other_details (None), section_id (10, 4, 4), section_name (\"j\", \"g\", \"h\"), course_id (1, 9, 5), section_description (\"voluptatem\", \"qui\", \"reprehenderit\") | courses : course_id (10, 2, 5), course_description (\"k\", \"k\", \"w\"), other_details (None), course_name (\"oop\", \"rs\", \"nlp\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"qui\", \"assumenda\", \"architecto\"), other_details (None), department_id (15, 13, 2), degree_program_id (4, 10, 9)", + "schema_without_content": "Residences : zip_postcode , state_province_county , country , line_3 , city , line_2 , line_1 , address_id , other_address_details | semesters : other_details , semester_name , semester_id , semester_description | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | transcript_contents : student_course_id , transcript_id | transcripts : other_details , transcript_date , transcript_id | students : date_left , date_first_registered , email_address , current_address_id , middle_name , other_student_details , ssn , student_id , permanent_address_id , cell_mobile_number 246-7921\", last_name , first_name | departments : other_details , department_name , department_id , department_description | student_enrolment : student_enrolment_id , other_details , student_id , semester_id , degree_program_id | Locations : zip_postcode , state_province_county , country , line_3 , city , line_2 , line_1 , address_id , other_address_details | sections : other_details , section_id , section_name , course_id , section_description | courses : course_id , course_description , other_details , course_name | degree_programs : degree_summary_name , degree_summary_description , other_details , department_id , degree_program_id", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "zip code for Port Chelsea": "Addresses.zip_postcode" + } + }, + { + "question": "which #department# offers the most number of degrees? list #department name# and id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.department_name, t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1", + "schema_with_content": "addresses : zip_postcode (\"148\", \"638\", \"068\"), line_2 (\"Apt. 370\", \"Apt. 305\", \"Apt. 583\"), line_3 (None), line_1 (\"7081 Eda Center\", \"979 Haag Shores Suite 656\", \"7081 Eda Center\"), other_address_details (None), city (\"Lake Careyberg\", \"Port Oceane\", \"Prohaskafort\"), country (\"Iceland\", \"Gabon\", \"Saudi Arabia\"), address_id (11, 8, 1), state_province_county (\"Virginia\", \"Delaware\", \"Wyoming\") | student_enrolment_courses : course_id (4, 8, 8), student_course_id (438800, 8, 9860), student_enrolment_id (5, 8, 9) | schools : other_details (None), department_name (\"art\", \"math\", \"dance\"), department_description (\"in\", \"aliquam\", \"ea\"), department_id (9, 9, 8) | faculties : other_details (None), department_name (\"art\", \"math\", \"dance\"), department_description (\"in\", \"aliquam\", \"ea\"), department_id (9, 9, 8) | students : middle_name (\"Mossie\", \"Brooklyn\", \"Alberta\"), current_address_id (7, 2, 1), cell_mobile_number (\"877.549.9067x8723\", \"(096)889-8954x524\", \"(507)365-8405\"), other_student_details (\"laborum\", \"assumenda\", \"assumenda\"), permanent_address_id (3, 15, 14), ssn (\"248\", \"248\", \"304246\"), last_name (\"Rogahn\", \"Huel\", \"Jaskolski\"), email_address (\"qo'kon@example.com\", \"erwin.zboncak@example.com\", \"lhartmann@example.org\"), date_left (\"1982-06-11 00:25:39\", \"2004-12-08 05:29:11\", \"2007-08-02 04:12:58\"), first_name (\"Hobart\", \"Stanford\", \"Jarvis\"), student_id (1, 5, 8), date_first_registered (\"1971-02-05 07:28:23\", \"1989-05-24 23:31:29\", \"2017-01-04 08:10:25\") | transcripts : transcript_date (\"1975-05-06 12:04:47\", \"1975-05-20 18:31:21\", \"1984-12-19 00:37:21\"), transcript_id (3, 2, 7), other_details (None) | student_enrolment : student_enrolment_id (6, 12, 8), student_id (9, 5, 14), other_details (None), degree_program_id (9, 4, 9), semester_id (12, 9, 5) | courses : course_id (3, 7, 9), other_details (None), course_description (\"c\", \"p\", \"l\"), course_name (\"ai\", \"nlp\", \"pl\") | transcript_contents : student_course_id (70882679, 70882679, 7), transcript_id (8, 6, 11) | sections : course_id (7, 10, 2), section_id (1, 9, 13), other_details (None), section_description (\"ad\", \"provident\", \"voluptas\"), section_name (\"u\", \"u\", \"f\") | semesters : other_details (None), semester_name (\"spring 2014\", \"fall 2010\", \"spring 2016\"), semester_id (7, 1, 15), semester_description (\"m\", \"q\", \"g\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (7, 8, 13), degree_summary_description (\"esse\", \"qui\", \"architecto\"), degree_program_id (11, 2, 8), other_details (None)", + "schema_without_content": "addresses : zip_postcode , line_2 , line_3 , line_1 , other_address_details , city , country , address_id , state_province_county | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | schools : other_details , department_name , department_description , department_id | faculties : other_details , department_name , department_description , department_id | students : middle_name , current_address_id , cell_mobile_number 889-8954x524\", \"365-8405\", other_student_details , permanent_address_id , ssn , last_name , email_address , date_left , first_name , student_id , date_first_registered | transcripts : transcript_date , transcript_id , other_details | student_enrolment : student_enrolment_id , student_id , other_details , degree_program_id , semester_id | courses : course_id , other_details , course_description , course_name | transcript_contents : student_course_id , transcript_id | sections : course_id , section_id , other_details , section_description , section_name | semesters : other_details , semester_name , semester_id , semester_description | degree_programs : degree_summary_name , department_id , degree_summary_description , degree_program_id , other_details", + "extra_map": null, + "extra_table_map": { + "departments": [ + "faculties", + "schools" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "department": "Departments", + "department name": "Departments.department_name", + "department id": "Degree_Programs.department_id" + } + }, + { + "question": "which #department# offers the most number of degrees? list #department name# and id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.department_name, t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1", + "schema_with_content": "student_enrolment : degree_program_id (2, 12, 12), semester_id (12, 2, 2), other_details (None), student_enrolment_id (14, 1, 6), student_id (14, 4, 6) | transcripts : transcript_date (\"1985-08-21 09:32:39\", \"1999-01-06 20:06:46\", \"1998-11-22 12:18:29\"), transcript_id (9, 13, 2), other_details (None) | courses : course_name (\"ml\", \"ml\", \"rs\"), course_id (2, 10, 6), other_details (None), course_description (\"n\", \"d\", \"p\") | students : permanent_address_id (4, 3, 9), current_address_id (12, 9, 2), ssn (\"3\", \"6274274\", \"494\"), date_first_registered (\"1973-05-19 19:12:46\", \"2018-03-13 09:56:22\", \"2018-03-13 09:56:22\"), cell_mobile_number (\"(213)445-0399x85208\", \"171-642-5684\", \"(096)889-8954x524\"), last_name (\"Christiansen\", \"Mohr\", \"Kemmer\"), middle_name (\"Osborne\", \"Anna\", \"Aisha\"), student_id (12, 5, 12), email_address (\"jhuel@example.com\", \"jhuel@example.com\", \"johns.unique@example.net\"), other_student_details (\"laborum\", \"et\", \"rerum\"), first_name (\"Orrin\", \"Reva\", \"Jett\"), date_left (\"2017-07-09 21:38:43\", \"2017-07-09 21:38:43\", \"2014-05-30 23:32:02\") | Academic_Programs : degree_summary_description (\"officiis\", \"quam\", \"qui\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (8, 12, 4), department_id (7, 4, 15), other_details (None) | semesters : semester_description (\"y\", \"l\", \"f\"), other_details (None), semester_id (11, 2, 2), semester_name (\"spring 2015\", \"summer 2010\", \"spring 2010\") | departments : department_name (\"drama\", \"geography\", \"economics\"), other_details (None), department_description (\"nostrum\", \"nihil\", \"error\"), department_id (7, 7, 13) | sections : section_id (15, 1, 3), course_id (8, 14, 10), section_name (\"o\", \"p\", \"a\"), section_description (\"facilis\", \"non\", \"non\"), other_details (None) | student_enrolment_courses : student_enrolment_id (6, 4, 13), course_id (3, 12, 11), student_course_id (28982908, 604750, 2) | transcript_contents : transcript_id (13, 5, 15), student_course_id (76, 76, 0) | addresses : line_2 (\"Suite 239\", \"Suite 239\", \"Apt. 388\"), other_address_details (None), address_id (9, 13, 6), country (\"Croatia\", \"Gabon\", \"Lesotho\"), line_3 (None), zip_postcode (\"669\", \"400\", \"839\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"492 Wilkinson Route\", \"2294 Grant Square Apt. 235\"), state_province_county (\"Wyoming\", \"Delaware\", \"Virginia\"), city (\"Rutherfordtown\", \"Port Oceane\", \"Goodwinhaven\") | Majors : degree_summary_description (\"officiis\", \"quam\", \"qui\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (8, 12, 4), department_id (7, 4, 15), other_details (None)", + "schema_without_content": "student_enrolment : degree_program_id , semester_id , other_details , student_enrolment_id , student_id | transcripts : transcript_date , transcript_id , other_details | courses : course_name , course_id , other_details , course_description | students : permanent_address_id , current_address_id , ssn , date_first_registered , cell_mobile_number 445-0399x85208\", \"171-642-5684\", \"889-8954x524\", last_name , middle_name , student_id , email_address , other_student_details , first_name , date_left | Academic_Programs : degree_summary_description , degree_summary_name , degree_program_id , department_id , other_details | semesters : semester_description , other_details , semester_id , semester_name | departments : department_name , other_details , department_description , department_id | sections : section_id , course_id , section_name , section_description , other_details | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcript_contents : transcript_id , student_course_id | addresses : line_2 , other_address_details , address_id , country , line_3 , zip_postcode , line_1 , state_province_county , city | Majors : degree_summary_description , degree_summary_name , degree_program_id , department_id , other_details", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "department": "Departments", + "department name": "Departments.department_name", + "department id": "Degree_Programs.department_id" + } + }, + { + "question": "how many #degrees# does the #engineering department# offer?", + "db_id": "student_transcripts_tracking", + "orig_query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", + "schema_with_content": "degree_programs : department_id (11, 8, 8), other_details (None), degree_summary_description (\"cumque\", \"assumenda\", \"et\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (6, 7, 6) | addresses : country (\"Iceland\", \"New Caledonia\", \"New Caledonia\"), line_3 (None), city (\"Michelleburgh\", \"Port Chelsea\", \"Herzoghaven\"), line_1 (\"979 Haag Shores Suite 656\", \"492 Wilkinson Route\", \"202 Hessel Views Apt. 468\"), state_province_county (\"NorthCarolina\", \"Hawaii\", \"WestVirginia\"), other_address_details (None), line_2 (\"Apt. 370\", \"Apt. 305\", \"Suite 239\"), address_id (13, 3, 1), zip_postcode (\"847\", \"400\", \"895\") | faculties : department_id (3, 14, 8), other_details (None), department_name (\"drama\", \"linguistic\", \"linguistic\"), department_description (\"consequatur\", \"consequatur\", \"nostrum\") | courses : course_id (6, 8, 9), other_details (None), course_name (\"pl\", \"dl\", \"oop\"), course_description (\"k\", \"v\", \"p\") | schools : department_id (3, 14, 8), other_details (None), department_name (\"drama\", \"linguistic\", \"linguistic\"), department_description (\"consequatur\", \"consequatur\", \"nostrum\") | sections : course_id (8, 14, 2), other_details (None), section_name (\"c\", \"h\", \"h\"), section_id (12, 8, 5), section_description (\"doloremque\", \"voluptas\", \"facilis\") | student_enrolment : degree_program_id (5, 10, 11), student_enrolment_id (8, 12, 9), student_id (6, 5, 9), other_details (None), semester_id (4, 9, 12) | transcript_contents : transcript_id (5, 12, 5), student_course_id (0, 0, 45105806) | students : current_address_id (6, 10, 7), date_left (\"2014-05-30 23:32:02\", \"2013-10-05 17:41:28\", \"1997-11-16 08:54:33\"), email_address (\"johns.unique@example.net\", \"nbruen@example.org\", \"jhuel@example.com\"), date_first_registered (\"2005-12-15 08:42:10\", \"1982-06-19 13:15:18\", \"1982-06-19 13:15:18\"), cell_mobile_number (\"877.549.9067x8723\", \"07661787471\", \"(213)445-0399x85208\"), permanent_address_id (9, 4, 9), student_id (7, 3, 6), last_name (\"Rempel\", \"Balistreri\", \"Carroll\"), ssn (\"668\", \"156\", \"156\"), other_student_details (\"laborum\", \"autem\", \"et\"), middle_name (\"Mona\", \"Mossie\", \"Judd\"), first_name (\"Orrin\", \"Stanford\", \"Deon\") | semesters : semester_id (5, 2, 14), other_details (None), semester_name (\"spring 2015\", \"winter 2018\", \"summer 2010\"), semester_description (\"l\", \"l\", \"w\") | student_enrolment_courses : student_enrolment_id (8, 5, 13), student_course_id (28982908, 83814225, 70882679), course_id (14, 14, 14) | transcripts : transcript_id (12, 8, 10), other_details (None), transcript_date (\"2010-12-13 10:55:15\", \"1998-11-22 12:18:29\", \"2002-09-24 06:11:49\")", + "schema_without_content": "degree_programs : department_id , other_details , degree_summary_description , degree_summary_name , degree_program_id | addresses : country , line_3 , city , line_1 , state_province_county , other_address_details , line_2 , address_id , zip_postcode | faculties : department_id , other_details , department_name , department_description | courses : course_id , other_details , course_name , course_description | schools : department_id , other_details , department_name , department_description | sections : course_id , other_details , section_name , section_id , section_description | student_enrolment : degree_program_id , student_enrolment_id , student_id , other_details , semester_id | transcript_contents : transcript_id , student_course_id | students : current_address_id , date_left , email_address , date_first_registered , cell_mobile_number 445-0399x85208\", permanent_address_id , student_id , last_name , ssn , other_student_details , middle_name , first_name | semesters : semester_id , other_details , semester_name , semester_description | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | transcripts : transcript_id , other_details , transcript_date", + "extra_map": null, + "extra_table_map": { + "departments": [ + "faculties", + "schools" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "degrees": "Degree_Programs", + "engineering department": "Departments.department_name" + } + }, + { + "question": "how many #degrees# does the #engineering department# offer?", + "db_id": "student_transcripts_tracking", + "orig_query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", + "schema_with_content": "sections : course_id (4, 12, 4), other_details (None), section_id (5, 6, 14), section_description (\"voluptatem\", \"reprehenderit\", \"voluptas\"), section_name (\"d\", \"c\", \"a\") | Majors : other_details (None), degree_program_id (11, 14, 2), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"placeat\", \"aperiam\", \"quam\"), department_id (4, 3, 11) | transcripts : transcript_date (\"1990-03-05 11:59:41\", \"2010-12-13 10:55:15\", \"1984-12-19 00:37:21\"), other_details (None), transcript_id (12, 1, 1) | student_enrolment : semester_id (13, 9, 2), student_enrolment_id (1, 14, 1), student_id (7, 12, 5), other_details (None), degree_program_id (11, 10, 12) | transcript_contents : transcript_id (12, 13, 2), student_course_id (7, 8, 96) | semesters : semester_description (\"c\", \"q\", \"m\"), semester_name (\"spring 2012\", \"summer 2010\", \"spring 2010\"), semester_id (6, 13, 11), other_details (None) | addresses : country (\"Kyrgyz Republic\", \"Gibraltar\", \"Saudi Arabia\"), zip_postcode (\"541\", \"847\", \"446\"), line_1 (\"16998 Mraz Lodge\", \"202 Hessel Views Apt. 468\", \"2294 Grant Square Apt. 235\"), address_id (9, 11, 10), line_2 (\"Suite 674\", \"Suite 674\", \"Suite 830\"), city (\"South Palma\", \"North Omer\", \"Rutherfordtown\"), state_province_county (\"NorthCarolina\", \"Delaware\", \"Virginia\"), line_3 (None), other_address_details (None) | courses : other_details (None), course_description (\"c\", \"p\", \"l\"), course_id (9, 5, 5), course_name (\"db\", \"nlp\", \"fr\") | departments : department_description (\"natus\", \"natus\", \"nisi\"), department_name (\"geography\", \"geography\", \"management\"), department_id (6, 10, 13), other_details (None) | students : middle_name (\"Mossie\", \"Violet\", \"Golda\"), last_name (\"Gleichner\", \"Ankunding\", \"Huel\"), other_student_details (\"rerum\", \"dolorum\", \"omnis\"), ssn (\"34458427\", \"494\", \"43\"), email_address (\"jillian26@example.net\", \"jhuel@example.com\", \"nbruen@example.org\"), cell_mobile_number (\"(605)919-3594x3661\", \"(982)153-1469x1733\", \"(096)889-8954x524\"), permanent_address_id (9, 3, 5), date_left (\"2006-08-04 17:26:49\", \"2007-08-02 04:12:58\", \"1990-09-01 05:03:27\"), student_id (12, 6, 4), date_first_registered (\"1976-10-26 02:33:06\", \"2017-01-04 08:10:25\", \"1982-06-19 13:15:18\"), current_address_id (7, 2, 1), first_name (\"Timmothy\", \"Jordy\", \"Helga\") | student_enrolment_courses : course_id (3, 14, 14), student_enrolment_id (6, 14, 13), student_course_id (28982908, 9860, 681404) | Academic_Programs : other_details (None), degree_program_id (11, 14, 2), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"placeat\", \"aperiam\", \"quam\"), department_id (4, 3, 11)", + "schema_without_content": "sections : course_id , other_details , section_id , section_description , section_name | Majors : other_details , degree_program_id , degree_summary_name , degree_summary_description , department_id | transcripts : transcript_date , other_details , transcript_id | student_enrolment : semester_id , student_enrolment_id , student_id , other_details , degree_program_id | transcript_contents : transcript_id , student_course_id | semesters : semester_description , semester_name , semester_id , other_details | addresses : country , zip_postcode , line_1 , address_id , line_2 , city , state_province_county , line_3 , other_address_details | courses : other_details , course_description , course_id , course_name | departments : department_description , department_name , department_id , other_details | students : middle_name , last_name , other_student_details , ssn , email_address , cell_mobile_number 919-3594x3661\", \"153-1469x1733\", \"889-8954x524\", permanent_address_id , date_left , student_id , date_first_registered , current_address_id , first_name | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | Academic_Programs : other_details , degree_program_id , degree_summary_name , degree_summary_description , department_id", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "degrees": "Degree_Programs", + "engineering department": "Departments.department_name" + } + }, + { + "question": "how many #degrees# does the #engineering department# have?", + "db_id": "student_transcripts_tracking", + "orig_query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", + "schema_with_content": "transcripts : transcript_id (4, 4, 3), transcript_date (\"1985-04-29 01:20:20\", \"1988-04-30 01:19:47\", \"1975-05-06 12:04:47\"), other_details (None) | students : email_address (\"beth42@example.org\", \"swift.kolby@example.com\", \"beth42@example.org\"), first_name (\"Helga\", \"Jordy\", \"Helga\"), middle_name (\"Violet\", \"Osborne\", \"Aaliyah\"), date_first_registered (\"1982-02-14 08:46:35\", \"2017-01-04 08:10:25\", \"2005-12-15 08:42:10\"), current_address_id (6, 15, 7), last_name (\"Kemmer\", \"Jaskolski\", \"Jaskolski\"), student_id (9, 2, 12), date_left (\"2014-05-30 23:32:02\", \"1982-06-11 00:25:39\", \"1990-09-01 05:03:27\"), permanent_address_id (5, 14, 3), cell_mobile_number (\"(507)365-8405\", \"436.613.7683\", \"1-009-710-5151\"), other_student_details (\"nesciunt\", \"dolorum\", \"voluptatem\"), ssn (\"248\", \"39\", \"68095\") | semesters : semester_description (\"f\", \"x\", \"g\"), other_details (None), semester_name (\"spring 2018\", \"spring 2012\", \"spring 2010\"), semester_id (4, 7, 14) | transcript_contents : student_course_id (2, 70882679, 96), transcript_id (8, 13, 11) | student_enrolment : other_details (None), student_enrolment_id (4, 9, 10), student_id (14, 5, 1), semester_id (5, 6, 13), degree_program_id (4, 2, 9) | student_enrolment_courses : student_course_id (8, 438800, 70882679), course_id (10, 2, 8), student_enrolment_id (4, 4, 9) | addresses : other_address_details (None), line_1 (\"2294 Grant Square Apt. 235\", \"858 Peggie Bypass Suite 212\", \"7081 Eda Center\"), line_2 (\"Suite 239\", \"Apt. 689\", \"Suite 079\"), address_id (9, 6, 4), line_3 (None), state_province_county (\"SouthDakota\", \"SouthDakota\", \"Kentucky\"), zip_postcode (\"839\", \"943\", \"386\"), city (\"Herzoghaven\", \"Lake Careyberg\", \"Rutherfordtown\"), country (\"Gibraltar\", \"Iceland\", \"New Caledonia\") | degree_programs : department_id (2, 11, 4), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"earum\", \"architecto\", \"qui\"), other_details (None), degree_program_id (1, 2, 2) | schools : other_details (None), department_description (\"dolorem\", \"aliquam\", \"natus\"), department_name (\"biology\", \"economics\", \"history\"), department_id (12, 4, 11) | faculties : other_details (None), department_description (\"dolorem\", \"aliquam\", \"natus\"), department_name (\"biology\", \"economics\", \"history\"), department_id (12, 4, 11) | courses : course_name (\"nlp\", \"nlp\", \"oop\"), course_id (11, 5, 4), course_description (\"k\", \"p\", \"c\"), other_details (None) | sections : other_details (None), section_name (\"l\", \"g\", \"o\"), course_id (4, 10, 5), section_description (\"provident\", \"non\", \"quis\"), section_id (14, 12, 5)", + "schema_without_content": "transcripts : transcript_id , transcript_date , other_details | students : email_address , first_name , middle_name , date_first_registered , current_address_id , last_name , student_id , date_left , permanent_address_id , cell_mobile_number 365-8405\", \"436.613.7683\", \"1-009-710-5151\", other_student_details , ssn | semesters : semester_description , other_details , semester_name , semester_id | transcript_contents : student_course_id , transcript_id | student_enrolment : other_details , student_enrolment_id , student_id , semester_id , degree_program_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | addresses : other_address_details , line_1 , line_2 , address_id , line_3 , state_province_county , zip_postcode , city , country | degree_programs : department_id , degree_summary_name , degree_summary_description , other_details , degree_program_id | schools : other_details , department_description , department_name , department_id | faculties : other_details , department_description , department_name , department_id | courses : course_name , course_id , course_description , other_details | sections : other_details , section_name , course_id , section_description , section_id", + "extra_map": null, + "extra_table_map": { + "departments": [ + "faculties", + "schools" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "degrees": "Degree_Programs", + "engineering department": "Departments.department_name" + } + }, + { + "question": "how many #degrees# does the #engineering department# have?", + "db_id": "student_transcripts_tracking", + "orig_query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", + "schema_with_content": "transcripts : other_details (None), transcript_id (13, 12, 6), transcript_date (\"1985-08-21 09:32:39\", \"1985-04-29 01:20:20\", \"2013-06-30 13:01:40\") | student_enrolment_courses : student_enrolment_id (5, 2, 8), course_id (2, 12, 12), student_course_id (0, 70882679, 604750) | transcript_contents : student_course_id (0, 70882679, 45105806), transcript_id (9, 13, 9) | students : email_address (\"mya88@example.org\", \"dell43@example.net\", \"skassulke@example.net\"), first_name (\"Hobart\", \"Jordy\", \"Frida\"), permanent_address_id (14, 3, 9), ssn (\"\", \"402\", \"3\"), date_first_registered (\"1973-05-19 19:12:46\", \"2018-03-13 09:56:22\", \"1986-02-24 21:12:23\"), student_id (12, 11, 13), current_address_id (12, 10, 2), last_name (\"Jaskolski\", \"Weimann\", \"Gleichner\"), cell_mobile_number (\"03174364122\", \"877.549.9067x8723\", \"(096)889-8954x524\"), other_student_details (\"autem\", \"autem\", \"non\"), middle_name (\"Anna\", \"Golda\", \"Aisha\"), date_left (\"2007-08-02 04:12:58\", \"2013-10-05 17:41:28\", \"2007-08-02 04:12:58\") | sections : section_description (\"provident\", \"ad\", \"voluptatem\"), course_id (2, 12, 5), section_id (1, 1, 8), section_name (\"a\", \"k\", \"d\"), other_details (None) | addresses : state_province_county (\"WestVirginia\", \"Delaware\", \"Wyoming\"), zip_postcode (\"669\", \"068\", \"400\"), country (\"Kyrgyz Republic\", \"New Caledonia\", \"Burundi\"), line_3 (None), line_1 (\"16998 Mraz Lodge\", \"7081 Eda Center\", \"858 Peggie Bypass Suite 212\"), city (\"Port Evanston\", \"Mariliehaven\", \"Lake Careyberg\"), line_2 (\"Suite 674\", \"Apt. 370\", \"Apt. 305\"), address_id (15, 13, 11), other_address_details (None) | Academic_Programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (4, 11, 6), degree_summary_description (\"unde\", \"esse\", \"quam\"), department_id (14, 8, 15), other_details (None) | departments : department_name (\"medical\", \"engineer\", \"medical\"), other_details (None), department_description (\"autem\", \"in\", \"doloribus\"), department_id (13, 12, 11) | courses : course_name (\"pl\", \"rs\", \"la\"), course_description (\"l\", \"c\", \"d\"), course_id (11, 1, 8), other_details (None) | Majors : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (4, 11, 6), degree_summary_description (\"unde\", \"esse\", \"quam\"), department_id (14, 8, 15), other_details (None) | student_enrolment : degree_program_id (10, 8, 8), student_id (6, 14, 12), other_details (None), semester_id (6, 5, 4), student_enrolment_id (5, 2, 10) | semesters : semester_id (13, 15, 7), semester_name (\"winter 2018\", \"spring 2014\", \"winter 2018\"), other_details (None), semester_description (\"t\", \"l\", \"q\")", + "schema_without_content": "transcripts : other_details , transcript_id , transcript_date | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcript_contents : student_course_id , transcript_id | students : email_address , first_name , permanent_address_id , ssn , date_first_registered , student_id , current_address_id , last_name , cell_mobile_number 889-8954x524\", other_student_details , middle_name , date_left | sections : section_description , course_id , section_id , section_name , other_details | addresses : state_province_county , zip_postcode , country , line_3 , line_1 , city , line_2 , address_id , other_address_details | Academic_Programs : degree_summary_name , degree_program_id , degree_summary_description , department_id , other_details | departments : department_name , other_details , department_description , department_id | courses : course_name , course_description , course_id , other_details | Majors : degree_summary_name , degree_program_id , degree_summary_description , department_id , other_details | student_enrolment : degree_program_id , student_id , other_details , semester_id , student_enrolment_id | semesters : semester_id , semester_name , other_details , semester_description", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "degrees": "Degree_Programs", + "engineering department": "Departments.department_name" + } + }, + { + "question": "what are the #names# and #id# of courses having at most 2 #sections# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name, t1.course_id from courses as t1 join sections as t2 on t1.course_id = t2.course_id group by t1.course_id having count(*) <= 2", + "schema_with_content": "student_enrolment : other_details (None), degree_program_id (4, 2, 3), student_enrolment_id (9, 5, 9), semester_id (15, 2, 13), student_id (14, 9, 1) | Modules : course_description (\"b\", \"c\", \"b\"), course_name (\"fr\", \"ds\", \"rs\"), course_id (2, 1, 9), other_details (None) | students : first_name (\"Gregg\", \"Orrin\", \"Milton\"), other_student_details (\"non\", \"nesciunt\", \"dolorum\"), ssn (\"39\", \"668\", \"156\"), email_address (\"baumbach.lucious@example.org\", \"lhartmann@example.org\", \"skassulke@example.net\"), cell_mobile_number (\"1-879-796-8987x164\", \"(462)246-7921\", \"1-009-710-5151\"), current_address_id (1, 7, 12), date_left (\"1982-06-11 00:25:39\", \"2017-07-09 21:38:43\", \"2007-03-31 09:53:19\"), last_name (\"Ankunding\", \"Jaskolski\", \"Schuppe\"), student_id (1, 6, 8), date_first_registered (\"1997-03-20 16:47:25\", \"2009-09-25 00:14:25\", \"1973-05-19 19:12:46\"), middle_name (\"Neal\", \"Vaughn\", \"Neal\"), permanent_address_id (4, 15, 15) | sections : section_id (12, 5, 11), course_id (2, 4, 10), section_description (\"doloremque\", \"voluptatem\", \"provident\"), section_name (\"j\", \"o\", \"c\"), other_details (None) | departments : other_details (None), department_description (\"consequatur\", \"ea\", \"aliquam\"), department_name (\"linguistic\", \"dance\", \"management\"), department_id (13, 6, 12) | degree_programs : degree_program_id (4, 8, 9), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (4, 14, 2), degree_summary_description (\"aut\", \"aperiam\", \"esse\"), other_details (None) | addresses : country (\"Bermuda\", \"Haiti\", \"Croatia\"), line_1 (\"9283 Schulist Falls Apt. 037\", \"0144 Lamar Plaza Apt. 346\", \"492 Wilkinson Route\"), city (\"Lake Careyberg\", \"Port Chelsea\", \"North Omer\"), line_2 (\"Apt. 468\", \"Suite 079\", \"Suite 239\"), zip_postcode (\"400\", \"541\", \"590\"), address_id (5, 8, 7), other_address_details (None), state_province_county (\"Kansas\", \"WestVirginia\", \"Idaho\"), line_3 (None) | transcript_contents : student_course_id (70882679, 76, 28982908), transcript_id (4, 13, 6) | semesters : semester_id (4, 10, 1), semester_description (\"f\", \"m\", \"f\"), semester_name (\"winter 2010\", \"spring 2013\", \"spring 2016\"), other_details (None) | Subjects : course_description (\"b\", \"c\", \"b\"), course_name (\"fr\", \"ds\", \"rs\"), course_id (2, 1, 9), other_details (None) | student_enrolment_courses : student_enrolment_id (5, 6, 10), course_id (6, 12, 10), student_course_id (83814225, 76, 7) | transcripts : transcript_date (\"1984-01-18 23:07:07\", \"1986-07-12 07:27:29\", \"1975-05-20 18:31:21\"), transcript_id (3, 6, 5), other_details (None)", + "schema_without_content": "student_enrolment : other_details , degree_program_id , student_enrolment_id , semester_id , student_id | Modules : course_description , course_name , course_id , other_details | students : first_name , other_student_details , ssn , email_address , cell_mobile_number 246-7921\", \"1-009-710-5151\", current_address_id , date_left , last_name , student_id , date_first_registered , middle_name , permanent_address_id | sections : section_id , course_id , section_description , section_name , other_details | departments : other_details , department_description , department_name , department_id | degree_programs : degree_program_id , degree_summary_name , department_id , degree_summary_description , other_details | addresses : country , line_1 , city , line_2 , zip_postcode , address_id , other_address_details , state_province_county , line_3 | transcript_contents : student_course_id , transcript_id | semesters : semester_id , semester_description , semester_name , other_details | Subjects : course_description , course_name , course_id , other_details | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcripts : transcript_date , transcript_id , other_details", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "names": "Courses.course_name", + "id": "Courses.course_id", + "sections": "Sections" + } + }, + { + "question": "what are the #names# and #id# of courses having at most 2 #sections# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name, t1.course_id from courses as t1 join sections as t2 on t1.course_id = t2.course_id group by t1.course_id having count(*) <= 2", + "schema_with_content": "semesters : other_details (None), semester_description (\"q\", \"l\", \"o\"), semester_id (13, 9, 9), semester_name (\"spring 2017\", \"spring 2015\", \"winter 2018\") | addresses : line_2 (\"Apt. 583\", \"Apt. 468\", \"Suite 239\"), country (\"Angola\", \"Samoa\", \"Angola\"), other_address_details (None), line_3 (None), city (\"North Omer\", \"Port Oceane\", \"Lake Careyberg\"), line_1 (\"2294 Grant Square Apt. 235\", \"74046 Metz Walk Apt. 113\", \"492 Wilkinson Route\"), state_province_county (\"WestVirginia\", \"Washington\", \"Virginia\"), address_id (12, 1, 3), zip_postcode (\"847\", \"446\", \"943\") | departments : department_description (\"consequatur\", \"autem\", \"error\"), department_name (\"computer science\", \"geography\", \"biology\"), department_id (12, 13, 3), other_details (None) | Classes : section_id (8, 15, 9), section_description (\"doloremque\", \"quis\", \"doloremque\"), other_details (None), course_id (4, 6, 10), section_name (\"e\", \"c\", \"y\") | transcripts : transcript_date (\"2013-06-30 13:01:40\", \"1998-11-22 12:18:29\", \"2002-09-24 06:11:49\"), other_details (None), transcript_id (14, 7, 1) | courses : course_id (6, 2, 5), other_details (None), course_description (\"p\", \"b\", \"k\"), course_name (\"ml\", \"dl\", \"fr\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (9, 11, 10), degree_summary_description (\"esse\", \"placeat\", \"qui\"), department_id (7, 12, 7), other_details (None) | transcript_contents : student_course_id (2, 28982908, 2), transcript_id (4, 5, 13) | student_enrolment : student_enrolment_id (12, 13, 5), student_id (12, 12, 12), other_details (None), semester_id (1, 12, 6), degree_program_id (12, 12, 3) | students : date_first_registered (\"1997-03-20 16:47:25\", \"2007-08-29 23:25:41\", \"2018-03-13 09:56:22\"), cell_mobile_number (\"877.549.9067x8723\", \"(605)919-3594x3661\", \"677.401.9382\"), permanent_address_id (3, 8, 5), student_id (4, 8, 10), date_left (\"1997-11-16 08:54:33\", \"2007-08-02 04:12:58\", \"1990-09-01 05:03:27\"), current_address_id (7, 7, 12), first_name (\"Delaney\", \"Orrin\", \"Jett\"), other_student_details (\"assumenda\", \"dolorum\", \"facilis\"), email_address (\"baumbach.lucious@example.org\", \"baumbach.lucious@example.org\", \"nbruen@example.org\"), middle_name (\"Alberta\", \"Mona\", \"Alberta\"), ssn (\"68095\", \"68095\", \"39\"), last_name (\"Rempel\", \"Ward\", \"Rempel\") | student_enrolment_courses : course_id (11, 4, 13), student_enrolment_id (5, 13, 5), student_course_id (1, 7, 438800) | Sessions : section_id (8, 15, 9), section_description (\"doloremque\", \"quis\", \"doloremque\"), other_details (None), course_id (4, 6, 10), section_name (\"e\", \"c\", \"y\")", + "schema_without_content": "semesters : other_details , semester_description , semester_id , semester_name | addresses : line_2 , country , other_address_details , line_3 , city , line_1 , state_province_county , address_id , zip_postcode | departments : department_description , department_name , department_id , other_details | Classes : section_id , section_description , other_details , course_id , section_name | transcripts : transcript_date , other_details , transcript_id | courses : course_id , other_details , course_description , course_name | degree_programs : degree_summary_name , degree_program_id , degree_summary_description , department_id , other_details | transcript_contents : student_course_id , transcript_id | student_enrolment : student_enrolment_id , student_id , other_details , semester_id , degree_program_id | students : date_first_registered , cell_mobile_number 919-3594x3661\", \"677.401.9382\", permanent_address_id , student_id , date_left , current_address_id , first_name , other_student_details , email_address , middle_name , ssn , last_name | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | Sessions : section_id , section_description , other_details , course_id , section_name", + "extra_map": null, + "extra_table_map": { + "sections": [ + "Classes", + "Sessions" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "Courses.course_name", + "id": "Courses.course_id", + "sections": "Sections" + } + }, + { + "question": "what are the #names# and #ids# of every #course# with less than 2 #sections# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name, t1.course_id from courses as t1 join sections as t2 on t1.course_id = t2.course_id group by t1.course_id having count(*) <= 2", + "schema_with_content": "transcripts : other_details (None), transcript_id (4, 7, 14), transcript_date (\"1988-04-30 01:19:47\", \"1986-07-12 07:27:29\", \"1998-11-22 12:18:29\") | semesters : semester_id (1, 11, 4), semester_description (\"w\", \"x\", \"f\"), other_details (None), semester_name (\"fall 2010\", \"fall 2018\", \"fall 2010\") | departments : department_name (\"math\", \"linguistic\", \"dance\"), other_details (None), department_description (\"error\", \"autem\", \"consequatur\"), department_id (2, 11, 14) | students : date_left (\"2004-12-08 05:29:11\", \"2007-08-02 04:12:58\", \"1975-10-09 00:49:27\"), cell_mobile_number (\"(462)246-7921\", \"(096)889-8954x524\", \"(507)365-8405\"), current_address_id (9, 10, 12), email_address (\"baumbach.lucious@example.org\", \"beth42@example.org\", \"baumbach.lucious@example.org\"), first_name (\"Orrin\", \"Gregg\", \"Frida\"), last_name (\"Jaskolski\", \"Weimann\", \"Weimann\"), other_student_details (\"nesciunt\", \"voluptatem\", \"facilis\"), permanent_address_id (11, 15, 15), date_first_registered (\"2017-01-04 08:10:25\", \"1982-06-19 13:15:18\", \"2009-09-25 00:14:25\"), middle_name (\"Anna\", \"Alberta\", \"Judd\"), ssn (\"34458427\", \"39\", \"668\"), student_id (5, 14, 4) | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (6, 9, 4), department_id (2, 8, 15), other_details (None), degree_summary_description (\"unde\", \"aperiam\", \"aperiam\") | sections : section_name (\"j\", \"b\", \"a\"), other_details (None), course_id (12, 12, 9), section_description (\"et\", \"facilis\", \"ad\"), section_id (8, 9, 12) | student_enrolment : student_enrolment_id (2, 4, 9), semester_id (9, 1, 5), student_id (1, 9, 14), other_details (None), degree_program_id (9, 8, 10) | transcript_contents : transcript_id (13, 9, 5), student_course_id (70882679, 28982908, 70882679) | Modules : course_description (\"w\", \"c\", \"p\"), other_details (None), course_name (\"cal\", \"pl\", \"db\"), course_id (14, 5, 13) | student_enrolment_courses : student_enrolment_id (4, 9, 5), student_course_id (1, 83814225, 76), course_id (2, 13, 8) | Subjects : course_description (\"w\", \"c\", \"p\"), other_details (None), course_name (\"cal\", \"pl\", \"db\"), course_id (14, 5, 13) | addresses : zip_postcode (\"068\", \"148\", \"669\"), address_id (1, 2, 5), other_address_details (None), country (\"Burundi\", \"Samoa\", \"Bermuda\"), state_province_county (\"Idaho\", \"Virginia\", \"WestVirginia\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"16998 Mraz Lodge\", \"193 Marlin Brook\"), line_3 (None), line_2 (\"Apt. 468\", \"Suite 239\", \"Suite 865\"), city (\"Port Evanston\", \"Herzoghaven\", \"Rutherfordtown\")", + "schema_without_content": "transcripts : other_details , transcript_id , transcript_date | semesters : semester_id , semester_description , other_details , semester_name | departments : department_name , other_details , department_description , department_id | students : date_left , cell_mobile_number 246-7921\", \"889-8954x524\", \"365-8405\", current_address_id , email_address , first_name , last_name , other_student_details , permanent_address_id , date_first_registered , middle_name , ssn , student_id | degree_programs : degree_summary_name , degree_program_id , department_id , other_details , degree_summary_description | sections : section_name , other_details , course_id , section_description , section_id | student_enrolment : student_enrolment_id , semester_id , student_id , other_details , degree_program_id | transcript_contents : transcript_id , student_course_id | Modules : course_description , other_details , course_name , course_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | Subjects : course_description , other_details , course_name , course_id | addresses : zip_postcode , address_id , other_address_details , country , state_province_county , line_1 , line_3 , line_2 , city", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "names": "Courses.course_name", + "ids": "Courses.course_id", + "course": "Courses", + "sections": "Sections" + } + }, + { + "question": "what are the #names# and #ids# of every #course# with less than 2 #sections# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name, t1.course_id from courses as t1 join sections as t2 on t1.course_id = t2.course_id group by t1.course_id having count(*) <= 2", + "schema_with_content": "courses : course_description (\"p\", \"n\", \"l\"), other_details (None), course_name (\"cal\", \"cal\", \"fr\"), course_id (5, 14, 6) | Classes : section_description (\"ad\", \"facilis\", \"voluptatem\"), section_name (\"o\", \"b\", \"f\"), course_id (10, 4, 7), section_id (9, 11, 4), other_details (None) | students : current_address_id (6, 15, 12), middle_name (\"Mossie\", \"Mona\", \"Neal\"), ssn (\"494\", \"43\", \"3\"), last_name (\"Schuppe\", \"Kemmer\", \"Jaskolski\"), first_name (\"Jarvis\", \"Helga\", \"Hobart\"), date_left (\"2004-12-08 05:29:11\", \"1990-09-01 05:03:27\", \"2006-08-04 17:26:49\"), permanent_address_id (11, 8, 9), email_address (\"jillian26@example.net\", \"jhuel@example.com\", \"skassulke@example.net\"), student_id (2, 3, 5), cell_mobile_number (\"(213)445-0399x85208\", \"677.401.9382\", \"877.549.9067x8723\"), other_student_details (\"et\", \"non\", \"autem\"), date_first_registered (\"1982-06-19 13:15:18\", \"2005-12-15 08:42:10\", \"1982-06-19 13:15:18\") | Sessions : section_description (\"ad\", \"facilis\", \"voluptatem\"), section_name (\"o\", \"b\", \"f\"), course_id (10, 4, 7), section_id (9, 11, 4), other_details (None) | student_enrolment : semester_id (4, 2, 13), other_details (None), student_id (5, 14, 14), degree_program_id (9, 8, 10), student_enrolment_id (14, 5, 8) | departments : department_description (\"nihil\", \"nisi\", \"dolorem\"), other_details (None), department_name (\"geography\", \"engineer\", \"math\"), department_id (1, 10, 11) | transcripts : transcript_date (\"1986-07-12 07:27:29\", \"1990-03-05 11:59:41\", \"1975-10-28 15:16:51\"), other_details (None), transcript_id (1, 5, 3) | student_enrolment_courses : student_enrolment_id (14, 10, 9), course_id (12, 4, 2), student_course_id (681404, 604750, 9860) | addresses : zip_postcode (\"777\", \"777\", \"446\"), country (\"Kyrgyz Republic\", \"Gabon\", \"Iceland\"), line_3 (None), line_1 (\"3999 Aufderhar Ways Suite 593\", \"2294 Grant Square Apt. 235\", \"2294 Grant Square Apt. 235\"), state_province_county (\"SouthDakota\", \"Delaware\", \"Washington\"), other_address_details (None), city (\"Lake Laishafurt\", \"Michelleburgh\", \"North Omer\"), address_id (9, 6, 3), line_2 (\"Apt. 305\", \"Apt. 583\", \"Suite 383\") | degree_programs : other_details (None), department_id (8, 14, 14), degree_program_id (2, 13, 1), degree_summary_description (\"aut\", \"esse\", \"et\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | semesters : semester_id (15, 3, 11), semester_name (\"spring 2010\", \"fall 2018\", \"spring 2016\"), semester_description (\"f\", \"w\", \"w\"), other_details (None) | transcript_contents : transcript_id (13, 4, 4), student_course_id (45105806, 96, 2)", + "schema_without_content": "courses : course_description , other_details , course_name , course_id | Classes : section_description , section_name , course_id , section_id , other_details | students : current_address_id , middle_name , ssn , last_name , first_name , date_left , permanent_address_id , email_address , student_id , cell_mobile_number 445-0399x85208\", \"677.401.9382\", \"877.549.9067x8723\", other_student_details , date_first_registered | Sessions : section_description , section_name , course_id , section_id , other_details | student_enrolment : semester_id , other_details , student_id , degree_program_id , student_enrolment_id | departments : department_description , other_details , department_name , department_id | transcripts : transcript_date , other_details , transcript_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | addresses : zip_postcode , country , line_3 , line_1 , state_province_county , other_address_details , city , address_id , line_2 | degree_programs : other_details , department_id , degree_program_id , degree_summary_description , degree_summary_name | semesters : semester_id , semester_name , semester_description , other_details | transcript_contents : transcript_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "sections": [ + "Classes", + "Sessions" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "Courses.course_name", + "ids": "Courses.course_id", + "course": "Courses", + "sections": "Sections" + } + }, + { + "question": "list the #section_name# in reversed lexicographical order.", + "db_id": "student_transcripts_tracking", + "orig_query": "select section_name from sections order by section_name desc", + "schema_with_content": "transcript_contents : student_course_id (0, 76, 45105806), transcript_id (15, 12, 2) | student_enrolment : student_enrolment_id (7, 12, 1), degree_program_id (2, 5, 10), semester_id (12, 4, 1), other_details (None), student_id (6, 5, 5) | students : current_address_id (1, 1, 12), date_first_registered (\"1976-10-26 02:33:06\", \"2009-09-25 00:14:25\", \"2007-08-29 23:25:41\"), date_left (\"1975-10-09 00:49:27\", \"1997-11-16 08:54:33\", \"1990-09-01 05:03:27\"), email_address (\"nya.lesch@example.net\", \"skassulke@example.net\", \"jillian26@example.net\"), first_name (\"Deon\", \"Timmothy\", \"Delaney\"), cell_mobile_number (\"171-642-5684\", \"(096)889-8954x524\", \"(507)365-8405\"), ssn (\"68095\", \"43\", \"68095\"), student_id (8, 11, 9), last_name (\"Balistreri\", \"Osinski\", \"Carroll\"), middle_name (\"Mossie\", \"Violet\", \"Mona\"), other_student_details (\"non\", \"dolorum\", \"laborum\"), permanent_address_id (9, 11, 11) | semesters : semester_description (\"t\", \"o\", \"q\"), semester_id (2, 6, 7), semester_name (\"fall 2010\", \"spring 2019\", \"spring 2017\"), other_details (None) | Sessions : other_details (None), section_id (12, 1, 10), section_description (\"qui\", \"voluptatem\", \"qui\"), course_id (9, 10, 10), section_name (\"y\", \"h\", \"u\") | addresses : state_province_county (\"Wyoming\", \"Arkansas\", \"Hawaii\"), city (\"Lake Laishafurt\", \"Rutherfordtown\", \"Michelleburgh\"), address_id (1, 4, 6), other_address_details (None), line_2 (\"Apt. 689\", \"Suite 674\", \"Apt. 689\"), line_1 (\"0144 Lamar Plaza Apt. 346\", \"0144 Lamar Plaza Apt. 346\", \"2294 Grant Square Apt. 235\"), line_3 (None), zip_postcode (\"541\", \"895\", \"902\"), country (\"Croatia\", \"Burundi\", \"Cook Islands\") | departments : department_name (\"law\", \"management\", \"statistics\"), department_description (\"dolorem\", \"dolorem\", \"autem\"), other_details (None), department_id (13, 7, 5) | transcripts : transcript_date (\"1984-01-18 23:07:07\", \"1998-11-22 12:18:29\", \"1986-07-12 07:27:29\"), other_details (None), transcript_id (11, 10, 6) | degree_programs : department_id (12, 7, 13), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (9, 4, 6), degree_summary_description (\"et\", \"aut\", \"qui\") | Classes : other_details (None), section_id (12, 1, 10), section_description (\"qui\", \"voluptatem\", \"qui\"), course_id (9, 10, 10), section_name (\"y\", \"h\", \"u\") | student_enrolment_courses : course_id (11, 3, 8), student_enrolment_id (9, 9, 13), student_course_id (70882679, 70882679, 96) | courses : course_description (\"q\", \"l\", \"l\"), course_name (\"db\", \"en\", \"ml\"), course_id (9, 2, 12), other_details (None)", + "schema_without_content": "transcript_contents : student_course_id , transcript_id | student_enrolment : student_enrolment_id , degree_program_id , semester_id , other_details , student_id | students : current_address_id , date_first_registered , date_left , email_address , first_name , cell_mobile_number 889-8954x524\", \"365-8405\", ssn , student_id , last_name , middle_name , other_student_details , permanent_address_id | semesters : semester_description , semester_id , semester_name , other_details | Sessions : other_details , section_id , section_description , course_id , section_name | addresses : state_province_county , city , address_id , other_address_details , line_2 , line_1 , line_3 , zip_postcode , country | departments : department_name , department_description , other_details , department_id | transcripts : transcript_date , other_details , transcript_id | degree_programs : department_id , other_details , degree_summary_name , degree_program_id , degree_summary_description | Classes : other_details , section_id , section_description , course_id , section_name | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | courses : course_description , course_name , course_id , other_details", + "extra_map": null, + "extra_table_map": { + "sections": [ + "Classes", + "Sessions" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "section_name": "Sections.section_name" + } + }, + { + "question": "what are the #names of the sections# in reverse alphabetical order?", + "db_id": "student_transcripts_tracking", + "orig_query": "select section_name from sections order by section_name desc", + "schema_with_content": "transcripts : other_details (None), transcript_date (\"2013-06-30 13:01:40\", \"1999-01-06 20:06:46\", \"1985-04-29 01:20:20\"), transcript_id (13, 2, 11) | departments : department_name (\"computer science\", \"drama\", \"drama\"), department_id (6, 10, 9), department_description (\"nihil\", \"natus\", \"aliquam\"), other_details (None) | students : permanent_address_id (9, 4, 3), middle_name (\"Vaughn\", \"Neal\", \"Judd\"), date_left (\"2017-07-09 21:38:43\", \"1990-09-01 05:03:27\", \"1999-08-24 00:07:10\"), first_name (\"Deon\", \"Stanford\", \"Helga\"), student_id (14, 4, 5), last_name (\"Huel\", \"Mohr\", \"Ward\"), date_first_registered (\"1976-10-26 02:33:06\", \"2017-01-04 08:10:25\", \"1971-02-05 07:28:23\"), cell_mobile_number (\"(096)889-8954x524\", \"07661787471\", \"436.613.7683\"), ssn (\"6274274\", \"43\", \"668\"), other_student_details (\"autem\", \"omnis\", \"qui\"), current_address_id (10, 14, 10), email_address (\"gracie29@example.com\", \"erwin.zboncak@example.com\", \"dell43@example.net\") | transcript_contents : transcript_id (12, 12, 12), student_course_id (96, 76, 70882679) | Sessions : section_name (\"f\", \"u\", \"f\"), other_details (None), section_description (\"facilis\", \"ex\", \"voluptatem\"), course_id (14, 2, 14), section_id (2, 15, 14) | Classes : section_name (\"f\", \"u\", \"f\"), other_details (None), section_description (\"facilis\", \"ex\", \"voluptatem\"), course_id (14, 2, 14), section_id (2, 15, 14) | courses : other_details (None), course_id (1, 7, 6), course_name (\"la\", \"db\", \"ai\"), course_description (\"d\", \"l\", \"n\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (10, 7, 14), degree_summary_description (\"voluptas\", \"assumenda\", \"cumque\"), department_id (15, 8, 14) | semesters : other_details (None), semester_name (\"spring 2013\", \"spring 2016\", \"spring 2017\"), semester_description (\"g\", \"o\", \"g\"), semester_id (15, 7, 10) | student_enrolment : other_details (None), semester_id (6, 12, 4), student_enrolment_id (4, 1, 13), degree_program_id (8, 3, 3), student_id (6, 12, 9) | student_enrolment_courses : student_course_id (2, 76, 8), course_id (3, 12, 3), student_enrolment_id (4, 10, 9) | addresses : city (\"Prohaskafort\", \"Rutherfordtown\", \"Mariliehaven\"), line_3 (None), other_address_details (None), country (\"Norfolk Island\", \"Croatia\", \"Bermuda\"), zip_postcode (\"590\", \"400\", \"839\"), line_1 (\"74046 Metz Walk Apt. 113\", \"858 Peggie Bypass Suite 212\", \"0643 Muller Vista\"), address_id (8, 4, 8), state_province_county (\"Kansas\", \"Kentucky\", \"Kentucky\"), line_2 (\"Suite 703\", \"Apt. 370\", \"Suite 674\")", + "schema_without_content": "transcripts : other_details , transcript_date , transcript_id | departments : department_name , department_id , department_description , other_details | students : permanent_address_id , middle_name , date_left , first_name , student_id , last_name , date_first_registered , cell_mobile_number 889-8954x524\", \"07661787471\", \"436.613.7683\", ssn , other_student_details , current_address_id , email_address | transcript_contents : transcript_id , student_course_id | Sessions : section_name , other_details , section_description , course_id , section_id | Classes : section_name , other_details , section_description , course_id , section_id | courses : other_details , course_id , course_name , course_description | degree_programs : degree_summary_name , other_details , degree_program_id , degree_summary_description , department_id | semesters : other_details , semester_name , semester_description , semester_id | student_enrolment : other_details , semester_id , student_enrolment_id , degree_program_id , student_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | addresses : city , line_3 , other_address_details , country , zip_postcode , line_1 , address_id , state_province_county , line_2", + "extra_map": null, + "extra_table_map": { + "sections": [ + "Classes", + "Sessions" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the sections": "Sections.section_name" + } + }, + { + "question": "what is the semester which most #student registered# in? show both the name and the id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.semester_name, t1.semester_id from semesters as t1 join student_enrolment as t2 on t1.semester_id = t2.semester_id group by t1.semester_id order by count(*) desc limit 1", + "schema_with_content": "Enrollment_Periods : other_details (None), semester_description (\"o\", \"g\", \"c\"), semester_name (\"spring 2019\", \"winter 2018\", \"spring 2016\"), semester_id (9, 14, 9) | courses : course_description (\"p\", \"p\", \"c\"), course_id (5, 15, 13), course_name (\"la\", \"pl\", \"ml\"), other_details (None) | addresses : state_province_county (\"Idaho\", \"NorthCarolina\", \"NorthCarolina\"), city (\"South Palma\", \"New Clemensburgh\", \"Port Evanston\"), line_1 (\"9283 Schulist Falls Apt. 037\", \"193 Marlin Brook\", \"2294 Grant Square Apt. 235\"), line_3 (None), country (\"Norfolk Island\", \"Croatia\", \"Croatia\"), other_address_details (None), address_id (5, 3, 9), zip_postcode (\"839\", \"895\", \"590\"), line_2 (\"Suite 830\", \"Suite 239\", \"Suite 239\") | transcripts : transcript_id (6, 7, 9), transcript_date (\"1985-04-29 01:20:20\", \"2002-09-24 06:11:49\", \"1984-12-19 00:37:21\"), other_details (None) | student_enrolment_courses : student_course_id (0, 681404, 83814225), course_id (4, 10, 4), student_enrolment_id (8, 9, 13) | sections : other_details (None), section_name (\"l\", \"f\", \"a\"), course_id (7, 4, 1), section_id (15, 14, 3), section_description (\"et\", \"voluptas\", \"ad\") | departments : department_id (8, 5, 8), department_description (\"consequatur\", \"nisi\", \"dolorem\"), other_details (None), department_name (\"dance\", \"history\", \"geography\") | students : cell_mobile_number (\"09700166582\", \"877.549.9067x8723\", \"436.613.7683\"), student_id (12, 9, 12), date_first_registered (\"2018-03-13 09:56:22\", \"1982-06-19 13:15:18\", \"1982-06-19 13:15:18\"), ssn (\"39\", \"6274274\", \"3\"), last_name (\"Schuppe\", \"Ward\", \"Jaskolski\"), email_address (\"qo'kon@example.com\", \"dell43@example.net\", \"baumbach.lucious@example.org\"), middle_name (\"Vaughn\", \"Aisha\", \"Golda\"), permanent_address_id (15, 4, 5), current_address_id (10, 7, 14), date_left (\"2007-08-02 04:12:58\", \"2004-12-08 05:29:11\", \"2007-11-28 12:50:21\"), other_student_details (\"laborum\", \"omnis\", \"autem\"), first_name (\"Delaney\", \"Frida\", \"Deon\") | Academic_Terms : other_details (None), semester_description (\"o\", \"g\", \"c\"), semester_name (\"spring 2019\", \"winter 2018\", \"spring 2016\"), semester_id (9, 14, 9) | student_enrolment : degree_program_id (4, 9, 2), other_details (None), semester_id (15, 2, 4), student_enrolment_id (4, 7, 15), student_id (4, 14, 5) | degree_programs : degree_program_id (3, 3, 4), other_details (None), degree_summary_description (\"esse\", \"assumenda\", \"qui\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (4, 3, 11) | transcript_contents : student_course_id (70882679, 8, 8), transcript_id (9, 11, 8)", + "schema_without_content": "Enrollment_Periods : other_details , semester_description , semester_name , semester_id | courses : course_description , course_id , course_name , other_details | addresses : state_province_county , city , line_1 , line_3 , country , other_address_details , address_id , zip_postcode , line_2 | transcripts : transcript_id , transcript_date , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | sections : other_details , section_name , course_id , section_id , section_description | departments : department_id , department_description , other_details , department_name | students : cell_mobile_number , student_id , date_first_registered , ssn , last_name , email_address , middle_name , permanent_address_id , current_address_id , date_left , other_student_details , first_name | Academic_Terms : other_details , semester_description , semester_name , semester_id | student_enrolment : degree_program_id , other_details , semester_id , student_enrolment_id , student_id | degree_programs : degree_program_id , other_details , degree_summary_description , degree_summary_name , department_id | transcript_contents : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "semesters": [ + "Academic_Terms", + "Enrollment_Periods" + ] + }, + "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" + ], + "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_Terms": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "Enrollment_Periods": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ] + }, + "column_linking_gt": { + "student registered": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name", + "semester id": "Semesters.semester_id" + } + }, + { + "question": "what is the semester which most #student registered# in? show both the name and the id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.semester_name, t1.semester_id from semesters as t1 join student_enrolment as t2 on t1.semester_id = t2.semester_id group by t1.semester_id order by count(*) desc limit 1", + "schema_with_content": "Student_Registration : student_id (4, 4, 9), degree_program_id (10, 10, 2), other_details (None), student_enrolment_id (1, 7, 12), semester_id (12, 1, 2) | transcripts : other_details (None), transcript_date (\"1984-12-19 00:37:21\", \"1986-07-12 07:27:29\", \"1986-07-12 07:27:29\"), transcript_id (9, 9, 11) | sections : section_id (11, 5, 7), other_details (None), section_description (\"voluptatem\", \"qui\", \"et\"), section_name (\"c\", \"h\", \"g\"), course_id (6, 5, 8) | student_enrolment_courses : student_course_id (681404, 8, 28982908), course_id (11, 12, 10), student_enrolment_id (13, 13, 14) | addresses : line_2 (\"Apt. 583\", \"Apt. 689\", \"Suite 383\"), line_3 (None), country (\"Croatia\", \"Kyrgyz Republic\", \"Gabon\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"186 Evan Motorway Apt. 409\", \"16998 Mraz Lodge\"), state_province_county (\"Arkansas\", \"Virginia\", \"Kentucky\"), other_address_details (None), city (\"Port Elvisfurt\", \"Lake Laishafurt\", \"New Clemensburgh\"), address_id (8, 1, 14), zip_postcode (\"777\", \"400\", \"895\") | semesters : semester_description (\"l\", \"l\", \"f\"), semester_id (11, 1, 13), other_details (None), semester_name (\"spring 2010\", \"spring 2017\", \"spring 2012\") | departments : department_id (12, 8, 13), other_details (None), department_name (\"engineer\", \"medical\", \"management\"), department_description (\"error\", \"doloribus\", \"natus\") | courses : course_name (\"fr\", \"math\", \"nlp\"), course_description (\"w\", \"q\", \"l\"), course_id (8, 6, 4), other_details (None) | degree_programs : other_details (None), degree_summary_description (\"unde\", \"aperiam\", \"cumque\"), department_id (2, 8, 13), degree_program_id (12, 6, 10), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | transcript_contents : transcript_id (6, 13, 8), student_course_id (70882679, 70882679, 70882679) | students : permanent_address_id (15, 9, 11), date_first_registered (\"1982-02-14 08:46:35\", \"2014-03-28 05:48:23\", \"2017-01-04 08:10:25\"), student_id (1, 15, 2), other_student_details (\"assumenda\", \"non\", \"voluptatem\"), first_name (\"Warren\", \"Stanford\", \"Frida\"), email_address (\"dell43@example.net\", \"nbruen@example.org\", \"nya.lesch@example.net\"), current_address_id (6, 15, 14), cell_mobile_number (\"677.401.9382\", \"03174364122\", \"877.549.9067x8723\"), ssn (\"34458427\", \"43\", \"39\"), date_left (\"2007-11-28 12:50:21\", \"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\"), last_name (\"Rempel\", \"Ward\", \"Weimann\"), middle_name (\"Golda\", \"Brooklyn\", \"Vaughn\") | Enrolment_Tracking : student_id (4, 4, 9), degree_program_id (10, 10, 2), other_details (None), student_enrolment_id (1, 7, 12), semester_id (12, 1, 2)", + "schema_without_content": "Student_Registration : student_id , degree_program_id , other_details , student_enrolment_id , semester_id | transcripts : other_details , transcript_date , transcript_id | sections : section_id , other_details , section_description , section_name , course_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | addresses : line_2 , line_3 , country , line_1 , state_province_county , other_address_details , city , address_id , zip_postcode | semesters : semester_description , semester_id , other_details , semester_name | departments : department_id , other_details , department_name , department_description | courses : course_name , course_description , course_id , other_details | degree_programs : other_details , degree_summary_description , department_id , degree_program_id , degree_summary_name | transcript_contents : transcript_id , student_course_id | students : permanent_address_id , date_first_registered , student_id , other_student_details , first_name , email_address , current_address_id , cell_mobile_number , ssn , date_left , last_name , middle_name | Enrolment_Tracking : student_id , degree_program_id , other_details , student_enrolment_id , semester_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "student registered": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name", + "semester id": "Semesters.semester_id" + } + }, + { + "question": "for each semester, what is the name and id of the one with the most #students registered# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.semester_name, t1.semester_id from semesters as t1 join student_enrolment as t2 on t1.semester_id = t2.semester_id group by t1.semester_id order by count(*) desc limit 1", + "schema_with_content": "transcript_contents : transcript_id (6, 11, 6), student_course_id (70882679, 0, 76) | Enrollment_Periods : semester_id (3, 3, 5), other_details (None), semester_name (\"spring 2012\", \"spring 2018\", \"spring 2018\"), semester_description (\"q\", \"t\", \"y\") | student_enrolment_courses : student_course_id (45105806, 96, 2), student_enrolment_id (5, 10, 10), course_id (3, 2, 13) | departments : department_name (\"statistics\", \"medical\", \"medical\"), department_id (6, 1, 4), other_details (None), department_description (\"in\", \"consequatur\", \"aliquam\") | degree_programs : department_id (8, 12, 2), degree_summary_description (\"architecto\", \"unde\", \"quam\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (2, 7, 14), other_details (None) | Academic_Terms : semester_id (3, 3, 5), other_details (None), semester_name (\"spring 2012\", \"spring 2018\", \"spring 2018\"), semester_description (\"q\", \"t\", \"y\") | courses : other_details (None), course_description (\"n\", \"w\", \"l\"), course_name (\"fr\", \"dl\", \"math\"), course_id (14, 4, 7) | transcripts : other_details (None), transcript_date (\"1984-01-18 23:07:07\", \"1990-03-05 11:59:41\", \"1975-10-28 15:16:51\"), transcript_id (2, 13, 11) | student_enrolment : semester_id (15, 12, 13), student_id (1, 14, 1), student_enrolment_id (4, 12, 13), degree_program_id (12, 9, 9), other_details (None) | addresses : zip_postcode (\"148\", \"839\", \"148\"), line_1 (\"492 Wilkinson Route\", \"858 Peggie Bypass Suite 212\", \"979 Haag Shores Suite 656\"), country (\"Cook Islands\", \"New Caledonia\", \"Norfolk Island\"), address_id (3, 15, 12), other_address_details (None), city (\"Port Chelsea\", \"Prohaskafort\", \"Port Oceane\"), line_3 (None), line_2 (\"Suite 674\", \"Apt. 370\", \"Suite 703\"), state_province_county (\"Arkansas\", \"Kentucky\", \"SouthDakota\") | sections : section_description (\"voluptatem\", \"voluptatem\", \"ad\"), section_id (9, 15, 2), section_name (\"j\", \"j\", \"l\"), course_id (8, 6, 4), other_details (None) | students : date_first_registered (\"1973-05-19 19:12:46\", \"2014-03-28 05:48:23\", \"2004-12-24 12:36:46\"), last_name (\"Mohr\", \"Carroll\", \"Ankunding\"), date_left (\"1975-10-09 00:49:27\", \"2007-03-31 09:53:19\", \"1971-05-17 19:28:49\"), other_student_details (\"nesciunt\", \"assumenda\", \"voluptatem\"), student_id (10, 8, 3), middle_name (\"Aaliyah\", \"Violet\", \"Mona\"), first_name (\"Milton\", \"Jarvis\", \"Delaney\"), cell_mobile_number (\"(982)153-1469x1733\", \"(213)445-0399x85208\", \"1-009-710-5151\"), current_address_id (14, 1, 6), permanent_address_id (14, 14, 11), ssn (\"965\", \"68095\", \"494\"), email_address (\"nya.lesch@example.net\", \"erwin.zboncak@example.com\", \"jillian26@example.net\")", + "schema_without_content": "transcript_contents : transcript_id , student_course_id | Enrollment_Periods : semester_id , other_details , semester_name , semester_description | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | departments : department_name , department_id , other_details , department_description | degree_programs : department_id , degree_summary_description , degree_summary_name , degree_program_id , other_details | Academic_Terms : semester_id , other_details , semester_name , semester_description | courses : other_details , course_description , course_name , course_id | transcripts : other_details , transcript_date , transcript_id | student_enrolment : semester_id , student_id , student_enrolment_id , degree_program_id , other_details | addresses : zip_postcode , line_1 , country , address_id , other_address_details , city , line_3 , line_2 , state_province_county | sections : section_description , section_id , section_name , course_id , other_details | students : date_first_registered , last_name , date_left , other_student_details , student_id , middle_name , first_name , cell_mobile_number 153-1469x1733\", \"445-0399x85208\", \"1-009-710-5151\", current_address_id , permanent_address_id , ssn , email_address", + "extra_map": null, + "extra_table_map": { + "semesters": [ + "Academic_Terms", + "Enrollment_Periods" + ] + }, + "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" + ], + "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_Terms": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "Enrollment_Periods": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ] + }, + "column_linking_gt": { + "students registered": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name", + "semester id": "Semesters.semester_id" + } + }, + { + "question": "for each semester, what is the name and id of the one with the most #students registered# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.semester_name, t1.semester_id from semesters as t1 join student_enrolment as t2 on t1.semester_id = t2.semester_id group by t1.semester_id order by count(*) desc limit 1", + "schema_with_content": "transcripts : transcript_date (\"1975-10-28 15:16:51\", \"2010-12-13 10:55:15\", \"1975-05-06 12:04:47\"), other_details (None), transcript_id (6, 8, 1) | Student_Registration : student_enrolment_id (3, 13, 15), semester_id (12, 13, 4), degree_program_id (10, 3, 12), student_id (1, 1, 1), other_details (None) | sections : section_description (\"provident\", \"facilis\", \"nesciunt\"), section_name (\"j\", \"c\", \"f\"), section_id (4, 12, 3), other_details (None), course_id (10, 4, 5) | addresses : line_2 (\"Apt. 583\", \"Suite 865\", \"Apt. 583\"), line_3 (None), line_1 (\"3999 Aufderhar Ways Suite 593\", \"9283 Schulist Falls Apt. 037\", \"202 Hessel Views Apt. 468\"), zip_postcode (\"902\", \"386\", \"400\"), address_id (12, 2, 11), city (\"Port Elvisfurt\", \"Lake Laishafurt\", \"Mariliehaven\"), other_address_details (None), state_province_county (\"Kentucky\", \"Virginia\", \"Florida\"), country (\"Croatia\", \"Saudi Arabia\", \"Angola\") | students : cell_mobile_number (\"07661787471\", \"(982)153-1469x1733\", \"09700166582\"), date_first_registered (\"2007-08-29 23:25:41\", \"2005-12-15 08:42:10\", \"2014-03-28 05:48:23\"), date_left (\"1999-08-24 00:07:10\", \"1990-09-01 05:03:27\", \"1982-06-11 00:25:39\"), middle_name (\"Judd\", \"Cleve\", \"Judd\"), last_name (\"Kemmer\", \"Ward\", \"Ward\"), first_name (\"Jordy\", \"Jarvis\", \"Milton\"), permanent_address_id (8, 14, 14), other_student_details (\"qui\", \"et\", \"dolorum\"), current_address_id (10, 10, 15), ssn (\"141072406\", \"141072406\", \"402\"), email_address (\"lhartmann@example.org\", \"mya88@example.org\", \"erwin.zboncak@example.com\"), student_id (2, 3, 15) | semesters : other_details (None), semester_description (\"o\", \"l\", \"q\"), semester_name (\"spring 2012\", \"fall 2018\", \"spring 2019\"), semester_id (5, 15, 3) | student_enrolment_courses : course_id (6, 10, 4), student_course_id (83814225, 2, 438800), student_enrolment_id (9, 13, 10) | Enrolment_Tracking : student_enrolment_id (3, 13, 15), semester_id (12, 13, 4), degree_program_id (10, 3, 12), student_id (1, 1, 1), other_details (None) | transcript_contents : transcript_id (15, 8, 8), student_course_id (0, 8, 45105806) | departments : department_description (\"nisi\", \"consequatur\", \"non\"), department_name (\"economics\", \"economics\", \"art\"), other_details (None), department_id (8, 3, 5) | degree_programs : degree_summary_description (\"voluptas\", \"aperiam\", \"aperiam\"), degree_program_id (5, 10, 11), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), department_id (4, 7, 14) | courses : course_description (\"w\", \"q\", \"p\"), course_name (\"en\", \"os\", \"oop\"), course_id (13, 15, 1), other_details (None)", + "schema_without_content": "transcripts : transcript_date , other_details , transcript_id | Student_Registration : student_enrolment_id , semester_id , degree_program_id , student_id , other_details | sections : section_description , section_name , section_id , other_details , course_id | addresses : line_2 , line_3 , line_1 , zip_postcode , address_id , city , other_address_details , state_province_county , country | students : cell_mobile_number 153-1469x1733\", \"09700166582\", date_first_registered , date_left , middle_name , last_name , first_name , permanent_address_id , other_student_details , current_address_id , ssn , email_address , student_id | semesters : other_details , semester_description , semester_name , semester_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | Enrolment_Tracking : student_enrolment_id , semester_id , degree_program_id , student_id , other_details | transcript_contents : transcript_id , student_course_id | departments : department_description , department_name , other_details , department_id | degree_programs : degree_summary_description , degree_program_id , degree_summary_name , other_details , department_id | courses : course_description , course_name , course_id , other_details", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "students registered": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name", + "semester id": "Semesters.semester_id" + } + }, + { + "question": "what is the #description# of the department whose #name# has the substring the computer?", + "db_id": "student_transcripts_tracking", + "orig_query": "select department_description from departments where department_name like '%computer%'", + "schema_with_content": "sections : course_id (1, 8, 4), other_details (None), section_name (\"g\", \"u\", \"e\"), section_description (\"quis\", \"quis\", \"reprehenderit\"), section_id (14, 6, 3) | semesters : semester_name (\"spring 2013\", \"spring 2014\", \"fall 2010\"), semester_description (\"x\", \"y\", \"q\"), semester_id (14, 4, 1), other_details (None) | transcript_contents : student_course_id (45105806, 0, 28982908), transcript_id (15, 5, 2) | faculties : department_id (9, 13, 12), department_description (\"nisi\", \"nihil\", \"non\"), department_name (\"math\", \"math\", \"medical\"), other_details (None) | student_enrolment : other_details (None), degree_program_id (9, 12, 8), student_id (6, 7, 9), semester_id (2, 1, 1), student_enrolment_id (1, 7, 8) | student_enrolment_courses : student_course_id (604750, 0, 604750), course_id (13, 6, 13), student_enrolment_id (8, 13, 8) | addresses : state_province_county (\"Kansas\", \"SouthDakota\", \"Washington\"), line_1 (\"7081 Eda Center\", \"858 Peggie Bypass Suite 212\", \"193 Marlin Brook\"), address_id (3, 15, 13), country (\"Bermuda\", \"Gibraltar\", \"Gibraltar\"), line_2 (\"Apt. 335\", \"Apt. 468\", \"Suite 383\"), zip_postcode (\"902\", \"386\", \"669\"), line_3 (None), city (\"Lake Laishafurt\", \"Lake Careyberg\", \"Lake Careyberg\"), other_address_details (None) | students : permanent_address_id (11, 4, 8), middle_name (\"Cleve\", \"Cleve\", \"Mona\"), date_first_registered (\"2005-12-15 08:42:10\", \"1982-06-19 13:15:18\", \"2007-08-29 23:25:41\"), ssn (\"494\", \"3\", \"304246\"), email_address (\"swift.kolby@example.com\", \"johns.unique@example.net\", \"jhuel@example.com\"), date_left (\"2014-05-30 23:32:02\", \"1997-11-16 08:54:33\", \"2016-04-09 12:27:04\"), last_name (\"Christiansen\", \"Schuppe\", \"Ankunding\"), cell_mobile_number (\"1-009-710-5151\", \"436.613.7683\", \"09700166582\"), other_student_details (\"non\", \"assumenda\", \"facilis\"), current_address_id (15, 2, 1), first_name (\"Orrin\", \"Gregg\", \"Reva\"), student_id (12, 12, 10) | transcripts : transcript_date (\"1975-05-20 18:31:21\", \"1975-10-28 15:16:51\", \"1985-08-21 09:32:39\"), other_details (None), transcript_id (10, 13, 13) | schools : department_id (9, 13, 12), department_description (\"nisi\", \"nihil\", \"non\"), department_name (\"math\", \"math\", \"medical\"), other_details (None) | courses : other_details (None), course_description (\"w\", \"c\", \"p\"), course_id (5, 6, 9), course_name (\"fr\", \"cal\", \"ml\") | degree_programs : other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (7, 15, 4), degree_summary_description (\"cumque\", \"earum\", \"earum\"), degree_program_id (11, 1, 13)", + "schema_without_content": "sections : course_id , other_details , section_name , section_description , section_id | semesters : semester_name , semester_description , semester_id , other_details | transcript_contents : student_course_id , transcript_id | faculties : department_id , department_description , department_name , other_details | student_enrolment : other_details , degree_program_id , student_id , semester_id , student_enrolment_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | addresses : state_province_county , line_1 , address_id , country , line_2 , zip_postcode , line_3 , city , other_address_details | students : permanent_address_id , middle_name , date_first_registered , ssn , email_address , date_left , last_name , cell_mobile_number , other_student_details , current_address_id , first_name , student_id | transcripts : transcript_date , other_details , transcript_id | schools : department_id , department_description , department_name , other_details | courses : other_details , course_description , course_id , course_name | degree_programs : other_details , degree_summary_name , department_id , degree_summary_description , degree_program_id", + "extra_map": null, + "extra_table_map": { + "departments": [ + "faculties", + "schools" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description": "Departments.department_description", + "name": "Departments.department_name" + } + }, + { + "question": "what is the #department description# for the one whose name has the word computer?", + "db_id": "student_transcripts_tracking", + "orig_query": "select department_description from departments where department_name like '%computer%'", + "schema_with_content": "transcripts : transcript_id (8, 6, 3), other_details (None), transcript_date (\"2013-06-30 13:01:40\", \"2013-06-30 13:01:40\", \"1984-01-18 23:07:07\") | sections : section_name (\"l\", \"l\", \"b\"), course_id (14, 4, 7), section_description (\"reprehenderit\", \"reprehenderit\", \"provident\"), other_details (None), section_id (15, 3, 8) | schools : department_description (\"nostrum\", \"nihil\", \"dolorem\"), department_id (6, 10, 12), other_details (None), department_name (\"statistics\", \"drama\", \"economics\") | semesters : semester_name (\"summer 2010\", \"spring 2012\", \"winter 2010\"), other_details (None), semester_description (\"x\", \"t\", \"o\"), semester_id (4, 14, 7) | student_enrolment_courses : course_id (11, 4, 6), student_course_id (70882679, 681404, 604750), student_enrolment_id (9, 6, 9) | students : date_first_registered (\"2004-12-24 12:36:46\", \"2007-08-29 23:25:41\", \"1997-03-20 16:47:25\"), email_address (\"swift.kolby@example.com\", \"nbruen@example.org\", \"skassulke@example.net\"), middle_name (\"Aaliyah\", \"Anna\", \"Violet\"), ssn (\"34458427\", \"248\", \"\"), last_name (\"Ankunding\", \"Kemmer\", \"Schuppe\"), permanent_address_id (9, 5, 5), student_id (1, 9, 11), other_student_details (\"qui\", \"atque\", \"quia\"), cell_mobile_number (\"(096)889-8954x524\", \"677.401.9382\", \"171-642-5684\"), current_address_id (10, 7, 9), first_name (\"Jarvis\", \"Delaney\", \"Helga\"), date_left (\"2017-07-09 21:38:43\", \"1971-05-17 19:28:49\", \"2006-08-04 17:26:49\") | degree_programs : degree_program_id (14, 12, 9), degree_summary_description (\"esse\", \"et\", \"officiis\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), department_id (3, 3, 3) | student_enrolment : student_id (6, 12, 7), student_enrolment_id (13, 7, 6), semester_id (12, 9, 13), other_details (None), degree_program_id (2, 4, 10) | transcript_contents : transcript_id (8, 13, 4), student_course_id (76, 45105806, 76) | courses : course_description (\"q\", \"c\", \"k\"), course_name (\"os\", \"ml\", \"fr\"), course_id (5, 2, 8), other_details (None) | faculties : department_description (\"nostrum\", \"nihil\", \"dolorem\"), department_id (6, 10, 12), other_details (None), department_name (\"statistics\", \"drama\", \"economics\") | addresses : line_2 (\"Apt. 370\", \"Suite 239\", \"Suite 830\"), other_address_details (None), zip_postcode (\"068\", \"895\", \"590\"), address_id (3, 8, 13), state_province_county (\"Hawaii\", \"Arkansas\", \"WestVirginia\"), line_1 (\"0643 Muller Vista\", \"16998 Mraz Lodge\", \"193 Marlin Brook\"), line_3 (None), country (\"Gabon\", \"Haiti\", \"Samoa\"), city (\"Mariliehaven\", \"Michelleburgh\", \"Rutherfordtown\")", + "schema_without_content": "transcripts : transcript_id , other_details , transcript_date | sections : section_name , course_id , section_description , other_details , section_id | schools : department_description , department_id , other_details , department_name | semesters : semester_name , other_details , semester_description , semester_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | students : date_first_registered , email_address , middle_name , ssn , last_name , permanent_address_id , student_id , other_student_details , cell_mobile_number 889-8954x524\", \"677.401.9382\", \"171-642-5684\", current_address_id , first_name , date_left | degree_programs : degree_program_id , degree_summary_description , degree_summary_name , other_details , department_id | student_enrolment : student_id , student_enrolment_id , semester_id , other_details , degree_program_id | transcript_contents : transcript_id , student_course_id | courses : course_description , course_name , course_id , other_details | faculties : department_description , department_id , other_details , department_name | addresses : line_2 , other_address_details , zip_postcode , address_id , state_province_county , line_1 , line_3 , country , city", + "extra_map": null, + "extra_table_map": { + "departments": [ + "faculties", + "schools" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "department description": "Departments.department_description", + "department name": "Departments.department_name" + } + }, + { + "question": "who are #enrolled# in 2 degree programs in one semester? list the #first name# , #middle name# and #last name# and the id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.first_name, t1.middle_name, t1.last_name, t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id having count(*) = 2", + "schema_with_content": "transcript_contents : student_course_id (8, 28982908, 70882679), transcript_id (6, 13, 8) | degree_programs : degree_summary_description (\"voluptas\", \"architecto\", \"esse\"), degree_program_id (7, 14, 5), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (8, 2, 3) | sections : course_id (10, 7, 10), other_details (None), section_name (\"e\", \"u\", \"a\"), section_description (\"quis\", \"qui\", \"reprehenderit\"), section_id (11, 1, 4) | courses : course_name (\"la\", \"os\", \"fr\"), course_id (3, 5, 1), course_description (\"k\", \"k\", \"b\"), other_details (None) | addresses : line_2 (\"Apt. 583\", \"Suite 865\", \"Suite 830\"), other_address_details (None), line_3 (None), zip_postcode (\"847\", \"400\", \"068\"), line_1 (\"186 Evan Motorway Apt. 409\", \"67942 Carlotta Ferry Apt. 686\", \"0643 Muller Vista\"), city (\"Rutherfordtown\", \"Goodwinhaven\", \"Port Chelsea\"), state_province_county (\"Idaho\", \"WestVirginia\", \"Hawaii\"), country (\"Samoa\", \"Norfolk Island\", \"Lesotho\"), address_id (15, 3, 15) | departments : department_name (\"economics\", \"dance\", \"geography\"), department_id (11, 5, 7), other_details (None), department_description (\"nihil\", \"dolorem\", \"error\") | Pupils : permanent_address_id (3, 4, 14), first_name (\"Hobart\", \"Hobart\", \"Delaney\"), current_address_id (9, 9, 12), date_left (\"1999-08-24 00:07:10\", \"1975-10-09 00:49:27\", \"1982-06-11 00:25:39\"), date_first_registered (\"1982-06-19 13:15:18\", \"2017-01-04 08:10:25\", \"2005-12-15 08:42:10\"), cell_mobile_number (\"07661787471\", \"(462)246-7921\", \"(605)919-3594x3661\"), ssn (\"68095\", \"304246\", \"965\"), other_student_details (\"autem\", \"qui\", \"nesciunt\"), last_name (\"Osinski\", \"Ankunding\", \"Ankunding\"), middle_name (\"Vaughn\", \"Judd\", \"Aisha\"), email_address (\"baumbach.lucious@example.org\", \"lhartmann@example.org\", \"johns.unique@example.net\"), student_id (13, 14, 10) | transcripts : transcript_date (\"1975-05-20 18:31:21\", \"1985-04-29 01:20:20\", \"1975-05-06 12:04:47\"), other_details (None), transcript_id (3, 14, 10) | Learners : permanent_address_id (3, 4, 14), first_name (\"Hobart\", \"Hobart\", \"Delaney\"), current_address_id (9, 9, 12), date_left (\"1999-08-24 00:07:10\", \"1975-10-09 00:49:27\", \"1982-06-11 00:25:39\"), date_first_registered (\"1982-06-19 13:15:18\", \"2017-01-04 08:10:25\", \"2005-12-15 08:42:10\"), cell_mobile_number (\"07661787471\", \"(462)246-7921\", \"(605)919-3594x3661\"), ssn (\"68095\", \"304246\", \"965\"), other_student_details (\"autem\", \"qui\", \"nesciunt\"), last_name (\"Osinski\", \"Ankunding\", \"Ankunding\"), middle_name (\"Vaughn\", \"Judd\", \"Aisha\"), email_address (\"baumbach.lucious@example.org\", \"lhartmann@example.org\", \"johns.unique@example.net\"), student_id (13, 14, 10) | student_enrolment_courses : student_enrolment_id (8, 10, 4), course_id (6, 11, 12), student_course_id (1, 1, 9860) | semesters : other_details (None), semester_id (6, 14, 1), semester_name (\"spring 2019\", \"spring 2013\", \"spring 2018\"), semester_description (\"o\", \"x\", \"c\") | student_enrolment : degree_program_id (3, 4, 4), student_enrolment_id (6, 2, 12), semester_id (12, 1, 15), student_id (12, 1, 7), other_details (None)", + "schema_without_content": "transcript_contents : student_course_id , transcript_id | degree_programs : degree_summary_description , degree_program_id , other_details , degree_summary_name , department_id | sections : course_id , other_details , section_name , section_description , section_id | courses : course_name , course_id , course_description , other_details | addresses : line_2 , other_address_details , line_3 , zip_postcode , line_1 , city , state_province_county , country , address_id | departments : department_name , department_id , other_details , department_description | Pupils : permanent_address_id , first_name , current_address_id , date_left , date_first_registered , cell_mobile_number 246-7921\", \"919-3594x3661\", ssn , other_student_details , last_name , middle_name , email_address , student_id | transcripts : transcript_date , other_details , transcript_id | Learners : permanent_address_id , first_name , current_address_id , date_left , date_first_registered , cell_mobile_number 246-7921\", \"919-3594x3661\", ssn , other_student_details , last_name , middle_name , email_address , student_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | semesters : other_details , semester_id , semester_name , semester_description | student_enrolment : degree_program_id , student_enrolment_id , semester_id , student_id , other_details", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "enrolled": "Student_Enrolment", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "id": "Students.student_id" + } + }, + { + "question": "who are #enrolled# in 2 degree programs in one semester? list the #first name# , #middle name# and #last name# and the id.", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.first_name, t1.middle_name, t1.last_name, t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id having count(*) = 2", + "schema_with_content": "departments : department_name (\"management\", \"medical\", \"history\"), other_details (None), department_id (4, 15, 9), department_description (\"autem\", \"in\", \"ea\") | Student_Registration : other_details (None), student_enrolment_id (8, 5, 3), semester_id (12, 12, 13), degree_program_id (11, 9, 5), student_id (4, 9, 6) | courses : course_name (\"db\", \"fr\", \"cal\"), other_details (None), course_id (14, 14, 15), course_description (\"c\", \"b\", \"b\") | sections : other_details (None), section_description (\"et\", \"voluptatem\", \"reprehenderit\"), course_id (12, 10, 14), section_id (13, 14, 2), section_name (\"a\", \"p\", \"d\") | student_enrolment_courses : student_course_id (76, 76, 438800), course_id (14, 8, 11), student_enrolment_id (5, 2, 8) | Enrolment_Tracking : other_details (None), student_enrolment_id (8, 5, 3), semester_id (12, 12, 13), degree_program_id (11, 9, 5), student_id (4, 9, 6) | addresses : country (\"Kyrgyz Republic\", \"Gabon\", \"Haiti\"), state_province_county (\"WestVirginia\", \"Arkansas\", \"Kansas\"), zip_postcode (\"541\", \"902\", \"541\"), line_3 (None), address_id (13, 2, 1), line_1 (\"0643 Muller Vista\", \"202 Hessel Views Apt. 468\", \"9283 Schulist Falls Apt. 037\"), line_2 (\"Apt. 468\", \"Suite 674\", \"Apt. 305\"), other_address_details (None), city (\"Lake Careyberg\", \"Lake Laishafurt\", \"South Palma\") | semesters : semester_description (\"c\", \"c\", \"f\"), semester_name (\"spring 2010\", \"spring 2019\", \"spring 2015\"), other_details (None), semester_id (9, 3, 5) | degree_programs : degree_summary_description (\"placeat\", \"et\", \"aut\"), degree_program_id (4, 6, 8), other_details (None), department_id (4, 13, 12), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | transcript_contents : transcript_id (8, 5, 4), student_course_id (45105806, 45105806, 96) | students : last_name (\"Mohr\", \"Balistreri\", \"Rempel\"), ssn (\"34458427\", \"34458427\", \"402\"), date_left (\"1990-09-01 05:03:27\", \"2004-12-08 05:29:11\", \"2006-08-04 17:26:49\"), date_first_registered (\"1986-02-24 21:12:23\", \"1976-10-26 02:33:06\", \"1986-02-24 21:12:23\"), first_name (\"Gregg\", \"Jett\", \"Helga\"), middle_name (\"Neal\", \"Golda\", \"Brooklyn\"), other_student_details (\"et\", \"assumenda\", \"non\"), email_address (\"jillian26@example.net\", \"jhuel@example.com\", \"mya88@example.org\"), current_address_id (15, 1, 12), student_id (1, 4, 7), cell_mobile_number (\"1-879-796-8987x164\", \"(507)365-8405\", \"436.613.7683\"), permanent_address_id (5, 5, 15) | transcripts : transcript_id (5, 12, 10), other_details (None), transcript_date (\"2013-06-30 13:01:40\", \"1985-04-29 01:20:20\", \"1975-10-28 15:16:51\")", + "schema_without_content": "departments : department_name , other_details , department_id , department_description | Student_Registration : other_details , student_enrolment_id , semester_id , degree_program_id , student_id | courses : course_name , other_details , course_id , course_description | sections : other_details , section_description , course_id , section_id , section_name | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | Enrolment_Tracking : other_details , student_enrolment_id , semester_id , degree_program_id , student_id | addresses : country , state_province_county , zip_postcode , line_3 , address_id , line_1 , line_2 , other_address_details , city | semesters : semester_description , semester_name , other_details , semester_id | degree_programs : degree_summary_description , degree_program_id , other_details , department_id , degree_summary_name | transcript_contents : transcript_id , student_course_id | students : last_name , ssn , date_left , date_first_registered , first_name , middle_name , other_student_details , email_address , current_address_id , student_id , cell_mobile_number 365-8405\", \"436.613.7683\", permanent_address_id | transcripts : transcript_id , other_details , transcript_date", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "enrolled": "Student_Enrolment", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "id": "Students.student_id" + } + }, + { + "question": "what are the first, middle, and last names, along with the #ids# , of all #students# who #enrolled in 2 degree programs in one semester# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.first_name, t1.middle_name, t1.last_name, t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id having count(*) = 2", + "schema_with_content": "transcripts : transcript_id (2, 1, 1), transcript_date (\"1999-01-06 20:06:46\", \"1990-03-05 11:59:41\", \"1975-10-28 15:16:51\"), other_details (None) | student_enrolment : other_details (None), semester_id (5, 9, 15), student_enrolment_id (11, 2, 14), degree_program_id (3, 2, 2), student_id (7, 5, 14) | Learners : current_address_id (10, 6, 10), middle_name (\"Mona\", \"Violet\", \"Violet\"), other_student_details (\"atque\", \"omnis\", \"voluptatem\"), cell_mobile_number (\"877.549.9067x8723\", \"07661787471\", \"(507)365-8405\"), date_left (\"2007-11-28 12:50:21\", \"1971-05-17 19:28:49\", \"2004-12-08 05:29:11\"), email_address (\"nya.lesch@example.net\", \"beth42@example.org\", \"dell43@example.net\"), date_first_registered (\"1976-10-26 02:33:06\", \"1997-03-20 16:47:25\", \"1982-02-14 08:46:35\"), ssn (\"141072406\", \"\", \"3\"), first_name (\"Helga\", \"Jett\", \"Stanford\"), last_name (\"Kemmer\", \"Christiansen\", \"Ward\"), permanent_address_id (3, 8, 3), student_id (15, 9, 3) | Pupils : current_address_id (10, 6, 10), middle_name (\"Mona\", \"Violet\", \"Violet\"), other_student_details (\"atque\", \"omnis\", \"voluptatem\"), cell_mobile_number (\"877.549.9067x8723\", \"07661787471\", \"(507)365-8405\"), date_left (\"2007-11-28 12:50:21\", \"1971-05-17 19:28:49\", \"2004-12-08 05:29:11\"), email_address (\"nya.lesch@example.net\", \"beth42@example.org\", \"dell43@example.net\"), date_first_registered (\"1976-10-26 02:33:06\", \"1997-03-20 16:47:25\", \"1982-02-14 08:46:35\"), ssn (\"141072406\", \"\", \"3\"), first_name (\"Helga\", \"Jett\", \"Stanford\"), last_name (\"Kemmer\", \"Christiansen\", \"Ward\"), permanent_address_id (3, 8, 3), student_id (15, 9, 3) | sections : other_details (None), section_name (\"o\", \"l\", \"k\"), section_id (13, 7, 10), course_id (9, 8, 8), section_description (\"quis\", \"voluptas\", \"voluptatem\") | transcript_contents : student_course_id (0, 45105806, 8), transcript_id (15, 8, 2) | student_enrolment_courses : course_id (8, 8, 2), student_enrolment_id (5, 2, 13), student_course_id (70882679, 2, 70882679) | semesters : other_details (None), semester_id (3, 9, 11), semester_description (\"t\", \"w\", \"t\"), semester_name (\"spring 2010\", \"spring 2015\", \"winter 2018\") | departments : other_details (None), department_description (\"ea\", \"dolorem\", \"nihil\"), department_name (\"medical\", \"biology\", \"dance\"), department_id (15, 5, 1) | degree_programs : degree_summary_description (\"esse\", \"cumque\", \"aperiam\"), other_details (None), degree_program_id (15, 6, 9), department_id (2, 8, 2), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | courses : other_details (None), course_id (7, 15, 6), course_name (\"os\", \"dl\", \"en\"), course_description (\"n\", \"w\", \"d\") | addresses : line_1 (\"7081 Eda Center\", \"3999 Aufderhar Ways Suite 593\", \"492 Wilkinson Route\"), other_address_details (None), address_id (15, 15, 4), line_3 (None), country (\"Angola\", \"New Caledonia\", \"Saudi Arabia\"), city (\"Lake Careyberg\", \"North Omer\", \"Goodwinhaven\"), zip_postcode (\"777\", \"148\", \"148\"), state_province_county (\"Virginia\", \"WestVirginia\", \"Delaware\"), line_2 (\"Apt. 468\", \"Apt. 468\", \"Suite 830\")", + "schema_without_content": "transcripts : transcript_id , transcript_date , other_details | student_enrolment : other_details , semester_id , student_enrolment_id , degree_program_id , student_id | Learners : current_address_id , middle_name , other_student_details , cell_mobile_number 365-8405\", date_left , email_address , date_first_registered , ssn , first_name , last_name , permanent_address_id , student_id | Pupils : current_address_id , middle_name , other_student_details , cell_mobile_number 365-8405\", date_left , email_address , date_first_registered , ssn , first_name , last_name , permanent_address_id , student_id | sections : other_details , section_name , section_id , course_id , section_description | transcript_contents : student_course_id , transcript_id | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | semesters : other_details , semester_id , semester_description , semester_name | departments : other_details , department_description , department_name , department_id | degree_programs : degree_summary_description , other_details , degree_program_id , department_id , degree_summary_name | courses : other_details , course_id , course_name , course_description | addresses : line_1 , other_address_details , address_id , line_3 , country , city , zip_postcode , state_province_county , line_2", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "Students.student_id", + "students": "Students", + "enrolled in 2 degree programs in one semester": "Student_Enrolment", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "what are the first, middle, and last names, along with the #ids# , of all #students# who #enrolled in 2 degree programs in one semester# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.first_name, t1.middle_name, t1.last_name, t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id having count(*) = 2", + "schema_with_content": "sections : course_id (14, 8, 12), section_id (8, 13, 3), section_description (\"provident\", \"nesciunt\", \"voluptatem\"), other_details (None), section_name (\"p\", \"f\", \"o\") | departments : department_description (\"doloribus\", \"autem\", \"nisi\"), department_name (\"law\", \"history\", \"dance\"), other_details (None), department_id (6, 15, 13) | transcript_contents : transcript_id (6, 13, 15), student_course_id (8, 2, 7) | degree_programs : department_id (3, 12, 2), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (2, 4, 14), degree_summary_description (\"officiis\", \"quam\", \"placeat\") | student_enrolment_courses : student_course_id (28982908, 70882679, 604750), student_enrolment_id (14, 14, 13), course_id (2, 13, 11) | addresses : line_2 (\"Suite 079\", \"Apt. 406\", \"Apt. 583\"), city (\"Prohaskafort\", \"Port Elvisfurt\", \"Michelleburgh\"), state_province_county (\"Arkansas\", \"Wyoming\", \"Florida\"), country (\"New Caledonia\", \"Haiti\", \"New Caledonia\"), other_address_details (None), zip_postcode (\"943\", \"590\", \"638\"), line_1 (\"979 Haag Shores Suite 656\", \"67942 Carlotta Ferry Apt. 686\", \"858 Peggie Bypass Suite 212\"), address_id (14, 13, 8), line_3 (None) | students : first_name (\"Jordy\", \"Frida\", \"Jordy\"), current_address_id (1, 2, 2), student_id (6, 5, 9), middle_name (\"Violet\", \"Aaliyah\", \"Anna\"), date_first_registered (\"2009-09-25 00:14:25\", \"1989-05-24 23:31:29\", \"1971-02-05 07:28:23\"), last_name (\"Huel\", \"Balistreri\", \"Weimann\"), other_student_details (\"autem\", \"dolorum\", \"laborum\"), date_left (\"2007-11-28 12:50:21\", \"2006-08-04 17:26:49\", \"2006-08-04 17:26:49\"), permanent_address_id (3, 15, 8), ssn (\"68095\", \"402\", \"3\"), email_address (\"lhartmann@example.org\", \"nbruen@example.org\", \"beth42@example.org\"), cell_mobile_number (\"(982)153-1469x1733\", \"09700166582\", \"07661787471\") | courses : course_description (\"c\", \"v\", \"p\"), other_details (None), course_name (\"en\", \"rs\", \"db\"), course_id (14, 13, 15) | Student_Registration : student_id (6, 14, 12), semester_id (5, 13, 2), student_enrolment_id (7, 15, 1), degree_program_id (2, 9, 10), other_details (None) | transcripts : transcript_id (9, 11, 12), other_details (None), transcript_date (\"1975-05-20 18:31:21\", \"1975-10-28 15:16:51\", \"1985-04-29 01:20:20\") | semesters : semester_name (\"spring 2017\", \"winter 2010\", \"spring 2017\"), semester_description (\"o\", \"m\", \"m\"), other_details (None), semester_id (10, 4, 15) | Enrolment_Tracking : student_id (6, 14, 12), semester_id (5, 13, 2), student_enrolment_id (7, 15, 1), degree_program_id (2, 9, 10), other_details (None)", + "schema_without_content": "sections : course_id , section_id , section_description , other_details , section_name | departments : department_description , department_name , other_details , department_id | transcript_contents : transcript_id , student_course_id | degree_programs : department_id , other_details , degree_summary_name , degree_program_id , degree_summary_description | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | addresses : line_2 , city , state_province_county , country , other_address_details , zip_postcode , line_1 , address_id , line_3 | students : first_name , current_address_id , student_id , middle_name , date_first_registered , last_name , other_student_details , date_left , permanent_address_id , ssn , email_address , cell_mobile_number 153-1469x1733\", \"09700166582\", \"07661787471\" | courses : course_description , other_details , course_name , course_id | Student_Registration : student_id , semester_id , student_enrolment_id , degree_program_id , other_details | transcripts : transcript_id , other_details , transcript_date | semesters : semester_name , semester_description , other_details , semester_id | Enrolment_Tracking : student_id , semester_id , student_enrolment_id , degree_program_id , other_details", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "ids": "Students.student_id", + "students": "Students", + "enrolled in 2 degree programs in one semester": "Student_Enrolment", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "who is enrolled in a #bachelor degree program# ? list the #first name# , #middle name# , #last name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "transcripts : other_details (None), transcript_date (\"1985-08-21 09:32:39\", \"1985-04-29 01:20:20\", \"2002-09-24 06:11:49\"), transcript_id (11, 3, 3) | sections : other_details (None), section_description (\"voluptatem\", \"et\", \"ad\"), course_id (9, 7, 2), section_name (\"j\", \"y\", \"a\"), section_id (15, 2, 7) | semesters : semester_name (\"spring 2010\", \"spring 2012\", \"spring 2015\"), semester_description (\"c\", \"t\", \"y\"), semester_id (13, 10, 4), other_details (None) | courses : course_name (\"dl\", \"oop\", \"pl\"), other_details (None), course_id (15, 1, 8), course_description (\"l\", \"p\", \"d\") | transcript_contents : transcript_id (8, 12, 13), student_course_id (8, 28982908, 76) | departments : department_name (\"management\", \"management\", \"linguistic\"), department_id (15, 2, 14), other_details (None), department_description (\"doloribus\", \"dolorem\", \"natus\") | students : other_student_details (\"facilis\", \"non\", \"assumenda\"), cell_mobile_number (\"677.401.9382\", \"(605)919-3594x3661\", \"(982)153-1469x1733\"), email_address (\"jillian26@example.net\", \"nbruen@example.org\", \"nbruen@example.org\"), middle_name (\"Lorenz\", \"Vaughn\", \"Violet\"), date_left (\"2006-08-04 17:26:49\", \"1990-09-01 05:03:27\", \"2004-12-08 05:29:11\"), last_name (\"Rempel\", \"Ankunding\", \"Carroll\"), student_id (9, 8, 9), ssn (\"304246\", \"668\", \"39\"), date_first_registered (\"2017-01-04 08:10:25\", \"1997-03-20 16:47:25\", \"1986-02-24 21:12:23\"), current_address_id (6, 6, 9), first_name (\"Orrin\", \"Jarvis\", \"Timmothy\"), permanent_address_id (11, 4, 11) | Academic_Programs : other_details (None), department_id (2, 2, 11), degree_summary_description (\"unde\", \"voluptas\", \"assumenda\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 4, 14) | student_enrolment_courses : course_id (8, 11, 12), student_enrolment_id (5, 8, 2), student_course_id (45105806, 7, 96) | student_enrolment : semester_id (15, 6, 13), degree_program_id (8, 9, 4), other_details (None), student_id (4, 1, 7), student_enrolment_id (15, 4, 3) | Majors : other_details (None), department_id (2, 2, 11), degree_summary_description (\"unde\", \"voluptas\", \"assumenda\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 4, 14) | addresses : zip_postcode (\"068\", \"541\", \"068\"), other_address_details (None), country (\"Gabon\", \"Haiti\", \"Kyrgyz Republic\"), line_1 (\"0144 Lamar Plaza Apt. 346\", \"9283 Schulist Falls Apt. 037\", \"0643 Muller Vista\"), line_2 (\"Apt. 388\", \"Apt. 406\", \"Suite 703\"), state_province_county (\"Wyoming\", \"Kansas\", \"Delaware\"), address_id (13, 12, 7), line_3 (None), city (\"Michelleburgh\", \"Port Elvisfurt\", \"Port Evanston\")", + "schema_without_content": "transcripts : other_details , transcript_date , transcript_id | sections : other_details , section_description , course_id , section_name , section_id | semesters : semester_name , semester_description , semester_id , other_details | courses : course_name , other_details , course_id , course_description | transcript_contents : transcript_id , student_course_id | departments : department_name , department_id , other_details , department_description | students : other_student_details , cell_mobile_number 919-3594x3661\", \"153-1469x1733\", email_address , middle_name , date_left , last_name , student_id , ssn , date_first_registered , current_address_id , first_name , permanent_address_id | Academic_Programs : other_details , department_id , degree_summary_description , degree_summary_name , degree_program_id | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | student_enrolment : semester_id , degree_program_id , other_details , student_id , student_enrolment_id | Majors : other_details , department_id , degree_summary_description , degree_summary_name , degree_program_id | addresses : zip_postcode , other_address_details , country , line_1 , line_2 , state_province_county , address_id , line_3 , city", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "Bachelor degree program": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "who is enrolled in a #bachelor degree program# ? list the #first name# , #middle name# , #last name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "Pupils : permanent_address_id (5, 5, 14), first_name (\"Delaney\", \"Frida\", \"Frida\"), last_name (\"Ward\", \"Osinski\", \"Balistreri\"), cell_mobile_number (\"(462)246-7921\", \"677.401.9382\", \"1-879-796-8987x164\"), other_student_details (\"dolorum\", \"rerum\", \"voluptatem\"), ssn (\"156\", \"6274274\", \"39\"), date_first_registered (\"1982-06-19 13:15:18\", \"2005-12-15 08:42:10\", \"2004-12-24 12:36:46\"), current_address_id (9, 6, 6), email_address (\"skassulke@example.net\", \"jhuel@example.com\", \"jillian26@example.net\"), student_id (2, 6, 9), date_left (\"2016-04-09 12:27:04\", \"1971-05-17 19:28:49\", \"2007-03-31 09:53:19\"), middle_name (\"Judd\", \"Mona\", \"Neal\") | sections : section_description (\"voluptatem\", \"et\", \"nesciunt\"), other_details (None), section_name (\"o\", \"j\", \"p\"), section_id (8, 15, 1), course_id (14, 12, 5) | transcript_contents : transcript_id (8, 12, 5), student_course_id (76, 96, 28982908) | semesters : semester_description (\"q\", \"f\", \"f\"), semester_id (8, 5, 1), other_details (None), semester_name (\"spring 2014\", \"winter 2010\", \"spring 2010\") | transcripts : transcript_id (12, 6, 3), other_details (None), transcript_date (\"1985-08-21 09:32:39\", \"1999-01-06 20:06:46\", \"2010-12-13 10:55:15\") | degree_programs : degree_summary_description (\"voluptas\", \"quam\", \"architecto\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (8, 13, 3), degree_program_id (7, 10, 11), other_details (None) | courses : course_name (\"ds\", \"dl\", \"en\"), course_description (\"n\", \"b\", \"n\"), course_id (12, 11, 13), other_details (None) | addresses : state_province_county (\"Arkansas\", \"Hawaii\", \"Wyoming\"), line_3 (None), address_id (1, 6, 9), line_2 (\"Suite 703\", \"Apt. 468\", \"Suite 674\"), city (\"Port Elvisfurt\", \"Lake Careyberg\", \"South Palma\"), country (\"Iceland\", \"Angola\", \"Cook Islands\"), line_1 (\"858 Peggie Bypass Suite 212\", \"979 Haag Shores Suite 656\", \"0144 Lamar Plaza Apt. 346\"), zip_postcode (\"446\", \"847\", \"541\"), other_address_details (None) | student_enrolment_courses : course_id (3, 13, 2), student_course_id (0, 0, 96), student_enrolment_id (14, 9, 6) | departments : department_description (\"ea\", \"dolorem\", \"dolorem\"), department_id (11, 3, 15), department_name (\"math\", \"economics\", \"engineer\"), other_details (None) | student_enrolment : student_id (5, 5, 7), degree_program_id (8, 9, 10), student_enrolment_id (4, 11, 8), semester_id (13, 15, 2), other_details (None) | Learners : permanent_address_id (5, 5, 14), first_name (\"Delaney\", \"Frida\", \"Frida\"), last_name (\"Ward\", \"Osinski\", \"Balistreri\"), cell_mobile_number (\"(462)246-7921\", \"677.401.9382\", \"1-879-796-8987x164\"), other_student_details (\"dolorum\", \"rerum\", \"voluptatem\"), ssn (\"156\", \"6274274\", \"39\"), date_first_registered (\"1982-06-19 13:15:18\", \"2005-12-15 08:42:10\", \"2004-12-24 12:36:46\"), current_address_id (9, 6, 6), email_address (\"skassulke@example.net\", \"jhuel@example.com\", \"jillian26@example.net\"), student_id (2, 6, 9), date_left (\"2016-04-09 12:27:04\", \"1971-05-17 19:28:49\", \"2007-03-31 09:53:19\"), middle_name (\"Judd\", \"Mona\", \"Neal\")", + "schema_without_content": "Pupils : permanent_address_id , first_name , last_name , cell_mobile_number 246-7921\", \"677.401.9382\", \"1-879-796-8987x164\", other_student_details , ssn , date_first_registered , current_address_id , email_address , student_id , date_left , middle_name | sections : section_description , other_details , section_name , section_id , course_id | transcript_contents : transcript_id , student_course_id | semesters : semester_description , semester_id , other_details , semester_name | transcripts : transcript_id , other_details , transcript_date | degree_programs : degree_summary_description , degree_summary_name , department_id , degree_program_id , other_details | courses : course_name , course_description , course_id , other_details | addresses : state_province_county , line_3 , address_id , line_2 , city , country , line_1 , zip_postcode , other_address_details | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | departments : department_description , department_id , department_name , other_details | student_enrolment : student_id , degree_program_id , student_enrolment_id , semester_id , other_details | Learners : permanent_address_id , first_name , last_name , cell_mobile_number 246-7921\", \"677.401.9382\", \"1-879-796-8987x164\", other_student_details , ssn , date_first_registered , current_address_id , email_address , student_id , date_left , middle_name", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "Bachelor degree program": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "who is enrolled in a #bachelor degree program# ? list the #first name# , #middle name# , #last name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "Student_Registration : degree_program_id (9, 2, 12), student_id (1, 7, 4), student_enrolment_id (3, 4, 10), semester_id (9, 9, 15), other_details (None) | students : email_address (\"erwin.zboncak@example.com\", \"skassulke@example.net\", \"nbruen@example.org\"), permanent_address_id (14, 5, 15), first_name (\"Jordy\", \"Helga\", \"Jordy\"), middle_name (\"Cleve\", \"Lorenz\", \"Cleve\"), current_address_id (6, 10, 2), date_left (\"2016-04-09 12:27:04\", \"2007-11-28 12:50:21\", \"2013-10-05 17:41:28\"), last_name (\"Kemmer\", \"Schuppe\", \"Rogahn\"), other_student_details (\"atque\", \"omnis\", \"qui\"), date_first_registered (\"1976-10-26 02:33:06\", \"2009-09-25 00:14:25\", \"1971-02-05 07:28:23\"), ssn (\"668\", \"965\", \"34458427\"), cell_mobile_number (\"03174364122\", \"(982)153-1469x1733\", \"(605)919-3594x3661\"), student_id (1, 3, 14) | degree_programs : other_details (None), degree_summary_description (\"officiis\", \"unde\", \"quam\"), department_id (4, 8, 14), degree_program_id (13, 4, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | courses : course_description (\"w\", \"p\", \"c\"), other_details (None), course_id (11, 5, 8), course_name (\"ai\", \"db\", \"pl\") | Enrolment_Tracking : degree_program_id (9, 2, 12), student_id (1, 7, 4), student_enrolment_id (3, 4, 10), semester_id (9, 9, 15), other_details (None) | student_enrolment_courses : student_course_id (96, 604750, 681404), course_id (12, 10, 2), student_enrolment_id (9, 9, 13) | addresses : other_address_details (None), zip_postcode (\"669\", \"068\", \"446\"), line_1 (\"7081 Eda Center\", \"16998 Mraz Lodge\", \"67942 Carlotta Ferry Apt. 686\"), city (\"Port Oceane\", \"Port Evanston\", \"Herzoghaven\"), country (\"Iceland\", \"Croatia\", \"Haiti\"), line_2 (\"Suite 239\", \"Suite 079\", \"Apt. 388\"), address_id (12, 2, 13), line_3 (None), state_province_county (\"Wyoming\", \"Hawaii\", \"Hawaii\") | sections : section_description (\"voluptas\", \"provident\", \"ad\"), section_name (\"o\", \"u\", \"c\"), section_id (9, 4, 10), course_id (1, 12, 9), other_details (None) | semesters : semester_id (7, 2, 7), semester_description (\"x\", \"x\", \"o\"), other_details (None), semester_name (\"spring 2013\", \"fall 2018\", \"spring 2016\") | transcripts : transcript_id (4, 12, 8), transcript_date (\"1984-01-18 23:07:07\", \"1984-01-18 23:07:07\", \"1985-04-29 01:20:20\"), other_details (None) | departments : department_description (\"nostrum\", \"consequatur\", \"natus\"), department_name (\"engineer\", \"engineer\", \"drama\"), other_details (None), department_id (9, 4, 2) | transcript_contents : student_course_id (28982908, 76, 45105806), transcript_id (5, 13, 6)", + "schema_without_content": "Student_Registration : degree_program_id , student_id , student_enrolment_id , semester_id , other_details | students : email_address , permanent_address_id , first_name , middle_name , current_address_id , date_left , last_name , other_student_details , date_first_registered , ssn , cell_mobile_number 153-1469x1733\", \"919-3594x3661\", student_id | degree_programs : other_details , degree_summary_description , department_id , degree_program_id , degree_summary_name | courses : course_description , other_details , course_id , course_name | Enrolment_Tracking : degree_program_id , student_id , student_enrolment_id , semester_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | addresses : other_address_details , zip_postcode , line_1 , city , country , line_2 , address_id , line_3 , state_province_county | sections : section_description , section_name , section_id , course_id , other_details | semesters : semester_id , semester_description , other_details , semester_name | transcripts : transcript_id , transcript_date , other_details | departments : department_description , department_name , other_details , department_id | transcript_contents : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "Bachelor degree program": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "what are the first, middle, and last names for everybody en #rolled in a bachelors program?# ", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "student_enrolment_courses : student_enrolment_id (2, 8, 5), course_id (11, 2, 4), student_course_id (9860, 2, 45105806) | Majors : other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 6, 6), degree_summary_description (\"earum\", \"cumque\", \"architecto\"), department_id (14, 2, 8) | semesters : semester_name (\"spring 2015\", \"spring 2017\", \"winter 2018\"), semester_id (3, 9, 15), semester_description (\"c\", \"g\", \"l\"), other_details (None) | departments : other_details (None), department_description (\"nostrum\", \"nisi\", \"nihil\"), department_id (10, 14, 13), department_name (\"computer science\", \"dance\", \"dance\") | Academic_Programs : other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 6, 6), degree_summary_description (\"earum\", \"cumque\", \"architecto\"), department_id (14, 2, 8) | addresses : zip_postcode (\"669\", \"541\", \"895\"), other_address_details (None), line_1 (\"858 Peggie Bypass Suite 212\", \"2294 Grant Square Apt. 235\", \"858 Peggie Bypass Suite 212\"), line_2 (\"Apt. 583\", \"Apt. 370\", \"Suite 383\"), city (\"Port Oceane\", \"Port Evanston\", \"Lake Laishafurt\"), state_province_county (\"Washington\", \"Virginia\", \"Florida\"), address_id (9, 8, 13), country (\"Gabon\", \"Lesotho\", \"Angola\"), line_3 (None) | transcripts : transcript_date (\"1990-03-05 11:59:41\", \"1990-03-05 11:59:41\", \"1975-10-28 15:16:51\"), other_details (None), transcript_id (10, 10, 9) | courses : course_name (\"ai\", \"os\", \"fr\"), course_id (7, 9, 15), course_description (\"k\", \"v\", \"k\"), other_details (None) | transcript_contents : transcript_id (15, 15, 13), student_course_id (76, 8, 2) | sections : section_description (\"facilis\", \"facilis\", \"quis\"), section_name (\"u\", \"u\", \"p\"), course_id (6, 12, 7), other_details (None), section_id (11, 2, 9) | student_enrolment : degree_program_id (12, 2, 8), student_id (9, 12, 14), student_enrolment_id (15, 2, 1), semester_id (15, 4, 15), other_details (None) | students : email_address (\"jhuel@example.com\", \"beth42@example.org\", \"beth42@example.org\"), permanent_address_id (11, 15, 4), student_id (14, 8, 13), date_left (\"2014-05-30 23:32:02\", \"2016-04-09 12:27:04\", \"1975-10-09 00:49:27\"), middle_name (\"Mossie\", \"Brooklyn\", \"Anna\"), first_name (\"Gregg\", \"Stanford\", \"Hobart\"), other_student_details (\"atque\", \"et\", \"nesciunt\"), current_address_id (7, 7, 10), last_name (\"Ward\", \"Rogahn\", \"Rogahn\"), ssn (\"965\", \"668\", \"402\"), date_first_registered (\"1973-05-19 19:12:46\", \"1973-05-19 19:12:46\", \"2007-08-29 23:25:41\"), cell_mobile_number (\"677.401.9382\", \"(507)365-8405\", \"(096)889-8954x524\")", + "schema_without_content": "student_enrolment_courses : student_enrolment_id , course_id , student_course_id | Majors : other_details , degree_summary_name , degree_program_id , degree_summary_description , department_id | semesters : semester_name , semester_id , semester_description , other_details | departments : other_details , department_description , department_id , department_name | Academic_Programs : other_details , degree_summary_name , degree_program_id , degree_summary_description , department_id | addresses : zip_postcode , other_address_details , line_1 , line_2 , city , state_province_county , address_id , country , line_3 | transcripts : transcript_date , other_details , transcript_id | courses : course_name , course_id , course_description , other_details | transcript_contents : transcript_id , student_course_id | sections : section_description , section_name , course_id , other_details , section_id | student_enrolment : degree_program_id , student_id , student_enrolment_id , semester_id , other_details | students : email_address , permanent_address_id , student_id , date_left , middle_name , first_name , other_student_details , current_address_id , last_name , ssn , date_first_registered , cell_mobile_number 365-8405\", \"889-8954x524\"", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "rolled in a Bachelors program?": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "enrolled": "Student_Enrolment" + } + }, + { + "question": "what are the first, middle, and last names for everybody en #rolled in a bachelors program?# ", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "degree_programs : department_id (14, 4, 13), degree_summary_description (\"cumque\", \"esse\", \"earum\"), other_details (None), degree_program_id (10, 7, 13), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | courses : other_details (None), course_description (\"d\", \"q\", \"p\"), course_id (6, 7, 11), course_name (\"en\", \"ai\", \"os\") | Pupils : first_name (\"Frida\", \"Jordy\", \"Gregg\"), last_name (\"Jaskolski\", \"Osinski\", \"Gleichner\"), permanent_address_id (11, 15, 9), student_id (2, 10, 14), date_first_registered (\"1982-02-14 08:46:35\", \"1989-05-24 23:31:29\", \"1997-03-20 16:47:25\"), ssn (\"141072406\", \"248\", \"141072406\"), other_student_details (\"facilis\", \"voluptatem\", \"et\"), cell_mobile_number (\"1-879-796-8987x164\", \"1-009-710-5151\", \"1-879-796-8987x164\"), middle_name (\"Lorenz\", \"Mona\", \"Osborne\"), current_address_id (7, 7, 1), email_address (\"erwin.zboncak@example.com\", \"erwin.zboncak@example.com\", \"erwin.zboncak@example.com\"), date_left (\"1999-08-24 00:07:10\", \"2007-03-31 09:53:19\", \"2013-10-05 17:41:28\") | addresses : line_1 (\"16998 Mraz Lodge\", \"3999 Aufderhar Ways Suite 593\", \"0643 Muller Vista\"), state_province_county (\"Idaho\", \"Washington\", \"Virginia\"), address_id (7, 3, 7), country (\"Samoa\", \"Samoa\", \"Angola\"), other_address_details (None), zip_postcode (\"777\", \"386\", \"839\"), line_3 (None), line_2 (\"Apt. 370\", \"Apt. 468\", \"Suite 865\"), city (\"Goodwinhaven\", \"Rutherfordtown\", \"New Clemensburgh\") | sections : section_id (13, 15, 13), section_name (\"c\", \"b\", \"h\"), section_description (\"et\", \"ad\", \"voluptas\"), other_details (None), course_id (2, 1, 7) | semesters : semester_id (13, 9, 2), semester_name (\"spring 2016\", \"spring 2014\", \"spring 2018\"), semester_description (\"f\", \"l\", \"x\"), other_details (None) | student_enrolment_courses : student_course_id (2, 96, 2), student_enrolment_id (8, 9, 10), course_id (4, 2, 14) | departments : department_description (\"nostrum\", \"doloribus\", \"aliquam\"), department_name (\"drama\", \"linguistic\", \"history\"), department_id (12, 4, 3), other_details (None) | transcripts : transcript_date (\"1990-03-05 11:59:41\", \"1990-03-05 11:59:41\", \"2010-12-13 10:55:15\"), other_details (None), transcript_id (1, 15, 11) | student_enrolment : other_details (None), student_id (5, 6, 6), degree_program_id (12, 11, 8), semester_id (12, 9, 13), student_enrolment_id (11, 4, 12) | transcript_contents : transcript_id (2, 11, 6), student_course_id (96, 28982908, 0) | Learners : first_name (\"Frida\", \"Jordy\", \"Gregg\"), last_name (\"Jaskolski\", \"Osinski\", \"Gleichner\"), permanent_address_id (11, 15, 9), student_id (2, 10, 14), date_first_registered (\"1982-02-14 08:46:35\", \"1989-05-24 23:31:29\", \"1997-03-20 16:47:25\"), ssn (\"141072406\", \"248\", \"141072406\"), other_student_details (\"facilis\", \"voluptatem\", \"et\"), cell_mobile_number (\"1-879-796-8987x164\", \"1-009-710-5151\", \"1-879-796-8987x164\"), middle_name (\"Lorenz\", \"Mona\", \"Osborne\"), current_address_id (7, 7, 1), email_address (\"erwin.zboncak@example.com\", \"erwin.zboncak@example.com\", \"erwin.zboncak@example.com\"), date_left (\"1999-08-24 00:07:10\", \"2007-03-31 09:53:19\", \"2013-10-05 17:41:28\")", + "schema_without_content": "degree_programs : department_id , degree_summary_description , other_details , degree_program_id , degree_summary_name | courses : other_details , course_description , course_id , course_name | Pupils : first_name , last_name , permanent_address_id , student_id , date_first_registered , ssn , other_student_details , cell_mobile_number , middle_name , current_address_id , email_address , date_left | addresses : line_1 , state_province_county , address_id , country , other_address_details , zip_postcode , line_3 , line_2 , city | sections : section_id , section_name , section_description , other_details , course_id | semesters : semester_id , semester_name , semester_description , other_details | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | departments : department_description , department_name , department_id , other_details | transcripts : transcript_date , other_details , transcript_id | student_enrolment : other_details , student_id , degree_program_id , semester_id , student_enrolment_id | transcript_contents : transcript_id , student_course_id | Learners : first_name , last_name , permanent_address_id , student_id , date_first_registered , ssn , other_student_details , cell_mobile_number , middle_name , current_address_id , email_address , date_left", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "rolled in a Bachelors program?": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "enrolled": "Student_Enrolment" + } + }, + { + "question": "what are the first, middle, and last names for everybody en #rolled in a bachelors program?# ", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.first_name, t1.middle_name, t1.last_name from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id join degree_programs as t3 on t2.degree_program_id = t3.degree_program_id where t3.degree_summary_name = 'Bachelor'", + "schema_with_content": "transcripts : other_details (None), transcript_id (3, 9, 12), transcript_date (\"1975-05-20 18:31:21\", \"1999-01-06 20:06:46\", \"1985-04-29 01:20:20\") | student_enrolment_courses : student_course_id (45105806, 9860, 0), student_enrolment_id (14, 4, 2), course_id (13, 13, 13) | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (15, 3, 13), degree_program_id (1, 8, 5), other_details (None), degree_summary_description (\"esse\", \"cumque\", \"qui\") | Enrolment_Tracking : student_id (14, 4, 7), other_details (None), semester_id (15, 4, 15), degree_program_id (9, 8, 12), student_enrolment_id (5, 15, 9) | departments : department_name (\"medical\", \"law\", \"math\"), department_id (11, 10, 15), department_description (\"ea\", \"in\", \"consequatur\"), other_details (None) | students : current_address_id (6, 7, 1), date_first_registered (\"2017-01-04 08:10:25\", \"2017-01-04 08:10:25\", \"1997-03-20 16:47:25\"), last_name (\"Jaskolski\", \"Huel\", \"Mohr\"), student_id (10, 15, 14), date_left (\"2007-11-28 12:50:21\", \"1990-09-01 05:03:27\", \"2013-10-05 17:41:28\"), cell_mobile_number (\"171-642-5684\", \"07661787471\", \"677.401.9382\"), middle_name (\"Brooklyn\", \"Vaughn\", \"Lorenz\"), email_address (\"lhartmann@example.org\", \"nbruen@example.org\", \"qo'kon@example.com\"), ssn (\"39\", \"6274274\", \"248\"), other_student_details (\"non\", \"laborum\", \"omnis\"), permanent_address_id (3, 11, 3), first_name (\"Jordy\", \"Jordy\", \"Stanford\") | semesters : semester_name (\"spring 2019\", \"winter 2010\", \"spring 2010\"), semester_id (7, 13, 15), other_details (None), semester_description (\"y\", \"l\", \"g\") | addresses : line_1 (\"16998 Mraz Lodge\", \"0643 Muller Vista\", \"0144 Lamar Plaza Apt. 346\"), line_2 (\"Apt. 335\", \"Apt. 388\", \"Apt. 406\"), city (\"New Clemensburgh\", \"New Clemensburgh\", \"Rutherfordtown\"), zip_postcode (\"400\", \"068\", \"847\"), line_3 (None), other_address_details (None), address_id (12, 12, 13), country (\"Kyrgyz Republic\", \"Burundi\", \"Lesotho\"), state_province_county (\"Kansas\", \"Idaho\", \"Arkansas\") | transcript_contents : student_course_id (8, 76, 45105806), transcript_id (5, 8, 12) | Student_Registration : student_id (14, 4, 7), other_details (None), semester_id (15, 4, 15), degree_program_id (9, 8, 12), student_enrolment_id (5, 15, 9) | courses : course_name (\"ds\", \"la\", \"cal\"), course_id (12, 10, 4), course_description (\"v\", \"d\", \"n\"), other_details (None) | sections : course_id (5, 4, 12), other_details (None), section_name (\"p\", \"y\", \"d\"), section_description (\"ex\", \"doloremque\", \"reprehenderit\"), section_id (10, 5, 5)", + "schema_without_content": "transcripts : other_details , transcript_id , transcript_date | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | degree_programs : degree_summary_name , department_id , degree_program_id , other_details , degree_summary_description | Enrolment_Tracking : student_id , other_details , semester_id , degree_program_id , student_enrolment_id | departments : department_name , department_id , department_description , other_details | students : current_address_id , date_first_registered , last_name , student_id , date_left , cell_mobile_number , middle_name , email_address , ssn , other_student_details , permanent_address_id , first_name | semesters : semester_name , semester_id , other_details , semester_description | addresses : line_1 , line_2 , city , zip_postcode , line_3 , other_address_details , address_id , country , state_province_county | transcript_contents : student_course_id , transcript_id | Student_Registration : student_id , other_details , semester_id , degree_program_id , student_enrolment_id | courses : course_name , course_id , course_description , other_details | sections : course_id , other_details , section_name , section_description , section_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "rolled in a Bachelors program?": "Degree_Programs.degree_summary_name", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "enrolled": "Student_Enrolment" + } + }, + { + "question": "find the #kind of program# which most number of #students are enrolled in# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_summary_name order by count(*) desc limit 1", + "schema_with_content": "transcript_contents : transcript_id (13, 6, 6), student_course_id (96, 28982908, 2) | departments : department_description (\"natus\", \"nihil\", \"doloribus\"), other_details (None), department_name (\"medical\", \"biology\", \"medical\"), department_id (11, 11, 4) | Academic_Programs : degree_program_id (11, 8, 5), degree_summary_description (\"officiis\", \"placeat\", \"aperiam\"), department_id (12, 11, 7), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None) | students : email_address (\"jhuel@example.com\", \"erwin.zboncak@example.com\", \"mya88@example.org\"), date_left (\"1971-05-17 19:28:49\", \"2007-08-02 04:12:58\", \"1982-06-11 00:25:39\"), last_name (\"Rogahn\", \"Balistreri\", \"Mohr\"), student_id (9, 10, 5), ssn (\"\", \"668\", \"141072406\"), cell_mobile_number (\"03174364122\", \"877.549.9067x8723\", \"(605)919-3594x3661\"), first_name (\"Warren\", \"Milton\", \"Milton\"), other_student_details (\"laborum\", \"et\", \"qui\"), permanent_address_id (3, 3, 15), middle_name (\"Anna\", \"Anna\", \"Violet\"), date_first_registered (\"1989-05-24 23:31:29\", \"2005-12-15 08:42:10\", \"2014-03-28 05:48:23\"), current_address_id (9, 12, 1) | sections : section_description (\"reprehenderit\", \"voluptatem\", \"voluptas\"), section_name (\"o\", \"b\", \"j\"), course_id (6, 2, 6), other_details (None), section_id (15, 6, 7) | student_enrolment_courses : student_enrolment_id (2, 2, 5), student_course_id (96, 0, 1), course_id (2, 4, 8) | semesters : semester_name (\"spring 2014\", \"spring 2012\", \"spring 2016\"), semester_description (\"m\", \"x\", \"x\"), other_details (None), semester_id (13, 4, 2) | addresses : line_3 (None), country (\"Kyrgyz Republic\", \"Norfolk Island\", \"Bermuda\"), state_province_county (\"Kansas\", \"SouthDakota\", \"Kansas\"), line_1 (\"979 Haag Shores Suite 656\", \"9283 Schulist Falls Apt. 037\", \"74046 Metz Walk Apt. 113\"), city (\"Lake Careyberg\", \"North Omer\", \"Lake Careyberg\"), line_2 (\"Apt. 689\", \"Apt. 335\", \"Apt. 689\"), zip_postcode (\"148\", \"902\", \"446\"), address_id (13, 6, 11), other_address_details (None) | student_enrolment : student_enrolment_id (5, 13, 10), semester_id (15, 13, 5), degree_program_id (8, 8, 12), student_id (1, 12, 4), other_details (None) | transcripts : transcript_date (\"1975-05-20 18:31:21\", \"1990-03-05 11:59:41\", \"1988-04-30 01:19:47\"), other_details (None), transcript_id (7, 14, 1) | courses : course_description (\"b\", \"l\", \"l\"), course_id (12, 13, 2), course_name (\"db\", \"os\", \"dl\"), other_details (None) | Majors : degree_program_id (11, 8, 5), degree_summary_description (\"officiis\", \"placeat\", \"aperiam\"), department_id (12, 11, 7), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None)", + "schema_without_content": "transcript_contents : transcript_id , student_course_id | departments : department_description , other_details , department_name , department_id | Academic_Programs : degree_program_id , degree_summary_description , department_id , degree_summary_name , other_details | students : email_address , date_left , last_name , student_id , ssn , cell_mobile_number 919-3594x3661\", first_name , other_student_details , permanent_address_id , middle_name , date_first_registered , current_address_id | sections : section_description , section_name , course_id , other_details , section_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | semesters : semester_name , semester_description , other_details , semester_id | addresses : line_3 , country , state_province_county , line_1 , city , line_2 , zip_postcode , address_id , other_address_details | student_enrolment : student_enrolment_id , semester_id , degree_program_id , student_id , other_details | transcripts : transcript_date , other_details , transcript_id | courses : course_description , course_id , course_name , other_details | Majors : degree_program_id , degree_summary_description , department_id , degree_summary_name , other_details", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "kind of program": "Degree_Programs.degree_summary_name", + "students are enrolled in": "Student_Enrolment" + } + }, + { + "question": "find the #kind of program# which most number of #students are enrolled in# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_summary_name order by count(*) desc limit 1", + "schema_with_content": "transcripts : other_details (None), transcript_id (11, 10, 15), transcript_date (\"1988-04-30 01:19:47\", \"1985-08-21 09:32:39\", \"1975-05-06 12:04:47\") | transcript_contents : transcript_id (2, 2, 12), student_course_id (96, 96, 45105806) | addresses : zip_postcode (\"068\", \"847\", \"902\"), country (\"Saudi Arabia\", \"Iceland\", \"Norfolk Island\"), address_id (7, 2, 6), other_address_details (None), line_2 (\"Suite 674\", \"Suite 674\", \"Apt. 335\"), line_3 (None), city (\"North Omer\", \"Lake Laishafurt\", \"North Omer\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"202 Hessel Views Apt. 468\", \"7081 Eda Center\"), state_province_county (\"Florida\", \"WestVirginia\", \"SouthDakota\") | departments : other_details (None), department_description (\"aliquam\", \"error\", \"dolorem\"), department_id (4, 2, 5), department_name (\"geography\", \"biology\", \"management\") | semesters : other_details (None), semester_name (\"fall 2010\", \"spring 2019\", \"spring 2017\"), semester_id (10, 13, 5), semester_description (\"t\", \"w\", \"w\") | degree_programs : degree_program_id (8, 15, 2), degree_summary_description (\"aperiam\", \"earum\", \"aut\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (13, 7, 13) | sections : section_name (\"j\", \"c\", \"y\"), course_id (9, 8, 4), section_description (\"doloremque\", \"et\", \"nesciunt\"), section_id (2, 7, 10), other_details (None) | Enrolment_Tracking : other_details (None), student_enrolment_id (1, 1, 5), degree_program_id (12, 3, 4), semester_id (12, 1, 12), student_id (1, 12, 9) | courses : course_description (\"q\", \"d\", \"c\"), other_details (None), course_id (10, 5, 6), course_name (\"nlp\", \"oop\", \"ds\") | students : permanent_address_id (5, 4, 9), first_name (\"Stanford\", \"Reva\", \"Jordy\"), last_name (\"Mohr\", \"Christiansen\", \"Balistreri\"), ssn (\"39\", \"6274274\", \"141072406\"), current_address_id (9, 2, 10), student_id (1, 7, 12), other_student_details (\"facilis\", \"quia\", \"nesciunt\"), date_left (\"2016-04-09 12:27:04\", \"2007-11-28 12:50:21\", \"2006-08-04 17:26:49\"), date_first_registered (\"1982-06-19 13:15:18\", \"1997-03-20 16:47:25\", \"2017-01-04 08:10:25\"), email_address (\"nya.lesch@example.net\", \"lhartmann@example.org\", \"baumbach.lucious@example.org\"), middle_name (\"Vaughn\", \"Vaughn\", \"Judd\"), cell_mobile_number (\"1-879-796-8987x164\", \"(982)153-1469x1733\", \"436.613.7683\") | student_enrolment_courses : student_course_id (96, 681404, 438800), student_enrolment_id (5, 8, 10), course_id (11, 6, 2) | Student_Registration : other_details (None), student_enrolment_id (1, 1, 5), degree_program_id (12, 3, 4), semester_id (12, 1, 12), student_id (1, 12, 9)", + "schema_without_content": "transcripts : other_details , transcript_id , transcript_date | transcript_contents : transcript_id , student_course_id | addresses : zip_postcode , country , address_id , other_address_details , line_2 , line_3 , city , line_1 , state_province_county | departments : other_details , department_description , department_id , department_name | semesters : other_details , semester_name , semester_id , semester_description | degree_programs : degree_program_id , degree_summary_description , other_details , degree_summary_name , department_id | sections : section_name , course_id , section_description , section_id , other_details | Enrolment_Tracking : other_details , student_enrolment_id , degree_program_id , semester_id , student_id | courses : course_description , other_details , course_id , course_name | students : permanent_address_id , first_name , last_name , ssn , current_address_id , student_id , other_student_details , date_left , date_first_registered , email_address , middle_name , cell_mobile_number 153-1469x1733\", \"436.613.7683\" | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | Student_Registration : other_details , student_enrolment_id , degree_program_id , semester_id , student_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "kind of program": "Degree_Programs.degree_summary_name", + "students are enrolled in": "Student_Enrolment" + } + }, + { + "question": "what is the #degree summary name# that has the most number of #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_summary_name order by count(*) desc limit 1", + "schema_with_content": "addresses : line_2 (\"Apt. 583\", \"Suite 830\", \"Apt. 305\"), zip_postcode (\"386\", \"541\", \"446\"), city (\"Mariliehaven\", \"North Omer\", \"Port Oceane\"), state_province_county (\"Virginia\", \"WestVirginia\", \"Delaware\"), country (\"Kyrgyz Republic\", \"Kyrgyz Republic\", \"Samoa\"), line_1 (\"0144 Lamar Plaza Apt. 346\", \"9283 Schulist Falls Apt. 037\", \"9283 Schulist Falls Apt. 037\"), line_3 (None), other_address_details (None), address_id (13, 5, 5) | transcripts : other_details (None), transcript_date (\"2013-06-30 13:01:40\", \"1990-03-05 11:59:41\", \"1986-07-12 07:27:29\"), transcript_id (13, 15, 9) | students : current_address_id (7, 15, 15), last_name (\"Weimann\", \"Schuppe\", \"Christiansen\"), date_first_registered (\"1986-02-24 21:12:23\", \"2005-12-15 08:42:10\", \"2007-08-29 23:25:41\"), email_address (\"jillian26@example.net\", \"qo'kon@example.com\", \"lhartmann@example.org\"), student_id (9, 8, 11), other_student_details (\"et\", \"autem\", \"dolorum\"), ssn (\"39\", \"34458427\", \"3\"), permanent_address_id (9, 3, 3), middle_name (\"Lorenz\", \"Brooklyn\", \"Neal\"), cell_mobile_number (\"(605)919-3594x3661\", \"07661787471\", \"1-009-710-5151\"), first_name (\"Orrin\", \"Gregg\", \"Delaney\"), date_left (\"2016-04-09 12:27:04\", \"1990-09-01 05:03:27\", \"2016-04-09 12:27:04\") | courses : other_details (None), course_id (2, 15, 11), course_description (\"l\", \"n\", \"q\"), course_name (\"oop\", \"rs\", \"dl\") | transcript_contents : student_course_id (7, 70882679, 28982908), transcript_id (6, 2, 12) | sections : section_name (\"g\", \"u\", \"f\"), section_id (4, 13, 11), other_details (None), course_id (12, 2, 9), section_description (\"non\", \"qui\", \"ex\") | departments : department_name (\"computer science\", \"linguistic\", \"history\"), department_id (12, 13, 12), other_details (None), department_description (\"non\", \"consequatur\", \"non\") | student_enrolment : student_id (1, 4, 9), student_enrolment_id (9, 3, 5), degree_program_id (12, 10, 12), semester_id (1, 2, 6), other_details (None) | Academic_Programs : degree_summary_description (\"unde\", \"qui\", \"aut\"), other_details (None), department_id (4, 3, 15), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (12, 6, 3) | semesters : other_details (None), semester_name (\"spring 2012\", \"spring 2010\", \"summer 2010\"), semester_id (9, 4, 10), semester_description (\"w\", \"g\", \"y\") | student_enrolment_courses : student_course_id (2, 438800, 70882679), student_enrolment_id (5, 6, 4), course_id (14, 14, 8) | Majors : degree_summary_description (\"unde\", \"qui\", \"aut\"), other_details (None), department_id (4, 3, 15), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (12, 6, 3)", + "schema_without_content": "addresses : line_2 , zip_postcode , city , state_province_county , country , line_1 , line_3 , other_address_details , address_id | transcripts : other_details , transcript_date , transcript_id | students : current_address_id , last_name , date_first_registered , email_address , student_id , other_student_details , ssn , permanent_address_id , middle_name , cell_mobile_number 919-3594x3661\", \"07661787471\", \"1-009-710-5151\", first_name , date_left | courses : other_details , course_id , course_description , course_name | transcript_contents : student_course_id , transcript_id | sections : section_name , section_id , other_details , course_id , section_description | departments : department_name , department_id , other_details , department_description | student_enrolment : student_id , student_enrolment_id , degree_program_id , semester_id , other_details | Academic_Programs : degree_summary_description , other_details , department_id , degree_summary_name , degree_program_id | semesters : other_details , semester_name , semester_id , semester_description | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | Majors : degree_summary_description , other_details , department_id , degree_summary_name , degree_program_id", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "degree summary name": "Degree_Programs.degree_summary_name", + "students enrolled": "Student_Enrolment" + } + }, + { + "question": "what is the #degree summary name# that has the most number of #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_summary_name order by count(*) desc limit 1", + "schema_with_content": "courses : other_details (None), course_description (\"q\", \"n\", \"c\"), course_name (\"dl\", \"os\", \"dl\"), course_id (13, 13, 13) | Student_Registration : other_details (None), student_enrolment_id (6, 10, 7), degree_program_id (9, 9, 12), semester_id (4, 1, 13), student_id (7, 6, 4) | departments : other_details (None), department_name (\"management\", \"management\", \"biology\"), department_description (\"dolorem\", \"consequatur\", \"error\"), department_id (12, 3, 15) | transcript_contents : transcript_id (12, 9, 6), student_course_id (0, 8, 76) | degree_programs : degree_program_id (3, 15, 7), department_id (8, 11, 13), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_summary_description (\"quam\", \"cumque\", \"aut\") | students : date_first_registered (\"2007-08-29 23:25:41\", \"1982-06-19 13:15:18\", \"1982-06-19 13:15:18\"), other_student_details (\"assumenda\", \"laborum\", \"facilis\"), student_id (10, 2, 11), date_left (\"1990-09-01 05:03:27\", \"2014-05-30 23:32:02\", \"1999-08-24 00:07:10\"), current_address_id (6, 1, 12), first_name (\"Timmothy\", \"Timmothy\", \"Milton\"), permanent_address_id (8, 9, 14), middle_name (\"Mona\", \"Brooklyn\", \"Mossie\"), last_name (\"Rempel\", \"Christiansen\", \"Huel\"), ssn (\"668\", \"43\", \"156\"), email_address (\"dell43@example.net\", \"gracie29@example.com\", \"skassulke@example.net\"), cell_mobile_number (\"(605)919-3594x3661\", \"07661787471\", \"03174364122\") | student_enrolment_courses : course_id (12, 11, 3), student_enrolment_id (13, 14, 2), student_course_id (28982908, 28982908, 8) | addresses : state_province_county (\"Delaware\", \"Virginia\", \"Delaware\"), zip_postcode (\"839\", \"943\", \"148\"), country (\"Saudi Arabia\", \"Saudi Arabia\", \"Angola\"), address_id (15, 6, 12), city (\"Goodwinhaven\", \"Port Oceane\", \"South Palma\"), other_address_details (None), line_2 (\"Suite 865\", \"Apt. 388\", \"Suite 079\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"979 Haag Shores Suite 656\", \"0643 Muller Vista\"), line_3 (None) | sections : other_details (None), section_id (5, 14, 10), section_name (\"u\", \"h\", \"u\"), course_id (6, 5, 2), section_description (\"facilis\", \"qui\", \"nesciunt\") | Enrolment_Tracking : other_details (None), student_enrolment_id (6, 10, 7), degree_program_id (9, 9, 12), semester_id (4, 1, 13), student_id (7, 6, 4) | transcripts : other_details (None), transcript_id (3, 6, 13), transcript_date (\"1985-08-21 09:32:39\", \"1985-04-29 01:20:20\", \"1985-04-29 01:20:20\") | semesters : semester_name (\"fall 2010\", \"winter 2010\", \"spring 2019\"), other_details (None), semester_description (\"l\", \"m\", \"w\"), semester_id (2, 10, 9)", + "schema_without_content": "courses : other_details , course_description , course_name , course_id | Student_Registration : other_details , student_enrolment_id , degree_program_id , semester_id , student_id | departments : other_details , department_name , department_description , department_id | transcript_contents : transcript_id , student_course_id | degree_programs : degree_program_id , department_id , degree_summary_name , other_details , degree_summary_description | students : date_first_registered , other_student_details , student_id , date_left , current_address_id , first_name , permanent_address_id , middle_name , last_name , ssn , email_address , cell_mobile_number 919-3594x3661\", \"07661787471\", \"03174364122\" | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | addresses : state_province_county , zip_postcode , country , address_id , city , other_address_details , line_2 , line_1 , line_3 | sections : other_details , section_id , section_name , course_id , section_description | Enrolment_Tracking : other_details , student_enrolment_id , degree_program_id , semester_id , student_id | transcripts : other_details , transcript_id , transcript_date | semesters : semester_name , other_details , semester_description , semester_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "degree summary name": "Degree_Programs.degree_summary_name", + "students enrolled": "Student_Enrolment" + } + }, + { + "question": "what is the #program id# and the #summary of the degree# that has the most #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_program_id, t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_program_id order by count(*) desc limit 1", + "schema_with_content": "addresses : line_3 (None), zip_postcode (\"638\", \"943\", \"400\"), address_id (14, 10, 3), other_address_details (None), line_1 (\"202 Hessel Views Apt. 468\", \"7081 Eda Center\", \"0144 Lamar Plaza Apt. 346\"), country (\"Haiti\", \"Iceland\", \"Norfolk Island\"), state_province_county (\"Hawaii\", \"Florida\", \"Florida\"), city (\"Goodwinhaven\", \"Lake Careyberg\", \"New Clemensburgh\"), line_2 (\"Apt. 335\", \"Suite 703\", \"Apt. 305\") | sections : course_id (5, 7, 6), section_name (\"h\", \"l\", \"d\"), other_details (None), section_id (13, 14, 6), section_description (\"quis\", \"reprehenderit\", \"facilis\") | student_enrolment : other_details (None), degree_program_id (10, 10, 9), student_id (1, 4, 1), semester_id (2, 5, 15), student_enrolment_id (15, 11, 15) | semesters : semester_id (10, 5, 7), semester_name (\"fall 2010\", \"summer 2010\", \"winter 2010\"), semester_description (\"x\", \"c\", \"w\"), other_details (None) | student_enrolment_courses : course_id (2, 3, 6), student_enrolment_id (13, 5, 5), student_course_id (7, 9860, 2) | Academic_Programs : degree_summary_description (\"officiis\", \"cumque\", \"architecto\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (14, 1, 15), department_id (8, 3, 14) | courses : course_description (\"k\", \"d\", \"k\"), course_name (\"cal\", \"fr\", \"math\"), course_id (9, 4, 13), other_details (None) | transcript_contents : transcript_id (5, 2, 12), student_course_id (0, 96, 76) | departments : other_details (None), department_id (15, 7, 15), department_description (\"autem\", \"ea\", \"autem\"), department_name (\"management\", \"art\", \"history\") | students : last_name (\"Christiansen\", \"Rempel\", \"Kemmer\"), first_name (\"Delaney\", \"Stanford\", \"Jordy\"), permanent_address_id (5, 8, 8), cell_mobile_number (\"(507)365-8405\", \"436.613.7683\", \"07661787471\"), date_first_registered (\"1982-06-19 13:15:18\", \"1982-06-19 13:15:18\", \"1971-02-05 07:28:23\"), student_id (11, 2, 5), current_address_id (15, 9, 9), other_student_details (\"rerum\", \"qui\", \"nesciunt\"), middle_name (\"Vaughn\", \"Mona\", \"Neal\"), ssn (\"\", \"494\", \"34458427\"), date_left (\"2017-07-09 21:38:43\", \"1975-10-09 00:49:27\", \"1975-10-09 00:49:27\"), email_address (\"nbruen@example.org\", \"jillian26@example.net\", \"erwin.zboncak@example.com\") | transcripts : other_details (None), transcript_date (\"1999-01-06 20:06:46\", \"1975-05-20 18:31:21\", \"1975-05-06 12:04:47\"), transcript_id (6, 15, 6) | Majors : degree_summary_description (\"officiis\", \"cumque\", \"architecto\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (14, 1, 15), department_id (8, 3, 14)", + "schema_without_content": "addresses : line_3 , zip_postcode , address_id , other_address_details , line_1 , country , state_province_county , city , line_2 | sections : course_id , section_name , other_details , section_id , section_description | student_enrolment : other_details , degree_program_id , student_id , semester_id , student_enrolment_id | semesters : semester_id , semester_name , semester_description , other_details | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | Academic_Programs : degree_summary_description , other_details , degree_summary_name , degree_program_id , department_id | courses : course_description , course_name , course_id , other_details | transcript_contents : transcript_id , student_course_id | departments : other_details , department_id , department_description , department_name | students : last_name , first_name , permanent_address_id , cell_mobile_number 365-8405\", \"436.613.7683\", \"07661787471\", date_first_registered , student_id , current_address_id , other_student_details , middle_name , ssn , date_left , email_address | transcripts : other_details , transcript_date , transcript_id | Majors : degree_summary_description , other_details , degree_summary_name , degree_program_id , department_id", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "program id": "Degree_Programs.degree_program_id", + "summary of the degree": "Degree_Programs.degree_summary_name", + "students enrolled": "Student_Enrolment" + } + }, + { + "question": "what is the #program id# and the #summary of the degree# that has the most #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.degree_program_id, t1.degree_summary_name from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id group by t1.degree_program_id order by count(*) desc limit 1", + "schema_with_content": "Enrolment_Tracking : degree_program_id (10, 2, 11), semester_id (4, 15, 5), student_id (6, 4, 9), other_details (None), student_enrolment_id (14, 11, 7) | semesters : semester_description (\"c\", \"o\", \"o\"), semester_name (\"spring 2018\", \"spring 2018\", \"fall 2010\"), semester_id (4, 14, 14), other_details (None) | departments : department_id (9, 15, 1), department_description (\"autem\", \"error\", \"error\"), other_details (None), department_name (\"engineer\", \"computer science\", \"geography\") | courses : course_name (\"ai\", \"math\", \"pl\"), course_id (10, 5, 8), other_details (None), course_description (\"q\", \"b\", \"d\") | degree_programs : degree_program_id (7, 2, 3), degree_summary_description (\"aut\", \"aut\", \"assumenda\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (14, 4, 8) | transcript_contents : transcript_id (12, 8, 4), student_course_id (2, 70882679, 70882679) | Student_Registration : degree_program_id (10, 2, 11), semester_id (4, 15, 5), student_id (6, 4, 9), other_details (None), student_enrolment_id (14, 11, 7) | student_enrolment_courses : student_course_id (604750, 45105806, 76), course_id (6, 10, 4), student_enrolment_id (5, 6, 4) | students : email_address (\"swift.kolby@example.com\", \"baumbach.lucious@example.org\", \"erwin.zboncak@example.com\"), cell_mobile_number (\"(605)919-3594x3661\", \"(462)246-7921\", \"(507)365-8405\"), current_address_id (9, 14, 14), last_name (\"Jaskolski\", \"Rogahn\", \"Carroll\"), other_student_details (\"assumenda\", \"autem\", \"assumenda\"), date_first_registered (\"2004-12-24 12:36:46\", \"2007-08-29 23:25:41\", \"2004-12-24 12:36:46\"), middle_name (\"Violet\", \"Mona\", \"Violet\"), permanent_address_id (8, 9, 14), student_id (12, 1, 2), date_left (\"2004-12-08 05:29:11\", \"2007-03-31 09:53:19\", \"2016-04-09 12:27:04\"), first_name (\"Deon\", \"Reva\", \"Jordy\"), ssn (\"494\", \"68095\", \"39\") | transcripts : other_details (None), transcript_id (12, 11, 3), transcript_date (\"1984-01-18 23:07:07\", \"1999-01-06 20:06:46\", \"1999-01-06 20:06:46\") | sections : other_details (None), section_name (\"f\", \"d\", \"h\"), course_id (7, 14, 8), section_id (5, 1, 12), section_description (\"reprehenderit\", \"non\", \"ex\") | addresses : line_3 (None), address_id (3, 5, 2), state_province_county (\"Washington\", \"Idaho\", \"Florida\"), country (\"New Caledonia\", \"Iceland\", \"Croatia\"), zip_postcode (\"943\", \"777\", \"943\"), other_address_details (None), line_2 (\"Apt. 335\", \"Suite 383\", \"Apt. 406\"), city (\"Herzoghaven\", \"Port Chelsea\", \"Lake Laishafurt\"), line_1 (\"0643 Muller Vista\", \"193 Marlin Brook\", \"492 Wilkinson Route\")", + "schema_without_content": "Enrolment_Tracking : degree_program_id , semester_id , student_id , other_details , student_enrolment_id | semesters : semester_description , semester_name , semester_id , other_details | departments : department_id , department_description , other_details , department_name | courses : course_name , course_id , other_details , course_description | degree_programs : degree_program_id , degree_summary_description , other_details , degree_summary_name , department_id | transcript_contents : transcript_id , student_course_id | Student_Registration : degree_program_id , semester_id , student_id , other_details , student_enrolment_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | students : email_address , cell_mobile_number 919-3594x3661\", \"246-7921\", \"365-8405\", current_address_id , last_name , other_student_details , date_first_registered , middle_name , permanent_address_id , student_id , date_left , first_name , ssn | transcripts : other_details , transcript_id , transcript_date | sections : other_details , section_name , course_id , section_id , section_description | addresses : line_3 , address_id , state_province_county , country , zip_postcode , other_address_details , line_2 , city , line_1", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "program id": "Degree_Programs.degree_program_id", + "summary of the degree": "Degree_Programs.degree_summary_name", + "students enrolled": "Student_Enrolment" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.student_id, t1.first_name, t1.middle_name, t1.last_name, count(*), t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "Pupils : other_student_details (\"autem\", \"facilis\", \"rerum\"), first_name (\"Warren\", \"Timmothy\", \"Deon\"), student_id (4, 15, 9), cell_mobile_number (\"877.549.9067x8723\", \"09700166582\", \"07661787471\"), middle_name (\"Mona\", \"Brooklyn\", \"Cleve\"), permanent_address_id (5, 5, 14), date_first_registered (\"1982-02-14 08:46:35\", \"2007-08-29 23:25:41\", \"1989-05-24 23:31:29\"), date_left (\"1999-08-24 00:07:10\", \"2013-10-05 17:41:28\", \"1990-09-01 05:03:27\"), ssn (\"39\", \"141072406\", \"39\"), current_address_id (9, 12, 10), last_name (\"Gleichner\", \"Ward\", \"Weimann\"), email_address (\"dell43@example.net\", \"jillian26@example.net\", \"johns.unique@example.net\") | student_enrolment : other_details (None), degree_program_id (9, 10, 2), student_id (14, 6, 14), student_enrolment_id (14, 13, 10), semester_id (4, 6, 9) | transcript_contents : transcript_id (9, 13, 6), student_course_id (45105806, 8, 96) | courses : course_name (\"math\", \"ai\", \"ds\"), course_description (\"v\", \"c\", \"v\"), other_details (None), course_id (4, 9, 5) | sections : section_name (\"u\", \"g\", \"p\"), section_description (\"doloremque\", \"voluptas\", \"nesciunt\"), other_details (None), section_id (5, 12, 6), course_id (2, 12, 9) | student_enrolment_courses : student_course_id (83814225, 438800, 1), student_enrolment_id (13, 6, 14), course_id (10, 4, 8) | degree_programs : degree_summary_description (\"voluptas\", \"unde\", \"esse\"), other_details (None), degree_program_id (4, 10, 12), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (7, 4, 15) | departments : department_name (\"geography\", \"law\", \"geography\"), department_id (8, 9, 15), department_description (\"non\", \"error\", \"in\"), other_details (None) | semesters : semester_description (\"w\", \"f\", \"q\"), other_details (None), semester_name (\"spring 2018\", \"spring 2012\", \"spring 2015\"), semester_id (15, 1, 1) | addresses : line_3 (None), city (\"Michelleburgh\", \"Michelleburgh\", \"Lake Laishafurt\"), state_province_county (\"Wyoming\", \"Kentucky\", \"SouthDakota\"), line_2 (\"Suite 383\", \"Apt. 406\", \"Suite 830\"), address_id (1, 8, 8), line_1 (\"186 Evan Motorway Apt. 409\", \"202 Hessel Views Apt. 468\", \"492 Wilkinson Route\"), other_address_details (None), country (\"Norfolk Island\", \"Saudi Arabia\", \"Kyrgyz Republic\"), zip_postcode (\"839\", \"386\", \"590\") | transcripts : transcript_id (15, 12, 6), transcript_date (\"2002-09-24 06:11:49\", \"2002-09-24 06:11:49\", \"1988-04-30 01:19:47\"), other_details (None) | Learners : other_student_details (\"autem\", \"facilis\", \"rerum\"), first_name (\"Warren\", \"Timmothy\", \"Deon\"), student_id (4, 15, 9), cell_mobile_number (\"877.549.9067x8723\", \"09700166582\", \"07661787471\"), middle_name (\"Mona\", \"Brooklyn\", \"Cleve\"), permanent_address_id (5, 5, 14), date_first_registered (\"1982-02-14 08:46:35\", \"2007-08-29 23:25:41\", \"1989-05-24 23:31:29\"), date_left (\"1999-08-24 00:07:10\", \"2013-10-05 17:41:28\", \"1990-09-01 05:03:27\"), ssn (\"39\", \"141072406\", \"39\"), current_address_id (9, 12, 10), last_name (\"Gleichner\", \"Ward\", \"Weimann\"), email_address (\"dell43@example.net\", \"jillian26@example.net\", \"johns.unique@example.net\")", + "schema_without_content": "Pupils : other_student_details , first_name , student_id , cell_mobile_number , middle_name , permanent_address_id , date_first_registered , date_left , ssn , current_address_id , last_name , email_address | student_enrolment : other_details , degree_program_id , student_id , student_enrolment_id , semester_id | transcript_contents : transcript_id , student_course_id | courses : course_name , course_description , other_details , course_id | sections : section_name , section_description , other_details , section_id , course_id | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | degree_programs : degree_summary_description , other_details , degree_program_id , degree_summary_name , department_id | departments : department_name , department_id , department_description , other_details | semesters : semester_description , other_details , semester_name , semester_id | addresses : line_3 , city , state_province_county , line_2 , address_id , line_1 , other_address_details , country , zip_postcode | transcripts : transcript_id , transcript_date , other_details | Learners : other_student_details , first_name , student_id , cell_mobile_number , middle_name , permanent_address_id , date_first_registered , date_left , ssn , current_address_id , last_name , email_address", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "number of enrollments": "Student_Enrolment.student_id", + "student id": "Students.student_id" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.student_id, t1.first_name, t1.middle_name, t1.last_name, count(*), t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "addresses : city (\"Port Oceane\", \"Mariliehaven\", \"South Palma\"), country (\"Bermuda\", \"Bermuda\", \"Haiti\"), other_address_details (None), state_province_county (\"Kentucky\", \"Arkansas\", \"Idaho\"), zip_postcode (\"777\", \"895\", \"669\"), line_3 (None), line_2 (\"Suite 079\", \"Suite 830\", \"Apt. 305\"), address_id (15, 9, 10), line_1 (\"3999 Aufderhar Ways Suite 593\", \"2294 Grant Square Apt. 235\", \"7081 Eda Center\") | Enrolment_Tracking : student_id (1, 4, 4), student_enrolment_id (1, 10, 12), other_details (None), degree_program_id (8, 11, 9), semester_id (2, 9, 5) | transcript_contents : student_course_id (2, 7, 45105806), transcript_id (15, 9, 12) | sections : other_details (None), section_id (3, 2, 14), section_name (\"p\", \"h\", \"l\"), section_description (\"voluptas\", \"non\", \"facilis\"), course_id (9, 5, 6) | courses : course_name (\"oop\", \"cal\", \"en\"), course_description (\"d\", \"c\", \"p\"), course_id (2, 11, 11), other_details (None) | transcripts : transcript_id (5, 15, 7), transcript_date (\"1986-07-12 07:27:29\", \"1988-04-30 01:19:47\", \"1975-05-06 12:04:47\"), other_details (None) | semesters : other_details (None), semester_description (\"l\", \"w\", \"t\"), semester_id (2, 14, 2), semester_name (\"summer 2010\", \"winter 2010\", \"spring 2014\") | departments : department_description (\"non\", \"error\", \"nostrum\"), department_id (13, 15, 9), other_details (None), department_name (\"biology\", \"biology\", \"art\") | student_enrolment_courses : student_enrolment_id (13, 5, 10), student_course_id (0, 7, 0), course_id (12, 13, 3) | students : permanent_address_id (15, 4, 5), date_first_registered (\"1976-10-26 02:33:06\", \"1973-05-19 19:12:46\", \"2014-03-28 05:48:23\"), cell_mobile_number (\"(213)445-0399x85208\", \"1-009-710-5151\", \"1-009-710-5151\"), ssn (\"304246\", \"668\", \"494\"), student_id (8, 13, 11), date_left (\"2007-03-31 09:53:19\", \"2014-05-30 23:32:02\", \"1975-10-09 00:49:27\"), last_name (\"Carroll\", \"Kemmer\", \"Osinski\"), email_address (\"johns.unique@example.net\", \"dell43@example.net\", \"erwin.zboncak@example.com\"), current_address_id (9, 14, 15), middle_name (\"Mossie\", \"Brooklyn\", \"Brooklyn\"), first_name (\"Jordy\", \"Jordy\", \"Orrin\"), other_student_details (\"autem\", \"nesciunt\", \"assumenda\") | degree_programs : degree_summary_description (\"qui\", \"assumenda\", \"assumenda\"), other_details (None), department_id (14, 3, 8), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 5, 14) | Student_Registration : student_id (1, 4, 4), student_enrolment_id (1, 10, 12), other_details (None), degree_program_id (8, 11, 9), semester_id (2, 9, 5)", + "schema_without_content": "addresses : city , country , other_address_details , state_province_county , zip_postcode , line_3 , line_2 , address_id , line_1 | Enrolment_Tracking : student_id , student_enrolment_id , other_details , degree_program_id , semester_id | transcript_contents : student_course_id , transcript_id | sections : other_details , section_id , section_name , section_description , course_id | courses : course_name , course_description , course_id , other_details | transcripts : transcript_id , transcript_date , other_details | semesters : other_details , semester_description , semester_id , semester_name | departments : department_description , department_id , other_details , department_name | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | students : permanent_address_id , date_first_registered , cell_mobile_number 445-0399x85208\", \"1-009-710-5151\", \"1-009-710-5151\", ssn , student_id , date_left , last_name , email_address , current_address_id , middle_name , first_name , other_student_details | degree_programs : degree_summary_description , other_details , department_id , degree_summary_name , degree_program_id | Student_Registration : student_id , student_enrolment_id , other_details , degree_program_id , semester_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name", + "number of enrollments": "Student_Enrolment.student_id", + "student id": "Students.student_id" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.student_id, t1.first_name, t1.middle_name, t1.last_name, count(*), t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "Pupils : middle_name (\"Violet\", \"Aisha\", \"Mossie\"), student_id (15, 13, 2), other_student_details (\"voluptatem\", \"nesciunt\", \"quia\"), date_left (\"2013-10-05 17:41:28\", \"2007-08-02 04:12:58\", \"2013-10-05 17:41:28\"), ssn (\"668\", \"34458427\", \"6274274\"), email_address (\"jhuel@example.com\", \"dell43@example.net\", \"jillian26@example.net\"), date_first_registered (\"2018-03-13 09:56:22\", \"1971-02-05 07:28:23\", \"1971-02-05 07:28:23\"), first_name (\"Gregg\", \"Helga\", \"Delaney\"), cell_mobile_number (\"877.549.9067x8723\", \"(982)153-1469x1733\", \"171-642-5684\"), current_address_id (15, 7, 1), last_name (\"Ward\", \"Weimann\", \"Huel\"), permanent_address_id (15, 4, 9) | addresses : country (\"Samoa\", \"Angola\", \"Norfolk Island\"), line_1 (\"9283 Schulist Falls Apt. 037\", \"0643 Muller Vista\", \"0643 Muller Vista\"), zip_postcode (\"839\", \"400\", \"638\"), city (\"Michelleburgh\", \"South Palma\", \"Mariliehaven\"), address_id (2, 1, 13), state_province_county (\"Arkansas\", \"Kentucky\", \"Idaho\"), line_2 (\"Suite 865\", \"Suite 865\", \"Suite 865\"), other_address_details (None), line_3 (None) | Learners : middle_name (\"Violet\", \"Aisha\", \"Mossie\"), student_id (15, 13, 2), other_student_details (\"voluptatem\", \"nesciunt\", \"quia\"), date_left (\"2013-10-05 17:41:28\", \"2007-08-02 04:12:58\", \"2013-10-05 17:41:28\"), ssn (\"668\", \"34458427\", \"6274274\"), email_address (\"jhuel@example.com\", \"dell43@example.net\", \"jillian26@example.net\"), date_first_registered (\"2018-03-13 09:56:22\", \"1971-02-05 07:28:23\", \"1971-02-05 07:28:23\"), first_name (\"Gregg\", \"Helga\", \"Delaney\"), cell_mobile_number (\"877.549.9067x8723\", \"(982)153-1469x1733\", \"171-642-5684\"), current_address_id (15, 7, 1), last_name (\"Ward\", \"Weimann\", \"Huel\"), permanent_address_id (15, 4, 9) | transcript_contents : student_course_id (7, 45105806, 2), transcript_id (12, 15, 6) | courses : course_id (11, 9, 6), other_details (None), course_name (\"la\", \"fr\", \"oop\"), course_description (\"q\", \"v\", \"v\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (14, 8, 13), other_details (None), department_id (13, 7, 8), degree_summary_description (\"placeat\", \"aut\", \"assumenda\") | student_enrolment_courses : course_id (4, 8, 13), student_course_id (438800, 83814225, 7), student_enrolment_id (8, 5, 6) | transcripts : other_details (None), transcript_date (\"1985-04-29 01:20:20\", \"1984-12-19 00:37:21\", \"1999-01-06 20:06:46\"), transcript_id (15, 10, 11) | student_enrolment : semester_id (1, 6, 12), degree_program_id (10, 4, 4), student_id (14, 1, 14), student_enrolment_id (7, 3, 7), other_details (None) | semesters : semester_name (\"summer 2010\", \"spring 2019\", \"winter 2010\"), other_details (None), semester_description (\"l\", \"y\", \"f\"), semester_id (9, 1, 15) | sections : course_id (5, 4, 8), section_id (4, 2, 4), other_details (None), section_name (\"b\", \"y\", \"l\"), section_description (\"provident\", \"et\", \"doloremque\") | departments : other_details (None), department_description (\"nisi\", \"nisi\", \"ea\"), department_name (\"linguistic\", \"computer science\", \"biology\"), department_id (6, 13, 8)", + "schema_without_content": "Pupils : middle_name , student_id , other_student_details , date_left , ssn , email_address , date_first_registered , first_name , cell_mobile_number 153-1469x1733\", \"171-642-5684\", current_address_id , last_name , permanent_address_id | addresses : country , line_1 , zip_postcode , city , address_id , state_province_county , line_2 , other_address_details , line_3 | Learners : middle_name , student_id , other_student_details , date_left , ssn , email_address , date_first_registered , first_name , cell_mobile_number 153-1469x1733\", \"171-642-5684\", current_address_id , last_name , permanent_address_id | transcript_contents : student_course_id , transcript_id | courses : course_id , other_details , course_name , course_description | degree_programs : degree_summary_name , degree_program_id , other_details , department_id , degree_summary_description | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | transcripts : other_details , transcript_date , transcript_id | student_enrolment : semester_id , degree_program_id , student_id , student_enrolment_id , other_details | semesters : semester_name , other_details , semester_description , semester_id | sections : course_id , section_id , other_details , section_name , section_description | departments : other_details , department_description , department_name , department_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "last name": "Students.last_name", + "id": "Students.student_id", + "number of enrollments": "Student_Enrolment.student_id", + "student": "Students", + "first name": "Students.first_name", + "middle name": "Students.middle_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_id": "student_transcripts_tracking", + "orig_query": "select t1.student_id, t1.first_name, t1.middle_name, t1.last_name, count(*), t1.student_id from students as t1 join student_enrolment as t2 on t1.student_id = t2.student_id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "student_enrolment_courses : student_enrolment_id (5, 2, 9), student_course_id (438800, 7, 45105806), course_id (4, 14, 10) | students : other_student_details (\"assumenda\", \"nesciunt\", \"qui\"), ssn (\"43\", \"6274274\", \"6274274\"), permanent_address_id (8, 11, 15), first_name (\"Reva\", \"Stanford\", \"Timmothy\"), date_first_registered (\"1976-10-26 02:33:06\", \"1997-03-20 16:47:25\", \"2017-01-04 08:10:25\"), last_name (\"Huel\", \"Jaskolski\", \"Carroll\"), cell_mobile_number (\"436.613.7683\", \"877.549.9067x8723\", \"(462)246-7921\"), current_address_id (7, 2, 9), date_left (\"2017-07-09 21:38:43\", \"2017-07-09 21:38:43\", \"2016-04-09 12:27:04\"), student_id (15, 11, 3), email_address (\"johns.unique@example.net\", \"johns.unique@example.net\", \"johns.unique@example.net\"), middle_name (\"Golda\", \"Mossie\", \"Alberta\") | addresses : address_id (10, 3, 1), line_1 (\"492 Wilkinson Route\", \"186 Evan Motorway Apt. 409\", \"858 Peggie Bypass Suite 212\"), country (\"Kyrgyz Republic\", \"Kyrgyz Republic\", \"New Caledonia\"), other_address_details (None), line_2 (\"Apt. 583\", \"Apt. 388\", \"Apt. 689\"), line_3 (None), zip_postcode (\"148\", \"068\", \"386\"), state_province_county (\"WestVirginia\", \"Kentucky\", \"WestVirginia\"), city (\"New Clemensburgh\", \"Prohaskafort\", \"Mariliehaven\") | transcript_contents : transcript_id (4, 2, 8), student_course_id (8, 7, 7) | courses : other_details (None), course_description (\"b\", \"c\", \"c\"), course_name (\"en\", \"la\", \"ds\"), course_id (11, 15, 2) | transcripts : other_details (None), transcript_date (\"2010-12-13 10:55:15\", \"1984-01-18 23:07:07\", \"1975-05-06 12:04:47\"), transcript_id (5, 10, 3) | departments : department_name (\"history\", \"statistics\", \"economics\"), department_description (\"ea\", \"doloribus\", \"doloribus\"), department_id (2, 12, 15), other_details (None) | Student_Registration : other_details (None), student_enrolment_id (2, 9, 13), semester_id (6, 15, 1), degree_program_id (8, 11, 8), student_id (9, 1, 14) | degree_programs : degree_program_id (7, 12, 3), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), department_id (12, 12, 4), degree_summary_description (\"officiis\", \"architecto\", \"architecto\") | semesters : semester_name (\"winter 2018\", \"spring 2019\", \"spring 2013\"), semester_description (\"x\", \"c\", \"l\"), semester_id (12, 12, 4), other_details (None) | Enrolment_Tracking : other_details (None), student_enrolment_id (2, 9, 13), semester_id (6, 15, 1), degree_program_id (8, 11, 8), student_id (9, 1, 14) | sections : section_id (5, 11, 4), other_details (None), section_description (\"voluptas\", \"provident\", \"qui\"), course_id (5, 8, 7), section_name (\"g\", \"f\", \"p\")", + "schema_without_content": "student_enrolment_courses : student_enrolment_id , student_course_id , course_id | students : other_student_details , ssn , permanent_address_id , first_name , date_first_registered , last_name , cell_mobile_number 246-7921\", current_address_id , date_left , student_id , email_address , middle_name | addresses : address_id , line_1 , country , other_address_details , line_2 , line_3 , zip_postcode , state_province_county , city | transcript_contents : transcript_id , student_course_id | courses : other_details , course_description , course_name , course_id | transcripts : other_details , transcript_date , transcript_id | departments : department_name , department_description , department_id , other_details | Student_Registration : other_details , student_enrolment_id , semester_id , degree_program_id , student_id | degree_programs : degree_program_id , degree_summary_name , other_details , department_id , degree_summary_description | semesters : semester_name , semester_description , semester_id , other_details | Enrolment_Tracking : other_details , student_enrolment_id , semester_id , degree_program_id , student_id | sections : section_id , other_details , section_description , course_id , section_name", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "last name": "Students.last_name", + "id": "Students.student_id", + "number of enrollments": "Student_Enrolment.student_id", + "student": "Students", + "first name": "Students.first_name", + "middle name": "Students.middle_name" + } + }, + { + "question": "which #semesters# do not have any #student enrolled# ? list the #semester name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select semester_name from semesters where semester_id not in(select semester_id from student_enrolment)", + "schema_with_content": "addresses : address_id (15, 1, 11), line_3 (None), city (\"Herzoghaven\", \"Mariliehaven\", \"North Omer\"), zip_postcode (\"839\", \"068\", \"943\"), line_1 (\"0643 Muller Vista\", \"7081 Eda Center\", \"492 Wilkinson Route\"), other_address_details (None), country (\"Kyrgyz Republic\", \"Haiti\", \"Haiti\"), line_2 (\"Apt. 388\", \"Suite 830\", \"Suite 079\"), state_province_county (\"Delaware\", \"Hawaii\", \"SouthDakota\") | courses : course_description (\"w\", \"c\", \"c\"), course_id (12, 2, 3), other_details (None), course_name (\"pl\", \"nlp\", \"pl\") | transcripts : transcript_date (\"1985-04-29 01:20:20\", \"2013-06-30 13:01:40\", \"1998-11-22 12:18:29\"), transcript_id (3, 12, 2), other_details (None) | departments : department_name (\"art\", \"management\", \"geography\"), department_id (4, 7, 4), other_details (None), department_description (\"error\", \"nostrum\", \"nostrum\") | sections : section_id (10, 9, 12), section_description (\"facilis\", \"voluptas\", \"et\"), section_name (\"h\", \"b\", \"c\"), other_details (None), course_id (14, 10, 4) | Enrollment_Periods : semester_id (3, 1, 12), semester_name (\"spring 2013\", \"spring 2014\", \"spring 2014\"), other_details (None), semester_description (\"o\", \"m\", \"o\") | transcript_contents : student_course_id (7, 7, 2), transcript_id (6, 11, 15) | student_enrolment : degree_program_id (11, 8, 8), other_details (None), student_id (1, 5, 1), semester_id (2, 5, 2), student_enrolment_id (13, 15, 12) | Academic_Terms : semester_id (3, 1, 12), semester_name (\"spring 2013\", \"spring 2014\", \"spring 2014\"), other_details (None), semester_description (\"o\", \"m\", \"o\") | students : student_id (1, 5, 4), middle_name (\"Mossie\", \"Alberta\", \"Cleve\"), current_address_id (1, 12, 7), date_first_registered (\"2018-03-13 09:56:22\", \"2005-12-15 08:42:10\", \"2014-03-28 05:48:23\"), first_name (\"Jarvis\", \"Hobart\", \"Gregg\"), last_name (\"Balistreri\", \"Mohr\", \"Rempel\"), date_left (\"1975-10-09 00:49:27\", \"1990-09-01 05:03:27\", \"2006-08-04 17:26:49\"), ssn (\"3\", \"304246\", \"43\"), other_student_details (\"quia\", \"dolorum\", \"qui\"), email_address (\"mya88@example.org\", \"jillian26@example.net\", \"erwin.zboncak@example.com\"), cell_mobile_number (\"171-642-5684\", \"436.613.7683\", \"(096)889-8954x524\"), permanent_address_id (14, 11, 11) | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"et\", \"cumque\", \"architecto\"), department_id (14, 4, 12), degree_program_id (7, 15, 8), other_details (None) | student_enrolment_courses : student_enrolment_id (5, 2, 8), course_id (8, 10, 14), student_course_id (0, 83814225, 604750)", + "schema_without_content": "addresses : address_id , line_3 , city , zip_postcode , line_1 , other_address_details , country , line_2 , state_province_county | courses : course_description , course_id , other_details , course_name | transcripts : transcript_date , transcript_id , other_details | departments : department_name , department_id , other_details , department_description | sections : section_id , section_description , section_name , other_details , course_id | Enrollment_Periods : semester_id , semester_name , other_details , semester_description | transcript_contents : student_course_id , transcript_id | student_enrolment : degree_program_id , other_details , student_id , semester_id , student_enrolment_id | Academic_Terms : semester_id , semester_name , other_details , semester_description | students : student_id , middle_name , current_address_id , date_first_registered , first_name , last_name , date_left , ssn , other_student_details , email_address , cell_mobile_number 889-8954x524\", permanent_address_id | degree_programs : degree_summary_name , degree_summary_description , department_id , degree_program_id , other_details | student_enrolment_courses : student_enrolment_id , course_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "semesters": [ + "Academic_Terms", + "Enrollment_Periods" + ] + }, + "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" + ], + "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_Terms": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "Enrollment_Periods": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ] + }, + "column_linking_gt": { + "semesters": "Semesters", + "student enrolled": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name" + } + }, + { + "question": "which #semesters# do not have any #student enrolled# ? list the #semester name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select semester_name from semesters where semester_id not in(select semester_id from student_enrolment)", + "schema_with_content": "student_enrolment_courses : student_enrolment_id (6, 2, 2), student_course_id (9860, 83814225, 83814225), course_id (13, 8, 2) | departments : other_details (None), department_description (\"natus\", \"nostrum\", \"natus\"), department_name (\"economics\", \"drama\", \"statistics\"), department_id (13, 4, 3) | addresses : line_1 (\"3999 Aufderhar Ways Suite 593\", \"0144 Lamar Plaza Apt. 346\", \"492 Wilkinson Route\"), city (\"Michelleburgh\", \"Michelleburgh\", \"Port Evanston\"), state_province_county (\"NorthCarolina\", \"Virginia\", \"Wyoming\"), zip_postcode (\"943\", \"068\", \"847\"), other_address_details (None), line_3 (None), country (\"Norfolk Island\", \"Lesotho\", \"Angola\"), line_2 (\"Apt. 305\", \"Apt. 388\", \"Apt. 406\"), address_id (8, 2, 4) | courses : course_name (\"oop\", \"ai\", \"la\"), other_details (None), course_description (\"p\", \"w\", \"b\"), course_id (15, 5, 14) | Enrolment_Tracking : degree_program_id (2, 11, 8), student_enrolment_id (2, 11, 9), other_details (None), semester_id (12, 4, 13), student_id (12, 4, 12) | sections : section_name (\"e\", \"c\", \"h\"), course_id (12, 12, 8), other_details (None), section_description (\"ex\", \"qui\", \"provident\"), section_id (13, 6, 5) | transcript_contents : transcript_id (8, 9, 9), student_course_id (8, 7, 28982908) | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (9, 2, 9), department_id (7, 3, 3), other_details (None), degree_summary_description (\"aut\", \"esse\", \"earum\") | transcripts : transcript_id (5, 13, 11), other_details (None), transcript_date (\"1990-03-05 11:59:41\", \"2010-12-13 10:55:15\", \"2013-06-30 13:01:40\") | students : email_address (\"beth42@example.org\", \"dell43@example.net\", \"dell43@example.net\"), last_name (\"Weimann\", \"Huel\", \"Huel\"), cell_mobile_number (\"03174364122\", \"436.613.7683\", \"171-642-5684\"), date_left (\"1997-11-16 08:54:33\", \"1997-11-16 08:54:33\", \"2007-08-02 04:12:58\"), date_first_registered (\"1973-05-19 19:12:46\", \"2009-09-25 00:14:25\", \"1971-02-05 07:28:23\"), student_id (9, 4, 7), middle_name (\"Golda\", \"Judd\", \"Mona\"), other_student_details (\"non\", \"qui\", \"facilis\"), ssn (\"43\", \"965\", \"402\"), permanent_address_id (5, 15, 9), current_address_id (9, 9, 7), first_name (\"Jordy\", \"Timmothy\", \"Hobart\") | semesters : other_details (None), semester_description (\"y\", \"x\", \"c\"), semester_id (6, 1, 8), semester_name (\"fall 2018\", \"fall 2010\", \"fall 2010\") | Student_Registration : degree_program_id (2, 11, 8), student_enrolment_id (2, 11, 9), other_details (None), semester_id (12, 4, 13), student_id (12, 4, 12)", + "schema_without_content": "student_enrolment_courses : student_enrolment_id , student_course_id , course_id | departments : other_details , department_description , department_name , department_id | addresses : line_1 , city , state_province_county , zip_postcode , other_address_details , line_3 , country , line_2 , address_id | courses : course_name , other_details , course_description , course_id | Enrolment_Tracking : degree_program_id , student_enrolment_id , other_details , semester_id , student_id | sections : section_name , course_id , other_details , section_description , section_id | transcript_contents : transcript_id , student_course_id | degree_programs : degree_summary_name , degree_program_id , department_id , other_details , degree_summary_description | transcripts : transcript_id , other_details , transcript_date | students : email_address , last_name , cell_mobile_number , date_left , date_first_registered , student_id , middle_name , other_student_details , ssn , permanent_address_id , current_address_id , first_name | semesters : other_details , semester_description , semester_id , semester_name | Student_Registration : degree_program_id , student_enrolment_id , other_details , semester_id , student_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "semesters": "Semesters", + "student enrolled": "Student_Enrolment.student_id", + "semester name": "Semesters.semester_name" + } + }, + { + "question": "what is the #name of the semester# with no #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select semester_name from semesters where semester_id not in(select semester_id from student_enrolment)", + "schema_with_content": "courses : course_name (\"pl\", \"rs\", \"cal\"), other_details (None), course_id (15, 8, 4), course_description (\"n\", \"k\", \"d\") | Academic_Terms : semester_description (\"m\", \"f\", \"l\"), semester_id (14, 13, 13), other_details (None), semester_name (\"spring 2016\", \"winter 2010\", \"spring 2010\") | Enrollment_Periods : semester_description (\"m\", \"f\", \"l\"), semester_id (14, 13, 13), other_details (None), semester_name (\"spring 2016\", \"winter 2010\", \"spring 2010\") | transcript_contents : student_course_id (0, 96, 96), transcript_id (9, 2, 13) | departments : department_description (\"nostrum\", \"nostrum\", \"natus\"), department_name (\"law\", \"history\", \"economics\"), other_details (None), department_id (3, 2, 2) | addresses : state_province_county (\"Delaware\", \"Kansas\", \"Hawaii\"), line_2 (\"Apt. 388\", \"Apt. 370\", \"Apt. 388\"), line_3 (None), other_address_details (None), address_id (13, 12, 2), line_1 (\"2294 Grant Square Apt. 235\", \"492 Wilkinson Route\", \"193 Marlin Brook\"), country (\"Croatia\", \"Norfolk Island\", \"Bermuda\"), zip_postcode (\"902\", \"068\", \"386\"), city (\"Goodwinhaven\", \"Rutherfordtown\", \"Lake Careyberg\") | sections : course_id (8, 8, 8), section_name (\"p\", \"c\", \"u\"), other_details (None), section_description (\"reprehenderit\", \"et\", \"quis\"), section_id (7, 7, 13) | degree_programs : degree_summary_description (\"unde\", \"architecto\", \"quam\"), department_id (8, 2, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (4, 6, 8) | student_enrolment_courses : student_enrolment_id (2, 6, 9), student_course_id (0, 438800, 76), course_id (8, 3, 13) | transcripts : other_details (None), transcript_id (13, 15, 14), transcript_date (\"1984-12-19 00:37:21\", \"1985-08-21 09:32:39\", \"1988-04-30 01:19:47\") | student_enrolment : degree_program_id (5, 11, 4), other_details (None), semester_id (12, 5, 5), student_id (4, 12, 14), student_enrolment_id (3, 11, 14) | students : student_id (12, 15, 6), cell_mobile_number (\"07661787471\", \"07661787471\", \"(982)153-1469x1733\"), middle_name (\"Mona\", \"Aaliyah\", \"Golda\"), email_address (\"dell43@example.net\", \"qo'kon@example.com\", \"erwin.zboncak@example.com\"), first_name (\"Milton\", \"Reva\", \"Milton\"), ssn (\"39\", \"668\", \"34458427\"), current_address_id (2, 15, 6), date_left (\"2006-08-04 17:26:49\", \"1997-11-16 08:54:33\", \"2017-07-09 21:38:43\"), other_student_details (\"quia\", \"rerum\", \"rerum\"), permanent_address_id (11, 3, 9), date_first_registered (\"2009-09-25 00:14:25\", \"2018-03-13 09:56:22\", \"2018-03-13 09:56:22\"), last_name (\"Osinski\", \"Osinski\", \"Weimann\")", + "schema_without_content": "courses : course_name , other_details , course_id , course_description | Academic_Terms : semester_description , semester_id , other_details , semester_name | Enrollment_Periods : semester_description , semester_id , other_details , semester_name | transcript_contents : student_course_id , transcript_id | departments : department_description , department_name , other_details , department_id | addresses : state_province_county , line_2 , line_3 , other_address_details , address_id , line_1 , country , zip_postcode , city | sections : course_id , section_name , other_details , section_description , section_id | degree_programs : degree_summary_description , department_id , degree_summary_name , other_details , degree_program_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | transcripts : other_details , transcript_id , transcript_date | student_enrolment : degree_program_id , other_details , semester_id , student_id , student_enrolment_id | students : student_id , cell_mobile_number 153-1469x1733\", middle_name , email_address , first_name , ssn , current_address_id , date_left , other_student_details , permanent_address_id , date_first_registered , last_name", + "extra_map": null, + "extra_table_map": { + "semesters": [ + "Academic_Terms", + "Enrollment_Periods" + ] + }, + "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" + ], + "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_Terms": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "Enrollment_Periods": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ] + }, + "column_linking_gt": { + "name of the semester": "Semesters.semester_name", + "students enrolled": "Student_Enrolment.semester_id" + } + }, + { + "question": "what is the #name of the semester# with no #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select semester_name from semesters where semester_id not in(select semester_id from student_enrolment)", + "schema_with_content": "addresses : line_3 (None), other_address_details (None), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"0643 Muller Vista\", \"74046 Metz Walk Apt. 113\"), country (\"Croatia\", \"Haiti\", \"Gibraltar\"), city (\"Rutherfordtown\", \"Rutherfordtown\", \"Prohaskafort\"), state_province_county (\"WestVirginia\", \"Florida\", \"Kentucky\"), zip_postcode (\"943\", \"839\", \"148\"), line_2 (\"Apt. 305\", \"Apt. 583\", \"Apt. 406\"), address_id (13, 5, 11) | Enrolment_Tracking : student_id (14, 1, 1), student_enrolment_id (15, 12, 15), degree_program_id (10, 2, 8), other_details (None), semester_id (6, 9, 4) | semesters : other_details (None), semester_description (\"f\", \"g\", \"m\"), semester_name (\"spring 2013\", \"fall 2010\", \"spring 2017\"), semester_id (14, 2, 9) | courses : course_description (\"k\", \"v\", \"v\"), course_name (\"ml\", \"pl\", \"en\"), other_details (None), course_id (8, 4, 13) | departments : department_id (10, 2, 13), other_details (None), department_name (\"management\", \"math\", \"engineer\"), department_description (\"doloribus\", \"nihil\", \"aliquam\") | degree_programs : degree_program_id (1, 2, 5), department_id (14, 14, 7), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_summary_description (\"aut\", \"aut\", \"esse\") | students : ssn (\"965\", \"43\", \"39\"), cell_mobile_number (\"877.549.9067x8723\", \"(462)246-7921\", \"(982)153-1469x1733\"), last_name (\"Carroll\", \"Ward\", \"Weimann\"), email_address (\"nbruen@example.org\", \"lhartmann@example.org\", \"nya.lesch@example.net\"), student_id (8, 14, 3), middle_name (\"Cleve\", \"Mona\", \"Osborne\"), date_left (\"2013-10-05 17:41:28\", \"1975-10-09 00:49:27\", \"2004-12-08 05:29:11\"), permanent_address_id (5, 14, 11), first_name (\"Warren\", \"Deon\", \"Jett\"), other_student_details (\"nesciunt\", \"quia\", \"nesciunt\"), date_first_registered (\"2018-03-13 09:56:22\", \"1989-05-24 23:31:29\", \"1973-05-19 19:12:46\"), current_address_id (2, 12, 7) | student_enrolment_courses : course_id (12, 3, 14), student_course_id (604750, 1, 604750), student_enrolment_id (13, 13, 9) | transcript_contents : student_course_id (7, 0, 96), transcript_id (8, 2, 8) | transcripts : other_details (None), transcript_id (15, 3, 7), transcript_date (\"2013-06-30 13:01:40\", \"1998-11-22 12:18:29\", \"1984-01-18 23:07:07\") | sections : course_id (6, 12, 6), other_details (None), section_id (4, 4, 6), section_description (\"nesciunt\", \"ad\", \"nesciunt\"), section_name (\"g\", \"f\", \"h\") | Student_Registration : student_id (14, 1, 1), student_enrolment_id (15, 12, 15), degree_program_id (10, 2, 8), other_details (None), semester_id (6, 9, 4)", + "schema_without_content": "addresses : line_3 , other_address_details , line_1 , country , city , state_province_county , zip_postcode , line_2 , address_id | Enrolment_Tracking : student_id , student_enrolment_id , degree_program_id , other_details , semester_id | semesters : other_details , semester_description , semester_name , semester_id | courses : course_description , course_name , other_details , course_id | departments : department_id , other_details , department_name , department_description | degree_programs : degree_program_id , department_id , degree_summary_name , other_details , degree_summary_description | students : ssn , cell_mobile_number 246-7921\", \"153-1469x1733\", last_name , email_address , student_id , middle_name , date_left , permanent_address_id , first_name , other_student_details , date_first_registered , current_address_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | transcript_contents : student_course_id , transcript_id | transcripts : other_details , transcript_id , transcript_date | sections : course_id , other_details , section_id , section_description , section_name | Student_Registration : student_id , student_enrolment_id , degree_program_id , other_details , semester_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "name of the semester": "Semesters.semester_name", + "students enrolled": "Student_Enrolment.semester_id" + } + }, + { + "question": "what are all the #course names of the courses# which ever have #students enrolled# in?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id", + "schema_with_content": "students : cell_mobile_number (\"(462)246-7921\", \"03174364122\", \"(213)445-0399x85208\"), first_name (\"Timmothy\", \"Reva\", \"Jett\"), email_address (\"qo'kon@example.com\", \"skassulke@example.net\", \"jhuel@example.com\"), ssn (\"156\", \"248\", \"39\"), current_address_id (2, 9, 1), middle_name (\"Aaliyah\", \"Mona\", \"Cleve\"), last_name (\"Huel\", \"Mohr\", \"Weimann\"), student_id (6, 2, 12), other_student_details (\"facilis\", \"et\", \"omnis\"), date_left (\"1975-10-09 00:49:27\", \"2007-03-31 09:53:19\", \"2007-11-28 12:50:21\"), date_first_registered (\"2009-09-25 00:14:25\", \"1976-10-26 02:33:06\", \"2007-08-29 23:25:41\"), permanent_address_id (11, 8, 5) | addresses : zip_postcode (\"839\", \"902\", \"148\"), other_address_details (None), line_2 (\"Apt. 583\", \"Apt. 305\", \"Apt. 689\"), line_3 (None), state_province_county (\"WestVirginia\", \"Washington\", \"Idaho\"), city (\"Port Oceane\", \"Goodwinhaven\", \"New Clemensburgh\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"858 Peggie Bypass Suite 212\", \"3999 Aufderhar Ways Suite 593\"), address_id (1, 3, 6), country (\"Kyrgyz Republic\", \"Bermuda\", \"Burundi\") | transcript_contents : student_course_id (0, 96, 0), transcript_id (4, 13, 5) | Subjects : other_details (None), course_id (3, 3, 5), course_name (\"rs\", \"oop\", \"ds\"), course_description (\"w\", \"q\", \"v\") | student_enrolment_courses : course_id (14, 3, 12), student_enrolment_id (5, 13, 4), student_course_id (0, 83814225, 604750) | semesters : other_details (None), semester_name (\"spring 2012\", \"spring 2015\", \"spring 2016\"), semester_description (\"c\", \"f\", \"g\"), semester_id (7, 15, 15) | transcripts : transcript_id (12, 4, 11), transcript_date (\"1975-10-28 15:16:51\", \"2010-12-13 10:55:15\", \"2013-06-30 13:01:40\"), other_details (None) | degree_programs : degree_summary_description (\"esse\", \"unde\", \"et\"), department_id (4, 14, 4), degree_program_id (6, 14, 15), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | sections : course_id (2, 14, 4), section_name (\"b\", \"e\", \"c\"), section_id (7, 7, 6), other_details (None), section_description (\"nesciunt\", \"qui\", \"qui\") | departments : other_details (None), department_name (\"economics\", \"art\", \"biology\"), department_id (3, 12, 7), department_description (\"consequatur\", \"in\", \"non\") | student_enrolment : semester_id (13, 12, 13), degree_program_id (3, 2, 8), student_enrolment_id (1, 1, 12), other_details (None), student_id (5, 7, 6) | Modules : other_details (None), course_id (3, 3, 5), course_name (\"rs\", \"oop\", \"ds\"), course_description (\"w\", \"q\", \"v\")", + "schema_without_content": "students : cell_mobile_number 246-7921\", \"03174364122\", \"445-0399x85208\", first_name , email_address , ssn , current_address_id , middle_name , last_name , student_id , other_student_details , date_left , date_first_registered , permanent_address_id | addresses : zip_postcode , other_address_details , line_2 , line_3 , state_province_county , city , line_1 , address_id , country | transcript_contents : student_course_id , transcript_id | Subjects : other_details , course_id , course_name , course_description | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | semesters : other_details , semester_name , semester_description , semester_id | transcripts : transcript_id , transcript_date , other_details | degree_programs : degree_summary_description , department_id , degree_program_id , other_details , degree_summary_name | sections : course_id , section_name , section_id , other_details , section_description | departments : other_details , department_name , department_id , department_description | student_enrolment : semester_id , degree_program_id , student_enrolment_id , other_details , student_id | Modules : other_details , course_id , course_name , course_description", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "course names of the courses": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "question": "what are all the #course names of the courses# which ever have #students enrolled# in?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id", + "schema_with_content": "enrolled_courses : course_id (10, 12, 6), student_enrolment_id (9, 2, 6), student_course_id (70882679, 604750, 438800) | degree_programs : degree_program_id (11, 1, 4), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"assumenda\", \"aperiam\", \"officiis\"), department_id (12, 14, 14), other_details (None) | semesters : semester_description (\"x\", \"t\", \"x\"), semester_id (3, 12, 8), other_details (None), semester_name (\"fall 2010\", \"fall 2010\", \"spring 2017\") | transcript_contents : student_course_id (8, 76, 45105806), transcript_id (12, 15, 13) | addresses : line_3 (None), zip_postcode (\"386\", \"669\", \"943\"), line_2 (\"Apt. 406\", \"Suite 703\", \"Apt. 689\"), line_1 (\"7081 Eda Center\", \"0144 Lamar Plaza Apt. 346\", \"74046 Metz Walk Apt. 113\"), other_address_details (None), country (\"Samoa\", \"Haiti\", \"Iceland\"), city (\"North Omer\", \"Lake Laishafurt\", \"New Clemensburgh\"), state_province_county (\"Washington\", \"Wyoming\", \"Virginia\"), address_id (3, 12, 10) | student_enrolment : student_id (14, 1, 12), semester_id (12, 2, 4), degree_program_id (10, 10, 2), student_enrolment_id (3, 4, 13), other_details (None) | sections : course_id (12, 10, 4), section_id (14, 3, 7), section_name (\"u\", \"l\", \"h\"), section_description (\"non\", \"doloremque\", \"non\"), other_details (None) | student_registration_courses : course_id (10, 12, 6), student_enrolment_id (9, 2, 6), student_course_id (70882679, 604750, 438800) | transcripts : transcript_date (\"1990-03-05 11:59:41\", \"1999-01-06 20:06:46\", \"1984-12-19 00:37:21\"), transcript_id (12, 2, 2), other_details (None) | courses : course_description (\"b\", \"l\", \"n\"), course_name (\"ai\", \"db\", \"ds\"), other_details (None), course_id (12, 12, 10) | students : permanent_address_id (3, 9, 14), date_left (\"1975-10-09 00:49:27\", \"2006-08-04 17:26:49\", \"2006-08-04 17:26:49\"), date_first_registered (\"1989-05-24 23:31:29\", \"1982-02-14 08:46:35\", \"2017-01-04 08:10:25\"), cell_mobile_number (\"677.401.9382\", \"877.549.9067x8723\", \"(605)919-3594x3661\"), first_name (\"Hobart\", \"Orrin\", \"Gregg\"), middle_name (\"Cleve\", \"Vaughn\", \"Aaliyah\"), current_address_id (6, 7, 15), other_student_details (\"et\", \"nesciunt\", \"quia\"), last_name (\"Christiansen\", \"Rogahn\", \"Gleichner\"), student_id (2, 5, 8), email_address (\"lhartmann@example.org\", \"jillian26@example.net\", \"gracie29@example.com\"), ssn (\"965\", \"6274274\", \"965\") | departments : other_details (None), department_id (6, 8, 6), department_name (\"geography\", \"dance\", \"math\"), department_description (\"natus\", \"consequatur\", \"nisi\")", + "schema_without_content": "enrolled_courses : course_id , student_enrolment_id , student_course_id | degree_programs : degree_program_id , degree_summary_name , degree_summary_description , department_id , other_details | semesters : semester_description , semester_id , other_details , semester_name | transcript_contents : student_course_id , transcript_id | addresses : line_3 , zip_postcode , line_2 , line_1 , other_address_details , country , city , state_province_county , address_id | student_enrolment : student_id , semester_id , degree_program_id , student_enrolment_id , other_details | sections : course_id , section_id , section_name , section_description , other_details | student_registration_courses : course_id , student_enrolment_id , student_course_id | transcripts : transcript_date , transcript_id , other_details | courses : course_description , course_name , other_details , course_id | students : permanent_address_id , date_left , date_first_registered , cell_mobile_number 919-3594x3661\", first_name , middle_name , current_address_id , other_student_details , last_name , student_id , email_address , ssn | departments : other_details , department_id , department_name , department_description", + "extra_map": null, + "extra_table_map": { + "student_enrolment_courses": [ + "student_registration_courses", + "enrolled_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" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "student_registration_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "enrolled_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ] + }, + "column_linking_gt": { + "course names of the courses": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "question": "what are the #names of all courses# that have some #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id", + "schema_with_content": "Modules : course_id (15, 15, 2), course_name (\"ds\", \"en\", \"pl\"), other_details (None), course_description (\"d\", \"v\", \"q\") | student_enrolment_courses : course_id (12, 11, 10), student_course_id (9860, 9860, 8), student_enrolment_id (13, 14, 13) | sections : course_id (8, 7, 1), section_id (3, 11, 9), section_description (\"non\", \"ad\", \"nesciunt\"), section_name (\"o\", \"c\", \"g\"), other_details (None) | Subjects : course_id (15, 15, 2), course_name (\"ds\", \"en\", \"pl\"), other_details (None), course_description (\"d\", \"v\", \"q\") | student_enrolment : semester_id (4, 15, 4), student_id (1, 1, 12), other_details (None), student_enrolment_id (2, 4, 7), degree_program_id (12, 5, 4) | degree_programs : degree_program_id (8, 3, 11), degree_summary_description (\"quam\", \"unde\", \"qui\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (8, 12, 15), other_details (None) | transcript_contents : transcript_id (8, 9, 13), student_course_id (45105806, 0, 8) | students : cell_mobile_number (\"436.613.7683\", \"09700166582\", \"877.549.9067x8723\"), email_address (\"jillian26@example.net\", \"dell43@example.net\", \"mya88@example.org\"), first_name (\"Deon\", \"Timmothy\", \"Helga\"), ssn (\"156\", \"43\", \"248\"), current_address_id (6, 15, 1), other_student_details (\"facilis\", \"rerum\", \"nesciunt\"), date_first_registered (\"1971-02-05 07:28:23\", \"1997-03-20 16:47:25\", \"1986-02-24 21:12:23\"), middle_name (\"Judd\", \"Aaliyah\", \"Alberta\"), student_id (2, 6, 15), date_left (\"1997-11-16 08:54:33\", \"2007-03-31 09:53:19\", \"2007-08-02 04:12:58\"), permanent_address_id (15, 14, 4), last_name (\"Osinski\", \"Ward\", \"Christiansen\") | transcripts : other_details (None), transcript_id (15, 5, 5), transcript_date (\"2013-06-30 13:01:40\", \"1975-05-20 18:31:21\", \"1975-05-06 12:04:47\") | departments : other_details (None), department_id (14, 13, 15), department_name (\"economics\", \"biology\", \"drama\"), department_description (\"non\", \"non\", \"in\") | addresses : city (\"South Palma\", \"Port Evanston\", \"Port Oceane\"), line_3 (None), line_2 (\"Apt. 689\", \"Apt. 406\", \"Suite 383\"), other_address_details (None), address_id (2, 9, 12), state_province_county (\"Virginia\", \"Hawaii\", \"Washington\"), zip_postcode (\"400\", \"638\", \"669\"), line_1 (\"186 Evan Motorway Apt. 409\", \"979 Haag Shores Suite 656\", \"3999 Aufderhar Ways Suite 593\"), country (\"Norfolk Island\", \"Lesotho\", \"Samoa\") | semesters : semester_description (\"c\", \"t\", \"c\"), semester_id (2, 3, 9), semester_name (\"fall 2018\", \"spring 2012\", \"spring 2018\"), other_details (None)", + "schema_without_content": "Modules : course_id , course_name , other_details , course_description | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | sections : course_id , section_id , section_description , section_name , other_details | Subjects : course_id , course_name , other_details , course_description | student_enrolment : semester_id , student_id , other_details , student_enrolment_id , degree_program_id | degree_programs : degree_program_id , degree_summary_description , degree_summary_name , department_id , other_details | transcript_contents : transcript_id , student_course_id | students : cell_mobile_number , email_address , first_name , ssn , current_address_id , other_student_details , date_first_registered , middle_name , student_id , date_left , permanent_address_id , last_name | transcripts : other_details , transcript_id , transcript_date | departments : other_details , department_id , department_name , department_description | addresses : city , line_3 , line_2 , other_address_details , address_id , state_province_county , zip_postcode , line_1 , country | semesters : semester_description , semester_id , semester_name , other_details", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "names of all courses": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "question": "what are the #names of all courses# that have some #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id", + "schema_with_content": "courses : course_name (\"os\", \"oop\", \"dl\"), course_description (\"l\", \"q\", \"w\"), other_details (None), course_id (3, 15, 9) | students : other_student_details (\"voluptatem\", \"autem\", \"atque\"), date_first_registered (\"2017-01-04 08:10:25\", \"1986-02-24 21:12:23\", \"1986-02-24 21:12:23\"), date_left (\"1975-10-09 00:49:27\", \"2004-12-08 05:29:11\", \"2016-04-09 12:27:04\"), email_address (\"skassulke@example.net\", \"swift.kolby@example.com\", \"beth42@example.org\"), current_address_id (15, 14, 2), first_name (\"Delaney\", \"Milton\", \"Timmothy\"), middle_name (\"Mossie\", \"Mona\", \"Anna\"), cell_mobile_number (\"1-009-710-5151\", \"1-879-796-8987x164\", \"(507)365-8405\"), student_id (14, 8, 10), ssn (\"156\", \"494\", \"39\"), permanent_address_id (5, 4, 3), last_name (\"Mohr\", \"Ward\", \"Jaskolski\") | transcript_contents : transcript_id (8, 4, 4), student_course_id (7, 96, 28982908) | addresses : other_address_details (None), address_id (3, 9, 6), state_province_county (\"Washington\", \"NorthCarolina\", \"Delaware\"), line_2 (\"Suite 865\", \"Apt. 370\", \"Suite 865\"), line_3 (None), city (\"Michelleburgh\", \"Michelleburgh\", \"Port Evanston\"), zip_postcode (\"590\", \"777\", \"590\"), line_1 (\"9283 Schulist Falls Apt. 037\", \"9283 Schulist Falls Apt. 037\", \"979 Haag Shores Suite 656\"), country (\"Gibraltar\", \"Samoa\", \"Norfolk Island\") | transcripts : transcript_id (10, 13, 5), other_details (None), transcript_date (\"1984-01-18 23:07:07\", \"1985-08-21 09:32:39\", \"1985-04-29 01:20:20\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (14, 13, 14), degree_program_id (9, 13, 10), degree_summary_description (\"officiis\", \"architecto\", \"qui\"), other_details (None) | departments : other_details (None), department_name (\"drama\", \"engineer\", \"law\"), department_id (2, 13, 5), department_description (\"non\", \"ea\", \"aliquam\") | enrolled_courses : student_course_id (45105806, 604750, 0), student_enrolment_id (4, 14, 4), course_id (12, 14, 6) | sections : section_name (\"l\", \"u\", \"u\"), section_id (13, 15, 15), other_details (None), section_description (\"nesciunt\", \"voluptas\", \"quis\"), course_id (12, 9, 5) | student_enrolment : student_id (4, 5, 12), other_details (None), student_enrolment_id (15, 7, 14), degree_program_id (9, 9, 2), semester_id (12, 13, 12) | semesters : semester_id (1, 9, 10), semester_name (\"spring 2014\", \"winter 2018\", \"winter 2010\"), other_details (None), semester_description (\"o\", \"c\", \"f\") | student_registration_courses : student_course_id (45105806, 604750, 0), student_enrolment_id (4, 14, 4), course_id (12, 14, 6)", + "schema_without_content": "courses : course_name , course_description , other_details , course_id | students : other_student_details , date_first_registered , date_left , email_address , current_address_id , first_name , middle_name , cell_mobile_number 365-8405\", student_id , ssn , permanent_address_id , last_name | transcript_contents : transcript_id , student_course_id | addresses : other_address_details , address_id , state_province_county , line_2 , line_3 , city , zip_postcode , line_1 , country | transcripts : transcript_id , other_details , transcript_date | degree_programs : degree_summary_name , department_id , degree_program_id , degree_summary_description , other_details | departments : other_details , department_name , department_id , department_description | enrolled_courses : student_course_id , student_enrolment_id , course_id | sections : section_name , section_id , other_details , section_description , course_id | student_enrolment : student_id , other_details , student_enrolment_id , degree_program_id , semester_id | semesters : semester_id , semester_name , other_details , semester_description | student_registration_courses : student_course_id , student_enrolment_id , course_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment_courses": [ + "student_registration_courses", + "enrolled_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" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "student_registration_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "enrolled_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ] + }, + "column_linking_gt": { + "names of all courses": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "question": "what's the #name of the course# with most number of #enrollments# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id group by t1.course_name order by count(*) desc limit 1", + "schema_with_content": "addresses : line_3 (None), line_2 (\"Apt. 689\", \"Apt. 468\", \"Apt. 335\"), address_id (8, 14, 5), city (\"Port Evanston\", \"Goodwinhaven\", \"Mariliehaven\"), zip_postcode (\"943\", \"541\", \"386\"), state_province_county (\"Delaware\", \"Arkansas\", \"Washington\"), other_address_details (None), country (\"Angola\", \"Lesotho\", \"Burundi\"), line_1 (\"74046 Metz Walk Apt. 113\", \"9283 Schulist Falls Apt. 037\", \"74046 Metz Walk Apt. 113\") | transcript_contents : transcript_id (8, 9, 2), student_course_id (7, 28982908, 76) | transcripts : transcript_date (\"2013-06-30 13:01:40\", \"1975-10-28 15:16:51\", \"1975-05-06 12:04:47\"), other_details (None), transcript_id (14, 8, 4) | degree_programs : degree_summary_description (\"earum\", \"earum\", \"esse\"), other_details (None), department_id (14, 8, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (12, 12, 14) | Modules : course_description (\"q\", \"w\", \"b\"), course_name (\"db\", \"cal\", \"ml\"), other_details (None), course_id (3, 7, 3) | semesters : semester_id (7, 10, 15), semester_description (\"f\", \"g\", \"o\"), other_details (None), semester_name (\"winter 2018\", \"fall 2010\", \"spring 2016\") | student_enrolment_courses : course_id (4, 12, 2), student_enrolment_id (14, 9, 6), student_course_id (70882679, 2, 96) | student_enrolment : student_enrolment_id (5, 4, 15), degree_program_id (2, 3, 4), other_details (None), semester_id (5, 1, 15), student_id (1, 12, 6) | departments : other_details (None), department_name (\"geography\", \"biology\", \"drama\"), department_description (\"non\", \"autem\", \"doloribus\"), department_id (5, 15, 5) | students : cell_mobile_number (\"1-879-796-8987x164\", \"(213)445-0399x85208\", \"(507)365-8405\"), permanent_address_id (15, 5, 15), first_name (\"Jett\", \"Frida\", \"Milton\"), middle_name (\"Mona\", \"Golda\", \"Anna\"), ssn (\"402\", \"3\", \"402\"), student_id (11, 10, 1), email_address (\"lhartmann@example.org\", \"skassulke@example.net\", \"swift.kolby@example.com\"), other_student_details (\"rerum\", \"rerum\", \"et\"), last_name (\"Gleichner\", \"Balistreri\", \"Carroll\"), date_first_registered (\"2005-12-15 08:42:10\", \"1986-02-24 21:12:23\", \"2005-12-15 08:42:10\"), date_left (\"2016-04-09 12:27:04\", \"1975-10-09 00:49:27\", \"2006-08-04 17:26:49\"), current_address_id (7, 12, 10) | sections : other_details (None), course_id (8, 12, 14), section_name (\"p\", \"p\", \"l\"), section_description (\"ad\", \"qui\", \"ad\"), section_id (1, 12, 9) | Subjects : course_description (\"q\", \"w\", \"b\"), course_name (\"db\", \"cal\", \"ml\"), other_details (None), course_id (3, 7, 3)", + "schema_without_content": "addresses : line_3 , line_2 , address_id , city , zip_postcode , state_province_county , other_address_details , country , line_1 | transcript_contents : transcript_id , student_course_id | transcripts : transcript_date , other_details , transcript_id | degree_programs : degree_summary_description , other_details , department_id , degree_summary_name , degree_program_id | Modules : course_description , course_name , other_details , course_id | semesters : semester_id , semester_description , other_details , semester_name | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | student_enrolment : student_enrolment_id , degree_program_id , other_details , semester_id , student_id | departments : other_details , department_name , department_description , department_id | students : cell_mobile_number 445-0399x85208\", \"365-8405\", permanent_address_id , first_name , middle_name , ssn , student_id , email_address , other_student_details , last_name , date_first_registered , date_left , current_address_id | sections : other_details , course_id , section_name , section_description , section_id | Subjects : course_description , course_name , other_details , course_id", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "name of the course": "Courses.course_name", + "enrollments": "Student_Enrolment_Courses" + } + }, + { + "question": "what's the #name of the course# with most number of #enrollments# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id group by t1.course_name order by count(*) desc limit 1", + "schema_with_content": "enrolled_courses : student_course_id (9860, 2, 1), course_id (12, 10, 2), student_enrolment_id (5, 2, 6) | student_enrolment : degree_program_id (9, 3, 4), student_id (9, 7, 1), semester_id (13, 1, 6), other_details (None), student_enrolment_id (1, 11, 7) | departments : department_name (\"art\", \"dance\", \"biology\"), department_description (\"dolorem\", \"dolorem\", \"dolorem\"), other_details (None), department_id (11, 12, 2) | sections : section_description (\"facilis\", \"doloremque\", \"non\"), section_id (2, 1, 2), other_details (None), course_id (2, 2, 8), section_name (\"c\", \"p\", \"j\") | semesters : semester_name (\"fall 2018\", \"spring 2015\", \"fall 2010\"), semester_id (9, 9, 10), other_details (None), semester_description (\"y\", \"q\", \"w\") | courses : course_description (\"n\", \"b\", \"w\"), course_id (7, 7, 10), other_details (None), course_name (\"oop\", \"ds\", \"pl\") | degree_programs : department_id (14, 3, 14), degree_summary_description (\"esse\", \"earum\", \"aperiam\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (12, 7, 3), other_details (None) | transcripts : other_details (None), transcript_date (\"1975-10-28 15:16:51\", \"1975-05-06 12:04:47\", \"1984-01-18 23:07:07\"), transcript_id (10, 13, 10) | addresses : line_3 (None), line_1 (\"9283 Schulist Falls Apt. 037\", \"492 Wilkinson Route\", \"979 Haag Shores Suite 656\"), zip_postcode (\"669\", \"895\", \"590\"), line_2 (\"Suite 830\", \"Apt. 583\", \"Suite 865\"), other_address_details (None), address_id (15, 3, 2), state_province_county (\"NorthCarolina\", \"Hawaii\", \"Hawaii\"), country (\"Croatia\", \"Burundi\", \"Lesotho\"), city (\"Mariliehaven\", \"Prohaskafort\", \"New Clemensburgh\") | students : other_student_details (\"autem\", \"qui\", \"omnis\"), date_first_registered (\"2007-08-29 23:25:41\", \"1989-05-24 23:31:29\", \"1997-03-20 16:47:25\"), cell_mobile_number (\"677.401.9382\", \"(213)445-0399x85208\", \"(462)246-7921\"), email_address (\"nbruen@example.org\", \"mya88@example.org\", \"gracie29@example.com\"), current_address_id (7, 15, 1), date_left (\"2006-08-04 17:26:49\", \"2007-03-31 09:53:19\", \"2017-07-09 21:38:43\"), permanent_address_id (9, 9, 4), last_name (\"Jaskolski\", \"Huel\", \"Schuppe\"), ssn (\"402\", \"668\", \"668\"), middle_name (\"Alberta\", \"Golda\", \"Aisha\"), student_id (9, 1, 8), first_name (\"Milton\", \"Jarvis\", \"Milton\") | student_registration_courses : student_course_id (9860, 2, 1), course_id (12, 10, 2), student_enrolment_id (5, 2, 6) | transcript_contents : student_course_id (76, 0, 0), transcript_id (2, 13, 4)", + "schema_without_content": "enrolled_courses : student_course_id , course_id , student_enrolment_id | student_enrolment : degree_program_id , student_id , semester_id , other_details , student_enrolment_id | departments : department_name , department_description , other_details , department_id | sections : section_description , section_id , other_details , course_id , section_name | semesters : semester_name , semester_id , other_details , semester_description | courses : course_description , course_id , other_details , course_name | degree_programs : department_id , degree_summary_description , degree_summary_name , degree_program_id , other_details | transcripts : other_details , transcript_date , transcript_id | addresses : line_3 , line_1 , zip_postcode , line_2 , other_address_details , address_id , state_province_county , country , city | students : other_student_details , date_first_registered , cell_mobile_number 445-0399x85208\", \"246-7921\", email_address , current_address_id , date_left , permanent_address_id , last_name , ssn , middle_name , student_id , first_name | student_registration_courses : student_course_id , course_id , student_enrolment_id | transcript_contents : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment_courses": [ + "student_registration_courses", + "enrolled_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" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "student_registration_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "enrolled_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ] + }, + "column_linking_gt": { + "name of the course": "Courses.course_name", + "enrollments": "Student_Enrolment_Courses" + } + }, + { + "question": "what is the #name of the course# with the most #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id group by t1.course_name order by count(*) desc limit 1", + "schema_with_content": "departments : other_details (None), department_id (15, 12, 1), department_description (\"nostrum\", \"natus\", \"autem\"), department_name (\"computer science\", \"linguistic\", \"engineer\") | transcript_contents : transcript_id (13, 2, 13), student_course_id (8, 2, 7) | student_enrolment : student_id (1, 7, 9), degree_program_id (3, 9, 5), semester_id (13, 12, 6), student_enrolment_id (13, 3, 4), other_details (None) | addresses : other_address_details (None), country (\"Samoa\", \"Samoa\", \"Burundi\"), city (\"Michelleburgh\", \"Mariliehaven\", \"Michelleburgh\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"67942 Carlotta Ferry Apt. 686\", \"3999 Aufderhar Ways Suite 593\"), zip_postcode (\"068\", \"068\", \"148\"), state_province_county (\"Idaho\", \"Idaho\", \"NorthCarolina\"), line_2 (\"Suite 079\", \"Apt. 388\", \"Apt. 468\"), address_id (2, 1, 4), line_3 (None) | Subjects : other_details (None), course_id (1, 5, 3), course_description (\"l\", \"v\", \"c\"), course_name (\"rs\", \"la\", \"pl\") | students : current_address_id (6, 10, 6), other_student_details (\"non\", \"omnis\", \"facilis\"), first_name (\"Reva\", \"Deon\", \"Frida\"), last_name (\"Weimann\", \"Mohr\", \"Rogahn\"), permanent_address_id (14, 9, 14), date_left (\"2007-08-02 04:12:58\", \"1999-08-24 00:07:10\", \"1999-08-24 00:07:10\"), middle_name (\"Mona\", \"Golda\", \"Anna\"), ssn (\"248\", \"\", \"402\"), student_id (5, 13, 8), email_address (\"erwin.zboncak@example.com\", \"qo'kon@example.com\", \"mya88@example.org\"), date_first_registered (\"1973-05-19 19:12:46\", \"1973-05-19 19:12:46\", \"1982-06-19 13:15:18\"), cell_mobile_number (\"03174364122\", \"877.549.9067x8723\", \"(096)889-8954x524\") | degree_programs : degree_program_id (7, 4, 9), department_id (15, 3, 14), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"unde\", \"qui\", \"esse\") | Modules : other_details (None), course_id (1, 5, 3), course_description (\"l\", \"v\", \"c\"), course_name (\"rs\", \"la\", \"pl\") | semesters : semester_id (5, 9, 13), semester_description (\"w\", \"m\", \"t\"), other_details (None), semester_name (\"winter 2010\", \"fall 2018\", \"spring 2014\") | sections : section_description (\"provident\", \"voluptatem\", \"ex\"), section_name (\"j\", \"d\", \"j\"), course_id (1, 1, 2), section_id (9, 7, 3), other_details (None) | student_enrolment_courses : course_id (6, 4, 12), student_enrolment_id (14, 9, 6), student_course_id (604750, 83814225, 438800) | transcripts : transcript_date (\"2002-09-24 06:11:49\", \"1975-05-20 18:31:21\", \"1975-10-28 15:16:51\"), other_details (None), transcript_id (14, 4, 11)", + "schema_without_content": "departments : other_details , department_id , department_description , department_name | transcript_contents : transcript_id , student_course_id | student_enrolment : student_id , degree_program_id , semester_id , student_enrolment_id , other_details | addresses : other_address_details , country , city , line_1 , zip_postcode , state_province_county , line_2 , address_id , line_3 | Subjects : other_details , course_id , course_description , course_name | students : current_address_id , other_student_details , first_name , last_name , permanent_address_id , date_left , middle_name , ssn , student_id , email_address , date_first_registered , cell_mobile_number 889-8954x524\" | degree_programs : degree_program_id , department_id , other_details , degree_summary_name , degree_summary_description | Modules : other_details , course_id , course_description , course_name | semesters : semester_id , semester_description , other_details , semester_name | sections : section_description , section_name , course_id , section_id , other_details | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | transcripts : transcript_date , other_details , transcript_id", + "extra_map": null, + "extra_table_map": { + "courses": [ + "Subjects", + "Modules" + ] + }, + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_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" + ] + }, + "column_linking_gt": { + "name of the course": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "question": "what is the #name of the course# with the most #students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.course_name from courses as t1 join student_enrolment_courses as t2 on t1.course_id = t2.course_id group by t1.course_name order by count(*) desc limit 1", + "schema_with_content": "students : current_address_id (15, 7, 1), email_address (\"skassulke@example.net\", \"erwin.zboncak@example.com\", \"beth42@example.org\"), last_name (\"Rogahn\", \"Ankunding\", \"Jaskolski\"), permanent_address_id (9, 9, 14), student_id (15, 7, 3), other_student_details (\"facilis\", \"voluptatem\", \"voluptatem\"), ssn (\"3\", \"43\", \"3\"), cell_mobile_number (\"(096)889-8954x524\", \"03174364122\", \"1-879-796-8987x164\"), date_first_registered (\"2004-12-24 12:36:46\", \"2004-12-24 12:36:46\", \"2017-01-04 08:10:25\"), date_left (\"1990-09-01 05:03:27\", \"2007-08-02 04:12:58\", \"1971-05-17 19:28:49\"), middle_name (\"Anna\", \"Vaughn\", \"Brooklyn\"), first_name (\"Delaney\", \"Hobart\", \"Hobart\") | student_enrolment : degree_program_id (9, 9, 2), student_enrolment_id (9, 2, 6), student_id (5, 5, 6), other_details (None), semester_id (5, 1, 9) | courses : course_id (3, 2, 1), course_description (\"p\", \"q\", \"d\"), course_name (\"nlp\", \"dl\", \"dl\"), other_details (None) | enrolled_courses : course_id (6, 2, 2), student_course_id (2, 96, 8), student_enrolment_id (6, 10, 8) | addresses : address_id (14, 12, 13), state_province_county (\"NorthCarolina\", \"Delaware\", \"Arkansas\"), zip_postcode (\"386\", \"895\", \"943\"), line_2 (\"Suite 674\", \"Suite 674\", \"Suite 674\"), city (\"Port Chelsea\", \"New Clemensburgh\", \"New Clemensburgh\"), line_1 (\"9283 Schulist Falls Apt. 037\", \"492 Wilkinson Route\", \"7081 Eda Center\"), line_3 (None), country (\"Burundi\", \"Bermuda\", \"Norfolk Island\"), other_address_details (None) | semesters : semester_name (\"spring 2014\", \"spring 2013\", \"spring 2010\"), other_details (None), semester_description (\"x\", \"t\", \"c\"), semester_id (15, 3, 3) | sections : course_id (4, 7, 6), section_id (6, 15, 13), section_name (\"l\", \"f\", \"y\"), other_details (None), section_description (\"voluptas\", \"doloremque\", \"facilis\") | transcripts : transcript_date (\"1988-04-30 01:19:47\", \"1990-03-05 11:59:41\", \"1984-12-19 00:37:21\"), other_details (None), transcript_id (15, 9, 6) | student_registration_courses : course_id (6, 2, 2), student_course_id (2, 96, 8), student_enrolment_id (6, 10, 8) | transcript_contents : student_course_id (7, 0, 76), transcript_id (9, 2, 8) | degree_programs : degree_program_id (10, 15, 4), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"qui\", \"cumque\", \"et\"), department_id (7, 14, 15) | departments : department_description (\"autem\", \"autem\", \"doloribus\"), department_name (\"art\", \"medical\", \"math\"), other_details (None), department_id (13, 11, 4)", + "schema_without_content": "students : current_address_id , email_address , last_name , permanent_address_id , student_id , other_student_details , ssn , cell_mobile_number 889-8954x524\", \"03174364122\", \"1-879-796-8987x164\", date_first_registered , date_left , middle_name , first_name | student_enrolment : degree_program_id , student_enrolment_id , student_id , other_details , semester_id | courses : course_id , course_description , course_name , other_details | enrolled_courses : course_id , student_course_id , student_enrolment_id | addresses : address_id , state_province_county , zip_postcode , line_2 , city , line_1 , line_3 , country , other_address_details | semesters : semester_name , other_details , semester_description , semester_id | sections : course_id , section_id , section_name , other_details , section_description | transcripts : transcript_date , other_details , transcript_id | student_registration_courses : course_id , student_course_id , student_enrolment_id | transcript_contents : student_course_id , transcript_id | degree_programs : degree_program_id , other_details , degree_summary_name , degree_summary_description , department_id | departments : department_description , department_name , other_details , department_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment_courses": [ + "student_registration_courses", + "enrolled_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" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "student_registration_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "enrolled_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ] + }, + "column_linking_gt": { + "name of the course": "Courses.course_name", + "students enrolled": "Student_Enrolment_Courses" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "sections : other_details (None), section_description (\"provident\", \"nesciunt\", \"facilis\"), section_name (\"h\", \"j\", \"e\"), section_id (12, 2, 2), course_id (10, 9, 8) | Residences : other_address_details (None), country (\"Samoa\", \"Iceland\", \"Gabon\"), address_id (6, 11, 3), zip_postcode (\"590\", \"839\", \"590\"), state_province_county (\"Arkansas\", \"NorthCarolina\", \"Arkansas\"), city (\"Lake Careyberg\", \"Prohaskafort\", \"South Palma\"), line_1 (\"7081 Eda Center\", \"2294 Grant Square Apt. 235\", \"0643 Muller Vista\"), line_3 (None), line_2 (\"Suite 674\", \"Suite 674\", \"Apt. 335\") | student_enrolment : degree_program_id (8, 11, 4), semester_id (5, 6, 1), student_enrolment_id (11, 7, 4), student_id (9, 4, 14), other_details (None) | transcript_contents : transcript_id (6, 6, 5), student_course_id (45105806, 45105806, 8) | student_enrolment_courses : course_id (4, 8, 3), student_course_id (8, 9860, 7), student_enrolment_id (4, 6, 2) | transcripts : transcript_date (\"2002-09-24 06:11:49\", \"1988-04-30 01:19:47\", \"1975-05-20 18:31:21\"), transcript_id (3, 14, 12), other_details (None) | courses : other_details (None), course_id (7, 4, 4), course_name (\"ai\", \"ds\", \"os\"), course_description (\"d\", \"n\", \"q\") | departments : department_id (12, 8, 5), department_description (\"nostrum\", \"nihil\", \"error\"), department_name (\"management\", \"statistics\", \"medical\"), other_details (None) | students : current_address_id (1, 1, 7), ssn (\"248\", \"248\", \"248\"), permanent_address_id (9, 8, 14), first_name (\"Warren\", \"Hobart\", \"Jordy\"), cell_mobile_number (\"09700166582\", \"07661787471\", \"(213)445-0399x85208\"), other_student_details (\"non\", \"laborum\", \"rerum\"), date_left (\"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\", \"2007-08-02 04:12:58\"), date_first_registered (\"1976-10-26 02:33:06\", \"2014-03-28 05:48:23\", \"1997-03-20 16:47:25\"), last_name (\"Balistreri\", \"Huel\", \"Osinski\"), student_id (12, 1, 10), email_address (\"nya.lesch@example.net\", \"nya.lesch@example.net\", \"lhartmann@example.org\"), middle_name (\"Mona\", \"Brooklyn\", \"Anna\") | Locations : other_address_details (None), country (\"Samoa\", \"Iceland\", \"Gabon\"), address_id (6, 11, 3), zip_postcode (\"590\", \"839\", \"590\"), state_province_county (\"Arkansas\", \"NorthCarolina\", \"Arkansas\"), city (\"Lake Careyberg\", \"Prohaskafort\", \"South Palma\"), line_1 (\"7081 Eda Center\", \"2294 Grant Square Apt. 235\", \"0643 Muller Vista\"), line_3 (None), line_2 (\"Suite 674\", \"Suite 674\", \"Apt. 335\") | semesters : other_details (None), semester_description (\"x\", \"x\", \"m\"), semester_id (13, 10, 5), semester_name (\"spring 2014\", \"spring 2016\", \"winter 2018\") | degree_programs : degree_program_id (9, 5, 10), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (11, 7, 8), degree_summary_description (\"assumenda\", \"aut\", \"architecto\"), other_details (None)", + "schema_without_content": "sections : other_details , section_description , section_name , section_id , course_id | Residences : other_address_details , country , address_id , zip_postcode , state_province_county , city , line_1 , line_3 , line_2 | student_enrolment : degree_program_id , semester_id , student_enrolment_id , student_id , other_details | transcript_contents : transcript_id , student_course_id | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | transcripts : transcript_date , transcript_id , other_details | courses : other_details , course_id , course_name , course_description | departments : department_id , department_description , department_name , other_details | students : current_address_id , ssn , permanent_address_id , first_name , cell_mobile_number 445-0399x85208\", other_student_details , date_left , date_first_registered , last_name , student_id , email_address , middle_name | Locations : other_address_details , country , address_id , zip_postcode , state_province_county , city , line_1 , line_3 , line_2 | semesters : other_details , semester_description , semester_id , semester_name | degree_programs : degree_program_id , degree_summary_name , department_id , degree_summary_description , other_details", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "currently live in the state": "Addresses.state_province_county", + "degree program": "Degree_Programs" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "transcripts : other_details (None), transcript_date (\"1988-04-30 01:19:47\", \"1998-11-22 12:18:29\", \"1984-12-19 00:37:21\"), transcript_id (15, 7, 5) | Learners : last_name (\"Schuppe\", \"Rogahn\", \"Ankunding\"), ssn (\"\", \"494\", \"43\"), student_id (5, 8, 5), date_first_registered (\"1973-05-19 19:12:46\", \"2018-03-13 09:56:22\", \"2014-03-28 05:48:23\"), middle_name (\"Mona\", \"Mossie\", \"Mona\"), cell_mobile_number (\"171-642-5684\", \"(213)445-0399x85208\", \"(507)365-8405\"), first_name (\"Milton\", \"Deon\", \"Jarvis\"), date_left (\"1990-09-01 05:03:27\", \"1982-06-11 00:25:39\", \"1971-05-17 19:28:49\"), current_address_id (1, 9, 1), permanent_address_id (9, 3, 5), email_address (\"baumbach.lucious@example.org\", \"nya.lesch@example.net\", \"qo'kon@example.com\"), other_student_details (\"omnis\", \"et\", \"atque\") | Pupils : last_name (\"Schuppe\", \"Rogahn\", \"Ankunding\"), ssn (\"\", \"494\", \"43\"), student_id (5, 8, 5), date_first_registered (\"1973-05-19 19:12:46\", \"2018-03-13 09:56:22\", \"2014-03-28 05:48:23\"), middle_name (\"Mona\", \"Mossie\", \"Mona\"), cell_mobile_number (\"171-642-5684\", \"(213)445-0399x85208\", \"(507)365-8405\"), first_name (\"Milton\", \"Deon\", \"Jarvis\"), date_left (\"1990-09-01 05:03:27\", \"1982-06-11 00:25:39\", \"1971-05-17 19:28:49\"), current_address_id (1, 9, 1), permanent_address_id (9, 3, 5), email_address (\"baumbach.lucious@example.org\", \"nya.lesch@example.net\", \"qo'kon@example.com\"), other_student_details (\"omnis\", \"et\", \"atque\") | semesters : other_details (None), semester_id (12, 9, 5), semester_name (\"spring 2013\", \"spring 2016\", \"winter 2018\"), semester_description (\"q\", \"w\", \"o\") | degree_programs : degree_summary_description (\"aperiam\", \"quam\", \"quam\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 3, 11), other_details (None), department_id (13, 13, 7) | student_enrolment_courses : student_enrolment_id (9, 8, 9), course_id (8, 2, 13), student_course_id (1, 28982908, 8) | transcript_contents : student_course_id (7, 70882679, 45105806), transcript_id (11, 2, 4) | sections : section_name (\"a\", \"d\", \"d\"), section_id (8, 14, 5), other_details (None), section_description (\"ex\", \"voluptas\", \"doloremque\"), course_id (14, 10, 1) | student_enrolment : other_details (None), semester_id (15, 2, 1), student_id (1, 4, 12), degree_program_id (4, 4, 10), student_enrolment_id (14, 8, 9) | departments : other_details (None), department_description (\"doloribus\", \"in\", \"dolorem\"), department_id (13, 1, 2), department_name (\"statistics\", \"statistics\", \"dance\") | addresses : city (\"Herzoghaven\", \"Goodwinhaven\", \"South Palma\"), line_3 (None), address_id (1, 2, 3), state_province_county (\"Florida\", \"Hawaii\", \"Hawaii\"), line_2 (\"Apt. 468\", \"Apt. 583\", \"Suite 383\"), other_address_details (None), line_1 (\"7081 Eda Center\", \"186 Evan Motorway Apt. 409\", \"74046 Metz Walk Apt. 113\"), country (\"Lesotho\", \"Samoa\", \"Haiti\"), zip_postcode (\"839\", \"400\", \"541\") | courses : other_details (None), course_description (\"b\", \"c\", \"n\"), course_name (\"ml\", \"en\", \"ds\"), course_id (12, 15, 2)", + "schema_without_content": "transcripts : other_details , transcript_date , transcript_id | Learners : last_name , ssn , student_id , date_first_registered , middle_name , cell_mobile_number 445-0399x85208\", \"365-8405\", first_name , date_left , current_address_id , permanent_address_id , email_address , other_student_details | Pupils : last_name , ssn , student_id , date_first_registered , middle_name , cell_mobile_number 445-0399x85208\", \"365-8405\", first_name , date_left , current_address_id , permanent_address_id , email_address , other_student_details | semesters : other_details , semester_id , semester_name , semester_description | degree_programs : degree_summary_description , degree_summary_name , degree_program_id , other_details , department_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcript_contents : student_course_id , transcript_id | sections : section_name , section_id , other_details , section_description , course_id | student_enrolment : other_details , semester_id , student_id , degree_program_id , student_enrolment_id | departments : other_details , department_description , department_id , department_name | addresses : city , line_3 , address_id , state_province_county , line_2 , other_address_details , line_1 , country , zip_postcode | courses : other_details , course_description , course_name , course_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "currently live in the state": "Addresses.state_province_county", + "degree program": "Degree_Programs" + } + }, + { + "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_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "transcripts : transcript_date (\"2013-06-30 13:01:40\", \"1999-01-06 20:06:46\", \"1998-11-22 12:18:29\"), transcript_id (12, 4, 3), other_details (None) | courses : course_name (\"oop\", \"ai\", \"ds\"), other_details (None), course_description (\"q\", \"k\", \"q\"), course_id (10, 4, 3) | semesters : semester_name (\"spring 2014\", \"spring 2016\", \"winter 2010\"), other_details (None), semester_description (\"x\", \"w\", \"x\"), semester_id (10, 15, 9) | student_enrolment_courses : student_enrolment_id (14, 10, 5), student_course_id (7, 7, 604750), course_id (6, 11, 6) | students : middle_name (\"Violet\", \"Vaughn\", \"Mona\"), last_name (\"Mohr\", \"Schuppe\", \"Mohr\"), current_address_id (6, 14, 10), ssn (\"304246\", \"\", \"39\"), first_name (\"Gregg\", \"Delaney\", \"Hobart\"), student_id (2, 2, 13), permanent_address_id (8, 5, 11), email_address (\"swift.kolby@example.com\", \"gracie29@example.com\", \"nya.lesch@example.net\"), date_left (\"2007-11-28 12:50:21\", \"2007-11-28 12:50:21\", \"1999-08-24 00:07:10\"), date_first_registered (\"1997-03-20 16:47:25\", \"2014-03-28 05:48:23\", \"2009-09-25 00:14:25\"), cell_mobile_number (\"171-642-5684\", \"1-009-710-5151\", \"1-009-710-5151\"), other_student_details (\"et\", \"voluptatem\", \"non\") | addresses : line_3 (None), state_province_county (\"Washington\", \"Wyoming\", \"NorthCarolina\"), other_address_details (None), address_id (12, 4, 14), zip_postcode (\"638\", \"148\", \"847\"), line_1 (\"2294 Grant Square Apt. 235\", \"0144 Lamar Plaza Apt. 346\", \"7081 Eda Center\"), line_2 (\"Suite 703\", \"Apt. 468\", \"Suite 703\"), city (\"Lake Careyberg\", \"South Palma\", \"Goodwinhaven\"), country (\"Kyrgyz Republic\", \"Cook Islands\", \"Samoa\") | Student_Registration : degree_program_id (5, 10, 2), student_id (14, 14, 14), other_details (None), student_enrolment_id (11, 7, 10), semester_id (1, 4, 9) | degree_programs : degree_summary_description (\"quam\", \"et\", \"et\"), other_details (None), degree_program_id (7, 2, 3), department_id (14, 3, 11), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | departments : department_description (\"aliquam\", \"doloribus\", \"nostrum\"), department_name (\"computer science\", \"geography\", \"computer science\"), other_details (None), department_id (12, 12, 11) | sections : section_id (10, 12, 10), course_id (8, 9, 8), other_details (None), section_name (\"y\", \"p\", \"j\"), section_description (\"facilis\", \"voluptatem\", \"ad\") | transcript_contents : transcript_id (13, 6, 5), student_course_id (2, 28982908, 45105806) | Enrolment_Tracking : degree_program_id (5, 10, 2), student_id (14, 14, 14), other_details (None), student_enrolment_id (11, 7, 10), semester_id (1, 4, 9)", + "schema_without_content": "transcripts : transcript_date , transcript_id , other_details | courses : course_name , other_details , course_description , course_id | semesters : semester_name , other_details , semester_description , semester_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | students : middle_name , last_name , current_address_id , ssn , first_name , student_id , permanent_address_id , email_address , date_left , date_first_registered , cell_mobile_number , other_student_details | addresses : line_3 , state_province_county , other_address_details , address_id , zip_postcode , line_1 , line_2 , city , country | Student_Registration : degree_program_id , student_id , other_details , student_enrolment_id , semester_id | degree_programs : degree_summary_description , other_details , degree_program_id , department_id , degree_summary_name | departments : department_description , department_name , other_details , department_id | sections : section_id , course_id , other_details , section_name , section_description | transcript_contents : transcript_id , student_course_id | Enrolment_Tracking : degree_program_id , student_id , other_details , student_enrolment_id , semester_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "currently live in the state": "Addresses.state_province_county", + "degree program": "Degree_Programs" + } + }, + { + "question": "what are the #last name of the students# who live in #north carolina# but have not registered in any #degree programs# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "courses : other_details (None), course_description (\"n\", \"v\", \"d\"), course_name (\"dl\", \"en\", \"la\"), course_id (7, 4, 10) | degree_programs : degree_program_id (13, 3, 11), department_id (15, 8, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"et\", \"qui\", \"assumenda\"), other_details (None) | student_enrolment : degree_program_id (3, 10, 10), student_id (4, 14, 6), other_details (None), student_enrolment_id (10, 8, 7), semester_id (12, 6, 13) | transcripts : transcript_date (\"1998-11-22 12:18:29\", \"1988-04-30 01:19:47\", \"1985-08-21 09:32:39\"), other_details (None), transcript_id (11, 5, 13) | student_enrolment_courses : student_course_id (8, 7, 9860), course_id (2, 13, 6), student_enrolment_id (8, 8, 8) | transcript_contents : transcript_id (4, 6, 5), student_course_id (7, 70882679, 8) | Residences : country (\"New Caledonia\", \"Norfolk Island\", \"Saudi Arabia\"), line_1 (\"74046 Metz Walk Apt. 113\", \"2294 Grant Square Apt. 235\", \"186 Evan Motorway Apt. 409\"), line_2 (\"Apt. 388\", \"Suite 865\", \"Apt. 689\"), city (\"Rutherfordtown\", \"Herzoghaven\", \"Goodwinhaven\"), line_3 (None), address_id (7, 1, 8), state_province_county (\"Wyoming\", \"Washington\", \"Florida\"), other_address_details (None), zip_postcode (\"068\", \"669\", \"638\") | Locations : country (\"New Caledonia\", \"Norfolk Island\", \"Saudi Arabia\"), line_1 (\"74046 Metz Walk Apt. 113\", \"2294 Grant Square Apt. 235\", \"186 Evan Motorway Apt. 409\"), line_2 (\"Apt. 388\", \"Suite 865\", \"Apt. 689\"), city (\"Rutherfordtown\", \"Herzoghaven\", \"Goodwinhaven\"), line_3 (None), address_id (7, 1, 8), state_province_county (\"Wyoming\", \"Washington\", \"Florida\"), other_address_details (None), zip_postcode (\"068\", \"669\", \"638\") | semesters : semester_id (7, 10, 15), other_details (None), semester_description (\"t\", \"g\", \"t\"), semester_name (\"winter 2010\", \"spring 2018\", \"spring 2014\") | sections : other_details (None), section_id (6, 13, 1), course_id (14, 7, 2), section_name (\"u\", \"l\", \"u\"), section_description (\"voluptas\", \"doloremque\", \"nesciunt\") | departments : other_details (None), department_id (7, 9, 12), department_name (\"drama\", \"dance\", \"management\"), department_description (\"non\", \"doloribus\", \"doloribus\") | students : date_first_registered (\"2005-12-15 08:42:10\", \"2007-08-29 23:25:41\", \"2009-09-25 00:14:25\"), first_name (\"Reva\", \"Timmothy\", \"Jett\"), cell_mobile_number (\"(462)246-7921\", \"09700166582\", \"(096)889-8954x524\"), current_address_id (6, 9, 6), middle_name (\"Alberta\", \"Vaughn\", \"Cleve\"), last_name (\"Ankunding\", \"Osinski\", \"Mohr\"), other_student_details (\"voluptatem\", \"non\", \"dolorum\"), student_id (3, 15, 1), permanent_address_id (9, 9, 9), ssn (\"6274274\", \"965\", \"156\"), email_address (\"jillian26@example.net\", \"mya88@example.org\", \"nbruen@example.org\"), date_left (\"1982-06-11 00:25:39\", \"2016-04-09 12:27:04\", \"2013-10-05 17:41:28\")", + "schema_without_content": "courses : other_details , course_description , course_name , course_id | degree_programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | student_enrolment : degree_program_id , student_id , other_details , student_enrolment_id , semester_id | transcripts : transcript_date , other_details , transcript_id | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcript_contents : transcript_id , student_course_id | Residences : country , line_1 , line_2 , city , line_3 , address_id , state_province_county , other_address_details , zip_postcode | Locations : country , line_1 , line_2 , city , line_3 , address_id , state_province_county , other_address_details , zip_postcode | semesters : semester_id , other_details , semester_description , semester_name | sections : other_details , section_id , course_id , section_name , section_description | departments : other_details , department_id , department_name , department_description | students : date_first_registered , first_name , cell_mobile_number 246-7921\", \"09700166582\", \"889-8954x524\", current_address_id , middle_name , last_name , other_student_details , student_id , permanent_address_id , ssn , email_address , date_left", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "North Carolina": "Addresses.state_province_county", + "degree programs": "Degree_Programs" + } + }, + { + "question": "what are the #last name of the students# who live in #north carolina# but have not registered in any #degree programs# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "addresses : city (\"South Palma\", \"Herzoghaven\", \"Port Oceane\"), zip_postcode (\"541\", \"777\", \"669\"), state_province_county (\"Virginia\", \"NorthCarolina\", \"Kentucky\"), address_id (4, 5, 7), line_2 (\"Suite 674\", \"Suite 674\", \"Suite 239\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"67942 Carlotta Ferry Apt. 686\", \"0144 Lamar Plaza Apt. 346\"), other_address_details (None), line_3 (None), country (\"Iceland\", \"Norfolk Island\", \"Lesotho\") | transcripts : transcript_id (7, 8, 5), other_details (None), transcript_date (\"2013-06-30 13:01:40\", \"2002-09-24 06:11:49\", \"1988-04-30 01:19:47\") | student_enrolment : student_enrolment_id (13, 15, 14), other_details (None), student_id (1, 14, 14), semester_id (2, 1, 12), degree_program_id (5, 4, 2) | student_enrolment_courses : student_course_id (7, 70882679, 28982908), student_enrolment_id (9, 6, 10), course_id (6, 13, 13) | semesters : other_details (None), semester_id (1, 15, 10), semester_name (\"winter 2018\", \"fall 2018\", \"fall 2018\"), semester_description (\"w\", \"l\", \"t\") | degree_programs : department_id (11, 8, 15), degree_summary_description (\"qui\", \"assumenda\", \"esse\"), other_details (None), degree_program_id (8, 12, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | departments : other_details (None), department_id (14, 14, 7), department_name (\"biology\", \"drama\", \"biology\"), department_description (\"aliquam\", \"in\", \"nisi\") | sections : section_id (5, 2, 2), section_name (\"k\", \"p\", \"l\"), section_description (\"reprehenderit\", \"nesciunt\", \"et\"), course_id (10, 14, 5), other_details (None) | courses : course_description (\"n\", \"l\", \"d\"), course_name (\"ds\", \"ai\", \"en\"), course_id (8, 15, 14), other_details (None) | Learners : date_first_registered (\"2007-08-29 23:25:41\", \"2005-12-15 08:42:10\", \"1982-06-19 13:15:18\"), other_student_details (\"dolorum\", \"voluptatem\", \"rerum\"), first_name (\"Milton\", \"Jarvis\", \"Frida\"), last_name (\"Ward\", \"Christiansen\", \"Carroll\"), student_id (11, 12, 8), ssn (\"965\", \"965\", \"668\"), email_address (\"mya88@example.org\", \"nbruen@example.org\", \"mya88@example.org\"), current_address_id (9, 12, 6), date_left (\"2006-08-04 17:26:49\", \"1997-11-16 08:54:33\", \"2017-07-09 21:38:43\"), permanent_address_id (4, 9, 15), cell_mobile_number (\"07661787471\", \"1-009-710-5151\", \"07661787471\"), middle_name (\"Anna\", \"Judd\", \"Aisha\") | Pupils : date_first_registered (\"2007-08-29 23:25:41\", \"2005-12-15 08:42:10\", \"1982-06-19 13:15:18\"), other_student_details (\"dolorum\", \"voluptatem\", \"rerum\"), first_name (\"Milton\", \"Jarvis\", \"Frida\"), last_name (\"Ward\", \"Christiansen\", \"Carroll\"), student_id (11, 12, 8), ssn (\"965\", \"965\", \"668\"), email_address (\"mya88@example.org\", \"nbruen@example.org\", \"mya88@example.org\"), current_address_id (9, 12, 6), date_left (\"2006-08-04 17:26:49\", \"1997-11-16 08:54:33\", \"2017-07-09 21:38:43\"), permanent_address_id (4, 9, 15), cell_mobile_number (\"07661787471\", \"1-009-710-5151\", \"07661787471\"), middle_name (\"Anna\", \"Judd\", \"Aisha\") | transcript_contents : transcript_id (2, 8, 2), student_course_id (0, 8, 70882679)", + "schema_without_content": "addresses : city , zip_postcode , state_province_county , address_id , line_2 , line_1 , other_address_details , line_3 , country | transcripts : transcript_id , other_details , transcript_date | student_enrolment : student_enrolment_id , other_details , student_id , semester_id , degree_program_id | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | semesters : other_details , semester_id , semester_name , semester_description | degree_programs : department_id , degree_summary_description , other_details , degree_program_id , degree_summary_name | departments : other_details , department_id , department_name , department_description | sections : section_id , section_name , section_description , course_id , other_details | courses : course_description , course_name , course_id , other_details | Learners : date_first_registered , other_student_details , first_name , last_name , student_id , ssn , email_address , current_address_id , date_left , permanent_address_id , cell_mobile_number , middle_name | Pupils : date_first_registered , other_student_details , first_name , last_name , student_id , ssn , email_address , current_address_id , date_left , permanent_address_id , cell_mobile_number , middle_name | transcript_contents : transcript_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "North Carolina": "Addresses.state_province_county", + "degree programs": "Degree_Programs" + } + }, + { + "question": "what are the #last name of the students# who live in #north carolina# but have not registered in any #degree programs# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.last_name from students as t1 join addresses as t2 on t1.current_address_id = t2.address_id where t2.state_province_county = 'NorthCarolina' except select distinct t3.last_name from students as t3 join student_enrolment as t4 on t3.student_id = t4.student_id", + "schema_with_content": "sections : other_details (None), course_id (2, 2, 6), section_id (8, 14, 9), section_name (\"j\", \"p\", \"b\"), section_description (\"doloremque\", \"ex\", \"non\") | addresses : city (\"Port Chelsea\", \"Lake Laishafurt\", \"Port Chelsea\"), line_3 (None), line_2 (\"Apt. 305\", \"Apt. 583\", \"Apt. 388\"), line_1 (\"979 Haag Shores Suite 656\", \"492 Wilkinson Route\", \"2294 Grant Square Apt. 235\"), state_province_county (\"Kansas\", \"Wyoming\", \"Florida\"), address_id (1, 14, 13), other_address_details (None), zip_postcode (\"847\", \"386\", \"943\"), country (\"Cook Islands\", \"Haiti\", \"Norfolk Island\") | courses : course_id (9, 12, 6), course_name (\"rs\", \"nlp\", \"fr\"), course_description (\"p\", \"v\", \"p\"), other_details (None) | student_enrolment_courses : student_course_id (681404, 8, 8), student_enrolment_id (5, 9, 14), course_id (8, 10, 13) | students : last_name (\"Jaskolski\", \"Carroll\", \"Carroll\"), date_left (\"2004-12-08 05:29:11\", \"2016-04-09 12:27:04\", \"1982-06-11 00:25:39\"), student_id (9, 12, 8), first_name (\"Warren\", \"Gregg\", \"Warren\"), email_address (\"erwin.zboncak@example.com\", \"nya.lesch@example.net\", \"qo'kon@example.com\"), date_first_registered (\"1989-05-24 23:31:29\", \"2007-08-29 23:25:41\", \"1989-05-24 23:31:29\"), permanent_address_id (3, 4, 14), current_address_id (9, 10, 10), cell_mobile_number (\"09700166582\", \"1-009-710-5151\", \"(982)153-1469x1733\"), other_student_details (\"rerum\", \"dolorum\", \"rerum\"), middle_name (\"Brooklyn\", \"Judd\", \"Cleve\"), ssn (\"156\", \"\", \"402\") | Enrolment_Tracking : degree_program_id (4, 12, 12), semester_id (4, 13, 5), other_details (None), student_id (6, 14, 5), student_enrolment_id (6, 1, 10) | transcripts : other_details (None), transcript_date (\"1988-04-30 01:19:47\", \"1988-04-30 01:19:47\", \"1985-04-29 01:20:20\"), transcript_id (10, 15, 3) | semesters : semester_description (\"m\", \"t\", \"o\"), semester_id (3, 11, 8), other_details (None), semester_name (\"fall 2010\", \"spring 2018\", \"spring 2019\") | Student_Registration : degree_program_id (4, 12, 12), semester_id (4, 13, 5), other_details (None), student_id (6, 14, 5), student_enrolment_id (6, 1, 10) | departments : department_description (\"nihil\", \"nostrum\", \"ea\"), department_id (6, 4, 11), other_details (None), department_name (\"history\", \"art\", \"math\") | degree_programs : department_id (2, 8, 2), other_details (None), degree_program_id (3, 3, 3), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"aut\", \"quam\", \"qui\") | transcript_contents : transcript_id (5, 5, 9), student_course_id (70882679, 76, 70882679)", + "schema_without_content": "sections : other_details , course_id , section_id , section_name , section_description | addresses : city , line_3 , line_2 , line_1 , state_province_county , address_id , other_address_details , zip_postcode , country | courses : course_id , course_name , course_description , other_details | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | students : last_name , date_left , student_id , first_name , email_address , date_first_registered , permanent_address_id , current_address_id , cell_mobile_number 153-1469x1733\", other_student_details , middle_name , ssn | Enrolment_Tracking : degree_program_id , semester_id , other_details , student_id , student_enrolment_id | transcripts : other_details , transcript_date , transcript_id | semesters : semester_description , semester_id , other_details , semester_name | Student_Registration : degree_program_id , semester_id , other_details , student_id , student_enrolment_id | departments : department_description , department_id , other_details , department_name | degree_programs : department_id , other_details , degree_program_id , degree_summary_name , degree_summary_description | transcript_contents : transcript_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "last name of the students": "Students.last_name", + "North Carolina": "Addresses.state_province_county", + "degree programs": "Degree_Programs" + } + }, + { + "question": "show the #date# and #id# of the transcript with at least 2 #course results# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id having count(*) >= 2", + "schema_with_content": "transcript_contents : student_course_id (45105806, 7, 8), transcript_id (8, 15, 12) | student_enrolment_courses : student_enrolment_id (5, 6, 10), student_course_id (83814225, 438800, 604750), course_id (4, 6, 11) | Grade_Report : other_details (None), transcript_date (\"1998-11-22 12:18:29\", \"1975-10-28 15:16:51\", \"1985-08-21 09:32:39\"), transcript_id (6, 13, 11) | addresses : line_3 (None), line_2 (\"Apt. 388\", \"Apt. 406\", \"Apt. 305\"), zip_postcode (\"446\", \"638\", \"943\"), state_province_county (\"Wyoming\", \"NorthCarolina\", \"Florida\"), address_id (4, 13, 4), line_1 (\"0643 Muller Vista\", \"3999 Aufderhar Ways Suite 593\", \"0144 Lamar Plaza Apt. 346\"), other_address_details (None), country (\"Lesotho\", \"Angola\", \"Cook Islands\"), city (\"Port Oceane\", \"Lake Laishafurt\", \"Port Elvisfurt\") | semesters : other_details (None), semester_id (10, 7, 3), semester_name (\"summer 2010\", \"fall 2018\", \"fall 2010\"), semester_description (\"g\", \"w\", \"q\") | Academic_History : other_details (None), transcript_date (\"1998-11-22 12:18:29\", \"1975-10-28 15:16:51\", \"1985-08-21 09:32:39\"), transcript_id (6, 13, 11) | courses : course_id (6, 12, 5), course_name (\"ai\", \"la\", \"dl\"), course_description (\"b\", \"l\", \"p\"), other_details (None) | sections : other_details (None), section_name (\"k\", \"g\", \"j\"), section_description (\"ad\", \"facilis\", \"ad\"), course_id (6, 5, 12), section_id (3, 10, 11) | students : last_name (\"Jaskolski\", \"Carroll\", \"Mohr\"), other_student_details (\"et\", \"rerum\", \"non\"), first_name (\"Helga\", \"Gregg\", \"Helga\"), current_address_id (10, 6, 1), middle_name (\"Anna\", \"Alberta\", \"Mona\"), ssn (\"668\", \"6274274\", \"68095\"), email_address (\"baumbach.lucious@example.org\", \"lhartmann@example.org\", \"dell43@example.net\"), date_left (\"1975-10-09 00:49:27\", \"2016-04-09 12:27:04\", \"1975-10-09 00:49:27\"), permanent_address_id (3, 11, 11), student_id (13, 10, 14), date_first_registered (\"1982-06-19 13:15:18\", \"2014-03-28 05:48:23\", \"2018-03-13 09:56:22\"), cell_mobile_number (\"1-879-796-8987x164\", \"171-642-5684\", \"(096)889-8954x524\") | departments : department_description (\"doloribus\", \"autem\", \"aliquam\"), department_id (9, 8, 2), other_details (None), department_name (\"art\", \"engineer\", \"medical\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 7, 14), other_details (None), degree_summary_description (\"qui\", \"esse\", \"et\"), department_id (2, 12, 8) | student_enrolment : semester_id (2, 13, 15), student_enrolment_id (4, 15, 1), student_id (1, 12, 12), degree_program_id (12, 11, 5), other_details (None)", + "schema_without_content": "transcript_contents : student_course_id , transcript_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | Grade_Report : other_details , transcript_date , transcript_id | addresses : line_3 , line_2 , zip_postcode , state_province_county , address_id , line_1 , other_address_details , country , city | semesters : other_details , semester_id , semester_name , semester_description | Academic_History : other_details , transcript_date , transcript_id | courses : course_id , course_name , course_description , other_details | sections : other_details , section_name , section_description , course_id , section_id | students : last_name , other_student_details , first_name , current_address_id , middle_name , ssn , email_address , date_left , permanent_address_id , student_id , date_first_registered , cell_mobile_number 889-8954x524\" | departments : department_description , department_id , other_details , department_name | degree_programs : degree_summary_name , degree_program_id , other_details , degree_summary_description , department_id | student_enrolment : semester_id , student_enrolment_id , student_id , degree_program_id , other_details", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id": "Transcript_Contents.transcript_id", + "course results": "Transcript_Contents.student_course_id" + } + }, + { + "question": "show the #date# and #id# of the transcript with at least 2 #course results# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id having count(*) >= 2", + "schema_with_content": "degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"et\", \"officiis\", \"voluptas\"), department_id (8, 11, 2), degree_program_id (2, 4, 9), other_details (None) | student_enrolment : student_id (12, 6, 9), student_enrolment_id (3, 3, 15), semester_id (13, 12, 5), other_details (None), degree_program_id (3, 12, 4) | departments : department_description (\"error\", \"consequatur\", \"in\"), department_name (\"management\", \"math\", \"art\"), department_id (8, 13, 14), other_details (None) | Academic_Record : student_course_id (45105806, 76, 7), transcript_id (4, 6, 2) | students : ssn (\"248\", \"668\", \"\"), middle_name (\"Mossie\", \"Aaliyah\", \"Violet\"), email_address (\"baumbach.lucious@example.org\", \"qo'kon@example.com\", \"nya.lesch@example.net\"), date_left (\"1975-10-09 00:49:27\", \"2014-05-30 23:32:02\", \"2007-03-31 09:53:19\"), other_student_details (\"qui\", \"laborum\", \"atque\"), first_name (\"Hobart\", \"Orrin\", \"Jordy\"), current_address_id (7, 1, 15), permanent_address_id (4, 15, 4), last_name (\"Jaskolski\", \"Rogahn\", \"Gleichner\"), cell_mobile_number (\"(213)445-0399x85208\", \"877.549.9067x8723\", \"(462)246-7921\"), date_first_registered (\"2017-01-04 08:10:25\", \"2005-12-15 08:42:10\", \"1989-05-24 23:31:29\"), student_id (4, 9, 10) | student_enrolment_courses : course_id (6, 6, 8), student_enrolment_id (4, 6, 4), student_course_id (96, 681404, 7) | semesters : semester_id (6, 8, 6), other_details (None), semester_description (\"q\", \"g\", \"q\"), semester_name (\"spring 2015\", \"winter 2018\", \"spring 2016\") | sections : section_id (7, 3, 9), section_description (\"non\", \"doloremque\", \"facilis\"), other_details (None), course_id (14, 9, 6), section_name (\"b\", \"j\", \"g\") | transcripts : other_details (None), transcript_id (15, 14, 10), transcript_date (\"1988-04-30 01:19:47\", \"2013-06-30 13:01:40\", \"2002-09-24 06:11:49\") | courses : course_id (15, 12, 6), course_description (\"d\", \"w\", \"c\"), other_details (None), course_name (\"db\", \"db\", \"oop\") | Grades : student_course_id (45105806, 76, 7), transcript_id (4, 6, 2) | addresses : address_id (1, 14, 9), other_address_details (None), city (\"Prohaskafort\", \"North Omer\", \"Mariliehaven\"), country (\"Kyrgyz Republic\", \"New Caledonia\", \"Burundi\"), line_3 (None), line_1 (\"74046 Metz Walk Apt. 113\", \"74046 Metz Walk Apt. 113\", \"74046 Metz Walk Apt. 113\"), state_province_county (\"Kansas\", \"Hawaii\", \"Kansas\"), zip_postcode (\"839\", \"386\", \"777\"), line_2 (\"Suite 383\", \"Suite 674\", \"Apt. 305\")", + "schema_without_content": "degree_programs : degree_summary_name , degree_summary_description , department_id , degree_program_id , other_details | student_enrolment : student_id , student_enrolment_id , semester_id , other_details , degree_program_id | departments : department_description , department_name , department_id , other_details | Academic_Record : student_course_id , transcript_id | students : ssn , middle_name , email_address , date_left , other_student_details , first_name , current_address_id , permanent_address_id , last_name , cell_mobile_number 445-0399x85208\", \"877.549.9067x8723\", \"246-7921\", date_first_registered , student_id | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | semesters : semester_id , other_details , semester_description , semester_name | sections : section_id , section_description , other_details , course_id , section_name | transcripts : other_details , transcript_id , transcript_date | courses : course_id , course_description , other_details , course_name | Grades : student_course_id , transcript_id | addresses : address_id , other_address_details , city , country , line_3 , line_1 , state_province_county , zip_postcode , line_2", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id": "Transcript_Contents.transcript_id", + "course results": "Transcript_Contents.student_course_id" + } + }, + { + "question": "what is the #date# and #id of the transcript# with at least 2 #courses# listed?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id having count(*) >= 2", + "schema_with_content": "departments : other_details (None), department_id (6, 8, 3), department_name (\"art\", \"medical\", \"art\"), department_description (\"dolorem\", \"ea\", \"ea\") | addresses : line_1 (\"0643 Muller Vista\", \"16998 Mraz Lodge\", \"3999 Aufderhar Ways Suite 593\"), line_2 (\"Suite 830\", \"Apt. 689\", \"Apt. 583\"), address_id (10, 1, 10), other_address_details (None), city (\"Mariliehaven\", \"South Palma\", \"North Omer\"), zip_postcode (\"148\", \"943\", \"943\"), state_province_county (\"NorthCarolina\", \"Wyoming\", \"SouthDakota\"), line_3 (None), country (\"Gibraltar\", \"New Caledonia\", \"Norfolk Island\") | courses : course_description (\"n\", \"p\", \"c\"), course_id (11, 15, 15), other_details (None), course_name (\"la\", \"ml\", \"os\") | Grade_Report : transcript_id (10, 6, 8), transcript_date (\"1985-08-21 09:32:39\", \"1986-07-12 07:27:29\", \"1984-01-18 23:07:07\"), other_details (None) | degree_programs : degree_summary_description (\"officiis\", \"aut\", \"placeat\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 1, 1), other_details (None), department_id (14, 7, 3) | semesters : semester_description (\"w\", \"l\", \"g\"), other_details (None), semester_name (\"winter 2018\", \"spring 2017\", \"spring 2014\"), semester_id (9, 9, 15) | Academic_History : transcript_id (10, 6, 8), transcript_date (\"1985-08-21 09:32:39\", \"1986-07-12 07:27:29\", \"1984-01-18 23:07:07\"), other_details (None) | sections : course_id (5, 1, 12), section_id (4, 1, 5), other_details (None), section_description (\"ad\", \"ad\", \"ex\"), section_name (\"b\", \"f\", \"f\") | students : first_name (\"Stanford\", \"Jarvis\", \"Jett\"), student_id (3, 2, 12), last_name (\"Carroll\", \"Christiansen\", \"Rogahn\"), other_student_details (\"dolorum\", \"atque\", \"autem\"), email_address (\"dell43@example.net\", \"jillian26@example.net\", \"beth42@example.org\"), cell_mobile_number (\"(096)889-8954x524\", \"(982)153-1469x1733\", \"(462)246-7921\"), date_left (\"2017-07-09 21:38:43\", \"2007-11-28 12:50:21\", \"1990-09-01 05:03:27\"), middle_name (\"Golda\", \"Mossie\", \"Aisha\"), ssn (\"965\", \"402\", \"141072406\"), current_address_id (14, 7, 7), permanent_address_id (11, 4, 8), date_first_registered (\"1997-03-20 16:47:25\", \"2009-09-25 00:14:25\", \"2005-12-15 08:42:10\") | transcript_contents : transcript_id (6, 11, 2), student_course_id (8, 7, 2) | student_enrolment_courses : student_enrolment_id (5, 6, 4), course_id (6, 3, 4), student_course_id (9860, 96, 1) | student_enrolment : degree_program_id (12, 9, 2), student_enrolment_id (6, 1, 13), other_details (None), semester_id (4, 12, 9), student_id (14, 4, 1)", + "schema_without_content": "departments : other_details , department_id , department_name , department_description | addresses : line_1 , line_2 , address_id , other_address_details , city , zip_postcode , state_province_county , line_3 , country | courses : course_description , course_id , other_details , course_name | Grade_Report : transcript_id , transcript_date , other_details | degree_programs : degree_summary_description , degree_summary_name , degree_program_id , other_details , department_id | semesters : semester_description , other_details , semester_name , semester_id | Academic_History : transcript_id , transcript_date , other_details | sections : course_id , section_id , other_details , section_description , section_name | students : first_name , student_id , last_name , other_student_details , email_address , cell_mobile_number 889-8954x524\", \"153-1469x1733\", \"246-7921\", date_left , middle_name , ssn , current_address_id , permanent_address_id , date_first_registered | transcript_contents : transcript_id , student_course_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | student_enrolment : degree_program_id , student_enrolment_id , other_details , semester_id , student_id", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id of the transcript": "Transcripts.transcript_id", + "courses": "Transcript_Contents.student_course_id" + } + }, + { + "question": "what is the #date# and #id of the transcript# with at least 2 #courses# listed?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id having count(*) >= 2", + "schema_with_content": "departments : department_name (\"geography\", \"economics\", \"dance\"), department_id (10, 11, 5), department_description (\"dolorem\", \"error\", \"error\"), other_details (None) | students : other_student_details (\"omnis\", \"voluptatem\", \"omnis\"), middle_name (\"Aisha\", \"Neal\", \"Vaughn\"), date_left (\"2013-10-05 17:41:28\", \"2004-12-08 05:29:11\", \"1999-08-24 00:07:10\"), permanent_address_id (3, 5, 4), email_address (\"johns.unique@example.net\", \"nbruen@example.org\", \"swift.kolby@example.com\"), current_address_id (2, 9, 7), cell_mobile_number (\"171-642-5684\", \"03174364122\", \"(507)365-8405\"), student_id (10, 15, 2), last_name (\"Rempel\", \"Jaskolski\", \"Christiansen\"), first_name (\"Delaney\", \"Orrin\", \"Reva\"), date_first_registered (\"2017-01-04 08:10:25\", \"1982-02-14 08:46:35\", \"1982-06-19 13:15:18\"), ssn (\"494\", \"68095\", \"668\") | degree_programs : other_details (None), degree_program_id (5, 3, 8), department_id (11, 12, 12), degree_summary_description (\"unde\", \"cumque\", \"aut\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | courses : course_description (\"n\", \"w\", \"d\"), course_id (10, 2, 4), other_details (None), course_name (\"pl\", \"fr\", \"pl\") | semesters : other_details (None), semester_name (\"spring 2018\", \"spring 2012\", \"winter 2018\"), semester_description (\"m\", \"l\", \"w\"), semester_id (5, 12, 14) | Academic_Record : student_course_id (0, 0, 2), transcript_id (5, 9, 2) | addresses : state_province_county (\"Florida\", \"Delaware\", \"Wyoming\"), line_1 (\"492 Wilkinson Route\", \"193 Marlin Brook\", \"193 Marlin Brook\"), city (\"South Palma\", \"Lake Careyberg\", \"Rutherfordtown\"), line_2 (\"Apt. 305\", \"Suite 674\", \"Apt. 689\"), other_address_details (None), zip_postcode (\"446\", \"446\", \"777\"), address_id (2, 8, 5), country (\"Haiti\", \"Bermuda\", \"Cook Islands\"), line_3 (None) | transcripts : transcript_date (\"1999-01-06 20:06:46\", \"1984-12-19 00:37:21\", \"2013-06-30 13:01:40\"), transcript_id (8, 10, 5), other_details (None) | student_enrolment_courses : student_course_id (96, 8, 2), course_id (11, 10, 3), student_enrolment_id (6, 2, 14) | sections : course_id (9, 2, 2), section_id (9, 14, 3), other_details (None), section_name (\"e\", \"l\", \"d\"), section_description (\"quis\", \"reprehenderit\", \"ad\") | student_enrolment : student_enrolment_id (6, 11, 10), other_details (None), student_id (12, 9, 14), degree_program_id (3, 10, 5), semester_id (9, 15, 2) | Grades : student_course_id (0, 0, 2), transcript_id (5, 9, 2)", + "schema_without_content": "departments : department_name , department_id , department_description , other_details | students : other_student_details , middle_name , date_left , permanent_address_id , email_address , current_address_id , cell_mobile_number 365-8405\", student_id , last_name , first_name , date_first_registered , ssn | degree_programs : other_details , degree_program_id , department_id , degree_summary_description , degree_summary_name | courses : course_description , course_id , other_details , course_name | semesters : other_details , semester_name , semester_description , semester_id | Academic_Record : student_course_id , transcript_id | addresses : state_province_county , line_1 , city , line_2 , other_address_details , zip_postcode , address_id , country , line_3 | transcripts : transcript_date , transcript_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | sections : course_id , section_id , other_details , section_name , section_description | student_enrolment : student_enrolment_id , other_details , student_id , degree_program_id , semester_id | Grades : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id of the transcript": "Transcripts.transcript_id", + "courses": "Transcript_Contents.student_course_id" + } + }, + { + "question": "what is the #phone number# of the man with the #first name# timmothy and the #last name# ward?", + "db_id": "student_transcripts_tracking", + "orig_query": "select cell_mobile_number from students where first_name = 'Timmothy' and last_name = 'Ward'", + "schema_with_content": "addresses : address_id (4, 5, 5), other_address_details (None), line_2 (\"Apt. 388\", \"Apt. 583\", \"Suite 383\"), line_3 (None), country (\"Lesotho\", \"New Caledonia\", \"Gabon\"), state_province_county (\"Idaho\", \"Florida\", \"WestVirginia\"), city (\"Lake Laishafurt\", \"Port Evanston\", \"Prohaskafort\"), zip_postcode (\"895\", \"148\", \"777\"), line_1 (\"858 Peggie Bypass Suite 212\", \"2294 Grant Square Apt. 235\", \"9283 Schulist Falls Apt. 037\") | student_enrolment : student_enrolment_id (1, 4, 6), degree_program_id (11, 9, 4), semester_id (12, 1, 4), student_id (14, 4, 7), other_details (None) | departments : department_description (\"ea\", \"ea\", \"nostrum\"), department_name (\"math\", \"computer science\", \"art\"), other_details (None), department_id (8, 11, 3) | degree_programs : degree_summary_description (\"voluptas\", \"aut\", \"earum\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (10, 4, 14), department_id (14, 8, 8) | Learners : middle_name (\"Neal\", \"Aaliyah\", \"Brooklyn\"), last_name (\"Jaskolski\", \"Carroll\", \"Carroll\"), date_left (\"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\", \"1975-10-09 00:49:27\"), student_id (2, 9, 12), permanent_address_id (4, 3, 14), email_address (\"swift.kolby@example.com\", \"baumbach.lucious@example.org\", \"nya.lesch@example.net\"), other_student_details (\"nesciunt\", \"facilis\", \"dolorum\"), cell_mobile_number (\"03174364122\", \"1-879-796-8987x164\", \"(462)246-7921\"), current_address_id (2, 14, 2), ssn (\"965\", \"\", \"68095\"), first_name (\"Stanford\", \"Deon\", \"Deon\"), date_first_registered (\"1976-10-26 02:33:06\", \"1973-05-19 19:12:46\", \"2004-12-24 12:36:46\") | student_enrolment_courses : course_id (2, 2, 6), student_enrolment_id (5, 8, 13), student_course_id (1, 96, 8) | transcript_contents : student_course_id (96, 0, 28982908), transcript_id (4, 8, 2) | Pupils : middle_name (\"Neal\", \"Aaliyah\", \"Brooklyn\"), last_name (\"Jaskolski\", \"Carroll\", \"Carroll\"), date_left (\"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\", \"1975-10-09 00:49:27\"), student_id (2, 9, 12), permanent_address_id (4, 3, 14), email_address (\"swift.kolby@example.com\", \"baumbach.lucious@example.org\", \"nya.lesch@example.net\"), other_student_details (\"nesciunt\", \"facilis\", \"dolorum\"), cell_mobile_number (\"03174364122\", \"1-879-796-8987x164\", \"(462)246-7921\"), current_address_id (2, 14, 2), ssn (\"965\", \"\", \"68095\"), first_name (\"Stanford\", \"Deon\", \"Deon\"), date_first_registered (\"1976-10-26 02:33:06\", \"1973-05-19 19:12:46\", \"2004-12-24 12:36:46\") | transcripts : other_details (None), transcript_id (10, 2, 6), transcript_date (\"1986-07-12 07:27:29\", \"1986-07-12 07:27:29\", \"1985-04-29 01:20:20\") | semesters : semester_id (11, 6, 14), other_details (None), semester_description (\"o\", \"w\", \"m\"), semester_name (\"winter 2010\", \"summer 2010\", \"spring 2010\") | courses : course_description (\"b\", \"v\", \"d\"), course_name (\"dl\", \"dl\", \"os\"), course_id (9, 12, 1), other_details (None) | sections : section_description (\"non\", \"doloremque\", \"quis\"), section_id (9, 13, 3), course_id (12, 9, 6), section_name (\"b\", \"p\", \"k\"), other_details (None)", + "schema_without_content": "addresses : address_id , other_address_details , line_2 , line_3 , country , state_province_county , city , zip_postcode , line_1 | student_enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | departments : department_description , department_name , other_details , department_id | degree_programs : degree_summary_description , degree_summary_name , other_details , degree_program_id , department_id | Learners : middle_name , last_name , date_left , student_id , permanent_address_id , email_address , other_student_details , cell_mobile_number 246-7921\", current_address_id , ssn , first_name , date_first_registered | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | transcript_contents : student_course_id , transcript_id | Pupils : middle_name , last_name , date_left , student_id , permanent_address_id , email_address , other_student_details , cell_mobile_number 246-7921\", current_address_id , ssn , first_name , date_first_registered | transcripts : other_details , transcript_id , transcript_date | semesters : semester_id , other_details , semester_description , semester_name | courses : course_description , course_name , course_id , other_details | sections : section_description , section_id , course_id , section_name , other_details", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "phone number": "Students.cell_mobile_number", + "first name": "Students.first_name", + "last name": "Students.last_name" + } + }, + { + "question": "who is the first #student to register# ? list the #first name# , #middle name# and #last name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name, middle_name, last_name from students order by date_first_registered asc limit 1", + "schema_with_content": "departments : department_description (\"dolorem\", \"nostrum\", \"nihil\"), other_details (None), department_name (\"law\", \"law\", \"engineer\"), department_id (10, 2, 4) | Pupils : cell_mobile_number (\"1-009-710-5151\", \"677.401.9382\", \"07661787471\"), last_name (\"Huel\", \"Osinski\", \"Gleichner\"), first_name (\"Milton\", \"Warren\", \"Hobart\"), ssn (\"304246\", \"156\", \"3\"), date_left (\"1999-08-24 00:07:10\", \"2007-11-28 12:50:21\", \"2004-12-08 05:29:11\"), email_address (\"qo'kon@example.com\", \"nbruen@example.org\", \"lhartmann@example.org\"), middle_name (\"Mossie\", \"Alberta\", \"Mossie\"), current_address_id (15, 15, 1), other_student_details (\"qui\", \"rerum\", \"facilis\"), date_first_registered (\"2009-09-25 00:14:25\", \"1982-06-19 13:15:18\", \"2005-12-15 08:42:10\"), student_id (14, 7, 8), permanent_address_id (9, 3, 3) | student_enrolment : student_enrolment_id (4, 12, 12), semester_id (13, 12, 9), other_details (None), degree_program_id (11, 8, 5), student_id (1, 12, 7) | addresses : state_province_county (\"Idaho\", \"Kentucky\", \"Delaware\"), city (\"New Clemensburgh\", \"Prohaskafort\", \"Goodwinhaven\"), line_2 (\"Suite 383\", \"Apt. 335\", \"Suite 865\"), other_address_details (None), address_id (2, 7, 4), line_3 (None), zip_postcode (\"669\", \"902\", \"847\"), country (\"Burundi\", \"Angola\", \"Haiti\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"979 Haag Shores Suite 656\", \"492 Wilkinson Route\") | transcript_contents : transcript_id (12, 2, 5), student_course_id (7, 70882679, 45105806) | student_enrolment_courses : student_course_id (96, 7, 9860), student_enrolment_id (6, 6, 4), course_id (12, 14, 10) | sections : section_description (\"reprehenderit\", \"non\", \"non\"), course_id (10, 2, 6), section_name (\"o\", \"l\", \"d\"), other_details (None), section_id (3, 13, 9) | transcripts : transcript_id (2, 10, 12), other_details (None), transcript_date (\"1975-10-28 15:16:51\", \"2002-09-24 06:11:49\", \"1998-11-22 12:18:29\") | courses : other_details (None), course_id (14, 7, 10), course_description (\"n\", \"k\", \"w\"), course_name (\"dl\", \"la\", \"ml\") | Learners : cell_mobile_number (\"1-009-710-5151\", \"677.401.9382\", \"07661787471\"), last_name (\"Huel\", \"Osinski\", \"Gleichner\"), first_name (\"Milton\", \"Warren\", \"Hobart\"), ssn (\"304246\", \"156\", \"3\"), date_left (\"1999-08-24 00:07:10\", \"2007-11-28 12:50:21\", \"2004-12-08 05:29:11\"), email_address (\"qo'kon@example.com\", \"nbruen@example.org\", \"lhartmann@example.org\"), middle_name (\"Mossie\", \"Alberta\", \"Mossie\"), current_address_id (15, 15, 1), other_student_details (\"qui\", \"rerum\", \"facilis\"), date_first_registered (\"2009-09-25 00:14:25\", \"1982-06-19 13:15:18\", \"2005-12-15 08:42:10\"), student_id (14, 7, 8), permanent_address_id (9, 3, 3) | semesters : semester_id (10, 11, 11), semester_description (\"t\", \"g\", \"y\"), semester_name (\"spring 2013\", \"winter 2018\", \"spring 2018\"), other_details (None) | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"earum\", \"officiis\", \"esse\"), other_details (None), department_id (12, 3, 8), degree_program_id (11, 3, 1)", + "schema_without_content": "departments : department_description , other_details , department_name , department_id | Pupils : cell_mobile_number , last_name , first_name , ssn , date_left , email_address , middle_name , current_address_id , other_student_details , date_first_registered , student_id , permanent_address_id | student_enrolment : student_enrolment_id , semester_id , other_details , degree_program_id , student_id | addresses : state_province_county , city , line_2 , other_address_details , address_id , line_3 , zip_postcode , country , line_1 | transcript_contents : transcript_id , student_course_id | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | sections : section_description , course_id , section_name , other_details , section_id | transcripts : transcript_id , other_details , transcript_date | courses : other_details , course_id , course_description , course_name | Learners : cell_mobile_number , last_name , first_name , ssn , date_left , email_address , middle_name , current_address_id , other_student_details , date_first_registered , student_id , permanent_address_id | semesters : semester_id , semester_description , semester_name , other_details | degree_programs : degree_summary_name , degree_summary_description , other_details , department_id , degree_program_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "student to register": "Students.date_first_registered", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "what is the first, middle, and la #st name of the first student to register?# ", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name, middle_name, last_name from students order by date_first_registered asc limit 1", + "schema_with_content": "sections : course_id (5, 4, 2), section_name (\"p\", \"c\", \"k\"), section_id (2, 4, 15), other_details (None), section_description (\"facilis\", \"quis\", \"non\") | addresses : line_2 (\"Apt. 406\", \"Apt. 406\", \"Apt. 388\"), zip_postcode (\"638\", \"386\", \"638\"), other_address_details (None), line_3 (None), country (\"Cook Islands\", \"Samoa\", \"Croatia\"), state_province_county (\"Wyoming\", \"WestVirginia\", \"Kentucky\"), city (\"Mariliehaven\", \"South Palma\", \"Michelleburgh\"), address_id (1, 7, 5), line_1 (\"74046 Metz Walk Apt. 113\", \"9283 Schulist Falls Apt. 037\", \"0144 Lamar Plaza Apt. 346\") | courses : other_details (None), course_name (\"cal\", \"rs\", \"pl\"), course_id (15, 11, 7), course_description (\"v\", \"c\", \"v\") | student_enrolment : semester_id (2, 12, 15), other_details (None), student_enrolment_id (13, 9, 3), student_id (5, 6, 14), degree_program_id (2, 8, 12) | Pupils : current_address_id (7, 2, 6), date_left (\"2014-05-30 23:32:02\", \"2013-10-05 17:41:28\", \"2017-07-09 21:38:43\"), other_student_details (\"autem\", \"omnis\", \"qui\"), ssn (\"494\", \"68095\", \"68095\"), first_name (\"Jett\", \"Hobart\", \"Jett\"), last_name (\"Weimann\", \"Kemmer\", \"Schuppe\"), permanent_address_id (4, 11, 9), middle_name (\"Lorenz\", \"Neal\", \"Alberta\"), email_address (\"qo'kon@example.com\", \"jhuel@example.com\", \"johns.unique@example.net\"), date_first_registered (\"1971-02-05 07:28:23\", \"1973-05-19 19:12:46\", \"2005-12-15 08:42:10\"), cell_mobile_number (\"1-879-796-8987x164\", \"171-642-5684\", \"09700166582\"), student_id (10, 3, 6) | transcripts : other_details (None), transcript_id (2, 10, 1), transcript_date (\"1998-11-22 12:18:29\", \"1975-10-28 15:16:51\", \"1984-12-19 00:37:21\") | degree_programs : degree_program_id (11, 5, 13), department_id (2, 7, 4), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"esse\", \"placeat\", \"et\"), other_details (None) | semesters : other_details (None), semester_description (\"w\", \"g\", \"t\"), semester_id (14, 10, 2), semester_name (\"fall 2018\", \"spring 2014\", \"spring 2013\") | student_enrolment_courses : course_id (11, 11, 6), student_course_id (7, 438800, 96), student_enrolment_id (4, 10, 2) | Learners : current_address_id (7, 2, 6), date_left (\"2014-05-30 23:32:02\", \"2013-10-05 17:41:28\", \"2017-07-09 21:38:43\"), other_student_details (\"autem\", \"omnis\", \"qui\"), ssn (\"494\", \"68095\", \"68095\"), first_name (\"Jett\", \"Hobart\", \"Jett\"), last_name (\"Weimann\", \"Kemmer\", \"Schuppe\"), permanent_address_id (4, 11, 9), middle_name (\"Lorenz\", \"Neal\", \"Alberta\"), email_address (\"qo'kon@example.com\", \"jhuel@example.com\", \"johns.unique@example.net\"), date_first_registered (\"1971-02-05 07:28:23\", \"1973-05-19 19:12:46\", \"2005-12-15 08:42:10\"), cell_mobile_number (\"1-879-796-8987x164\", \"171-642-5684\", \"09700166582\"), student_id (10, 3, 6) | departments : department_id (9, 10, 15), department_description (\"doloribus\", \"nostrum\", \"aliquam\"), department_name (\"law\", \"linguistic\", \"dance\"), other_details (None) | transcript_contents : student_course_id (45105806, 76, 28982908), transcript_id (13, 12, 9)", + "schema_without_content": "sections : course_id , section_name , section_id , other_details , section_description | addresses : line_2 , zip_postcode , other_address_details , line_3 , country , state_province_county , city , address_id , line_1 | courses : other_details , course_name , course_id , course_description | student_enrolment : semester_id , other_details , student_enrolment_id , student_id , degree_program_id | Pupils : current_address_id , date_left , other_student_details , ssn , first_name , last_name , permanent_address_id , middle_name , email_address , date_first_registered , cell_mobile_number , student_id | transcripts : other_details , transcript_id , transcript_date | degree_programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | semesters : other_details , semester_description , semester_id , semester_name | student_enrolment_courses : course_id , student_course_id , student_enrolment_id | Learners : current_address_id , date_left , other_student_details , ssn , first_name , last_name , permanent_address_id , middle_name , email_address , date_first_registered , cell_mobile_number , student_id | departments : department_id , department_description , department_name , other_details | transcript_contents : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "st name of the first student to register?": "Students", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "who is the earliest #graduate# of the school? list the #first name# , #middle name# and #last name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name, middle_name, last_name from students order by date_left asc limit 1", + "schema_with_content": "Learners : ssn (\"6274274\", \"34458427\", \"965\"), permanent_address_id (15, 8, 5), last_name (\"Mohr\", \"Ward\", \"Christiansen\"), student_id (13, 3, 5), first_name (\"Reva\", \"Gregg\", \"Timmothy\"), cell_mobile_number (\"877.549.9067x8723\", \"07661787471\", \"171-642-5684\"), date_left (\"1997-11-16 08:54:33\", \"2007-03-31 09:53:19\", \"2007-08-02 04:12:58\"), current_address_id (1, 9, 9), date_first_registered (\"2005-12-15 08:42:10\", \"2007-08-29 23:25:41\", \"1982-06-19 13:15:18\"), email_address (\"nya.lesch@example.net\", \"johns.unique@example.net\", \"qo'kon@example.com\"), middle_name (\"Aisha\", \"Brooklyn\", \"Mona\"), other_student_details (\"laborum\", \"et\", \"autem\") | student_enrolment_courses : course_id (3, 12, 3), student_enrolment_id (8, 9, 8), student_course_id (1, 9860, 70882679) | addresses : line_1 (\"74046 Metz Walk Apt. 113\", \"0643 Muller Vista\", \"16998 Mraz Lodge\"), address_id (10, 1, 5), line_2 (\"Apt. 388\", \"Suite 703\", \"Apt. 689\"), state_province_county (\"Arkansas\", \"Delaware\", \"Kansas\"), zip_postcode (\"777\", \"446\", \"638\"), country (\"Iceland\", \"Kyrgyz Republic\", \"Saudi Arabia\"), line_3 (None), other_address_details (None), city (\"Michelleburgh\", \"North Omer\", \"New Clemensburgh\") | student_enrolment : semester_id (13, 9, 9), degree_program_id (3, 4, 3), student_enrolment_id (7, 10, 8), student_id (5, 5, 1), other_details (None) | sections : course_id (5, 1, 9), other_details (None), section_id (10, 12, 8), section_description (\"quis\", \"ex\", \"et\"), section_name (\"f\", \"e\", \"h\") | Pupils : ssn (\"6274274\", \"34458427\", \"965\"), permanent_address_id (15, 8, 5), last_name (\"Mohr\", \"Ward\", \"Christiansen\"), student_id (13, 3, 5), first_name (\"Reva\", \"Gregg\", \"Timmothy\"), cell_mobile_number (\"877.549.9067x8723\", \"07661787471\", \"171-642-5684\"), date_left (\"1997-11-16 08:54:33\", \"2007-03-31 09:53:19\", \"2007-08-02 04:12:58\"), current_address_id (1, 9, 9), date_first_registered (\"2005-12-15 08:42:10\", \"2007-08-29 23:25:41\", \"1982-06-19 13:15:18\"), email_address (\"nya.lesch@example.net\", \"johns.unique@example.net\", \"qo'kon@example.com\"), middle_name (\"Aisha\", \"Brooklyn\", \"Mona\"), other_student_details (\"laborum\", \"et\", \"autem\") | transcripts : transcript_id (11, 12, 14), transcript_date (\"1990-03-05 11:59:41\", \"1988-04-30 01:19:47\", \"1999-01-06 20:06:46\"), other_details (None) | transcript_contents : transcript_id (12, 4, 11), student_course_id (0, 45105806, 70882679) | semesters : semester_id (9, 10, 12), semester_description (\"x\", \"w\", \"q\"), other_details (None), semester_name (\"spring 2017\", \"summer 2010\", \"spring 2018\") | degree_programs : degree_summary_description (\"qui\", \"assumenda\", \"placeat\"), degree_program_id (10, 8, 1), department_id (2, 11, 13), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None) | courses : course_description (\"q\", \"l\", \"d\"), course_name (\"math\", \"en\", \"rs\"), other_details (None), course_id (7, 10, 9) | departments : department_name (\"statistics\", \"drama\", \"law\"), department_id (3, 11, 12), other_details (None), department_description (\"nisi\", \"doloribus\", \"in\")", + "schema_without_content": "Learners : ssn , permanent_address_id , last_name , student_id , first_name , cell_mobile_number , date_left , current_address_id , date_first_registered , email_address , middle_name , other_student_details | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | addresses : line_1 , address_id , line_2 , state_province_county , zip_postcode , country , line_3 , other_address_details , city | student_enrolment : semester_id , degree_program_id , student_enrolment_id , student_id , other_details | sections : course_id , other_details , section_id , section_description , section_name | Pupils : ssn , permanent_address_id , last_name , student_id , first_name , cell_mobile_number , date_left , current_address_id , date_first_registered , email_address , middle_name , other_student_details | transcripts : transcript_id , transcript_date , other_details | transcript_contents : transcript_id , student_course_id | semesters : semester_id , semester_description , other_details , semester_name | degree_programs : degree_summary_description , degree_program_id , department_id , degree_summary_name , other_details | courses : course_description , course_name , other_details , course_id | departments : department_name , department_id , other_details , department_description", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "graduate": "Students.date_left", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "what is the first, middle, and la #st name of the earliest school graduate?# ", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name, middle_name, last_name from students order by date_left asc limit 1", + "schema_with_content": "transcript_contents : student_course_id (70882679, 7, 7), transcript_id (12, 6, 5) | student_enrolment : degree_program_id (12, 5, 3), semester_id (2, 4, 15), other_details (None), student_enrolment_id (13, 14, 4), student_id (7, 7, 9) | addresses : line_3 (None), city (\"Port Evanston\", \"Prohaskafort\", \"Michelleburgh\"), country (\"Haiti\", \"Iceland\", \"Croatia\"), zip_postcode (\"400\", \"590\", \"541\"), line_1 (\"3999 Aufderhar Ways Suite 593\", \"186 Evan Motorway Apt. 409\", \"0643 Muller Vista\"), other_address_details (None), line_2 (\"Apt. 388\", \"Apt. 583\", \"Suite 239\"), state_province_county (\"Florida\", \"SouthDakota\", \"Florida\"), address_id (3, 11, 3) | departments : department_name (\"math\", \"drama\", \"linguistic\"), department_id (8, 6, 15), department_description (\"nostrum\", \"natus\", \"aliquam\"), other_details (None) | transcripts : other_details (None), transcript_date (\"1984-01-18 23:07:07\", \"1990-03-05 11:59:41\", \"1975-10-28 15:16:51\"), transcript_id (15, 13, 8) | courses : other_details (None), course_name (\"os\", \"oop\", \"oop\"), course_id (7, 5, 11), course_description (\"w\", \"p\", \"b\") | sections : other_details (None), section_id (7, 5, 8), section_description (\"quis\", \"et\", \"ad\"), section_name (\"f\", \"p\", \"h\"), course_id (6, 8, 5) | student_enrolment_courses : student_enrolment_id (9, 2, 5), student_course_id (70882679, 8, 2), course_id (6, 13, 11) | Pupils : student_id (12, 5, 5), cell_mobile_number (\"(096)889-8954x524\", \"(213)445-0399x85208\", \"171-642-5684\"), email_address (\"mya88@example.org\", \"mya88@example.org\", \"gracie29@example.com\"), date_left (\"1990-09-01 05:03:27\", \"1975-10-09 00:49:27\", \"2007-08-02 04:12:58\"), ssn (\"\", \"141072406\", \"34458427\"), last_name (\"Gleichner\", \"Mohr\", \"Christiansen\"), date_first_registered (\"1976-10-26 02:33:06\", \"1971-02-05 07:28:23\", \"2018-03-13 09:56:22\"), middle_name (\"Cleve\", \"Cleve\", \"Vaughn\"), other_student_details (\"facilis\", \"rerum\", \"voluptatem\"), permanent_address_id (11, 11, 14), first_name (\"Warren\", \"Reva\", \"Jordy\"), current_address_id (12, 1, 2) | Learners : student_id (12, 5, 5), cell_mobile_number (\"(096)889-8954x524\", \"(213)445-0399x85208\", \"171-642-5684\"), email_address (\"mya88@example.org\", \"mya88@example.org\", \"gracie29@example.com\"), date_left (\"1990-09-01 05:03:27\", \"1975-10-09 00:49:27\", \"2007-08-02 04:12:58\"), ssn (\"\", \"141072406\", \"34458427\"), last_name (\"Gleichner\", \"Mohr\", \"Christiansen\"), date_first_registered (\"1976-10-26 02:33:06\", \"1971-02-05 07:28:23\", \"2018-03-13 09:56:22\"), middle_name (\"Cleve\", \"Cleve\", \"Vaughn\"), other_student_details (\"facilis\", \"rerum\", \"voluptatem\"), permanent_address_id (11, 11, 14), first_name (\"Warren\", \"Reva\", \"Jordy\"), current_address_id (12, 1, 2) | semesters : other_details (None), semester_id (9, 7, 7), semester_name (\"spring 2012\", \"fall 2018\", \"winter 2018\"), semester_description (\"c\", \"f\", \"t\") | degree_programs : degree_program_id (9, 4, 13), other_details (None), department_id (13, 4, 2), degree_summary_description (\"architecto\", \"aut\", \"assumenda\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\")", + "schema_without_content": "transcript_contents : student_course_id , transcript_id | student_enrolment : degree_program_id , semester_id , other_details , student_enrolment_id , student_id | addresses : line_3 , city , country , zip_postcode , line_1 , other_address_details , line_2 , state_province_county , address_id | departments : department_name , department_id , department_description , other_details | transcripts : other_details , transcript_date , transcript_id | courses : other_details , course_name , course_id , course_description | sections : other_details , section_id , section_description , section_name , course_id | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | Pupils : student_id , cell_mobile_number 889-8954x524\", \"445-0399x85208\", \"171-642-5684\", email_address , date_left , ssn , last_name , date_first_registered , middle_name , other_student_details , permanent_address_id , first_name , current_address_id | Learners : student_id , cell_mobile_number 889-8954x524\", \"445-0399x85208\", \"171-642-5684\", email_address , date_left , ssn , last_name , date_first_registered , middle_name , other_student_details , permanent_address_id , first_name , current_address_id | semesters : other_details , semester_id , semester_name , semester_description | degree_programs : degree_program_id , other_details , department_id , degree_summary_description , degree_summary_name", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "st name of the earliest school graduate?": "Students", + "first name": "Students.first_name", + "middle name": "Students.middle_name", + "last name": "Students.last_name" + } + }, + { + "question": "whose #permanent address# is different from his or her #current address# ? list his or her #first name# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name from students where current_address_id != permanent_address_id", + "schema_with_content": "Learners : student_id (4, 8, 14), ssn (\"68095\", \"494\", \"68095\"), last_name (\"Gleichner\", \"Mohr\", \"Balistreri\"), middle_name (\"Neal\", \"Violet\", \"Vaughn\"), cell_mobile_number (\"(982)153-1469x1733\", \"03174364122\", \"677.401.9382\"), first_name (\"Jordy\", \"Hobart\", \"Stanford\"), email_address (\"jillian26@example.net\", \"erwin.zboncak@example.com\", \"dell43@example.net\"), other_student_details (\"voluptatem\", \"voluptatem\", \"laborum\"), current_address_id (12, 9, 2), date_first_registered (\"2014-03-28 05:48:23\", \"1997-03-20 16:47:25\", \"1982-06-19 13:15:18\"), permanent_address_id (3, 5, 11), date_left (\"2004-12-08 05:29:11\", \"2006-08-04 17:26:49\", \"1975-10-09 00:49:27\") | student_enrolment : student_enrolment_id (2, 13, 8), other_details (None), semester_id (13, 4, 9), degree_program_id (5, 12, 8), student_id (12, 1, 5) | courses : course_description (\"n\", \"l\", \"q\"), course_id (15, 6, 3), course_name (\"ai\", \"ds\", \"nlp\"), other_details (None) | semesters : other_details (None), semester_name (\"summer 2010\", \"spring 2019\", \"winter 2018\"), semester_description (\"g\", \"q\", \"x\"), semester_id (15, 14, 14) | degree_programs : department_id (11, 15, 2), degree_summary_description (\"et\", \"earum\", \"aut\"), other_details (None), degree_program_id (15, 1, 3), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | Pupils : student_id (4, 8, 14), ssn (\"68095\", \"494\", \"68095\"), last_name (\"Gleichner\", \"Mohr\", \"Balistreri\"), middle_name (\"Neal\", \"Violet\", \"Vaughn\"), cell_mobile_number (\"(982)153-1469x1733\", \"03174364122\", \"677.401.9382\"), first_name (\"Jordy\", \"Hobart\", \"Stanford\"), email_address (\"jillian26@example.net\", \"erwin.zboncak@example.com\", \"dell43@example.net\"), other_student_details (\"voluptatem\", \"voluptatem\", \"laborum\"), current_address_id (12, 9, 2), date_first_registered (\"2014-03-28 05:48:23\", \"1997-03-20 16:47:25\", \"1982-06-19 13:15:18\"), permanent_address_id (3, 5, 11), date_left (\"2004-12-08 05:29:11\", \"2006-08-04 17:26:49\", \"1975-10-09 00:49:27\") | addresses : zip_postcode (\"895\", \"638\", \"638\"), other_address_details (None), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"0643 Muller Vista\", \"3999 Aufderhar Ways Suite 593\"), line_2 (\"Suite 674\", \"Suite 674\", \"Suite 383\"), state_province_county (\"Delaware\", \"Florida\", \"Washington\"), line_3 (None), city (\"Goodwinhaven\", \"Mariliehaven\", \"Herzoghaven\"), address_id (4, 8, 7), country (\"New Caledonia\", \"Gibraltar\", \"Burundi\") | student_enrolment_courses : student_course_id (76, 2, 7), course_id (12, 11, 11), student_enrolment_id (5, 9, 13) | transcript_contents : transcript_id (13, 9, 5), student_course_id (70882679, 2, 0) | departments : department_name (\"medical\", \"computer science\", \"history\"), other_details (None), department_id (4, 14, 1), department_description (\"aliquam\", \"non\", \"dolorem\") | sections : section_id (15, 15, 4), section_description (\"facilis\", \"reprehenderit\", \"non\"), other_details (None), section_name (\"j\", \"h\", \"d\"), course_id (2, 7, 9) | transcripts : transcript_date (\"1985-08-21 09:32:39\", \"1988-04-30 01:19:47\", \"1990-03-05 11:59:41\"), other_details (None), transcript_id (6, 15, 2)", + "schema_without_content": "Learners : student_id , ssn , last_name , middle_name , cell_mobile_number 153-1469x1733\", \"03174364122\", \"677.401.9382\", first_name , email_address , other_student_details , current_address_id , date_first_registered , permanent_address_id , date_left | student_enrolment : student_enrolment_id , other_details , semester_id , degree_program_id , student_id | courses : course_description , course_id , course_name , other_details | semesters : other_details , semester_name , semester_description , semester_id | degree_programs : department_id , degree_summary_description , other_details , degree_program_id , degree_summary_name | Pupils : student_id , ssn , last_name , middle_name , cell_mobile_number 153-1469x1733\", \"03174364122\", \"677.401.9382\", first_name , email_address , other_student_details , current_address_id , date_first_registered , permanent_address_id , date_left | addresses : zip_postcode , other_address_details , line_1 , line_2 , state_province_county , line_3 , city , address_id , country | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcript_contents : transcript_id , student_course_id | departments : department_name , other_details , department_id , department_description | sections : section_id , section_description , other_details , section_name , course_id | transcripts : transcript_date , other_details , transcript_id", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "permanent address": "Students.permanent_address_id", + "current address": "Students.current_address_id", + "first name": "Students.first_name" + } + }, + { + "question": "what is the #first name of the student# whose #permanent address# is different from his or her current one?", + "db_id": "student_transcripts_tracking", + "orig_query": "select first_name from students where current_address_id != permanent_address_id", + "schema_with_content": "transcripts : transcript_date (\"1985-08-21 09:32:39\", \"1985-04-29 01:20:20\", \"1984-12-19 00:37:21\"), transcript_id (4, 7, 15), other_details (None) | student_enrolment : student_enrolment_id (6, 3, 12), other_details (None), semester_id (2, 2, 13), student_id (6, 7, 9), degree_program_id (12, 9, 5) | addresses : zip_postcode (\"777\", \"943\", \"400\"), line_1 (\"858 Peggie Bypass Suite 212\", \"2294 Grant Square Apt. 235\", \"0144 Lamar Plaza Apt. 346\"), country (\"Cook Islands\", \"Saudi Arabia\", \"Lesotho\"), state_province_county (\"Kentucky\", \"Hawaii\", \"Florida\"), other_address_details (None), address_id (12, 14, 7), line_2 (\"Suite 703\", \"Apt. 370\", \"Suite 674\"), city (\"New Clemensburgh\", \"Herzoghaven\", \"Lake Careyberg\"), line_3 (None) | Pupils : other_student_details (\"qui\", \"qui\", \"facilis\"), middle_name (\"Lorenz\", \"Brooklyn\", \"Judd\"), email_address (\"gracie29@example.com\", \"lhartmann@example.org\", \"jhuel@example.com\"), first_name (\"Stanford\", \"Hobart\", \"Delaney\"), date_first_registered (\"2007-08-29 23:25:41\", \"2009-09-25 00:14:25\", \"1997-03-20 16:47:25\"), last_name (\"Balistreri\", \"Rogahn\", \"Jaskolski\"), current_address_id (10, 1, 9), student_id (10, 15, 7), date_left (\"2013-10-05 17:41:28\", \"1990-09-01 05:03:27\", \"2004-12-08 05:29:11\"), permanent_address_id (11, 11, 9), cell_mobile_number (\"677.401.9382\", \"677.401.9382\", \"(605)919-3594x3661\"), ssn (\"34458427\", \"34458427\", \"494\") | semesters : semester_id (13, 8, 6), other_details (None), semester_name (\"spring 2016\", \"spring 2019\", \"winter 2010\"), semester_description (\"o\", \"x\", \"f\") | degree_programs : other_details (None), department_id (12, 8, 13), degree_summary_description (\"voluptas\", \"et\", \"placeat\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (6, 3, 2) | Learners : other_student_details (\"qui\", \"qui\", \"facilis\"), middle_name (\"Lorenz\", \"Brooklyn\", \"Judd\"), email_address (\"gracie29@example.com\", \"lhartmann@example.org\", \"jhuel@example.com\"), first_name (\"Stanford\", \"Hobart\", \"Delaney\"), date_first_registered (\"2007-08-29 23:25:41\", \"2009-09-25 00:14:25\", \"1997-03-20 16:47:25\"), last_name (\"Balistreri\", \"Rogahn\", \"Jaskolski\"), current_address_id (10, 1, 9), student_id (10, 15, 7), date_left (\"2013-10-05 17:41:28\", \"1990-09-01 05:03:27\", \"2004-12-08 05:29:11\"), permanent_address_id (11, 11, 9), cell_mobile_number (\"677.401.9382\", \"677.401.9382\", \"(605)919-3594x3661\"), ssn (\"34458427\", \"34458427\", \"494\") | departments : department_description (\"nisi\", \"natus\", \"error\"), other_details (None), department_id (5, 1, 11), department_name (\"engineer\", \"drama\", \"law\") | transcript_contents : transcript_id (15, 15, 13), student_course_id (28982908, 28982908, 45105806) | sections : other_details (None), section_id (12, 7, 11), section_name (\"e\", \"p\", \"d\"), course_id (2, 9, 8), section_description (\"non\", \"et\", \"ad\") | student_enrolment_courses : student_course_id (8, 438800, 1), student_enrolment_id (14, 8, 2), course_id (10, 4, 12) | courses : course_id (11, 15, 2), other_details (None), course_name (\"pl\", \"la\", \"oop\"), course_description (\"c\", \"k\", \"w\")", + "schema_without_content": "transcripts : transcript_date , transcript_id , other_details | student_enrolment : student_enrolment_id , other_details , semester_id , student_id , degree_program_id | addresses : zip_postcode , line_1 , country , state_province_county , other_address_details , address_id , line_2 , city , line_3 | Pupils : other_student_details , middle_name , email_address , first_name , date_first_registered , last_name , current_address_id , student_id , date_left , permanent_address_id , cell_mobile_number 919-3594x3661\", ssn | semesters : semester_id , other_details , semester_name , semester_description | degree_programs : other_details , department_id , degree_summary_description , degree_summary_name , degree_program_id | Learners : other_student_details , middle_name , email_address , first_name , date_first_registered , last_name , current_address_id , student_id , date_left , permanent_address_id , cell_mobile_number 919-3594x3661\", ssn | departments : department_description , other_details , department_id , department_name | transcript_contents : transcript_id , student_course_id | sections : other_details , section_id , section_name , course_id , section_description | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | courses : course_id , other_details , course_name , course_description", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name of the student": "Students.first_name", + "permanent address": "Students.permanent_address_id", + "current address": "Students.current_address_id" + } + }, + { + "question": "which address holds the most number of #students currently# ? list the #address id# and all #lines# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.address_id, t1.line_1, t1.line_2 from addresses as t1 join students as t2 on t1.address_id = t2.current_address_id group by t1.address_id order by count(*) desc limit 1", + "schema_with_content": "student_enrolment_courses : course_id (6, 8, 13), student_course_id (9860, 76, 45105806), student_enrolment_id (9, 13, 4) | Residences : address_id (6, 14, 13), line_2 (\"Suite 703\", \"Apt. 406\", \"Apt. 305\"), zip_postcode (\"669\", \"839\", \"943\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"16998 Mraz Lodge\", \"0144 Lamar Plaza Apt. 346\"), line_3 (None), country (\"Norfolk Island\", \"Cook Islands\", \"Gibraltar\"), other_address_details (None), state_province_county (\"Kentucky\", \"Kentucky\", \"Washington\"), city (\"Mariliehaven\", \"New Clemensburgh\", \"Lake Careyberg\") | degree_programs : department_id (4, 3, 11), degree_summary_description (\"esse\", \"aperiam\", \"qui\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (3, 15, 7) | courses : course_description (\"c\", \"b\", \"k\"), course_name (\"oop\", \"pl\", \"dl\"), course_id (8, 13, 5), other_details (None) | transcript_contents : student_course_id (45105806, 28982908, 7), transcript_id (13, 6, 8) | departments : other_details (None), department_description (\"nostrum\", \"ea\", \"nostrum\"), department_id (5, 8, 8), department_name (\"geography\", \"drama\", \"drama\") | students : date_first_registered (\"2009-09-25 00:14:25\", \"2009-09-25 00:14:25\", \"1976-10-26 02:33:06\"), first_name (\"Hobart\", \"Reva\", \"Warren\"), middle_name (\"Mossie\", \"Vaughn\", \"Anna\"), other_student_details (\"atque\", \"voluptatem\", \"atque\"), permanent_address_id (4, 15, 5), cell_mobile_number (\"877.549.9067x8723\", \"(507)365-8405\", \"(213)445-0399x85208\"), current_address_id (15, 12, 15), student_id (14, 13, 2), last_name (\"Balistreri\", \"Osinski\", \"Balistreri\"), ssn (\"6274274\", \"68095\", \"668\"), date_left (\"1997-11-16 08:54:33\", \"1997-11-16 08:54:33\", \"2016-04-09 12:27:04\"), email_address (\"nya.lesch@example.net\", \"baumbach.lucious@example.org\", \"mya88@example.org\") | sections : section_id (14, 8, 6), course_id (6, 10, 14), section_description (\"voluptas\", \"ex\", \"facilis\"), other_details (None), section_name (\"f\", \"h\", \"d\") | transcripts : transcript_date (\"1975-10-28 15:16:51\", \"1985-04-29 01:20:20\", \"1986-07-12 07:27:29\"), other_details (None), transcript_id (1, 7, 12) | semesters : semester_id (9, 14, 12), semester_description (\"f\", \"f\", \"m\"), semester_name (\"winter 2018\", \"spring 2014\", \"spring 2015\"), other_details (None) | Locations : address_id (6, 14, 13), line_2 (\"Suite 703\", \"Apt. 406\", \"Apt. 305\"), zip_postcode (\"669\", \"839\", \"943\"), line_1 (\"67942 Carlotta Ferry Apt. 686\", \"16998 Mraz Lodge\", \"0144 Lamar Plaza Apt. 346\"), line_3 (None), country (\"Norfolk Island\", \"Cook Islands\", \"Gibraltar\"), other_address_details (None), state_province_county (\"Kentucky\", \"Kentucky\", \"Washington\"), city (\"Mariliehaven\", \"New Clemensburgh\", \"Lake Careyberg\") | student_enrolment : other_details (None), student_id (6, 1, 5), semester_id (15, 9, 12), degree_program_id (5, 5, 3), student_enrolment_id (13, 5, 4)", + "schema_without_content": "student_enrolment_courses : course_id , student_course_id , student_enrolment_id | Residences : address_id , line_2 , zip_postcode , line_1 , line_3 , country , other_address_details , state_province_county , city | degree_programs : department_id , degree_summary_description , degree_summary_name , other_details , degree_program_id | courses : course_description , course_name , course_id , other_details | transcript_contents : student_course_id , transcript_id | departments : other_details , department_description , department_id , department_name | students : date_first_registered , first_name , middle_name , other_student_details , permanent_address_id , cell_mobile_number 365-8405\", \"445-0399x85208\", current_address_id , student_id , last_name , ssn , date_left , email_address | sections : section_id , course_id , section_description , other_details , section_name | transcripts : transcript_date , other_details , transcript_id | semesters : semester_id , semester_description , semester_name , other_details | Locations : address_id , line_2 , zip_postcode , line_1 , line_3 , country , other_address_details , state_province_county , city | student_enrolment : other_details , student_id , semester_id , degree_program_id , student_enrolment_id", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "students currently": "Students.current_address_id", + "address id": "Addresses.address_id", + "lines": [ + "Addresses.line_1", + "Addresses.line_2" + ] + } + }, + { + "question": "which address holds the most number of #students currently# ? list the #address id# and all #lines# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.address_id, t1.line_1, t1.line_2 from addresses as t1 join students as t2 on t1.address_id = t2.current_address_id group by t1.address_id order by count(*) desc limit 1", + "schema_with_content": "degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_summary_description (\"aperiam\", \"et\", \"aut\"), degree_program_id (11, 7, 6), other_details (None), department_id (13, 3, 11) | transcripts : other_details (None), transcript_id (13, 14, 2), transcript_date (\"1999-01-06 20:06:46\", \"1984-01-18 23:07:07\", \"1975-10-28 15:16:51\") | student_enrolment_courses : student_enrolment_id (9, 9, 6), course_id (6, 6, 6), student_course_id (681404, 70882679, 681404) | transcript_contents : student_course_id (2, 96, 7), transcript_id (4, 13, 2) | sections : other_details (None), section_id (9, 8, 13), section_name (\"d\", \"j\", \"u\"), section_description (\"quis\", \"facilis\", \"non\"), course_id (10, 1, 4) | semesters : other_details (None), semester_description (\"m\", \"q\", \"x\"), semester_name (\"winter 2010\", \"spring 2013\", \"spring 2014\"), semester_id (9, 10, 15) | courses : other_details (None), course_description (\"k\", \"l\", \"d\"), course_name (\"en\", \"dl\", \"oop\"), course_id (7, 1, 11) | departments : other_details (None), department_name (\"law\", \"economics\", \"history\"), department_id (10, 2, 11), department_description (\"ea\", \"ea\", \"nisi\") | addresses : other_address_details (None), line_2 (\"Apt. 583\", \"Apt. 406\", \"Suite 830\"), line_3 (None), state_province_county (\"Arkansas\", \"Hawaii\", \"Idaho\"), line_1 (\"202 Hessel Views Apt. 468\", \"2294 Grant Square Apt. 235\", \"7081 Eda Center\"), country (\"Haiti\", \"Kyrgyz Republic\", \"New Caledonia\"), city (\"North Omer\", \"New Clemensburgh\", \"Lake Laishafurt\"), address_id (10, 7, 1), zip_postcode (\"638\", \"541\", \"777\") | student_enrolment : semester_id (6, 6, 9), student_id (6, 1, 12), degree_program_id (9, 3, 12), other_details (None), student_enrolment_id (15, 10, 10) | Pupils : student_id (5, 3, 10), current_address_id (10, 12, 14), permanent_address_id (9, 15, 14), last_name (\"Ward\", \"Carroll\", \"Schuppe\"), other_student_details (\"nesciunt\", \"rerum\", \"facilis\"), date_first_registered (\"1973-05-19 19:12:46\", \"2004-12-24 12:36:46\", \"1982-06-19 13:15:18\"), date_left (\"1982-06-11 00:25:39\", \"2014-05-30 23:32:02\", \"2007-08-02 04:12:58\"), email_address (\"mya88@example.org\", \"baumbach.lucious@example.org\", \"erwin.zboncak@example.com\"), first_name (\"Reva\", \"Deon\", \"Jordy\"), middle_name (\"Alberta\", \"Brooklyn\", \"Judd\"), ssn (\"156\", \"\", \"141072406\"), cell_mobile_number (\"436.613.7683\", \"(605)919-3594x3661\", \"07661787471\") | Learners : student_id (5, 3, 10), current_address_id (10, 12, 14), permanent_address_id (9, 15, 14), last_name (\"Ward\", \"Carroll\", \"Schuppe\"), other_student_details (\"nesciunt\", \"rerum\", \"facilis\"), date_first_registered (\"1973-05-19 19:12:46\", \"2004-12-24 12:36:46\", \"1982-06-19 13:15:18\"), date_left (\"1982-06-11 00:25:39\", \"2014-05-30 23:32:02\", \"2007-08-02 04:12:58\"), email_address (\"mya88@example.org\", \"baumbach.lucious@example.org\", \"erwin.zboncak@example.com\"), first_name (\"Reva\", \"Deon\", \"Jordy\"), middle_name (\"Alberta\", \"Brooklyn\", \"Judd\"), ssn (\"156\", \"\", \"141072406\"), cell_mobile_number (\"436.613.7683\", \"(605)919-3594x3661\", \"07661787471\")", + "schema_without_content": "degree_programs : degree_summary_name , degree_summary_description , degree_program_id , other_details , department_id | transcripts : other_details , transcript_id , transcript_date | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcript_contents : student_course_id , transcript_id | sections : other_details , section_id , section_name , section_description , course_id | semesters : other_details , semester_description , semester_name , semester_id | courses : other_details , course_description , course_name , course_id | departments : other_details , department_name , department_id , department_description | addresses : other_address_details , line_2 , line_3 , state_province_county , line_1 , country , city , address_id , zip_postcode | student_enrolment : semester_id , student_id , degree_program_id , other_details , student_enrolment_id | Pupils : student_id , current_address_id , permanent_address_id , last_name , other_student_details , date_first_registered , date_left , email_address , first_name , middle_name , ssn , cell_mobile_number 919-3594x3661\", \"07661787471\" | Learners : student_id , current_address_id , permanent_address_id , last_name , other_student_details , date_first_registered , date_left , email_address , first_name , middle_name , ssn , cell_mobile_number 919-3594x3661\", \"07661787471\"", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "students currently": "Students.current_address_id", + "address id": "Addresses.address_id", + "lines": [ + "Addresses.line_1", + "Addresses.line_2" + ] + } + }, + { + "question": "what is the #id# , #line 1# , and li #ne 2 of the address w# ith the most #students# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.address_id, t1.line_1, t1.line_2 from addresses as t1 join students as t2 on t1.address_id = t2.current_address_id group by t1.address_id order by count(*) desc limit 1", + "schema_with_content": "transcript_contents : transcript_id (6, 13, 4), student_course_id (76, 7, 0) | degree_programs : department_id (14, 7, 2), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_summary_description (\"assumenda\", \"unde\", \"officiis\"), degree_program_id (7, 10, 6) | semesters : semester_name (\"spring 2016\", \"spring 2010\", \"spring 2012\"), semester_description (\"m\", \"f\", \"y\"), semester_id (4, 5, 8), other_details (None) | courses : other_details (None), course_description (\"b\", \"n\", \"n\"), course_id (4, 9, 7), course_name (\"oop\", \"la\", \"la\") | sections : section_id (11, 1, 13), course_id (6, 10, 6), other_details (None), section_description (\"ad\", \"ex\", \"ad\"), section_name (\"d\", \"u\", \"u\") | student_enrolment_courses : student_enrolment_id (5, 14, 13), student_course_id (76, 604750, 45105806), course_id (6, 14, 14) | transcripts : transcript_date (\"1999-01-06 20:06:46\", \"1975-05-20 18:31:21\", \"2010-12-13 10:55:15\"), other_details (None), transcript_id (4, 10, 3) | departments : department_id (8, 2, 7), other_details (None), department_name (\"biology\", \"law\", \"statistics\"), department_description (\"aliquam\", \"error\", \"natus\") | students : current_address_id (7, 14, 12), cell_mobile_number (\"877.549.9067x8723\", \"(096)889-8954x524\", \"(462)246-7921\"), date_first_registered (\"1982-02-14 08:46:35\", \"1986-02-24 21:12:23\", \"1971-02-05 07:28:23\"), ssn (\"\", \"\", \"304246\"), email_address (\"beth42@example.org\", \"erwin.zboncak@example.com\", \"jhuel@example.com\"), last_name (\"Osinski\", \"Balistreri\", \"Carroll\"), first_name (\"Gregg\", \"Jarvis\", \"Deon\"), other_student_details (\"qui\", \"atque\", \"laborum\"), date_left (\"1990-09-01 05:03:27\", \"2017-07-09 21:38:43\", \"1999-08-24 00:07:10\"), permanent_address_id (5, 9, 15), middle_name (\"Violet\", \"Vaughn\", \"Neal\"), student_id (13, 9, 4) | Residences : line_2 (\"Suite 079\", \"Suite 383\", \"Apt. 388\"), country (\"Iceland\", \"Kyrgyz Republic\", \"Angola\"), other_address_details (None), line_1 (\"193 Marlin Brook\", \"0144 Lamar Plaza Apt. 346\", \"16998 Mraz Lodge\"), address_id (15, 8, 7), zip_postcode (\"386\", \"590\", \"386\"), line_3 (None), state_province_county (\"Idaho\", \"NorthCarolina\", \"Arkansas\"), city (\"New Clemensburgh\", \"Mariliehaven\", \"Prohaskafort\") | Locations : line_2 (\"Suite 079\", \"Suite 383\", \"Apt. 388\"), country (\"Iceland\", \"Kyrgyz Republic\", \"Angola\"), other_address_details (None), line_1 (\"193 Marlin Brook\", \"0144 Lamar Plaza Apt. 346\", \"16998 Mraz Lodge\"), address_id (15, 8, 7), zip_postcode (\"386\", \"590\", \"386\"), line_3 (None), state_province_county (\"Idaho\", \"NorthCarolina\", \"Arkansas\"), city (\"New Clemensburgh\", \"Mariliehaven\", \"Prohaskafort\") | student_enrolment : student_enrolment_id (14, 3, 4), student_id (14, 9, 1), degree_program_id (10, 10, 5), other_details (None), semester_id (2, 5, 2)", + "schema_without_content": "transcript_contents : transcript_id , student_course_id | degree_programs : department_id , degree_summary_name , other_details , degree_summary_description , degree_program_id | semesters : semester_name , semester_description , semester_id , other_details | courses : other_details , course_description , course_id , course_name | sections : section_id , course_id , other_details , section_description , section_name | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | transcripts : transcript_date , other_details , transcript_id | departments : department_id , other_details , department_name , department_description | students : current_address_id , cell_mobile_number 889-8954x524\", \"246-7921\", date_first_registered , ssn , email_address , last_name , first_name , other_student_details , date_left , permanent_address_id , middle_name , student_id | Residences : line_2 , country , other_address_details , line_1 , address_id , zip_postcode , line_3 , state_province_county , city | Locations : line_2 , country , other_address_details , line_1 , address_id , zip_postcode , line_3 , state_province_county , city | student_enrolment : student_enrolment_id , student_id , degree_program_id , other_details , semester_id", + "extra_map": null, + "extra_table_map": { + "addresses": [ + "Locations", + "Residences" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "id": "Addresses.address_id", + "line 1": "Addresses.line_1", + "ne 2 of the address w": "Addresses", + "students": "Students", + "line 2": "Addresses.line_2" + } + }, + { + "question": "what is the #id# , #line 1# , and li #ne 2 of the address w# ith the most #students# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t1.address_id, t1.line_1, t1.line_2 from addresses as t1 join students as t2 on t1.address_id = t2.current_address_id group by t1.address_id order by count(*) desc limit 1", + "schema_with_content": "student_enrolment : student_enrolment_id (3, 8, 2), other_details (None), semester_id (9, 6, 15), student_id (1, 6, 14), degree_program_id (5, 10, 2) | Learners : student_id (10, 5, 12), date_first_registered (\"1982-02-14 08:46:35\", \"1971-02-05 07:28:23\", \"1986-02-24 21:12:23\"), permanent_address_id (15, 8, 5), middle_name (\"Aaliyah\", \"Neal\", \"Cleve\"), cell_mobile_number (\"1-879-796-8987x164\", \"436.613.7683\", \"(213)445-0399x85208\"), current_address_id (14, 14, 10), ssn (\"34458427\", \"43\", \"248\"), first_name (\"Gregg\", \"Delaney\", \"Frida\"), other_student_details (\"facilis\", \"nesciunt\", \"voluptatem\"), last_name (\"Carroll\", \"Osinski\", \"Weimann\"), email_address (\"nya.lesch@example.net\", \"beth42@example.org\", \"jillian26@example.net\"), date_left (\"2013-10-05 17:41:28\", \"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\") | transcript_contents : transcript_id (12, 4, 2), student_course_id (0, 2, 8) | departments : department_name (\"drama\", \"history\", \"law\"), department_id (6, 6, 9), other_details (None), department_description (\"natus\", \"error\", \"ea\") | courses : course_id (10, 9, 3), course_name (\"math\", \"ai\", \"ml\"), other_details (None), course_description (\"b\", \"k\", \"d\") | Pupils : student_id (10, 5, 12), date_first_registered (\"1982-02-14 08:46:35\", \"1971-02-05 07:28:23\", \"1986-02-24 21:12:23\"), permanent_address_id (15, 8, 5), middle_name (\"Aaliyah\", \"Neal\", \"Cleve\"), cell_mobile_number (\"1-879-796-8987x164\", \"436.613.7683\", \"(213)445-0399x85208\"), current_address_id (14, 14, 10), ssn (\"34458427\", \"43\", \"248\"), first_name (\"Gregg\", \"Delaney\", \"Frida\"), other_student_details (\"facilis\", \"nesciunt\", \"voluptatem\"), last_name (\"Carroll\", \"Osinski\", \"Weimann\"), email_address (\"nya.lesch@example.net\", \"beth42@example.org\", \"jillian26@example.net\"), date_left (\"2013-10-05 17:41:28\", \"1971-05-17 19:28:49\", \"2016-04-09 12:27:04\") | transcripts : other_details (None), transcript_id (7, 1, 6), transcript_date (\"1975-05-20 18:31:21\", \"1990-03-05 11:59:41\", \"2013-06-30 13:01:40\") | degree_programs : degree_program_id (2, 2, 9), department_id (12, 15, 3), other_details (None), degree_summary_description (\"esse\", \"voluptas\", \"aperiam\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | sections : course_id (8, 6, 6), other_details (None), section_name (\"o\", \"u\", \"a\"), section_id (1, 8, 7), section_description (\"doloremque\", \"voluptas\", \"qui\") | student_enrolment_courses : student_enrolment_id (10, 2, 8), course_id (3, 11, 12), student_course_id (45105806, 45105806, 604750) | addresses : country (\"New Caledonia\", \"Haiti\", \"Gibraltar\"), city (\"Port Oceane\", \"Herzoghaven\", \"North Omer\"), line_3 (None), line_2 (\"Suite 830\", \"Apt. 689\", \"Apt. 689\"), state_province_county (\"WestVirginia\", \"Wyoming\", \"Idaho\"), line_1 (\"492 Wilkinson Route\", \"67942 Carlotta Ferry Apt. 686\", \"202 Hessel Views Apt. 468\"), address_id (10, 4, 15), zip_postcode (\"541\", \"638\", \"902\"), other_address_details (None) | semesters : semester_id (15, 1, 14), semester_name (\"spring 2013\", \"spring 2013\", \"spring 2019\"), other_details (None), semester_description (\"q\", \"x\", \"y\")", + "schema_without_content": "student_enrolment : student_enrolment_id , other_details , semester_id , student_id , degree_program_id | Learners : student_id , date_first_registered , permanent_address_id , middle_name , cell_mobile_number 445-0399x85208\", current_address_id , ssn , first_name , other_student_details , last_name , email_address , date_left | transcript_contents : transcript_id , student_course_id | departments : department_name , department_id , other_details , department_description | courses : course_id , course_name , other_details , course_description | Pupils : student_id , date_first_registered , permanent_address_id , middle_name , cell_mobile_number 445-0399x85208\", current_address_id , ssn , first_name , other_student_details , last_name , email_address , date_left | transcripts : other_details , transcript_id , transcript_date | degree_programs : degree_program_id , department_id , other_details , degree_summary_description , degree_summary_name | sections : course_id , other_details , section_name , section_id , section_description | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | addresses : country , city , line_3 , line_2 , state_province_county , line_1 , address_id , zip_postcode , other_address_details | semesters : semester_id , semester_name , other_details , semester_description", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Addresses.address_id", + "line 1": "Addresses.line_1", + "ne 2 of the address w": "Addresses", + "students": "Students", + "line 2": "Addresses.line_2" + } + }, + { + "question": "when is the first #transcript# released? list the #date# and #details# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select transcript_date, other_details from transcripts order by transcript_date asc limit 1", + "schema_with_content": "departments : department_id (14, 13, 8), other_details (None), department_name (\"engineer\", \"drama\", \"law\"), department_description (\"autem\", \"ea\", \"aliquam\") | courses : course_name (\"cal\", \"dl\", \"db\"), course_id (7, 11, 10), course_description (\"n\", \"b\", \"k\"), other_details (None) | Grade_Report : transcript_date (\"1986-07-12 07:27:29\", \"1985-08-21 09:32:39\", \"2010-12-13 10:55:15\"), other_details (None), transcript_id (14, 6, 3) | degree_programs : degree_program_id (14, 1, 15), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (13, 8, 7), degree_summary_description (\"esse\", \"cumque\", \"placeat\"), other_details (None) | addresses : country (\"Haiti\", \"New Caledonia\", \"Samoa\"), zip_postcode (\"669\", \"590\", \"400\"), state_province_county (\"Delaware\", \"Washington\", \"Idaho\"), address_id (11, 13, 14), line_2 (\"Apt. 583\", \"Suite 674\", \"Suite 865\"), other_address_details (None), line_1 (\"74046 Metz Walk Apt. 113\", \"186 Evan Motorway Apt. 409\", \"67942 Carlotta Ferry Apt. 686\"), city (\"Lake Careyberg\", \"Herzoghaven\", \"Michelleburgh\"), line_3 (None) | semesters : other_details (None), semester_description (\"f\", \"o\", \"x\"), semester_id (5, 10, 6), semester_name (\"winter 2010\", \"spring 2010\", \"spring 2018\") | student_enrolment_courses : student_course_id (83814225, 28982908, 9860), course_id (14, 3, 13), student_enrolment_id (8, 13, 6) | transcript_contents : transcript_id (2, 5, 12), student_course_id (0, 7, 2) | sections : other_details (None), section_id (2, 12, 6), course_id (7, 4, 14), section_description (\"nesciunt\", \"voluptas\", \"facilis\"), section_name (\"g\", \"e\", \"u\") | students : last_name (\"Carroll\", \"Ankunding\", \"Christiansen\"), student_id (10, 14, 2), date_first_registered (\"1973-05-19 19:12:46\", \"2014-03-28 05:48:23\", \"2004-12-24 12:36:46\"), permanent_address_id (14, 3, 3), other_student_details (\"voluptatem\", \"atque\", \"autem\"), current_address_id (15, 15, 10), ssn (\"402\", \"3\", \"668\"), cell_mobile_number (\"(462)246-7921\", \"(096)889-8954x524\", \"677.401.9382\"), middle_name (\"Osborne\", \"Vaughn\", \"Aaliyah\"), email_address (\"johns.unique@example.net\", \"dell43@example.net\", \"nya.lesch@example.net\"), first_name (\"Reva\", \"Jarvis\", \"Orrin\"), date_left (\"1990-09-01 05:03:27\", \"2007-08-02 04:12:58\", \"2017-07-09 21:38:43\") | Academic_History : transcript_date (\"1986-07-12 07:27:29\", \"1985-08-21 09:32:39\", \"2010-12-13 10:55:15\"), other_details (None), transcript_id (14, 6, 3) | student_enrolment : semester_id (9, 12, 9), degree_program_id (11, 8, 2), student_enrolment_id (15, 8, 7), other_details (None), student_id (5, 5, 4)", + "schema_without_content": "departments : department_id , other_details , department_name , department_description | courses : course_name , course_id , course_description , other_details | Grade_Report : transcript_date , other_details , transcript_id | degree_programs : degree_program_id , degree_summary_name , department_id , degree_summary_description , other_details | addresses : country , zip_postcode , state_province_county , address_id , line_2 , other_address_details , line_1 , city , line_3 | semesters : other_details , semester_description , semester_id , semester_name | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcript_contents : transcript_id , student_course_id | sections : other_details , section_id , course_id , section_description , section_name | students : last_name , student_id , date_first_registered , permanent_address_id , other_student_details , current_address_id , ssn , cell_mobile_number 246-7921\", \"889-8954x524\", \"677.401.9382\", middle_name , email_address , first_name , date_left | Academic_History : transcript_date , other_details , transcript_id | student_enrolment : semester_id , degree_program_id , student_enrolment_id , other_details , student_id", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "transcript": "Transcripts", + "date": "Transcripts.transcript_date", + "details": "Transcripts.other_details" + } + }, + { + "question": "what is the earliest #date of a transcript release# , and what #details# can you tell me?", + "db_id": "student_transcripts_tracking", + "orig_query": "select transcript_date, other_details from transcripts order by transcript_date asc limit 1", + "schema_with_content": "student_enrolment : student_id (6, 5, 12), student_enrolment_id (13, 11, 2), other_details (None), degree_program_id (5, 3, 2), semester_id (4, 4, 5) | sections : course_id (6, 14, 1), section_name (\"k\", \"h\", \"k\"), section_id (15, 3, 4), section_description (\"ad\", \"voluptatem\", \"facilis\"), other_details (None) | departments : department_name (\"law\", \"law\", \"computer science\"), department_description (\"autem\", \"doloribus\", \"nostrum\"), department_id (15, 15, 15), other_details (None) | student_enrolment_courses : student_course_id (2, 2, 7), course_id (2, 6, 14), student_enrolment_id (6, 13, 9) | transcript_contents : student_course_id (2, 45105806, 0), transcript_id (12, 11, 15) | students : permanent_address_id (9, 15, 4), current_address_id (1, 1, 10), date_left (\"1971-05-17 19:28:49\", \"1997-11-16 08:54:33\", \"1997-11-16 08:54:33\"), middle_name (\"Vaughn\", \"Golda\", \"Violet\"), date_first_registered (\"2009-09-25 00:14:25\", \"2007-08-29 23:25:41\", \"2007-08-29 23:25:41\"), student_id (9, 7, 2), email_address (\"jhuel@example.com\", \"jhuel@example.com\", \"baumbach.lucious@example.org\"), other_student_details (\"autem\", \"rerum\", \"facilis\"), first_name (\"Frida\", \"Timmothy\", \"Jett\"), ssn (\"43\", \"494\", \"248\"), last_name (\"Rempel\", \"Mohr\", \"Kemmer\"), cell_mobile_number (\"171-642-5684\", \"(507)365-8405\", \"(982)153-1469x1733\") | semesters : other_details (None), semester_name (\"spring 2014\", \"winter 2010\", \"winter 2018\"), semester_id (8, 11, 11), semester_description (\"f\", \"w\", \"l\") | degree_programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (6, 9, 9), department_id (15, 12, 8), other_details (None), degree_summary_description (\"earum\", \"aut\", \"aperiam\") | Academic_History : transcript_date (\"1998-11-22 12:18:29\", \"2013-06-30 13:01:40\", \"1998-11-22 12:18:29\"), other_details (None), transcript_id (4, 10, 5) | Grade_Report : transcript_date (\"1998-11-22 12:18:29\", \"2013-06-30 13:01:40\", \"1998-11-22 12:18:29\"), other_details (None), transcript_id (4, 10, 5) | addresses : address_id (5, 2, 2), line_3 (None), other_address_details (None), city (\"South Palma\", \"Prohaskafort\", \"Lake Laishafurt\"), line_2 (\"Suite 079\", \"Apt. 335\", \"Suite 079\"), country (\"New Caledonia\", \"Norfolk Island\", \"Samoa\"), line_1 (\"2294 Grant Square Apt. 235\", \"3999 Aufderhar Ways Suite 593\", \"202 Hessel Views Apt. 468\"), state_province_county (\"Florida\", \"WestVirginia\", \"Wyoming\"), zip_postcode (\"638\", \"895\", \"446\") | courses : course_id (13, 6, 6), course_name (\"oop\", \"cal\", \"la\"), course_description (\"k\", \"c\", \"w\"), other_details (None)", + "schema_without_content": "student_enrolment : student_id , student_enrolment_id , other_details , degree_program_id , semester_id | sections : course_id , section_name , section_id , section_description , other_details | departments : department_name , department_description , department_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcript_contents : student_course_id , transcript_id | students : permanent_address_id , current_address_id , date_left , middle_name , date_first_registered , student_id , email_address , other_student_details , first_name , ssn , last_name , cell_mobile_number 365-8405\", \"153-1469x1733\" | semesters : other_details , semester_name , semester_id , semester_description | degree_programs : degree_summary_name , degree_program_id , department_id , other_details , degree_summary_description | Academic_History : transcript_date , other_details , transcript_id | Grade_Report : transcript_date , other_details , transcript_id | addresses : address_id , line_3 , other_address_details , city , line_2 , country , line_1 , state_province_county , zip_postcode | courses : course_id , course_name , course_description , other_details", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "date of a transcript release": "Transcripts.transcript_date", + "details": "Transcripts.other_details" + } + }, + { + "question": "what is the last #transcript release date# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select transcript_date from transcripts order by transcript_date desc limit 1", + "schema_with_content": "student_enrolment_courses : student_course_id (28982908, 83814225, 7), student_enrolment_id (5, 4, 13), course_id (4, 8, 2) | student_enrolment : student_enrolment_id (8, 7, 3), student_id (12, 5, 9), other_details (None), degree_program_id (8, 10, 9), semester_id (9, 2, 2) | students : permanent_address_id (8, 4, 5), email_address (\"qo'kon@example.com\", \"nya.lesch@example.net\", \"dell43@example.net\"), cell_mobile_number (\"1-009-710-5151\", \"171-642-5684\", \"(213)445-0399x85208\"), date_left (\"2007-03-31 09:53:19\", \"1990-09-01 05:03:27\", \"2014-05-30 23:32:02\"), last_name (\"Rempel\", \"Ankunding\", \"Mohr\"), student_id (6, 5, 14), middle_name (\"Lorenz\", \"Mona\", \"Mossie\"), current_address_id (9, 12, 7), first_name (\"Deon\", \"Jordy\", \"Jordy\"), date_first_registered (\"1986-02-24 21:12:23\", \"1989-05-24 23:31:29\", \"1989-05-24 23:31:29\"), other_student_details (\"omnis\", \"dolorum\", \"laborum\"), ssn (\"668\", \"34458427\", \"304246\") | addresses : city (\"Herzoghaven\", \"New Clemensburgh\", \"Michelleburgh\"), line_1 (\"202 Hessel Views Apt. 468\", \"74046 Metz Walk Apt. 113\", \"858 Peggie Bypass Suite 212\"), other_address_details (None), line_2 (\"Apt. 305\", \"Apt. 335\", \"Apt. 689\"), state_province_county (\"Idaho\", \"Wyoming\", \"Idaho\"), country (\"Angola\", \"Haiti\", \"Cook Islands\"), line_3 (None), address_id (11, 9, 15), zip_postcode (\"068\", \"400\", \"638\") | semesters : semester_id (15, 2, 4), other_details (None), semester_description (\"t\", \"f\", \"f\"), semester_name (\"spring 2018\", \"winter 2010\", \"spring 2010\") | Academic_History : other_details (None), transcript_id (13, 1, 13), transcript_date (\"1999-01-06 20:06:46\", \"2002-09-24 06:11:49\", \"2010-12-13 10:55:15\") | Grade_Report : other_details (None), transcript_id (13, 1, 13), transcript_date (\"1999-01-06 20:06:46\", \"2002-09-24 06:11:49\", \"2010-12-13 10:55:15\") | degree_programs : department_id (3, 3, 7), other_details (None), degree_summary_description (\"placeat\", \"quam\", \"cumque\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (1, 3, 13) | courses : course_id (8, 6, 13), other_details (None), course_description (\"n\", \"v\", \"d\"), course_name (\"os\", \"ml\", \"pl\") | transcript_contents : student_course_id (76, 28982908, 0), transcript_id (2, 2, 8) | sections : section_name (\"b\", \"b\", \"f\"), section_description (\"voluptatem\", \"doloremque\", \"quis\"), other_details (None), course_id (1, 1, 10), section_id (8, 10, 4) | departments : department_name (\"dance\", \"engineer\", \"dance\"), department_description (\"nisi\", \"in\", \"error\"), other_details (None), department_id (12, 4, 9)", + "schema_without_content": "student_enrolment_courses : student_course_id , student_enrolment_id , course_id | student_enrolment : student_enrolment_id , student_id , other_details , degree_program_id , semester_id | students : permanent_address_id , email_address , cell_mobile_number 445-0399x85208\", date_left , last_name , student_id , middle_name , current_address_id , first_name , date_first_registered , other_student_details , ssn | addresses : city , line_1 , other_address_details , line_2 , state_province_county , country , line_3 , address_id , zip_postcode | semesters : semester_id , other_details , semester_description , semester_name | Academic_History : other_details , transcript_id , transcript_date | Grade_Report : other_details , transcript_id , transcript_date | degree_programs : department_id , other_details , degree_summary_description , degree_summary_name , degree_program_id | courses : course_id , other_details , course_description , course_name | transcript_contents : student_course_id , transcript_id | sections : section_name , section_description , other_details , course_id , section_id | departments : department_name , department_description , other_details , department_id", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "transcript release date": "Transcripts.transcript_date" + } + }, + { + "question": "when was the last #transcript# released?", + "db_id": "student_transcripts_tracking", + "orig_query": "select transcript_date from transcripts order by transcript_date desc limit 1", + "schema_with_content": "departments : department_id (3, 14, 1), other_details (None), department_name (\"math\", \"geography\", \"medical\"), department_description (\"doloribus\", \"in\", \"doloribus\") | transcript_contents : transcript_id (11, 4, 15), student_course_id (76, 70882679, 7) | Grade_Report : transcript_date (\"2010-12-13 10:55:15\", \"1985-04-29 01:20:20\", \"1990-03-05 11:59:41\"), other_details (None), transcript_id (2, 13, 7) | student_enrolment : student_enrolment_id (14, 4, 13), other_details (None), student_id (5, 7, 14), degree_program_id (11, 11, 4), semester_id (5, 5, 13) | sections : section_description (\"reprehenderit\", \"nesciunt\", \"voluptas\"), other_details (None), course_id (8, 5, 7), section_name (\"y\", \"a\", \"h\"), section_id (2, 4, 1) | degree_programs : other_details (None), department_id (3, 8, 13), degree_program_id (5, 10, 5), degree_summary_description (\"et\", \"et\", \"et\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | courses : course_name (\"nlp\", \"la\", \"rs\"), other_details (None), course_description (\"b\", \"k\", \"k\"), course_id (11, 5, 11) | addresses : line_1 (\"979 Haag Shores Suite 656\", \"0144 Lamar Plaza Apt. 346\", \"2294 Grant Square Apt. 235\"), other_address_details (None), state_province_county (\"Wyoming\", \"Delaware\", \"Arkansas\"), line_3 (None), address_id (6, 12, 15), line_2 (\"Apt. 689\", \"Apt. 388\", \"Suite 079\"), zip_postcode (\"777\", \"839\", \"777\"), country (\"Croatia\", \"Angola\", \"Burundi\"), city (\"South Palma\", \"Herzoghaven\", \"Lake Careyberg\") | student_enrolment_courses : student_course_id (70882679, 7, 438800), student_enrolment_id (4, 9, 9), course_id (3, 4, 14) | students : date_left (\"2014-05-30 23:32:02\", \"2007-11-28 12:50:21\", \"2013-10-05 17:41:28\"), current_address_id (15, 9, 6), ssn (\"494\", \"3\", \"3\"), permanent_address_id (14, 15, 15), student_id (10, 12, 2), date_first_registered (\"2017-01-04 08:10:25\", \"1971-02-05 07:28:23\", \"2005-12-15 08:42:10\"), middle_name (\"Lorenz\", \"Mona\", \"Aisha\"), email_address (\"lhartmann@example.org\", \"erwin.zboncak@example.com\", \"nbruen@example.org\"), last_name (\"Ankunding\", \"Rogahn\", \"Rogahn\"), first_name (\"Frida\", \"Orrin\", \"Jordy\"), other_student_details (\"laborum\", \"facilis\", \"assumenda\"), cell_mobile_number (\"(213)445-0399x85208\", \"(507)365-8405\", \"(605)919-3594x3661\") | Academic_History : transcript_date (\"2010-12-13 10:55:15\", \"1985-04-29 01:20:20\", \"1990-03-05 11:59:41\"), other_details (None), transcript_id (2, 13, 7) | semesters : semester_id (3, 6, 6), other_details (None), semester_description (\"y\", \"o\", \"c\"), semester_name (\"spring 2017\", \"winter 2018\", \"spring 2018\")", + "schema_without_content": "departments : department_id , other_details , department_name , department_description | transcript_contents : transcript_id , student_course_id | Grade_Report : transcript_date , other_details , transcript_id | student_enrolment : student_enrolment_id , other_details , student_id , degree_program_id , semester_id | sections : section_description , other_details , course_id , section_name , section_id | degree_programs : other_details , department_id , degree_program_id , degree_summary_description , degree_summary_name | courses : course_name , other_details , course_description , course_id | addresses : line_1 , other_address_details , state_province_county , line_3 , address_id , line_2 , zip_postcode , country , city | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | students : date_left , current_address_id , ssn , permanent_address_id , student_id , date_first_registered , middle_name , email_address , last_name , first_name , other_student_details , cell_mobile_number 445-0399x85208\", \"365-8405\", \"919-3594x3661\" | Academic_History : transcript_date , other_details , transcript_id | semesters : semester_id , other_details , semester_description , semester_name", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "transcript": "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_id": "student_transcripts_tracking", + "orig_query": "select count(*), student_course_id from transcript_contents group by student_course_id order by count(*) desc limit 1", + "schema_with_content": "departments : department_id (11, 13, 15), department_description (\"ea\", \"consequatur\", \"nostrum\"), other_details (None), department_name (\"medical\", \"management\", \"management\") | student_enrolment : student_id (5, 7, 6), semester_id (6, 13, 1), other_details (None), student_enrolment_id (5, 8, 2), degree_program_id (11, 5, 5) | degree_programs : degree_summary_description (\"architecto\", \"qui\", \"officiis\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (10, 11, 15), department_id (15, 11, 3) | Academic_Record : student_course_id (76, 70882679, 0), transcript_id (8, 9, 4) | students : last_name (\"Osinski\", \"Osinski\", \"Schuppe\"), date_left (\"2007-11-28 12:50:21\", \"1975-10-09 00:49:27\", \"1999-08-24 00:07:10\"), current_address_id (15, 9, 6), student_id (4, 2, 12), permanent_address_id (14, 14, 8), other_student_details (\"et\", \"quia\", \"dolorum\"), email_address (\"nbruen@example.org\", \"nya.lesch@example.net\", \"skassulke@example.net\"), date_first_registered (\"1976-10-26 02:33:06\", \"2007-08-29 23:25:41\", \"1997-03-20 16:47:25\"), first_name (\"Frida\", \"Milton\", \"Deon\"), cell_mobile_number (\"1-009-710-5151\", \"(605)919-3594x3661\", \"09700166582\"), ssn (\"494\", \"\", \"39\"), middle_name (\"Mona\", \"Golda\", \"Mona\") | semesters : semester_description (\"w\", \"x\", \"w\"), semester_name (\"spring 2015\", \"spring 2014\", \"spring 2015\"), other_details (None), semester_id (5, 3, 9) | transcripts : other_details (None), transcript_date (\"1985-04-29 01:20:20\", \"1988-04-30 01:19:47\", \"1984-12-19 00:37:21\"), transcript_id (9, 6, 15) | courses : course_name (\"pl\", \"rs\", \"os\"), other_details (None), course_id (9, 11, 3), course_description (\"p\", \"n\", \"n\") | addresses : city (\"Lake Careyberg\", \"Port Evanston\", \"Rutherfordtown\"), zip_postcode (\"590\", \"386\", \"541\"), line_3 (None), other_address_details (None), state_province_county (\"Kansas\", \"NorthCarolina\", \"Kansas\"), line_2 (\"Suite 383\", \"Apt. 335\", \"Apt. 583\"), address_id (1, 2, 11), line_1 (\"2294 Grant Square Apt. 235\", \"979 Haag Shores Suite 656\", \"193 Marlin Brook\"), country (\"Cook Islands\", \"Haiti\", \"Croatia\") | student_enrolment_courses : student_enrolment_id (13, 4, 5), course_id (8, 14, 8), student_course_id (7, 83814225, 70882679) | sections : course_id (10, 12, 14), section_name (\"h\", \"b\", \"g\"), other_details (None), section_id (5, 6, 15), section_description (\"non\", \"facilis\", \"doloremque\") | Grades : student_course_id (76, 70882679, 0), transcript_id (8, 9, 4)", + "schema_without_content": "departments : department_id , department_description , other_details , department_name | student_enrolment : student_id , semester_id , other_details , student_enrolment_id , degree_program_id | degree_programs : degree_summary_description , other_details , degree_summary_name , degree_program_id , department_id | Academic_Record : student_course_id , transcript_id | students : last_name , date_left , current_address_id , student_id , permanent_address_id , other_student_details , email_address , date_first_registered , first_name , cell_mobile_number 919-3594x3661\", \"09700166582\", ssn , middle_name | semesters : semester_description , semester_name , other_details , semester_id | transcripts : other_details , transcript_date , transcript_id | courses : course_name , other_details , course_id , course_description | addresses : city , zip_postcode , line_3 , other_address_details , state_province_county , line_2 , address_id , line_1 , country | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | sections : course_id , section_name , other_details , section_id , section_description | Grades : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "course enrollment result": "Transcript_Contents.student_course_id", + "course enrollment 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_id": "student_transcripts_tracking", + "orig_query": "select count(*), student_course_id from transcript_contents group by student_course_id order by count(*) desc limit 1", + "schema_with_content": "addresses : country (\"Norfolk Island\", \"Haiti\", \"Iceland\"), line_2 (\"Apt. 689\", \"Suite 703\", \"Apt. 388\"), state_province_county (\"Kansas\", \"NorthCarolina\", \"Arkansas\"), address_id (14, 5, 11), other_address_details (None), zip_postcode (\"902\", \"590\", \"386\"), line_3 (None), line_1 (\"2294 Grant Square Apt. 235\", \"2294 Grant Square Apt. 235\", \"492 Wilkinson Route\"), city (\"Port Elvisfurt\", \"Port Oceane\", \"Lake Careyberg\") | student_enrolment : other_details (None), degree_program_id (2, 2, 11), student_enrolment_id (7, 15, 1), student_id (14, 5, 6), semester_id (9, 9, 15) | transcripts : transcript_id (1, 15, 10), transcript_date (\"1988-04-30 01:19:47\", \"2010-12-13 10:55:15\", \"1975-05-06 12:04:47\"), other_details (None) | student_enrolment_courses : course_id (8, 12, 4), student_enrolment_id (13, 2, 10), student_course_id (96, 0, 681404) | students : date_left (\"1997-11-16 08:54:33\", \"2007-08-02 04:12:58\", \"2007-08-02 04:12:58\"), middle_name (\"Anna\", \"Vaughn\", \"Judd\"), current_address_id (9, 9, 10), email_address (\"dell43@example.net\", \"skassulke@example.net\", \"gracie29@example.com\"), first_name (\"Jett\", \"Orrin\", \"Warren\"), date_first_registered (\"1973-05-19 19:12:46\", \"1982-06-19 13:15:18\", \"1989-05-24 23:31:29\"), last_name (\"Balistreri\", \"Carroll\", \"Weimann\"), other_student_details (\"rerum\", \"assumenda\", \"et\"), student_id (14, 3, 7), cell_mobile_number (\"07661787471\", \"09700166582\", \"677.401.9382\"), ssn (\"6274274\", \"494\", \"402\"), permanent_address_id (3, 11, 3) | semesters : other_details (None), semester_description (\"y\", \"l\", \"f\"), semester_id (12, 9, 3), semester_name (\"spring 2010\", \"spring 2014\", \"winter 2010\") | sections : section_description (\"ad\", \"et\", \"provident\"), course_id (7, 8, 14), section_id (4, 6, 14), other_details (None), section_name (\"h\", \"k\", \"u\") | courses : course_description (\"w\", \"l\", \"n\"), other_details (None), course_id (7, 6, 13), course_name (\"pl\", \"os\", \"ds\") | degree_programs : other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (3, 11, 12), degree_summary_description (\"et\", \"qui\", \"et\"), degree_program_id (10, 15, 10) | departments : department_name (\"biology\", \"computer science\", \"drama\"), department_id (10, 3, 14), other_details (None), department_description (\"consequatur\", \"consequatur\", \"in\") | Academic_Record : transcript_id (8, 12, 6), student_course_id (8, 76, 0) | Grades : transcript_id (8, 12, 6), student_course_id (8, 76, 0)", + "schema_without_content": "addresses : country , line_2 , state_province_county , address_id , other_address_details , zip_postcode , line_3 , line_1 , city | student_enrolment : other_details , degree_program_id , student_enrolment_id , student_id , semester_id | transcripts : transcript_id , transcript_date , other_details | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | students : date_left , middle_name , current_address_id , email_address , first_name , date_first_registered , last_name , other_student_details , student_id , cell_mobile_number , ssn , permanent_address_id | semesters : other_details , semester_description , semester_id , semester_name | sections : section_description , course_id , section_id , other_details , section_name | courses : course_description , other_details , course_id , course_name | degree_programs : other_details , degree_summary_name , department_id , degree_summary_description , degree_program_id | departments : department_name , department_id , other_details , department_description | Academic_Record : transcript_id , student_course_id | Grades : transcript_id , student_course_id", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "number of times that a course shows up in different transcripts": "Transcript_Contents.student_course_id", + "course's enrollment id": "Transcript_Contents.student_course_id" + } + }, + { + "question": "show the #date of the transcript# which shows the least number of results, also list the #id# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1", + "schema_with_content": "departments : department_description (\"in\", \"non\", \"consequatur\"), department_name (\"law\", \"history\", \"computer science\"), other_details (None), department_id (11, 15, 2) | Grade_Report : transcript_date (\"1975-05-06 12:04:47\", \"1985-08-21 09:32:39\", \"1985-08-21 09:32:39\"), other_details (None), transcript_id (10, 1, 14) | student_enrolment_courses : student_enrolment_id (10, 6, 13), course_id (2, 8, 13), student_course_id (0, 83814225, 1) | Academic_History : transcript_date (\"1975-05-06 12:04:47\", \"1985-08-21 09:32:39\", \"1985-08-21 09:32:39\"), other_details (None), transcript_id (10, 1, 14) | student_enrolment : student_id (6, 12, 9), student_enrolment_id (10, 10, 11), other_details (None), semester_id (9, 13, 13), degree_program_id (11, 10, 12) | courses : course_id (13, 14, 12), other_details (None), course_name (\"cal\", \"dl\", \"nlp\"), course_description (\"c\", \"l\", \"p\") | students : ssn (\"141072406\", \"68095\", \"156\"), middle_name (\"Cleve\", \"Golda\", \"Violet\"), permanent_address_id (11, 11, 8), email_address (\"dell43@example.net\", \"baumbach.lucious@example.org\", \"nya.lesch@example.net\"), cell_mobile_number (\"03174364122\", \"09700166582\", \"(982)153-1469x1733\"), date_left (\"2016-04-09 12:27:04\", \"2007-08-02 04:12:58\", \"2007-08-02 04:12:58\"), last_name (\"Balistreri\", \"Mohr\", \"Kemmer\"), date_first_registered (\"1973-05-19 19:12:46\", \"2014-03-28 05:48:23\", \"2018-03-13 09:56:22\"), first_name (\"Frida\", \"Deon\", \"Jarvis\"), current_address_id (15, 14, 10), other_student_details (\"quia\", \"dolorum\", \"autem\"), student_id (12, 8, 8) | semesters : semester_description (\"w\", \"l\", \"m\"), semester_id (5, 9, 11), other_details (None), semester_name (\"winter 2018\", \"spring 2017\", \"spring 2019\") | addresses : line_3 (None), address_id (15, 4, 14), country (\"Gabon\", \"Bermuda\", \"Saudi Arabia\"), zip_postcode (\"902\", \"943\", \"895\"), line_2 (\"Apt. 335\", \"Apt. 335\", \"Apt. 305\"), line_1 (\"186 Evan Motorway Apt. 409\", \"9283 Schulist Falls Apt. 037\", \"16998 Mraz Lodge\"), state_province_county (\"Arkansas\", \"Florida\", \"Washington\"), city (\"Michelleburgh\", \"South Palma\", \"Michelleburgh\"), other_address_details (None) | degree_programs : degree_program_id (11, 9, 5), other_details (None), department_id (11, 2, 14), degree_summary_description (\"architecto\", \"qui\", \"esse\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | transcript_contents : student_course_id (45105806, 76, 7), transcript_id (11, 2, 12) | sections : section_description (\"quis\", \"et\", \"provident\"), section_name (\"l\", \"o\", \"g\"), section_id (6, 15, 5), other_details (None), course_id (8, 7, 1)", + "schema_without_content": "departments : department_description , department_name , other_details , department_id | Grade_Report : transcript_date , other_details , transcript_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | Academic_History : transcript_date , other_details , transcript_id | student_enrolment : student_id , student_enrolment_id , other_details , semester_id , degree_program_id | courses : course_id , other_details , course_name , course_description | students : ssn , middle_name , permanent_address_id , email_address , cell_mobile_number 153-1469x1733\", date_left , last_name , date_first_registered , first_name , current_address_id , other_student_details , student_id | semesters : semester_description , semester_id , other_details , semester_name | addresses : line_3 , address_id , country , zip_postcode , line_2 , line_1 , state_province_county , city , other_address_details | degree_programs : degree_program_id , other_details , department_id , degree_summary_description , degree_summary_name | transcript_contents : student_course_id , transcript_id | sections : section_description , section_name , section_id , other_details , course_id", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "date of the transcript": "Transcripts.transcript_date", + "id": "Transcripts.transcript_id" + } + }, + { + "question": "show the #date of the transcript# which shows the least number of results, also list the #id# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1", + "schema_with_content": "Academic_Record : transcript_id (8, 5, 13), student_course_id (8, 8, 70882679) | departments : other_details (None), department_description (\"nihil\", \"aliquam\", \"natus\"), department_name (\"dance\", \"math\", \"dance\"), department_id (9, 7, 6) | addresses : country (\"Haiti\", \"Haiti\", \"Haiti\"), city (\"Prohaskafort\", \"Prohaskafort\", \"Goodwinhaven\"), line_3 (None), address_id (3, 14, 3), zip_postcode (\"446\", \"446\", \"669\"), line_2 (\"Suite 865\", \"Suite 703\", \"Suite 703\"), other_address_details (None), line_1 (\"16998 Mraz Lodge\", \"979 Haag Shores Suite 656\", \"193 Marlin Brook\"), state_province_county (\"Hawaii\", \"Idaho\", \"Hawaii\") | students : first_name (\"Timmothy\", \"Jett\", \"Helga\"), permanent_address_id (5, 4, 14), ssn (\"141072406\", \"6274274\", \"39\"), date_left (\"2006-08-04 17:26:49\", \"1971-05-17 19:28:49\", \"2007-11-28 12:50:21\"), cell_mobile_number (\"(462)246-7921\", \"877.549.9067x8723\", \"(507)365-8405\"), student_id (12, 7, 8), last_name (\"Rempel\", \"Balistreri\", \"Christiansen\"), current_address_id (6, 10, 2), middle_name (\"Neal\", \"Golda\", \"Neal\"), email_address (\"nya.lesch@example.net\", \"qo'kon@example.com\", \"jillian26@example.net\"), other_student_details (\"assumenda\", \"qui\", \"omnis\"), date_first_registered (\"2005-12-15 08:42:10\", \"2004-12-24 12:36:46\", \"1976-10-26 02:33:06\") | transcripts : other_details (None), transcript_date (\"1986-07-12 07:27:29\", \"1975-05-06 12:04:47\", \"1975-05-20 18:31:21\"), transcript_id (1, 13, 12) | degree_programs : degree_program_id (14, 2, 1), degree_summary_description (\"aperiam\", \"officiis\", \"assumenda\"), other_details (None), department_id (13, 12, 14), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | student_enrolment : student_id (9, 4, 7), other_details (None), semester_id (2, 13, 5), student_enrolment_id (7, 1, 1), degree_program_id (11, 11, 8) | student_enrolment_courses : course_id (14, 3, 3), student_enrolment_id (9, 10, 13), student_course_id (96, 604750, 1) | semesters : semester_id (11, 10, 5), other_details (None), semester_description (\"f\", \"c\", \"x\"), semester_name (\"spring 2015\", \"fall 2010\", \"fall 2018\") | Grades : transcript_id (8, 5, 13), student_course_id (8, 8, 70882679) | courses : course_name (\"oop\", \"pl\", \"nlp\"), other_details (None), course_description (\"l\", \"c\", \"b\"), course_id (14, 12, 5) | sections : course_id (12, 2, 7), other_details (None), section_name (\"b\", \"g\", \"b\"), section_id (11, 5, 13), section_description (\"qui\", \"quis\", \"provident\")", + "schema_without_content": "Academic_Record : transcript_id , student_course_id | departments : other_details , department_description , department_name , department_id | addresses : country , city , line_3 , address_id , zip_postcode , line_2 , other_address_details , line_1 , state_province_county | students : first_name , permanent_address_id , ssn , date_left , cell_mobile_number 246-7921\", \"877.549.9067x8723\", \"365-8405\", student_id , last_name , current_address_id , middle_name , email_address , other_student_details , date_first_registered | transcripts : other_details , transcript_date , transcript_id | degree_programs : degree_program_id , degree_summary_description , other_details , department_id , degree_summary_name | student_enrolment : student_id , other_details , semester_id , student_enrolment_id , degree_program_id | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | semesters : semester_id , other_details , semester_description , semester_name | Grades : transcript_id , student_course_id | courses : course_name , other_details , course_description , course_id | sections : course_id , other_details , section_name , section_id , section_description", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "date of the transcript": "Transcripts.transcript_date", + "id": "Transcripts.transcript_id" + } + }, + { + "question": "what is the #date# and #id of the transcript# with the least number of results?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1", + "schema_with_content": "student_enrolment_courses : student_course_id (83814225, 604750, 28982908), student_enrolment_id (2, 9, 8), course_id (14, 6, 6) | students : cell_mobile_number (\"1-009-710-5151\", \"677.401.9382\", \"(605)919-3594x3661\"), current_address_id (9, 15, 1), other_student_details (\"dolorum\", \"autem\", \"non\"), permanent_address_id (5, 8, 14), first_name (\"Hobart\", \"Jett\", \"Delaney\"), email_address (\"gracie29@example.com\", \"johns.unique@example.net\", \"erwin.zboncak@example.com\"), middle_name (\"Neal\", \"Mossie\", \"Anna\"), last_name (\"Rempel\", \"Kemmer\", \"Balistreri\"), date_first_registered (\"2018-03-13 09:56:22\", \"2005-12-15 08:42:10\", \"1986-02-24 21:12:23\"), ssn (\"668\", \"6274274\", \"494\"), date_left (\"1971-05-17 19:28:49\", \"1999-08-24 00:07:10\", \"1999-08-24 00:07:10\"), student_id (1, 2, 5) | student_enrolment : other_details (None), degree_program_id (10, 4, 4), semester_id (15, 9, 5), student_enrolment_id (12, 10, 11), student_id (6, 5, 6) | Grade_Report : other_details (None), transcript_id (11, 11, 13), transcript_date (\"1975-10-28 15:16:51\", \"2010-12-13 10:55:15\", \"2010-12-13 10:55:15\") | courses : other_details (None), course_id (6, 13, 1), course_description (\"c\", \"p\", \"q\"), course_name (\"pl\", \"en\", \"rs\") | semesters : semester_name (\"spring 2013\", \"spring 2016\", \"spring 2018\"), semester_description (\"l\", \"c\", \"x\"), other_details (None), semester_id (6, 14, 1) | transcript_contents : transcript_id (8, 8, 11), student_course_id (0, 8, 0) | degree_programs : other_details (None), degree_program_id (14, 6, 5), department_id (8, 8, 8), degree_summary_description (\"aut\", \"unde\", \"quam\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | sections : other_details (None), section_name (\"o\", \"a\", \"e\"), section_description (\"reprehenderit\", \"reprehenderit\", \"nesciunt\"), course_id (6, 14, 9), section_id (7, 3, 7) | addresses : line_1 (\"0643 Muller Vista\", \"9283 Schulist Falls Apt. 037\", \"74046 Metz Walk Apt. 113\"), line_3 (None), line_2 (\"Suite 674\", \"Apt. 305\", \"Suite 079\"), country (\"Iceland\", \"Angola\", \"Croatia\"), other_address_details (None), zip_postcode (\"541\", \"590\", \"541\"), state_province_county (\"Hawaii\", \"Idaho\", \"Florida\"), address_id (1, 4, 8), city (\"Goodwinhaven\", \"Prohaskafort\", \"New Clemensburgh\") | Academic_History : other_details (None), transcript_id (11, 11, 13), transcript_date (\"1975-10-28 15:16:51\", \"2010-12-13 10:55:15\", \"2010-12-13 10:55:15\") | departments : department_id (9, 7, 13), department_name (\"dance\", \"biology\", \"drama\"), other_details (None), department_description (\"nostrum\", \"natus\", \"ea\")", + "schema_without_content": "student_enrolment_courses : student_course_id , student_enrolment_id , course_id | students : cell_mobile_number 919-3594x3661\", current_address_id , other_student_details , permanent_address_id , first_name , email_address , middle_name , last_name , date_first_registered , ssn , date_left , student_id | student_enrolment : other_details , degree_program_id , semester_id , student_enrolment_id , student_id | Grade_Report : other_details , transcript_id , transcript_date | courses : other_details , course_id , course_description , course_name | semesters : semester_name , semester_description , other_details , semester_id | transcript_contents : transcript_id , student_course_id | degree_programs : other_details , degree_program_id , department_id , degree_summary_description , degree_summary_name | sections : other_details , section_name , section_description , course_id , section_id | addresses : line_1 , line_3 , line_2 , country , other_address_details , zip_postcode , state_province_county , address_id , city | Academic_History : other_details , transcript_id , transcript_date | departments : department_id , department_name , other_details , department_description", + "extra_map": null, + "extra_table_map": { + "transcripts": [ + "Academic_History", + "Grade_Report" + ] + }, + "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" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id of the transcript": "Transcripts.transcript_id" + } + }, + { + "question": "what is the #date# and #id of the transcript# with the least number of results?", + "db_id": "student_transcripts_tracking", + "orig_query": "select t2.transcript_date, t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1", + "schema_with_content": "student_enrolment : other_details (None), student_enrolment_id (2, 1, 12), semester_id (13, 4, 1), student_id (12, 9, 6), degree_program_id (8, 10, 10) | departments : department_id (3, 6, 5), department_description (\"in\", \"error\", \"error\"), other_details (None), department_name (\"history\", \"statistics\", \"dance\") | degree_programs : other_details (None), degree_program_id (8, 13, 10), degree_summary_description (\"voluptas\", \"assumenda\", \"qui\"), department_id (7, 2, 3), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | semesters : semester_id (1, 15, 3), semester_description (\"y\", \"x\", \"o\"), semester_name (\"spring 2015\", \"spring 2013\", \"spring 2014\"), other_details (None) | Grades : student_course_id (45105806, 70882679, 70882679), transcript_id (4, 9, 8) | courses : course_id (4, 9, 14), course_name (\"db\", \"nlp\", \"la\"), other_details (None), course_description (\"b\", \"l\", \"q\") | addresses : line_2 (\"Apt. 388\", \"Apt. 335\", \"Apt. 583\"), line_1 (\"16998 Mraz Lodge\", \"979 Haag Shores Suite 656\", \"202 Hessel Views Apt. 468\"), line_3 (None), city (\"Prohaskafort\", \"Lake Laishafurt\", \"New Clemensburgh\"), address_id (9, 7, 2), other_address_details (None), country (\"New Caledonia\", \"Kyrgyz Republic\", \"Haiti\"), zip_postcode (\"638\", \"777\", \"895\"), state_province_county (\"Washington\", \"NorthCarolina\", \"Wyoming\") | transcripts : transcript_date (\"1999-01-06 20:06:46\", \"2013-06-30 13:01:40\", \"1984-12-19 00:37:21\"), transcript_id (9, 15, 3), other_details (None) | students : date_left (\"1997-11-16 08:54:33\", \"1982-06-11 00:25:39\", \"2016-04-09 12:27:04\"), last_name (\"Ward\", \"Kemmer\", \"Gleichner\"), email_address (\"beth42@example.org\", \"swift.kolby@example.com\", \"johns.unique@example.net\"), date_first_registered (\"1976-10-26 02:33:06\", \"1986-02-24 21:12:23\", \"1982-06-19 13:15:18\"), cell_mobile_number (\"(462)246-7921\", \"(462)246-7921\", \"171-642-5684\"), student_id (15, 2, 5), permanent_address_id (15, 8, 4), ssn (\"304246\", \"68095\", \"494\"), middle_name (\"Violet\", \"Mona\", \"Aisha\"), first_name (\"Frida\", \"Hobart\", \"Delaney\"), current_address_id (10, 1, 14), other_student_details (\"et\", \"qui\", \"facilis\") | student_enrolment_courses : student_enrolment_id (8, 10, 14), course_id (12, 4, 3), student_course_id (0, 70882679, 70882679) | sections : course_id (5, 14, 6), section_id (3, 13, 13), other_details (None), section_name (\"o\", \"k\", \"l\"), section_description (\"et\", \"provident\", \"et\") | Academic_Record : student_course_id (45105806, 70882679, 70882679), transcript_id (4, 9, 8)", + "schema_without_content": "student_enrolment : other_details , student_enrolment_id , semester_id , student_id , degree_program_id | departments : department_id , department_description , other_details , department_name | degree_programs : other_details , degree_program_id , degree_summary_description , department_id , degree_summary_name | semesters : semester_id , semester_description , semester_name , other_details | Grades : student_course_id , transcript_id | courses : course_id , course_name , other_details , course_description | addresses : line_2 , line_1 , line_3 , city , address_id , other_address_details , country , zip_postcode , state_province_county | transcripts : transcript_date , transcript_id , other_details | students : date_left , last_name , email_address , date_first_registered , cell_mobile_number 246-7921\", \"246-7921\", \"171-642-5684\", student_id , permanent_address_id , ssn , middle_name , first_name , current_address_id , other_student_details | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | sections : course_id , section_id , other_details , section_name , section_description | Academic_Record : student_course_id , transcript_id", + "extra_map": null, + "extra_table_map": { + "transcript_contents": [ + "Grades", + "Academic_Record" + ] + }, + "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" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "column_linking_gt": { + "date": "Transcripts.transcript_date", + "id of the transcript": "Transcripts.transcript_id" + } + }, + { + "question": "find the #semester# when both #master students# and #bachelor students# got #enrolled in# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Bachelor'", + "schema_with_content": "sections : section_id (5, 5, 3), course_id (5, 12, 4), section_description (\"nesciunt\", \"facilis\", \"ad\"), other_details (None), section_name (\"d\", \"u\", \"j\") | semesters : semester_id (6, 9, 2), semester_description (\"y\", \"l\", \"l\"), semester_name (\"spring 2010\", \"fall 2010\", \"fall 2018\"), other_details (None) | courses : course_id (4, 4, 8), course_description (\"c\", \"b\", \"w\"), other_details (None), course_name (\"cal\", \"ai\", \"la\") | addresses : line_2 (\"Apt. 406\", \"Apt. 583\", \"Suite 703\"), address_id (13, 10, 15), city (\"North Omer\", \"Port Evanston\", \"Lake Laishafurt\"), state_province_county (\"Hawaii\", \"Wyoming\", \"Hawaii\"), zip_postcode (\"777\", \"148\", \"895\"), line_3 (None), line_1 (\"3999 Aufderhar Ways Suite 593\", \"0144 Lamar Plaza Apt. 346\", \"186 Evan Motorway Apt. 409\"), other_address_details (None), country (\"Haiti\", \"Iceland\", \"Gibraltar\") | Academic_Programs : department_id (12, 14, 15), degree_program_id (5, 1, 8), other_details (None), degree_summary_description (\"architecto\", \"cumque\", \"architecto\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | transcript_contents : transcript_id (4, 4, 9), student_course_id (7, 96, 0) | Majors : department_id (12, 14, 15), degree_program_id (5, 1, 8), other_details (None), degree_summary_description (\"architecto\", \"cumque\", \"architecto\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | student_enrolment : semester_id (15, 13, 9), student_id (1, 5, 4), other_details (None), student_enrolment_id (8, 12, 5), degree_program_id (9, 8, 9) | students : cell_mobile_number (\"07661787471\", \"03174364122\", \"436.613.7683\"), current_address_id (15, 15, 10), permanent_address_id (8, 11, 3), last_name (\"Carroll\", \"Ward\", \"Christiansen\"), date_first_registered (\"2014-03-28 05:48:23\", \"2018-03-13 09:56:22\", \"2005-12-15 08:42:10\"), date_left (\"2007-11-28 12:50:21\", \"2007-11-28 12:50:21\", \"2014-05-30 23:32:02\"), other_student_details (\"laborum\", \"omnis\", \"facilis\"), student_id (13, 8, 2), first_name (\"Jarvis\", \"Hobart\", \"Hobart\"), ssn (\"68095\", \"965\", \"43\"), email_address (\"erwin.zboncak@example.com\", \"lhartmann@example.org\", \"gracie29@example.com\"), middle_name (\"Mossie\", \"Mona\", \"Aaliyah\") | student_enrolment_courses : student_enrolment_id (10, 9, 8), student_course_id (0, 45105806, 604750), course_id (4, 2, 2) | transcripts : transcript_id (4, 15, 7), transcript_date (\"2010-12-13 10:55:15\", \"1984-01-18 23:07:07\", \"1986-07-12 07:27:29\"), other_details (None) | departments : department_id (6, 8, 10), department_description (\"error\", \"error\", \"doloribus\"), department_name (\"law\", \"economics\", \"medical\"), other_details (None)", + "schema_without_content": "sections : section_id , course_id , section_description , other_details , section_name | semesters : semester_id , semester_description , semester_name , other_details | courses : course_id , course_description , other_details , course_name | addresses : line_2 , address_id , city , state_province_county , zip_postcode , line_3 , line_1 , other_address_details , country | Academic_Programs : department_id , degree_program_id , other_details , degree_summary_description , degree_summary_name | transcript_contents : transcript_id , student_course_id | Majors : department_id , degree_program_id , other_details , degree_summary_description , degree_summary_name | student_enrolment : semester_id , student_id , other_details , student_enrolment_id , degree_program_id | students : cell_mobile_number , current_address_id , permanent_address_id , last_name , date_first_registered , date_left , other_student_details , student_id , first_name , ssn , email_address , middle_name | student_enrolment_courses : student_enrolment_id , student_course_id , course_id | transcripts : transcript_id , transcript_date , other_details | departments : department_id , department_description , department_name , other_details", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "semester": "Semesters.semester_id", + "Master students": "Degree_Programs.degree_summary_name", + "Bachelor students": "Degree_Programs.degree_summary_name", + "enrolled in": "Student_Enrolment" + } + }, + { + "question": "find the #semester# when both #master students# and #bachelor students# got #enrolled in# .", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Bachelor'", + "schema_with_content": "courses : course_id (7, 11, 13), course_name (\"fr\", \"ai\", \"os\"), course_description (\"w\", \"p\", \"k\"), other_details (None) | Student_Registration : degree_program_id (9, 3, 10), student_id (9, 9, 14), semester_id (2, 9, 6), other_details (None), student_enrolment_id (14, 3, 6) | transcripts : other_details (None), transcript_date (\"1975-05-06 12:04:47\", \"2002-09-24 06:11:49\", \"1985-04-29 01:20:20\"), transcript_id (15, 12, 11) | sections : section_description (\"et\", \"voluptas\", \"provident\"), course_id (9, 14, 9), section_name (\"o\", \"j\", \"d\"), other_details (None), section_id (9, 3, 3) | students : permanent_address_id (5, 4, 4), current_address_id (2, 14, 7), email_address (\"dell43@example.net\", \"erwin.zboncak@example.com\", \"lhartmann@example.org\"), middle_name (\"Neal\", \"Vaughn\", \"Golda\"), date_left (\"2006-08-04 17:26:49\", \"1990-09-01 05:03:27\", \"1982-06-11 00:25:39\"), last_name (\"Rempel\", \"Ward\", \"Kemmer\"), cell_mobile_number (\"(507)365-8405\", \"09700166582\", \"(096)889-8954x524\"), other_student_details (\"facilis\", \"rerum\", \"dolorum\"), student_id (8, 9, 5), first_name (\"Frida\", \"Hobart\", \"Jett\"), ssn (\"34458427\", \"156\", \"\"), date_first_registered (\"1982-06-19 13:15:18\", \"2014-03-28 05:48:23\", \"1997-03-20 16:47:25\") | degree_programs : degree_summary_description (\"qui\", \"qui\", \"unde\"), department_id (2, 15, 11), degree_program_id (8, 5, 8), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | transcript_contents : student_course_id (76, 76, 70882679), transcript_id (8, 5, 9) | addresses : line_2 (\"Suite 079\", \"Apt. 406\", \"Suite 703\"), zip_postcode (\"638\", \"839\", \"068\"), state_province_county (\"Delaware\", \"Florida\", \"WestVirginia\"), city (\"Port Elvisfurt\", \"South Palma\", \"Goodwinhaven\"), line_1 (\"202 Hessel Views Apt. 468\", \"16998 Mraz Lodge\", \"0643 Muller Vista\"), country (\"Norfolk Island\", \"Bermuda\", \"Gibraltar\"), address_id (8, 6, 15), line_3 (None), other_address_details (None) | departments : department_name (\"economics\", \"law\", \"math\"), department_description (\"nisi\", \"consequatur\", \"nihil\"), department_id (5, 6, 7), other_details (None) | student_enrolment_courses : student_course_id (1, 45105806, 45105806), course_id (14, 2, 12), student_enrolment_id (4, 9, 9) | semesters : semester_name (\"winter 2010\", \"spring 2010\", \"fall 2010\"), semester_id (10, 5, 11), other_details (None), semester_description (\"f\", \"f\", \"l\") | Enrolment_Tracking : degree_program_id (9, 3, 10), student_id (9, 9, 14), semester_id (2, 9, 6), other_details (None), student_enrolment_id (14, 3, 6)", + "schema_without_content": "courses : course_id , course_name , course_description , other_details | Student_Registration : degree_program_id , student_id , semester_id , other_details , student_enrolment_id | transcripts : other_details , transcript_date , transcript_id | sections : section_description , course_id , section_name , other_details , section_id | students : permanent_address_id , current_address_id , email_address , middle_name , date_left , last_name , cell_mobile_number 365-8405\", \"09700166582\", \"889-8954x524\", other_student_details , student_id , first_name , ssn , date_first_registered | degree_programs : degree_summary_description , department_id , degree_program_id , other_details , degree_summary_name | transcript_contents : student_course_id , transcript_id | addresses : line_2 , zip_postcode , state_province_county , city , line_1 , country , address_id , line_3 , other_address_details | departments : department_name , department_description , department_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | semesters : semester_name , semester_id , other_details , semester_description | Enrolment_Tracking : degree_program_id , student_id , semester_id , other_details , student_enrolment_id", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "semester": "Semesters.semester_id", + "Master students": "Degree_Programs.degree_summary_name", + "Bachelor students": "Degree_Programs.degree_summary_name", + "enrolled in": "Student_Enrolment" + } + }, + { + "question": "what is the #id of the semester# that had both #masters# and #bachelors students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Bachelor'", + "schema_with_content": "transcripts : other_details (None), transcript_date (\"1998-11-22 12:18:29\", \"1998-11-22 12:18:29\", \"2002-09-24 06:11:49\"), transcript_id (14, 11, 4) | students : ssn (\"402\", \"141072406\", \"965\"), last_name (\"Huel\", \"Rempel\", \"Rempel\"), current_address_id (1, 1, 7), cell_mobile_number (\"(096)889-8954x524\", \"677.401.9382\", \"(213)445-0399x85208\"), other_student_details (\"dolorum\", \"et\", \"omnis\"), date_first_registered (\"1986-02-24 21:12:23\", \"2009-09-25 00:14:25\", \"1997-03-20 16:47:25\"), student_id (2, 8, 15), middle_name (\"Golda\", \"Aaliyah\", \"Golda\"), date_left (\"2007-03-31 09:53:19\", \"2007-11-28 12:50:21\", \"2007-11-28 12:50:21\"), permanent_address_id (4, 15, 14), email_address (\"johns.unique@example.net\", \"nbruen@example.org\", \"skassulke@example.net\"), first_name (\"Deon\", \"Reva\", \"Timmothy\") | transcript_contents : transcript_id (12, 6, 4), student_course_id (70882679, 0, 8) | semesters : other_details (None), semester_id (1, 15, 3), semester_name (\"spring 2013\", \"spring 2016\", \"winter 2010\"), semester_description (\"q\", \"x\", \"m\") | Academic_Programs : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (1, 4, 13), department_id (11, 2, 2), degree_summary_description (\"placeat\", \"officiis\", \"qui\") | student_enrolment : student_enrolment_id (3, 1, 2), semester_id (2, 4, 15), other_details (None), student_id (12, 9, 14), degree_program_id (12, 10, 2) | student_enrolment_courses : course_id (10, 6, 14), student_enrolment_id (10, 6, 2), student_course_id (681404, 96, 604750) | addresses : zip_postcode (\"847\", \"068\", \"638\"), line_2 (\"Suite 703\", \"Suite 383\", \"Suite 383\"), line_3 (None), state_province_county (\"Kentucky\", \"Washington\", \"Virginia\"), country (\"Bermuda\", \"Kyrgyz Republic\", \"Cook Islands\"), other_address_details (None), address_id (14, 11, 15), city (\"North Omer\", \"South Palma\", \"New Clemensburgh\"), line_1 (\"0643 Muller Vista\", \"7081 Eda Center\", \"193 Marlin Brook\") | sections : section_description (\"ex\", \"voluptas\", \"quis\"), section_id (4, 5, 1), section_name (\"d\", \"y\", \"d\"), course_id (10, 8, 9), other_details (None) | courses : course_name (\"os\", \"oop\", \"dl\"), course_id (12, 10, 2), other_details (None), course_description (\"c\", \"l\", \"d\") | departments : department_description (\"natus\", \"error\", \"in\"), department_id (14, 4, 3), department_name (\"economics\", \"medical\", \"statistics\"), other_details (None) | Majors : degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), degree_program_id (1, 4, 13), department_id (11, 2, 2), degree_summary_description (\"placeat\", \"officiis\", \"qui\")", + "schema_without_content": "transcripts : other_details , transcript_date , transcript_id | students : ssn , last_name , current_address_id , cell_mobile_number 889-8954x524\", \"677.401.9382\", \"445-0399x85208\", other_student_details , date_first_registered , student_id , middle_name , date_left , permanent_address_id , email_address , first_name | transcript_contents : transcript_id , student_course_id | semesters : other_details , semester_id , semester_name , semester_description | Academic_Programs : degree_summary_name , other_details , degree_program_id , department_id , degree_summary_description | student_enrolment : student_enrolment_id , semester_id , other_details , student_id , degree_program_id | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | addresses : zip_postcode , line_2 , line_3 , state_province_county , country , other_address_details , address_id , city , line_1 | sections : section_description , section_id , section_name , course_id , other_details | courses : course_name , course_id , other_details , course_description | departments : department_description , department_id , department_name , other_details | Majors : degree_summary_name , other_details , degree_program_id , department_id , degree_summary_description", + "extra_map": null, + "extra_table_map": { + "degree_programs": [ + "Majors", + "Academic_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" + ], + "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" + ] + }, + "column_linking_gt": { + "id of the semester": "Semesters.semester_id", + "Masters": "Degree_Programs.degree_summary_name", + "Bachelors students enrolled": "Degree_Programs.degree_summary_name" + } + }, + { + "question": "what is the #id of the semester# that had both #masters# and #bachelors students enrolled# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'Bachelor'", + "schema_with_content": "addresses : city (\"South Palma\", \"Port Oceane\", \"Port Chelsea\"), address_id (10, 11, 10), zip_postcode (\"590\", \"777\", \"386\"), line_3 (None), country (\"Burundi\", \"Cook Islands\", \"Angola\"), state_province_county (\"Delaware\", \"Wyoming\", \"Kansas\"), line_1 (\"979 Haag Shores Suite 656\", \"492 Wilkinson Route\", \"2294 Grant Square Apt. 235\"), other_address_details (None), line_2 (\"Apt. 335\", \"Apt. 689\", \"Suite 703\") | departments : other_details (None), department_description (\"doloribus\", \"ea\", \"natus\"), department_name (\"engineer\", \"history\", \"art\"), department_id (12, 4, 4) | courses : course_id (6, 10, 9), course_description (\"q\", \"b\", \"q\"), other_details (None), course_name (\"nlp\", \"ds\", \"os\") | Enrolment_Tracking : other_details (None), student_id (6, 9, 7), student_enrolment_id (12, 1, 10), degree_program_id (8, 9, 3), semester_id (2, 12, 13) | transcript_contents : transcript_id (11, 4, 8), student_course_id (76, 28982908, 8) | sections : section_id (11, 7, 6), section_name (\"j\", \"k\", \"k\"), course_id (9, 2, 14), other_details (None), section_description (\"voluptas\", \"ex\", \"quis\") | degree_programs : department_id (2, 2, 3), degree_summary_description (\"quam\", \"unde\", \"et\"), other_details (None), degree_program_id (10, 7, 13), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\") | semesters : semester_id (4, 2, 10), other_details (None), semester_description (\"c\", \"g\", \"q\"), semester_name (\"fall 2018\", \"spring 2014\", \"fall 2010\") | Student_Registration : other_details (None), student_id (6, 9, 7), student_enrolment_id (12, 1, 10), degree_program_id (8, 9, 3), semester_id (2, 12, 13) | students : permanent_address_id (3, 11, 14), last_name (\"Mohr\", \"Huel\", \"Kemmer\"), ssn (\"668\", \"34458427\", \"304246\"), first_name (\"Helga\", \"Jett\", \"Orrin\"), other_student_details (\"facilis\", \"quia\", \"atque\"), date_left (\"2004-12-08 05:29:11\", \"2016-04-09 12:27:04\", \"1997-11-16 08:54:33\"), middle_name (\"Violet\", \"Cleve\", \"Cleve\"), cell_mobile_number (\"171-642-5684\", \"(213)445-0399x85208\", \"07661787471\"), date_first_registered (\"1997-03-20 16:47:25\", \"2004-12-24 12:36:46\", \"2014-03-28 05:48:23\"), student_id (13, 10, 14), current_address_id (2, 6, 14), email_address (\"erwin.zboncak@example.com\", \"jhuel@example.com\", \"gracie29@example.com\") | student_enrolment_courses : student_course_id (0, 438800, 96), course_id (11, 6, 12), student_enrolment_id (14, 5, 10) | transcripts : transcript_id (9, 3, 4), other_details (None), transcript_date (\"1985-04-29 01:20:20\", \"2002-09-24 06:11:49\", \"1985-04-29 01:20:20\")", + "schema_without_content": "addresses : city , address_id , zip_postcode , line_3 , country , state_province_county , line_1 , other_address_details , line_2 | departments : other_details , department_description , department_name , department_id | courses : course_id , course_description , other_details , course_name | Enrolment_Tracking : other_details , student_id , student_enrolment_id , degree_program_id , semester_id | transcript_contents : transcript_id , student_course_id | sections : section_id , section_name , course_id , other_details , section_description | degree_programs : department_id , degree_summary_description , other_details , degree_program_id , degree_summary_name | semesters : semester_id , other_details , semester_description , semester_name | Student_Registration : other_details , student_id , student_enrolment_id , degree_program_id , semester_id | students : permanent_address_id , last_name , ssn , first_name , other_student_details , date_left , middle_name , cell_mobile_number 445-0399x85208\", \"07661787471\", date_first_registered , student_id , current_address_id , email_address | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcripts : transcript_id , other_details , transcript_date", + "extra_map": null, + "extra_table_map": { + "student_enrolment": [ + "Student_Registration", + "Enrolment_Tracking" + ] + }, + "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_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" + ] + }, + "column_linking_gt": { + "id of the semester": "Semesters.semester_id", + "Masters": "Degree_Programs.degree_summary_name", + "Bachelors students enrolled": "Degree_Programs.degree_summary_name" + } + }, + { + "question": "list all the #student details# in reversed lexicographical order.", + "db_id": "student_transcripts_tracking", + "orig_query": "select other_student_details from students order by other_student_details desc", + "schema_with_content": "transcript_contents : transcript_id (9, 9, 2), student_course_id (0, 45105806, 8) | Learners : cell_mobile_number (\"171-642-5684\", \"(462)246-7921\", \"07661787471\"), date_first_registered (\"1982-02-14 08:46:35\", \"2007-08-29 23:25:41\", \"1997-03-20 16:47:25\"), student_id (5, 9, 6), date_left (\"1982-06-11 00:25:39\", \"1999-08-24 00:07:10\", \"2004-12-08 05:29:11\"), last_name (\"Balistreri\", \"Osinski\", \"Ward\"), middle_name (\"Brooklyn\", \"Lorenz\", \"Cleve\"), current_address_id (15, 14, 1), first_name (\"Hobart\", \"Reva\", \"Jarvis\"), ssn (\"68095\", \"34458427\", \"304246\"), email_address (\"dell43@example.net\", \"nbruen@example.org\", \"lhartmann@example.org\"), permanent_address_id (5, 9, 15), other_student_details (\"non\", \"facilis\", \"qui\") | semesters : other_details (None), semester_id (7, 9, 3), semester_name (\"spring 2019\", \"spring 2015\", \"spring 2013\"), semester_description (\"l\", \"t\", \"o\") | degree_programs : degree_summary_description (\"assumenda\", \"quam\", \"quam\"), degree_program_id (8, 4, 15), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), other_details (None), department_id (13, 14, 3) | student_enrolment : degree_program_id (4, 3, 11), student_enrolment_id (10, 2, 3), semester_id (1, 13, 15), other_details (None), student_id (9, 9, 9) | departments : other_details (None), department_id (9, 1, 11), department_description (\"nihil\", \"error\", \"doloribus\"), department_name (\"computer science\", \"art\", \"computer science\") | courses : course_name (\"rs\", \"oop\", \"pl\"), course_description (\"l\", \"l\", \"v\"), course_id (4, 7, 2), other_details (None) | student_enrolment_courses : course_id (8, 3, 8), student_enrolment_id (13, 14, 14), student_course_id (45105806, 96, 2) | transcripts : transcript_id (12, 14, 5), other_details (None), transcript_date (\"2010-12-13 10:55:15\", \"2013-06-30 13:01:40\", \"1986-07-12 07:27:29\") | sections : section_id (7, 4, 8), other_details (None), course_id (6, 6, 6), section_description (\"voluptas\", \"non\", \"nesciunt\"), section_name (\"h\", \"l\", \"f\") | addresses : line_1 (\"7081 Eda Center\", \"16998 Mraz Lodge\", \"0144 Lamar Plaza Apt. 346\"), city (\"Mariliehaven\", \"Port Chelsea\", \"Michelleburgh\"), country (\"Norfolk Island\", \"New Caledonia\", \"Gabon\"), other_address_details (None), line_2 (\"Apt. 335\", \"Apt. 468\", \"Apt. 335\"), line_3 (None), state_province_county (\"Kansas\", \"Virginia\", \"Idaho\"), address_id (13, 3, 14), zip_postcode (\"777\", \"777\", \"590\") | Pupils : cell_mobile_number (\"171-642-5684\", \"(462)246-7921\", \"07661787471\"), date_first_registered (\"1982-02-14 08:46:35\", \"2007-08-29 23:25:41\", \"1997-03-20 16:47:25\"), student_id (5, 9, 6), date_left (\"1982-06-11 00:25:39\", \"1999-08-24 00:07:10\", \"2004-12-08 05:29:11\"), last_name (\"Balistreri\", \"Osinski\", \"Ward\"), middle_name (\"Brooklyn\", \"Lorenz\", \"Cleve\"), current_address_id (15, 14, 1), first_name (\"Hobart\", \"Reva\", \"Jarvis\"), ssn (\"68095\", \"34458427\", \"304246\"), email_address (\"dell43@example.net\", \"nbruen@example.org\", \"lhartmann@example.org\"), permanent_address_id (5, 9, 15), other_student_details (\"non\", \"facilis\", \"qui\")", + "schema_without_content": "transcript_contents : transcript_id , student_course_id | Learners : cell_mobile_number 246-7921\", \"07661787471\", date_first_registered , student_id , date_left , last_name , middle_name , current_address_id , first_name , ssn , email_address , permanent_address_id , other_student_details | semesters : other_details , semester_id , semester_name , semester_description | degree_programs : degree_summary_description , degree_program_id , degree_summary_name , other_details , department_id | student_enrolment : degree_program_id , student_enrolment_id , semester_id , other_details , student_id | departments : other_details , department_id , department_description , department_name | courses : course_name , course_description , course_id , other_details | student_enrolment_courses : course_id , student_enrolment_id , student_course_id | transcripts : transcript_id , other_details , transcript_date | sections : section_id , other_details , course_id , section_description , section_name | addresses : line_1 , city , country , other_address_details , line_2 , line_3 , state_province_county , address_id , zip_postcode | Pupils : cell_mobile_number 246-7921\", \"07661787471\", date_first_registered , student_id , date_left , last_name , middle_name , current_address_id , first_name , ssn , email_address , permanent_address_id , other_student_details", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "student details": "Students.other_student_details" + } + }, + { + "question": "what #other details# can you tell me about #students# in reverse alphabetical order?", + "db_id": "student_transcripts_tracking", + "orig_query": "select other_student_details from students order by other_student_details desc", + "schema_with_content": "departments : other_details (None), department_description (\"dolorem\", \"ea\", \"consequatur\"), department_name (\"computer science\", \"geography\", \"computer science\"), department_id (9, 3, 12) | sections : section_id (9, 12, 1), section_description (\"provident\", \"voluptas\", \"doloremque\"), course_id (1, 1, 12), section_name (\"o\", \"p\", \"d\"), other_details (None) | transcripts : transcript_date (\"1988-04-30 01:19:47\", \"1975-10-28 15:16:51\", \"1985-08-21 09:32:39\"), transcript_id (6, 11, 14), other_details (None) | Pupils : last_name (\"Kemmer\", \"Ward\", \"Carroll\"), student_id (15, 10, 13), first_name (\"Deon\", \"Jarvis\", \"Hobart\"), cell_mobile_number (\"171-642-5684\", \"436.613.7683\", \"(507)365-8405\"), middle_name (\"Neal\", \"Violet\", \"Cleve\"), permanent_address_id (8, 14, 5), date_first_registered (\"1973-05-19 19:12:46\", \"1976-10-26 02:33:06\", \"2014-03-28 05:48:23\"), current_address_id (15, 1, 6), date_left (\"2013-10-05 17:41:28\", \"2007-11-28 12:50:21\", \"2013-10-05 17:41:28\"), other_student_details (\"et\", \"facilis\", \"non\"), ssn (\"304246\", \"402\", \"156\"), email_address (\"beth42@example.org\", \"swift.kolby@example.com\", \"baumbach.lucious@example.org\") | degree_programs : degree_summary_description (\"earum\", \"voluptas\", \"assumenda\"), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), department_id (4, 11, 12), degree_program_id (9, 6, 10), other_details (None) | courses : other_details (None), course_name (\"nlp\", \"rs\", \"ds\"), course_id (14, 14, 2), course_description (\"n\", \"q\", \"c\") | semesters : semester_id (2, 8, 12), semester_description (\"t\", \"t\", \"o\"), semester_name (\"spring 2012\", \"spring 2017\", \"summer 2010\"), other_details (None) | student_enrolment_courses : student_course_id (438800, 83814225, 1), student_enrolment_id (10, 2, 2), course_id (4, 12, 4) | student_enrolment : student_enrolment_id (14, 14, 5), other_details (None), student_id (9, 4, 14), degree_program_id (8, 5, 2), semester_id (13, 6, 15) | addresses : other_address_details (None), state_province_county (\"Florida\", \"Arkansas\", \"Arkansas\"), country (\"Croatia\", \"Croatia\", \"Gabon\"), line_1 (\"202 Hessel Views Apt. 468\", \"858 Peggie Bypass Suite 212\", \"7081 Eda Center\"), line_2 (\"Suite 383\", \"Apt. 305\", \"Apt. 583\"), address_id (2, 1, 5), city (\"Prohaskafort\", \"Herzoghaven\", \"Prohaskafort\"), zip_postcode (\"669\", \"400\", \"902\"), line_3 (None) | transcript_contents : student_course_id (28982908, 45105806, 28982908), transcript_id (5, 5, 13) | Learners : last_name (\"Kemmer\", \"Ward\", \"Carroll\"), student_id (15, 10, 13), first_name (\"Deon\", \"Jarvis\", \"Hobart\"), cell_mobile_number (\"171-642-5684\", \"436.613.7683\", \"(507)365-8405\"), middle_name (\"Neal\", \"Violet\", \"Cleve\"), permanent_address_id (8, 14, 5), date_first_registered (\"1973-05-19 19:12:46\", \"1976-10-26 02:33:06\", \"2014-03-28 05:48:23\"), current_address_id (15, 1, 6), date_left (\"2013-10-05 17:41:28\", \"2007-11-28 12:50:21\", \"2013-10-05 17:41:28\"), other_student_details (\"et\", \"facilis\", \"non\"), ssn (\"304246\", \"402\", \"156\"), email_address (\"beth42@example.org\", \"swift.kolby@example.com\", \"baumbach.lucious@example.org\")", + "schema_without_content": "departments : other_details , department_description , department_name , department_id | sections : section_id , section_description , course_id , section_name , other_details | transcripts : transcript_date , transcript_id , other_details | Pupils : last_name , student_id , first_name , cell_mobile_number 365-8405\", middle_name , permanent_address_id , date_first_registered , current_address_id , date_left , other_student_details , ssn , email_address | degree_programs : degree_summary_description , degree_summary_name , department_id , degree_program_id , other_details | courses : other_details , course_name , course_id , course_description | semesters : semester_id , semester_description , semester_name , other_details | student_enrolment_courses : student_course_id , student_enrolment_id , course_id | student_enrolment : student_enrolment_id , other_details , student_id , degree_program_id , semester_id | addresses : other_address_details , state_province_county , country , line_1 , line_2 , address_id , city , zip_postcode , line_3 | transcript_contents : student_course_id , transcript_id | Learners : last_name , student_id , first_name , cell_mobile_number 365-8405\", middle_name , permanent_address_id , date_first_registered , current_address_id , date_left , other_student_details , ssn , email_address", + "extra_map": null, + "extra_table_map": { + "students": [ + "Learners", + "Pupils" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "other details": "Students.other_student_details", + "students": "Students" + } + }, + { + "question": "what is the #description for the section named h# ?", + "db_id": "student_transcripts_tracking", + "orig_query": "select section_description from sections where section_name = 'h'", + "schema_with_content": "Classes : section_id (6, 1, 9), other_details (None), section_name (\"b\", \"o\", \"d\"), section_description (\"et\", \"voluptas\", \"doloremque\"), course_id (2, 9, 7) | Sessions : section_id (6, 1, 9), other_details (None), section_name (\"b\", \"o\", \"d\"), section_description (\"et\", \"voluptas\", \"doloremque\"), course_id (2, 9, 7) | student_enrolment_courses : student_enrolment_id (4, 13, 8), course_id (12, 6, 3), student_course_id (96, 83814225, 0) | transcript_contents : transcript_id (9, 15, 5), student_course_id (7, 76, 45105806) | courses : other_details (None), course_description (\"n\", \"l\", \"c\"), course_name (\"db\", \"nlp\", \"db\"), course_id (5, 13, 8) | transcripts : transcript_date (\"1990-03-05 11:59:41\", \"1975-05-20 18:31:21\", \"2010-12-13 10:55:15\"), transcript_id (13, 9, 9), other_details (None) | addresses : state_province_county (\"Idaho\", \"Washington\", \"Wyoming\"), city (\"Prohaskafort\", \"Lake Careyberg\", \"Rutherfordtown\"), line_3 (None), country (\"Bermuda\", \"Gabon\", \"Cook Islands\"), zip_postcode (\"590\", \"148\", \"400\"), line_1 (\"186 Evan Motorway Apt. 409\", \"0144 Lamar Plaza Apt. 346\", \"3999 Aufderhar Ways Suite 593\"), line_2 (\"Apt. 689\", \"Apt. 583\", \"Suite 239\"), address_id (15, 6, 10), other_address_details (None) | degree_programs : degree_summary_description (\"officiis\", \"aut\", \"aut\"), other_details (None), degree_summary_name (\"Master\", \"Bachelor\", \"PHD\"), degree_program_id (7, 7, 2), department_id (13, 7, 7) | students : other_student_details (\"et\", \"rerum\", \"voluptatem\"), date_left (\"2014-05-30 23:32:02\", \"2017-07-09 21:38:43\", \"2007-11-28 12:50:21\"), email_address (\"beth42@example.org\", \"lhartmann@example.org\", \"erwin.zboncak@example.com\"), date_first_registered (\"1982-02-14 08:46:35\", \"1982-02-14 08:46:35\", \"2014-03-28 05:48:23\"), current_address_id (1, 1, 12), last_name (\"Balistreri\", \"Rogahn\", \"Huel\"), student_id (5, 7, 15), permanent_address_id (9, 14, 5), cell_mobile_number (\"1-009-710-5151\", \"(605)919-3594x3661\", \"1-009-710-5151\"), first_name (\"Timmothy\", \"Reva\", \"Helga\"), middle_name (\"Cleve\", \"Aaliyah\", \"Judd\"), ssn (\"494\", \"965\", \"494\") | semesters : semester_id (12, 3, 13), semester_name (\"summer 2010\", \"winter 2018\", \"spring 2016\"), semester_description (\"o\", \"w\", \"o\"), other_details (None) | departments : department_description (\"natus\", \"non\", \"aliquam\"), department_id (8, 3, 10), department_name (\"management\", \"management\", \"history\"), other_details (None) | student_enrolment : degree_program_id (11, 12, 4), semester_id (2, 15, 12), student_id (14, 6, 14), other_details (None), student_enrolment_id (7, 6, 5)", + "schema_without_content": "Classes : section_id , other_details , section_name , section_description , course_id | Sessions : section_id , other_details , section_name , section_description , course_id | student_enrolment_courses : student_enrolment_id , course_id , student_course_id | transcript_contents : transcript_id , student_course_id | courses : other_details , course_description , course_name , course_id | transcripts : transcript_date , transcript_id , other_details | addresses : state_province_county , city , line_3 , country , zip_postcode , line_1 , line_2 , address_id , other_address_details | degree_programs : degree_summary_description , other_details , degree_summary_name , degree_program_id , department_id | students : other_student_details , date_left , email_address , date_first_registered , current_address_id , last_name , student_id , permanent_address_id , cell_mobile_number 919-3594x3661\", \"1-009-710-5151\", first_name , middle_name , ssn | semesters : semester_id , semester_name , semester_description , other_details | departments : department_description , department_id , department_name , other_details | student_enrolment : degree_program_id , semester_id , student_id , other_details , student_enrolment_id", + "extra_map": null, + "extra_table_map": { + "sections": [ + "Classes", + "Sessions" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description for the section named h": "Sections.section_description" + } + }, + { + "question": "list the #title of all cartoons# in alphabetical order.", + "db_id": "tvshow", + "orig_query": "select title from cartoon order by title", + "schema_with_content": "tv_channel : package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia\"), id (\"701\", \"705\", \"706\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), language (\"Italian\", \"English\"), series_name (\"Sky Music\", \"Music Box Italia\", \"MTV Rocks\"), pay_per_view_ppv (\"no\") | animated_series : production_code (102.0, 112.0, 110.0), original_air_date (\"December5,2008\", \"January23,2009\", \"February6,2009\"), channel (\"728\", \"707\", \"708\"), id (10.0, 2.0, 8.0), title (\"Evil Under the Sea!\", \"Dawn of the Dead Man!\", \"Day of the Dark Knight!\"), written_by (\"Michael Jelenic\", \"James Krieg\", \"Steven Melching\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | toons : production_code (102.0, 112.0, 110.0), original_air_date (\"December5,2008\", \"January23,2009\", \"February6,2009\"), channel (\"728\", \"707\", \"708\"), id (10.0, 2.0, 8.0), title (\"Evil Under the Sea!\", \"Dawn of the Dead Man!\", \"Day of the Dark Knight!\"), written_by (\"Michael Jelenic\", \"James Krieg\", \"Steven Melching\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | tv_series : weekly_rank (68.0, 61.0, 71.0), rating (\"5.3\", \"4.0\", \"3.0\"), air_date (\"October 15, 2007\", \"October 22, 2007\", \"October 29, 2007\"), viewers_m (\"9.16\", \"6.06\", \"6.05\"), episode (\"Keepers\", \"Emily\", \"Friendly Skies\"), channel (\"713\", \"701\", \"701\"), id (1.0, 12.0, 2.0), 18_49_rating_share (\"3.2/8\", \"2.7/7\", \"3.2/8\"), share (6.0, 9.0, 6.0)", + "schema_without_content": "tv_channel : package_option , id , hight_definition_tv , pixel_aspect_ratio_par , country , content , language , series_name , pay_per_view_ppv | animated_series : production_code , original_air_date , channel , id , title , written_by , directed_by | toons : production_code , original_air_date , channel , id , title , written_by , directed_by | tv_series : weekly_rank , rating , air_date , viewers_m , episode , channel , id , 18_49_rating_share , share", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "title of all cartoons": "Cartoon.Title" + } + }, + { + "question": "what are the #titles of the cartoons# sorted alphabetically?", + "db_id": "tvshow", + "orig_query": "select title from cartoon order by title", + "schema_with_content": "tv_channel : series_name (\"Sky Radio\", \"Sky Radio\", \"Radio Capital TiV\u00c3\u00b9\"), package_option (\"no ( FTV )\", \"Option\", \"Sky Famiglia + Sky HD\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), id (\"719\", \"701\", \"728\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | tv_series : share (7.0, 6.0, 6.0), air_date (\"October 15, 2007\", \"November 26, 2007\", \"November 19, 2007\"), weekly_rank (80.0, 66.0, 61.0), viewers_m (\"5.75\", \"6.94\", \"6.05\"), channel (\"713\", \"717\", \"719\"), 18_49_rating_share (\"3.2/8\", \"1.7/5\", \"1.5/4\"), rating (\"3.4\", \"3.5\", \"4.3\"), id (12.0, 4.0, 12.0), episode (\"A Love of a Lifetime\", \"The Hanged Man\", \"Emily\") | animated_series : title (\"The Rise of the Blue Beetle!\", \"Return of the Fearsome Fangs!\", \"Enter the Outsiders!\"), original_air_date (\"December5,2008\", \"December12,2008\", \"February27,2009\"), channel (\"704\", \"708\", \"703\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (5.0, 10.0, 4.0), production_code (101.0, 110.0, 103.0), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"James Krieg\") | toons : title (\"The Rise of the Blue Beetle!\", \"Return of the Fearsome Fangs!\", \"Enter the Outsiders!\"), original_air_date (\"December5,2008\", \"December12,2008\", \"February27,2009\"), channel (\"704\", \"708\", \"703\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (5.0, 10.0, 4.0), production_code (101.0, 110.0, 103.0), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"James Krieg\")", + "schema_without_content": "tv_channel : series_name , package_option \", \"Option\", \"Sky Famiglia + Sky HD\", content , hight_definition_tv , pay_per_view_ppv , pixel_aspect_ratio_par , language , id , country | tv_series : share , air_date , weekly_rank , viewers_m , channel , 18_49_rating_share , rating , id , episode | animated_series : title , original_air_date , channel , directed_by , id , production_code , written_by | toons : title , original_air_date , channel , directed_by , id , production_code , written_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "titles of the cartoons": "Cartoon.Title" + } + }, + { + "question": "list all #cartoon directed by# \"ben jones\".", + "db_id": "tvshow", + "orig_query": "select title from cartoon where directed_by = \"Ben Jones\"", + "schema_with_content": "tv_series : 18_49_rating_share (\"1.7/5\", \"3.2/8\", \"2.1/5\"), rating (\"3.7\", \"3.7\", \"5.8\"), weekly_rank (72.0, 72.0, 68.0), id (4.0, 6.0, 4.0), viewers_m (\"5.28\", \"6.94\", \"6.94\"), share (5.0, 9.0, 7.0), channel (\"707\", \"719\", \"717\"), air_date (\"September 24, 2007\", \"October 22, 2007\", \"November 5, 2007\"), episode (\"A Love of a Lifetime\", \"The Hanged Man\", \"Winterland\") | toons : production_code (107.0, 106.0, 108.0), original_air_date (\"January23,2009\", \"February6,2009\", \"February27,2009\"), title (\"Deep Cover for Batman!\", \"Journey to the Center of the Bat!\", \"Day of the Dark Knight!\"), id (2.0, 1.0, 6.0), channel (\"700\", \"706\", \"706\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Steven Melching\", \"Matt Wayne\", \"Matt Wayne\") | tv_channel : hight_definition_tv (\"no\", \"yes\"), content (\"music\"), id (\"713\", \"700\", \"728\"), series_name (\"Sky Radio\", \"Music Box Italia\", \"Hip Hop TV\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | animated_series : production_code (107.0, 106.0, 108.0), original_air_date (\"January23,2009\", \"February6,2009\", \"February27,2009\"), title (\"Deep Cover for Batman!\", \"Journey to the Center of the Bat!\", \"Day of the Dark Knight!\"), id (2.0, 1.0, 6.0), channel (\"700\", \"706\", \"706\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Steven Melching\", \"Matt Wayne\", \"Matt Wayne\")", + "schema_without_content": "tv_series : 18_49_rating_share , rating , weekly_rank , id , viewers_m , share , channel , air_date , episode | toons : production_code , original_air_date , title , id , channel , directed_by , written_by | tv_channel : hight_definition_tv , content , id , series_name , package_option , language , pay_per_view_ppv , pixel_aspect_ratio_par , country | animated_series : production_code , original_air_date , title , id , channel , directed_by , written_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cartoon directed by": "Cartoon.Directed_by", + "title": "Cartoon.Title" + } + }, + { + "question": "what are the #names of all cartoons directed by# ben jones?", + "db_id": "tvshow", + "orig_query": "select title from cartoon where directed_by = \"Ben Jones\"", + "schema_with_content": "toons : original_air_date (\"December5,2008\", \"February27,2009\", \"January2,2009\"), id (7.0, 1.0, 10.0), channel (\"704\", \"700\", \"728\"), written_by (\"Adam Beechen\", \"Matt Wayne\", \"James Krieg\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (101.0, 111.0, 103.0), title (\"Return of the Fearsome Fangs!\", \"The Eyes of Despero!\", \"The Eyes of Despero!\") | tv_series : rating (\"4.3\", \"4.3\", \"3.5\"), share (5.0, 9.0, 6.0), episode (\"Emily\", \"The Year of the Rabbit\", \"The Legend of Dylan McCleen\"), air_date (\"September 24, 2007\", \"November 19, 2007\", \"November 5, 2007\"), id (3.0, 9.0, 5.0), weekly_rank (68.0, 66.0, 62.0), 18_49_rating_share (\"2.2/6\", \"3.2/8\", \"2.1/5\"), viewers_m (\"4.24\", \"4.24\", \"5.28\"), channel (\"717\", \"708\", \"713\") | tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"MTV Music\", \"MTV Music\", \"MTV Rocks\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"719\", \"719\", \"706\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Option\"), content (\"music\"), language (\"Italian\", \"English\") | animated_series : original_air_date (\"December5,2008\", \"February27,2009\", \"January2,2009\"), id (7.0, 1.0, 10.0), channel (\"704\", \"700\", \"728\"), written_by (\"Adam Beechen\", \"Matt Wayne\", \"James Krieg\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (101.0, 111.0, 103.0), title (\"Return of the Fearsome Fangs!\", \"The Eyes of Despero!\", \"The Eyes of Despero!\")", + "schema_without_content": "toons : original_air_date , id , channel , written_by , directed_by , production_code , title | tv_series : rating , share , episode , air_date , id , weekly_rank , 18_49_rating_share , viewers_m , channel | tv_channel : country , hight_definition_tv , series_name , pixel_aspect_ratio_par , id , pay_per_view_ppv , package_option , content , language | animated_series : original_air_date , id , channel , written_by , directed_by , production_code , title", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of all cartoons directed by": "Cartoon.Title" + } + }, + { + "question": "how many #cartoons# were #written by# \"joseph kuhr\"?", + "db_id": "tvshow", + "orig_query": "select count(*) from cartoon where written_by = \"Joseph Kuhr\"", + "schema_with_content": "tv_channel : package_option (\"Sky Famiglia\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"MTV Dance\", \"myDeejay\", \"MTV Hits\"), id (\"709\", \"704\", \"713\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\") | animated_series : title (\"Fall of the Blue Beetle!\", \"Terror on Dinosaur Island!\", \"Enter the Outsiders!\"), original_air_date (\"December12,2008\", \"January30,2009\", \"January9,2009\"), production_code (106.0, 101.0, 106.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (1.0, 9.0, 1.0), channel (\"706\", \"703\", \"706\"), written_by (\"Adam Beechen\", \"Steven Melching\", \"J. M. DeMatteis\") | tv_series : episode (\"The Year of the Rabbit\", \"Keepers\", \"Emily\"), channel (\"708\", \"714\", \"700\"), 18_49_rating_share (\"3.2/8\", \"3.5/9\", \"2.4/6\"), id (2.0, 7.0, 6.0), weekly_rank (80.0, 71.0, 71.0), share (6.0, 6.0, 7.0), rating (\"5.8\", \"3.5\", \"4.3\"), air_date (\"November 19, 2007\", \"November 5, 2007\", \"October 8, 2007\"), viewers_m (\"6.75\", \"4.24\", \"5.13\") | toons : title (\"Fall of the Blue Beetle!\", \"Terror on Dinosaur Island!\", \"Enter the Outsiders!\"), original_air_date (\"December12,2008\", \"January30,2009\", \"January9,2009\"), production_code (106.0, 101.0, 106.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (1.0, 9.0, 1.0), channel (\"706\", \"703\", \"706\"), written_by (\"Adam Beechen\", \"Steven Melching\", \"J. M. DeMatteis\")", + "schema_without_content": "tv_channel : package_option \", pay_per_view_ppv , language , pixel_aspect_ratio_par , country , series_name , id , hight_definition_tv , content | animated_series : title , original_air_date , production_code , directed_by , id , channel , written_by | tv_series : episode , channel , 18_49_rating_share , id , weekly_rank , share , rating , air_date , viewers_m | toons : title , original_air_date , production_code , directed_by , id , channel , written_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cartoons": "Cartoon", + "written by": "Cartoon.Written_by" + } + }, + { + "question": "what is the number of #cartoones written by# joseph kuhr?", + "db_id": "tvshow", + "orig_query": "select count(*) from cartoon where written_by = \"Joseph Kuhr\"", + "schema_with_content": "tv_channel : package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"no ( FTV )\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), id (\"707\", \"713\", \"708\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Music\", \"MTV Rocks\", \"Sky Radio\"), pay_per_view_ppv (\"no\"), content (\"music\") | tv_series : air_date (\"November 26, 2007\", \"December 17, 2007\", \"October 1, 2007\"), channel (\"708\", \"701\", \"714\"), viewers_m (\"5.28\", \"9.16\", \"5.75\"), share (7.0, 5.0, 9.0), 18_49_rating_share (\"2.2/6\", \"2.1/5\", \"1.7/5\"), episode (\"Keepers\", \"Keepers\", \"A Love of a Lifetime\"), weekly_rank (68.0, 62.0, 70.0), rating (\"3.8\", \"4.4\", \"4.0\"), id (7.0, 5.0, 1.0) | toons : channel (\"707\", \"706\", \"728\"), production_code (109.0, 103.0, 103.0), id (7.0, 2.0, 2.0), original_air_date (\"January23,2009\", \"January23,2009\", \"November21,2008\"), written_by (\"Matt Wayne\", \"Michael Jelenic\", \"Joseph Kuhr\"), title (\"Terror on Dinosaur Island!\", \"Day of the Dark Knight!\", \"Return of the Fearsome Fangs!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | animated_series : channel (\"707\", \"706\", \"728\"), production_code (109.0, 103.0, 103.0), id (7.0, 2.0, 2.0), original_air_date (\"January23,2009\", \"January23,2009\", \"November21,2008\"), written_by (\"Matt Wayne\", \"Michael Jelenic\", \"Joseph Kuhr\"), title (\"Terror on Dinosaur Island!\", \"Day of the Dark Knight!\", \"Return of the Fearsome Fangs!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\")", + "schema_without_content": "tv_channel : package_option \", \"no \", hight_definition_tv , country , language , id , pixel_aspect_ratio_par , series_name , pay_per_view_ppv , content | tv_series : air_date , channel , viewers_m , share , 18_49_rating_share , episode , weekly_rank , rating , id | toons : channel , production_code , id , original_air_date , written_by , title , directed_by | animated_series : channel , production_code , id , original_air_date , written_by , title , directed_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cartoones written by": "Cartoon.Written_by" + } + }, + { + "question": "list all #cartoon titles# and their #directors# ordered by their air date", + "db_id": "tvshow", + "orig_query": "select title, directed_by from cartoon order by original_air_date", + "schema_with_content": "animated_series : title (\"Invasion of the Secret Santas!\", \"Evil Under the Sea!\", \"Day of the Dark Knight!\"), original_air_date (\"January2,2009\", \"January30,2009\", \"November21,2008\"), channel (\"700\", \"701\", \"704\"), production_code (110.0, 111.0, 105.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Todd Casey\", \"Adam Beechen\", \"Matt Wayne\"), id (1.0, 3.0, 9.0) | toons : title (\"Invasion of the Secret Santas!\", \"Evil Under the Sea!\", \"Day of the Dark Knight!\"), original_air_date (\"January2,2009\", \"January30,2009\", \"November21,2008\"), channel (\"700\", \"701\", \"704\"), production_code (110.0, 111.0, 105.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Todd Casey\", \"Adam Beechen\", \"Matt Wayne\"), id (1.0, 3.0, 9.0) | tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"MTV Live HD\", \"Sky Music\", \"Radio Capital TiV\u00c3\u00b9\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia\", \"Option\", \"no ( FTV )\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"713\", \"713\", \"700\"), content (\"music\") | tv_series : channel (\"719\", \"717\", \"700\"), id (3.0, 6.0, 7.0), share (6.0, 7.0, 7.0), rating (\"3.0\", \"4.3\", \"3.0\"), weekly_rank (65.0, 62.0, 80.0), episode (\"A Love of a Lifetime\", \"The Year of the Rabbit\", \"Friendly Skies\"), 18_49_rating_share (\"3.5/9\", \"1.5/4\", \"2.4/6\"), air_date (\"November 19, 2007\", \"November 5, 2007\", \"October 22, 2007\"), viewers_m (\"6.06\", \"4.24\", \"9.16\")", + "schema_without_content": "animated_series : title , original_air_date , channel , production_code , directed_by , written_by , id | toons : title , original_air_date , channel , production_code , directed_by , written_by , id | tv_channel : country , hight_definition_tv , series_name , language , pay_per_view_ppv , package_option \", pixel_aspect_ratio_par , id , content | tv_series : channel , id , share , rating , weekly_rank , episode , 18_49_rating_share , air_date , viewers_m", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cartoon titles": "Cartoon.Title", + "directors": "Cartoon.Directed_by", + "air date": "Cartoon.Original_air_date" + } + }, + { + "question": "what is the #name# and #directors of all the cartoons# that are ordered by #air date# ?", + "db_id": "tvshow", + "orig_query": "select title, directed_by from cartoon order by original_air_date", + "schema_with_content": "tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), id (\"709\", \"719\", \"714\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Option\"), series_name (\"Hip Hop TV\", \"Sky Radio\", \"MTV Hits\") | animated_series : production_code (107.0, 103.0, 105.0), original_air_date (\"January23,2009\", \"February27,2009\", \"January9,2009\"), channel (\"708\", \"705\", \"704\"), title (\"Journey to the Center of the Bat!\", \"Evil Under the Sea!\", \"Enter the Outsiders!\"), id (5.0, 1.0, 3.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Steven Melching\") | toons : production_code (107.0, 103.0, 105.0), original_air_date (\"January23,2009\", \"February27,2009\", \"January9,2009\"), channel (\"708\", \"705\", \"704\"), title (\"Journey to the Center of the Bat!\", \"Evil Under the Sea!\", \"Enter the Outsiders!\"), id (5.0, 1.0, 3.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Steven Melching\") | tv_series : channel (\"717\", \"717\", \"713\"), air_date (\"October 29, 2007\", \"October 1, 2007\", \"September 24, 2007\"), episode (\"The Hanged Man\", \"Keepers\", \"Blowback\"), viewers_m (\"5.75\", \"6.94\", \"4.24\"), id (3.0, 5.0, 12.0), 18_49_rating_share (\"1.5/4\", \"3.2/8\", \"2.1/5\"), share (6.0, 7.0, 6.0), rating (\"3.7\", \"3.0\", \"3.5\"), weekly_rank (62.0, 71.0, 65.0)", + "schema_without_content": "tv_channel : pixel_aspect_ratio_par , country , pay_per_view_ppv , language , id , content , hight_definition_tv , package_option \", \"Sky Famiglia\", \"Option\", series_name | animated_series : production_code , original_air_date , channel , title , id , directed_by , written_by | toons : production_code , original_air_date , channel , title , id , directed_by , written_by | tv_series : channel , air_date , episode , viewers_m , id , 18_49_rating_share , share , rating , weekly_rank", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "Cartoon.Title", + "directors of all the cartoons": "Cartoon.Directed_by", + "air date": "Cartoon.Original_air_date" + } + }, + { + "question": "list the #title of all cartoon directed by# \"ben jones\" or \"brandon vietti\".", + "db_id": "tvshow", + "orig_query": "select title from cartoon where directed_by = \"Ben Jones\" or directed_by = \"Brandon Vietti\"", + "schema_with_content": "tv_series : channel (\"728\", \"714\", \"707\"), viewers_m (\"8.23\", \"4.24\", \"5.28\"), air_date (\"October 8, 2007\", \"October 1, 2007\", \"October 8, 2007\"), share (9.0, 5.0, 9.0), weekly_rank (67.0, 62.0, 80.0), episode (\"Blowback\", \"The Hanged Man\", \"Blowback\"), 18_49_rating_share (\"2.4/6\", \"2.1/5\", \"2.9/7\"), rating (\"5.3\", \"3.8\", \"3.4\"), id (4.0, 5.0, 8.0) | tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), content (\"music\"), id (\"705\", \"707\", \"703\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"MTV Rocks\", \"MTV Music\", \"Match Music\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), language (\"Italian\", \"English\") | toons : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Return of the Fearsome Fangs!\", \"Deep Cover for Batman!\", \"Terror on Dinosaur Island!\"), production_code (105.0, 111.0, 103.0), written_by (\"Joseph Kuhr\", \"Joseph Kuhr\", \"Matt Wayne\"), original_air_date (\"January16,2009\", \"December5,2008\", \"February27,2009\"), id (7.0, 12.0, 11.0), channel (\"700\", \"706\", \"701\") | animated_series : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Return of the Fearsome Fangs!\", \"Deep Cover for Batman!\", \"Terror on Dinosaur Island!\"), production_code (105.0, 111.0, 103.0), written_by (\"Joseph Kuhr\", \"Joseph Kuhr\", \"Matt Wayne\"), original_air_date (\"January16,2009\", \"December5,2008\", \"February27,2009\"), id (7.0, 12.0, 11.0), channel (\"700\", \"706\", \"701\")", + "schema_without_content": "tv_series : channel , viewers_m , air_date , share , weekly_rank , episode , 18_49_rating_share , rating , id | tv_channel : pixel_aspect_ratio_par , pay_per_view_ppv , content , id , country , series_name , hight_definition_tv , package_option , language | toons : directed_by , title , production_code , written_by , original_air_date , id , channel | animated_series : directed_by , title , production_code , written_by , original_air_date , id , channel", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "title of all cartoon directed by": "Cartoon.Title" + } + }, + { + "question": "what are the #titles of all cartoons directed by# ben jones or brandon vietti?", + "db_id": "tvshow", + "orig_query": "select title from cartoon where directed_by = \"Ben Jones\" or directed_by = \"Brandon Vietti\"", + "schema_with_content": "animated_series : channel (\"728\", \"701\", \"704\"), original_air_date (\"November14,2008\", \"February6,2009\", \"January23,2009\"), written_by (\"Michael Jelenic\", \"Todd Casey\", \"Steven Melching\"), id (9.0, 4.0, 11.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (106.0, 103.0, 112.0), title (\"The Eyes of Despero!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\") | toons : channel (\"728\", \"701\", \"704\"), original_air_date (\"November14,2008\", \"February6,2009\", \"January23,2009\"), written_by (\"Michael Jelenic\", \"Todd Casey\", \"Steven Melching\"), id (9.0, 4.0, 11.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (106.0, 103.0, 112.0), title (\"The Eyes of Despero!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\") | tv_series : 18_49_rating_share (\"2.4/6\", \"2.4/6\", \"2.2/6\"), rating (\"5.8\", \"3.0\", \"3.4\"), air_date (\"November 19, 2007\", \"December 10, 2007\", \"October 29, 2007\"), share (5.0, 9.0, 6.0), weekly_rank (80.0, 43.0, 68.0), viewers_m (\"5.75\", \"5.75\", \"6.05\"), id (7.0, 12.0, 10.0), channel (\"707\", \"700\", \"700\"), episode (\"Game Three\", \"Keepers\", \"Keepers\") | tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"myDeejay\", \"Radio Capital TiV\u00c3\u00b9\", \"MTV Rocks\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"Sky Famiglia + Sky HD\"), id (\"704\", \"705\", \"703\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\")", + "schema_without_content": "animated_series : channel , original_air_date , written_by , id , directed_by , production_code , title | toons : channel , original_air_date , written_by , id , directed_by , production_code , title | tv_series : 18_49_rating_share , rating , air_date , share , weekly_rank , viewers_m , id , channel , episode | tv_channel : country , series_name , package_option \", \"Sky Famiglia + Sky HD\", id , pixel_aspect_ratio_par , content , hight_definition_tv , pay_per_view_ppv , language", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "titles of all cartoons directed by": "Cartoon.Title" + } + }, + { + "question": "which #country# has the most of tv channels? list the country and #number of tv channels# it has.", + "db_id": "tvshow", + "orig_query": "select country, count(*) from tv_channel group by country order by count(*) desc limit 1", + "schema_with_content": "Television_Channel : content (\"music\"), id (\"703\", \"714\", \"708\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"Radio Capital TiV\u00c3\u00b9\", \"Classica\", \"Sky Radio\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Option\", \"no ( FTV )\") | Broadcasting_Channel : content (\"music\"), id (\"703\", \"714\", \"708\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"Radio Capital TiV\u00c3\u00b9\", \"Classica\", \"Sky Radio\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Option\", \"no ( FTV )\") | cartoon : channel (\"705\", \"706\", \"701\"), written_by (\"Matt Wayne\", \"J. M. DeMatteis\", \"Steven Melching\"), original_air_date (\"February27,2009\", \"February20,2009\", \"February27,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Evil Under the Sea!\", \"The Rise of the Blue Beetle!\", \"The Eyes of Despero!\"), id (5.0, 5.0, 7.0), production_code (105.0, 108.0, 101.0) | tv_series : weekly_rank (66.0, 72.0, 71.0), share (6.0, 7.0, 9.0), episode (\"The Hanged Man\", \"Emily\", \"The Legend of Dylan McCleen\"), id (8.0, 9.0, 7.0), 18_49_rating_share (\"3.5/9\", \"2.7/7\", \"2.2/6\"), air_date (\"September 24, 2007\", \"November 19, 2007\", \"October 22, 2007\"), viewers_m (\"9.16\", \"5.75\", \"6.06\"), rating (\"3.4\", \"3.7\", \"3.8\"), channel (\"707\", \"700\", \"701\")", + "schema_without_content": "Television_Channel : content , id , pay_per_view_ppv , hight_definition_tv , series_name , country , pixel_aspect_ratio_par , language , package_option \" | Broadcasting_Channel : content , id , pay_per_view_ppv , hight_definition_tv , series_name , country , pixel_aspect_ratio_par , language , package_option \" | cartoon : channel , written_by , original_air_date , directed_by , title , id , production_code | tv_series : weekly_rank , share , episode , id , 18_49_rating_share , air_date , viewers_m , rating , channel", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "country": "TV_Channel.Country", + "number of TV Channels": "TV_Channel" + } + }, + { + "question": "what is the #country# with the most number of #tv channels# and how many does it have?", + "db_id": "tvshow", + "orig_query": "select country, count(*) from tv_channel group by country order by count(*) desc limit 1", + "schema_with_content": "tv_series : 18_49_rating_share (\"2.9/7\", \"1.7/5\", \"1.7/5\"), rating (\"4.0\", \"3.8\", \"5.3\"), share (7.0, 7.0, 9.0), air_date (\"October 29, 2007\", \"October 29, 2007\", \"November 19, 2007\"), id (2.0, 10.0, 2.0), weekly_rank (62.0, 65.0, 67.0), episode (\"Emily\", \"The Hanged Man\", \"Game Three\"), viewers_m (\"8.23\", \"9.16\", \"5.61\"), channel (\"701\", \"719\", \"713\") | Television_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Option\", \"Option\", \"Sky Famiglia\"), series_name (\"Hip Hop TV\", \"Classica\", \"MTV Live HD\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), id (\"706\", \"709\", \"717\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | Broadcasting_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Option\", \"Option\", \"Sky Famiglia\"), series_name (\"Hip Hop TV\", \"Classica\", \"MTV Live HD\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), id (\"706\", \"709\", \"717\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (2.0, 3.0, 9.0), production_code (112.0, 109.0, 102.0), written_by (\"J. M. DeMatteis\", \"Matt Wayne\", \"Steven Melching\"), title (\"Return of the Fearsome Fangs!\", \"Terror on Dinosaur Island!\", \"Dawn of the Dead Man!\"), original_air_date (\"February20,2009\", \"January30,2009\", \"January30,2009\"), channel (\"708\", \"705\", \"728\")", + "schema_without_content": "tv_series : 18_49_rating_share , rating , share , air_date , id , weekly_rank , episode , viewers_m , channel | Television_Channel : country , language , package_option , series_name , content , hight_definition_tv , pay_per_view_ppv , id , pixel_aspect_ratio_par | Broadcasting_Channel : country , language , package_option , series_name , content , hight_definition_tv , pay_per_view_ppv , id , pixel_aspect_ratio_par | cartoon : directed_by , id , production_code , written_by , title , original_air_date , channel", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "country": "TV_Channel.Country", + "TV Channels": "TV_Channel" + } + }, + { + "question": "what is the #content of tv channel with serial name# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select content from tv_channel where series_name = \"Sky Radio\"", + "schema_with_content": "cartoon : channel (\"704\", \"703\", \"700\"), id (7.0, 11.0, 1.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"January16,2009\", \"February6,2009\", \"January2,2009\"), title (\"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\", \"Terror on Dinosaur Island!\"), written_by (\"Adam Beechen\", \"James Krieg\", \"Todd Casey\"), production_code (112.0, 107.0, 101.0) | Broadcasting_Channel : pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"Match Music\", \"myDeejay\", \"Hip Hop TV\"), package_option (\"no ( FTV )\", \"Option\", \"Sky Famiglia\"), hight_definition_tv (\"no\", \"yes\"), id (\"709\", \"719\", \"701\") | tv_series : viewers_m (\"6.75\", \"6.94\", \"5.61\"), id (12.0, 1.0, 3.0), channel (\"728\", \"708\", \"700\"), share (7.0, 6.0, 6.0), weekly_rank (43.0, 67.0, 71.0), rating (\"3.8\", \"4.4\", \"3.0\"), air_date (\"September 24, 2007\", \"October 8, 2007\", \"December 17, 2007\"), episode (\"Keepers\", \"The Hanged Man\", \"Emily\"), 18_49_rating_share (\"3.5/9\", \"3.2/8\", \"2.4/6\") | Television_Channel : pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"Match Music\", \"myDeejay\", \"Hip Hop TV\"), package_option (\"no ( FTV )\", \"Option\", \"Sky Famiglia\"), hight_definition_tv (\"no\", \"yes\"), id (\"709\", \"719\", \"701\")", + "schema_without_content": "cartoon : channel , id , directed_by , original_air_date , title , written_by , production_code | Broadcasting_Channel : pay_per_view_ppv , pixel_aspect_ratio_par , content , language , country , series_name , package_option \", \"Option\", \"Sky Famiglia\", hight_definition_tv , id | tv_series : viewers_m , id , channel , share , weekly_rank , rating , air_date , episode , 18_49_rating_share | Television_Channel : pay_per_view_ppv , pixel_aspect_ratio_par , content , language , country , series_name , package_option \", \"Option\", \"Sky Famiglia\", hight_definition_tv , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "content of TV Channel with serial name": "TV_Channel.Content" + } + }, + { + "question": "what is the #content of the series# sky radio?", + "db_id": "tvshow", + "orig_query": "select content from tv_channel where series_name = \"Sky Radio\"", + "schema_with_content": "cartoon : channel (\"706\", \"704\", \"708\"), production_code (108.0, 103.0, 103.0), id (8.0, 2.0, 11.0), written_by (\"J. M. DeMatteis\", \"Matt Wayne\", \"Joseph Kuhr\"), original_air_date (\"December5,2008\", \"February20,2009\", \"January30,2009\"), title (\"Invasion of the Secret Santas!\", \"Dawn of the Dead Man!\", \"The Eyes of Despero!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | Television_Channel : hight_definition_tv (\"no\", \"yes\"), id (\"700\", \"719\", \"705\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\"), content (\"music\"), series_name (\"Music Box Italia\", \"MTV Hits\", \"MTV Music\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | Broadcasting_Channel : hight_definition_tv (\"no\", \"yes\"), id (\"700\", \"719\", \"705\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\"), content (\"music\"), series_name (\"Music Box Italia\", \"MTV Hits\", \"MTV Music\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | tv_series : share (9.0, 9.0, 9.0), episode (\"A Love of a Lifetime\", \"Blowback\", \"Blowback\"), air_date (\"October 15, 2007\", \"November 19, 2007\", \"September 24, 2007\"), 18_49_rating_share (\"2.9/7\", \"3.5/9\", \"3.5/9\"), viewers_m (\"6.94\", \"6.05\", \"5.61\"), rating (\"3.8\", \"3.4\", \"3.8\"), weekly_rank (65.0, 80.0, 65.0), channel (\"700\", \"728\", \"708\"), id (4.0, 12.0, 5.0)", + "schema_without_content": "cartoon : channel , production_code , id , written_by , original_air_date , title , directed_by | Television_Channel : hight_definition_tv , id , package_option \", \"no \", \"Sky Famiglia\", content , series_name , language , country , pay_per_view_ppv , pixel_aspect_ratio_par | Broadcasting_Channel : hight_definition_tv , id , package_option \", \"no \", \"Sky Famiglia\", content , series_name , language , country , pay_per_view_ppv , pixel_aspect_ratio_par | tv_series : share , episode , air_date , 18_49_rating_share , viewers_m , rating , weekly_rank , channel , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "content of the series": "TV_Channel.Content" + } + }, + { + "question": "what is the #package option of tv channel with serial name# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where series_name = \"Sky Radio\"", + "schema_with_content": "Television_Channel : pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"707\", \"705\", \"708\"), content (\"music\"), series_name (\"Music Box Italia\", \"Classica\", \"Radio Capital TiV\u00c3\u00b9\") | Broadcasting_Channel : pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"707\", \"705\", \"708\"), content (\"music\"), series_name (\"Music Box Italia\", \"Classica\", \"Radio Capital TiV\u00c3\u00b9\") | tv_series : share (9.0, 9.0, 6.0), air_date (\"November 12, 2007\", \"October 1, 2007\", \"December 17, 2007\"), 18_49_rating_share (\"2.1/5\", \"3.2/8\", \"1.7/5\"), id (8.0, 1.0, 11.0), rating (\"3.8\", \"5.3\", \"3.4\"), viewers_m (\"5.28\", \"6.05\", \"6.09\"), channel (\"707\", \"728\", \"714\"), episode (\"The Hanged Man\", \"Friendly Skies\", \"Game Three\"), weekly_rank (70.0, 71.0, 70.0) | cartoon : title (\"Dawn of the Dead Man!\", \"Deep Cover for Batman!\", \"Dawn of the Dead Man!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (106.0, 105.0, 101.0), original_air_date (\"January16,2009\", \"January9,2009\", \"January16,2009\"), id (3.0, 9.0, 2.0), channel (\"707\", \"708\", \"704\"), written_by (\"Michael Jelenic\", \"Steven Melching\", \"Steven Melching\")", + "schema_without_content": "Television_Channel : pay_per_view_ppv , hight_definition_tv , language , package_option \", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\", pixel_aspect_ratio_par , country , id , content , series_name | Broadcasting_Channel : pay_per_view_ppv , hight_definition_tv , language , package_option \", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\", pixel_aspect_ratio_par , country , id , content , series_name | tv_series : share , air_date , 18_49_rating_share , id , rating , viewers_m , channel , episode , weekly_rank | cartoon : title , directed_by , production_code , original_air_date , id , channel , written_by", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "Package Option of TV Channel with serial name": "TV_Channel.Package_Option" + } + }, + { + "question": "what are the #package options of the tv channels# whose #series names# are sky radio?", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where series_name = \"Sky Radio\"", + "schema_with_content": "Broadcasting_Channel : language (\"Italian\", \"English\"), content (\"music\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"no ( FTV )\"), hight_definition_tv (\"no\", \"yes\"), id (\"728\", \"705\", \"719\"), series_name (\"MTV Dance\", \"Hip Hop TV\", \"MTV Live HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\") | Television_Channel : language (\"Italian\", \"English\"), content (\"music\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"no ( FTV )\"), hight_definition_tv (\"no\", \"yes\"), id (\"728\", \"705\", \"719\"), series_name (\"MTV Dance\", \"Hip Hop TV\", \"MTV Live HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\") | tv_series : air_date (\"October 1, 2007\", \"October 22, 2007\", \"November 26, 2007\"), channel (\"728\", \"701\", \"714\"), viewers_m (\"5.28\", \"6.75\", \"5.28\"), weekly_rank (61.0, 70.0, 68.0), share (7.0, 6.0, 5.0), rating (\"3.4\", \"3.5\", \"4.0\"), 18_49_rating_share (\"2.7/7\", \"2.7/7\", \"3.5/9\"), episode (\"Friendly Skies\", \"Emily\", \"A Love of a Lifetime\"), id (4.0, 11.0, 2.0) | cartoon : written_by (\"James Krieg\", \"Steven Melching\", \"James Krieg\"), original_air_date (\"January16,2009\", \"November14,2008\", \"January16,2009\"), channel (\"728\", \"706\", \"704\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (1.0, 2.0, 10.0), production_code (103.0, 101.0, 110.0), title (\"Enter the Outsiders!\", \"The Rise of the Blue Beetle!\", \"Enter the Outsiders!\")", + "schema_without_content": "Broadcasting_Channel : language , content , package_option \", \"no \", hight_definition_tv , id , series_name , pixel_aspect_ratio_par , country , pay_per_view_ppv | Television_Channel : language , content , package_option \", \"no \", hight_definition_tv , id , series_name , pixel_aspect_ratio_par , country , pay_per_view_ppv | tv_series : air_date , channel , viewers_m , weekly_rank , share , rating , 18_49_rating_share , episode , id | cartoon : written_by , original_air_date , channel , directed_by , id , production_code , title", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "Package Options of the TV Channels": "TV_Channel.Package_Option", + "series names": "TV_Channel.series_name" + } + }, + { + "question": "how many #tv channel# using #language english# ?", + "db_id": "tvshow", + "orig_query": "select count(*) from tv_channel where language = \"English\"", + "schema_with_content": "cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (6.0, 1.0, 12.0), title (\"Invasion of the Secret Santas!\", \"Dawn of the Dead Man!\", \"Day of the Dark Knight!\"), channel (\"700\", \"700\", \"703\"), written_by (\"Todd Casey\", \"Matt Wayne\", \"James Krieg\"), original_air_date (\"January30,2009\", \"November14,2008\", \"January2,2009\"), production_code (107.0, 101.0, 105.0) | Television_Channel : series_name (\"myDeejay\", \"Hip Hop TV\", \"Match Music\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"717\", \"728\", \"706\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia\", \"Option\", \"Sky Famiglia\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | tv_series : weekly_rank (66.0, 61.0, 68.0), air_date (\"October 22, 2007\", \"October 29, 2007\", \"October 15, 2007\"), rating (\"4.3\", \"4.0\", \"3.5\"), channel (\"717\", \"714\", \"713\"), 18_49_rating_share (\"1.5/4\", \"2.1/5\", \"1.7/5\"), viewers_m (\"9.16\", \"5.61\", \"6.09\"), id (6.0, 9.0, 9.0), share (7.0, 7.0, 5.0), episode (\"Keepers\", \"Emily\", \"The Year of the Rabbit\") | Broadcasting_Channel : series_name (\"myDeejay\", \"Hip Hop TV\", \"Match Music\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"717\", \"728\", \"706\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia\", \"Option\", \"Sky Famiglia\"), country (\"Italy\", \"United Kingdom\", \"Poland\")", + "schema_without_content": "cartoon : directed_by , id , title , channel , written_by , original_air_date , production_code | Television_Channel : series_name , hight_definition_tv , language , content , pixel_aspect_ratio_par , id , pay_per_view_ppv , package_option , country | tv_series : weekly_rank , air_date , rating , channel , 18_49_rating_share , viewers_m , id , share , episode | Broadcasting_Channel : series_name , hight_definition_tv , language , content , pixel_aspect_ratio_par , id , pay_per_view_ppv , package_option , country", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "TV Channel": "TV_Channel", + "language English": "TV_Channel.Language" + } + }, + { + "question": "how many #tv channels# use the #english language# ?", + "db_id": "tvshow", + "orig_query": "select count(*) from tv_channel where language = \"English\"", + "schema_with_content": "Broadcasting_Channel : language (\"Italian\", \"English\"), series_name (\"Classica\", \"Radio Capital TiV\u00c3\u00b9\", \"Hip Hop TV\"), content (\"music\"), pay_per_view_ppv (\"no\"), id (\"704\", \"707\", \"717\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"no ( FTV )\") | tv_series : weekly_rank (66.0, 67.0, 67.0), share (6.0, 6.0, 7.0), air_date (\"September 24, 2007\", \"October 15, 2007\", \"October 22, 2007\"), episode (\"Home By Another Way\", \"Keepers\", \"Home By Another Way\"), rating (\"3.7\", \"5.8\", \"5.3\"), channel (\"708\", \"719\", \"717\"), viewers_m (\"5.61\", \"6.06\", \"5.28\"), 18_49_rating_share (\"2.2/6\", \"2.7/7\", \"2.4/6\"), id (6.0, 5.0, 10.0) | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Todd Casey\", \"Joseph Kuhr\", \"James Krieg\"), title (\"Return of the Fearsome Fangs!\", \"Invasion of the Secret Santas!\", \"Return of the Fearsome Fangs!\"), id (11.0, 11.0, 10.0), original_air_date (\"February27,2009\", \"January30,2009\", \"November21,2008\"), production_code (104.0, 104.0, 101.0), channel (\"728\", \"728\", \"705\") | Television_Channel : language (\"Italian\", \"English\"), series_name (\"Classica\", \"Radio Capital TiV\u00c3\u00b9\", \"Hip Hop TV\"), content (\"music\"), pay_per_view_ppv (\"no\"), id (\"704\", \"707\", \"717\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"no ( FTV )\")", + "schema_without_content": "Broadcasting_Channel : language , series_name , content , pay_per_view_ppv , id , country , hight_definition_tv , pixel_aspect_ratio_par , package_option \", \"no \", \"no \" | tv_series : weekly_rank , share , air_date , episode , rating , channel , viewers_m , 18_49_rating_share , id | cartoon : directed_by , written_by , title , id , original_air_date , production_code , channel | Television_Channel : language , series_name , content , pay_per_view_ppv , id , country , hight_definition_tv , pixel_aspect_ratio_par , package_option \", \"no \", \"no \"", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "TV Channels": "TV_Channel", + "English language": "TV_Channel.Language" + } + }, + { + "question": "list the #language# used least #number of tv channel# . list language and number of tv channel.", + "db_id": "tvshow", + "orig_query": "select language, count(*) from tv_channel group by language order by count(*) asc limit 1", + "schema_with_content": "cartoon : channel (\"703\", \"705\", \"705\"), id (11.0, 6.0, 7.0), title (\"The Eyes of Despero!\", \"Journey to the Center of the Bat!\", \"Enter the Outsiders!\"), production_code (103.0, 103.0, 110.0), written_by (\"Steven Melching\", \"Joseph Kuhr\", \"Joseph Kuhr\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"December5,2008\", \"November21,2008\", \"February20,2009\") | tv_series : rating (\"4.0\", \"4.0\", \"4.4\"), channel (\"713\", \"708\", \"728\"), viewers_m (\"8.23\", \"6.05\", \"6.06\"), weekly_rank (67.0, 68.0, 71.0), 18_49_rating_share (\"2.1/5\", \"2.2/6\", \"1.7/5\"), episode (\"Game Three\", \"The Hanged Man\", \"Keepers\"), share (9.0, 9.0, 9.0), air_date (\"October 8, 2007\", \"November 5, 2007\", \"October 22, 2007\"), id (8.0, 8.0, 11.0) | Television_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Hits\", \"MTV Live HD\", \"MTV Music\"), package_option (\"Option\", \"no ( FTV )\", \"no ( FTV )\"), id (\"700\", \"717\", \"701\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), content (\"music\"), pay_per_view_ppv (\"no\") | Broadcasting_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Hits\", \"MTV Live HD\", \"MTV Music\"), package_option (\"Option\", \"no ( FTV )\", \"no ( FTV )\"), id (\"700\", \"717\", \"701\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), content (\"music\"), pay_per_view_ppv (\"no\")", + "schema_without_content": "cartoon : channel , id , title , production_code , written_by , directed_by , original_air_date | tv_series : rating , channel , viewers_m , weekly_rank , 18_49_rating_share , episode , share , air_date , id | Television_Channel : pixel_aspect_ratio_par , series_name , package_option \", \"no \", id , country , hight_definition_tv , language , content , pay_per_view_ppv | Broadcasting_Channel : pixel_aspect_ratio_par , series_name , package_option \", \"no \", id , country , hight_definition_tv , language , content , pay_per_view_ppv", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "language": "TV_Channel.Language", + "number of TV Channel": "TV_Channel" + } + }, + { + "question": "what are the #languages# used by the least number of tv #channels# and how many channels use it?", + "db_id": "tvshow", + "orig_query": "select language, count(*) from tv_channel group by language order by count(*) asc limit 1", + "schema_with_content": "Television_Channel : hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), id (\"708\", \"700\", \"703\"), series_name (\"MTV Live HD\", \"Classica\", \"Match Music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\") | Broadcasting_Channel : hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), id (\"708\", \"700\", \"703\"), series_name (\"MTV Live HD\", \"Classica\", \"Match Music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\") | tv_series : 18_49_rating_share (\"2.9/7\", \"1.7/5\", \"3.2/8\"), id (9.0, 2.0, 8.0), viewers_m (\"5.28\", \"9.16\", \"5.28\"), episode (\"Winterland\", \"Friendly Skies\", \"Emily\"), air_date (\"November 12, 2007\", \"October 1, 2007\", \"December 10, 2007\"), share (7.0, 5.0, 6.0), rating (\"5.3\", \"4.3\", \"5.8\"), channel (\"700\", \"707\", \"714\"), weekly_rank (65.0, 61.0, 68.0) | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"708\", \"700\", \"708\"), title (\"Journey to the Center of the Bat!\", \"Day of the Dark Knight!\", \"Evil Under the Sea!\"), id (9.0, 12.0, 3.0), production_code (107.0, 105.0, 111.0), original_air_date (\"November14,2008\", \"November21,2008\", \"January9,2009\"), written_by (\"J. M. DeMatteis\", \"Joseph Kuhr\", \"Todd Casey\")", + "schema_without_content": "Television_Channel : hight_definition_tv , language , id , series_name , country , package_option , pay_per_view_ppv , pixel_aspect_ratio_par , content | Broadcasting_Channel : hight_definition_tv , language , id , series_name , country , package_option , pay_per_view_ppv , pixel_aspect_ratio_par , content | tv_series : 18_49_rating_share , id , viewers_m , episode , air_date , share , rating , channel , weekly_rank | cartoon : directed_by , channel , title , id , production_code , original_air_date , written_by", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "languages": "TV_Channel.Language", + "channels": "TV_Channel" + } + }, + { + "question": "list each #language# and the #number of tv channels# using it.", + "db_id": "tvshow", + "orig_query": "select language, count(*) from tv_channel group by language", + "schema_with_content": "tv_series : viewers_m (\"6.94\", \"6.09\", \"5.61\"), weekly_rank (72.0, 50.0, 68.0), 18_49_rating_share (\"1.7/5\", \"3.5/9\", \"2.9/7\"), episode (\"Friendly Skies\", \"A Love of a Lifetime\", \"Double Down\"), channel (\"700\", \"700\", \"714\"), air_date (\"October 1, 2007\", \"November 26, 2007\", \"December 10, 2007\"), rating (\"3.4\", \"3.8\", \"3.4\"), share (7.0, 6.0, 6.0), id (5.0, 7.0, 6.0) | Television_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), package_option (\"Option\", \"Sky Famiglia\", \"no ( FTV )\"), series_name (\"Classica\", \"Hip Hop TV\", \"myDeejay\"), hight_definition_tv (\"no\", \"yes\"), id (\"700\", \"713\", \"715\") | Broadcasting_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), package_option (\"Option\", \"Sky Famiglia\", \"no ( FTV )\"), series_name (\"Classica\", \"Hip Hop TV\", \"myDeejay\"), hight_definition_tv (\"no\", \"yes\"), id (\"700\", \"713\", \"715\") | cartoon : original_air_date (\"November21,2008\", \"December5,2008\", \"February6,2009\"), title (\"Dawn of the Dead Man!\", \"The Eyes of Despero!\", \"Enter the Outsiders!\"), channel (\"703\", \"701\", \"706\"), production_code (107.0, 108.0, 102.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (9.0, 11.0, 12.0), written_by (\"James Krieg\", \"Matt Wayne\", \"Todd Casey\")", + "schema_without_content": "tv_series : viewers_m , weekly_rank , 18_49_rating_share , episode , channel , air_date , rating , share , id | Television_Channel : pixel_aspect_ratio_par , content , country , pay_per_view_ppv , language , package_option \", series_name , hight_definition_tv , id | Broadcasting_Channel : pixel_aspect_ratio_par , content , country , pay_per_view_ppv , language , package_option \", series_name , hight_definition_tv , id | cartoon : original_air_date , title , channel , production_code , directed_by , id , written_by", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "language": "TV_Channel.Language", + "number of TV Channels": "TV_Channel" + } + }, + { + "question": "for each #language# , list the number of #tv channels# that use it.", + "db_id": "tvshow", + "orig_query": "select language, count(*) from tv_channel group by language", + "schema_with_content": "Broadcasting_Channel : hight_definition_tv (\"no\", \"yes\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"MTV Music\", \"myDeejay\", \"Music Box Italia\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"717\", \"704\", \"707\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\") | tv_series : air_date (\"October 29, 2007\", \"November 19, 2007\", \"December 17, 2007\"), rating (\"4.3\", \"3.7\", \"5.8\"), 18_49_rating_share (\"2.1/5\", \"2.4/6\", \"3.5/9\"), share (9.0, 5.0, 7.0), channel (\"700\", \"707\", \"707\"), episode (\"Emily\", \"A Love of a Lifetime\", \"Friendly Skies\"), id (8.0, 10.0, 1.0), weekly_rank (50.0, 62.0, 66.0), viewers_m (\"6.06\", \"8.23\", \"6.75\") | cartoon : title (\"Invasion of the Secret Santas!\", \"Terror on Dinosaur Island!\", \"Fall of the Blue Beetle!\"), original_air_date (\"February6,2009\", \"February27,2009\", \"November14,2008\"), written_by (\"Joseph Kuhr\", \"Steven Melching\", \"Todd Casey\"), channel (\"708\", \"708\", \"707\"), production_code (112.0, 101.0, 109.0), id (8.0, 9.0, 8.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | Television_Channel : hight_definition_tv (\"no\", \"yes\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"MTV Music\", \"myDeejay\", \"Music Box Italia\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"717\", \"704\", \"707\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\")", + "schema_without_content": "Broadcasting_Channel : hight_definition_tv , content , country , series_name , pixel_aspect_ratio_par , id , package_option , language , pay_per_view_ppv | tv_series : air_date , rating , 18_49_rating_share , share , channel , episode , id , weekly_rank , viewers_m | cartoon : title , original_air_date , written_by , channel , production_code , id , directed_by | Television_Channel : hight_definition_tv , content , country , series_name , pixel_aspect_ratio_par , id , package_option , language , pay_per_view_ppv", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "language": "TV_Channel.Language", + "TV Channels": "TV_Channel" + } + }, + { + "question": "what is the #tv channel# that shows the #cartoon# \"the rise of the blue beetle!\"? list the tv channel's #series name# .", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.title = \"The Rise of the Blue Beetle!\"", + "schema_with_content": "Broadcasting_Channel : pay_per_view_ppv (\"no\"), id (\"709\", \"700\", \"706\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"myDeejay\", \"Sky Music\", \"Match Music\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\"), language (\"Italian\", \"English\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"February27,2009\", \"January2,2009\", \"February6,2009\"), id (11.0, 3.0, 6.0), production_code (105.0, 101.0, 112.0), written_by (\"Joseph Kuhr\", \"Todd Casey\", \"Steven Melching\"), title (\"Invasion of the Secret Santas!\", \"The Eyes of Despero!\", \"Journey to the Center of the Bat!\"), channel (\"705\", \"703\", \"704\") | Television_Channel : pay_per_view_ppv (\"no\"), id (\"709\", \"700\", \"706\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"myDeejay\", \"Sky Music\", \"Match Music\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\"), language (\"Italian\", \"English\") | tv_series : weekly_rank (68.0, 65.0, 61.0), id (4.0, 2.0, 10.0), viewers_m (\"6.05\", \"6.05\", \"6.94\"), rating (\"3.0\", \"5.3\", \"5.3\"), episode (\"The Legend of Dylan McCleen\", \"The Hanged Man\", \"The Year of the Rabbit\"), channel (\"700\", \"700\", \"713\"), share (9.0, 5.0, 9.0), air_date (\"October 29, 2007\", \"October 29, 2007\", \"November 5, 2007\"), 18_49_rating_share (\"2.9/7\", \"3.2/8\", \"2.1/5\")", + "schema_without_content": "Broadcasting_Channel : pay_per_view_ppv , id , pixel_aspect_ratio_par , country , series_name , package_option \", \"no \", \"Sky Famiglia\", hight_definition_tv , content , language | cartoon : directed_by , original_air_date , id , production_code , written_by , title , channel | Television_Channel : pay_per_view_ppv , id , pixel_aspect_ratio_par , country , series_name , package_option \", \"no \", \"Sky Famiglia\", hight_definition_tv , content , language | tv_series : weekly_rank , id , viewers_m , rating , episode , channel , share , air_date , 18_49_rating_share", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "TV Channel": "TV_Channel", + "cartoon": "Cartoon", + "series name": "TV_Channel.series_name", + "Title": "Cartoon.Title" + } + }, + { + "question": "what is the #tv channel# that shows the #cartoon# \"the rise of the blue beetle!\"? list the tv channel's #series name# .", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.title = \"The Rise of the Blue Beetle!\"", + "schema_with_content": "tv_series : viewers_m (\"6.09\", \"4.24\", \"5.61\"), weekly_rank (65.0, 65.0, 66.0), id (11.0, 10.0, 4.0), episode (\"Emily\", \"The Legend of Dylan McCleen\", \"Friendly Skies\"), channel (\"713\", \"714\", \"728\"), share (9.0, 6.0, 9.0), rating (\"3.4\", \"5.3\", \"3.4\"), 18_49_rating_share (\"2.7/7\", \"2.2/6\", \"3.2/8\"), air_date (\"October 15, 2007\", \"November 26, 2007\", \"December 17, 2007\") | animated_series : title (\"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\", \"Enter the Outsiders!\"), id (5.0, 8.0, 2.0), production_code (101.0, 104.0, 105.0), channel (\"705\", \"708\", \"707\"), written_by (\"J. M. DeMatteis\", \"J. M. DeMatteis\", \"Michael Jelenic\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"December5,2008\", \"December12,2008\", \"December5,2008\") | tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), id (\"708\", \"728\", \"703\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), series_name (\"Match Music\", \"Rock TV\", \"Classica\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\") | toons : title (\"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\", \"Enter the Outsiders!\"), id (5.0, 8.0, 2.0), production_code (101.0, 104.0, 105.0), channel (\"705\", \"708\", \"707\"), written_by (\"J. M. DeMatteis\", \"J. M. DeMatteis\", \"Michael Jelenic\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"December5,2008\", \"December12,2008\", \"December5,2008\")", + "schema_without_content": "tv_series : viewers_m , weekly_rank , id , episode , channel , share , rating , 18_49_rating_share , air_date | animated_series : title , id , production_code , channel , written_by , directed_by , original_air_date | tv_channel : pixel_aspect_ratio_par , pay_per_view_ppv , country , content , id , hight_definition_tv , language , series_name , package_option \", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\" | toons : title , id , production_code , channel , written_by , directed_by , original_air_date", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "TV Channel": "TV_Channel", + "cartoon": "Cartoon", + "series name": "TV_Channel.series_name", + "Title": "Cartoon.Title" + } + }, + { + "question": "what is the #series name of the tv channel# that shows the #cartoon# \"the rise of the blue beetle\"?", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.title = \"The Rise of the Blue Beetle!\"", + "schema_with_content": "Television_Channel : id (\"704\", \"701\", \"701\"), pay_per_view_ppv (\"no\"), content (\"music\"), series_name (\"Sky Music\", \"Music Box Italia\", \"Classica\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\") | tv_series : episode (\"Emily\", \"Friendly Skies\", \"The Legend of Dylan McCleen\"), share (5.0, 9.0, 5.0), 18_49_rating_share (\"2.4/6\", \"2.2/6\", \"1.7/5\"), id (10.0, 2.0, 12.0), air_date (\"September 24, 2007\", \"October 15, 2007\", \"November 19, 2007\"), rating (\"5.3\", \"4.4\", \"5.3\"), weekly_rank (65.0, 67.0, 71.0), channel (\"714\", \"717\", \"700\"), viewers_m (\"5.61\", \"6.75\", \"4.24\") | cartoon : channel (\"706\", \"707\", \"706\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Return of the Fearsome Fangs!\", \"Invasion of the Secret Santas!\", \"Return of the Fearsome Fangs!\"), original_air_date (\"February20,2009\", \"December5,2008\", \"February6,2009\"), id (7.0, 7.0, 9.0), written_by (\"Todd Casey\", \"James Krieg\", \"Matt Wayne\"), production_code (107.0, 103.0, 107.0) | Broadcasting_Channel : id (\"704\", \"701\", \"701\"), pay_per_view_ppv (\"no\"), content (\"music\"), series_name (\"Sky Music\", \"Music Box Italia\", \"Classica\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\")", + "schema_without_content": "Television_Channel : id , pay_per_view_ppv , content , series_name , hight_definition_tv , pixel_aspect_ratio_par , language , country , package_option \", \"Sky Famiglia + Sky HD\", \"no \" | tv_series : episode , share , 18_49_rating_share , id , air_date , rating , weekly_rank , channel , viewers_m | cartoon : channel , directed_by , title , original_air_date , id , written_by , production_code | Broadcasting_Channel : id , pay_per_view_ppv , content , series_name , hight_definition_tv , pixel_aspect_ratio_par , language , country , package_option \", \"Sky Famiglia + Sky HD\", \"no \"", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "series name of the TV Channel": "TV_Channel.series_name", + "cartoon": "Cartoon", + "Title": "Cartoon.Title" + } + }, + { + "question": "what is the #series name of the tv channel# that shows the #cartoon# \"the rise of the blue beetle\"?", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.title = \"The Rise of the Blue Beetle!\"", + "schema_with_content": "tv_channel : hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"no ( FTV )\"), content (\"music\"), pay_per_view_ppv (\"no\"), id (\"707\", \"715\", \"717\"), language (\"Italian\", \"English\"), series_name (\"MTV Dance\", \"Hip Hop TV\", \"MTV Rocks\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | toons : written_by (\"James Krieg\", \"Todd Casey\", \"Steven Melching\"), original_air_date (\"January16,2009\", \"December5,2008\", \"January9,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"701\", \"728\", \"728\"), id (11.0, 1.0, 4.0), production_code (108.0, 106.0, 105.0), title (\"Fall of the Blue Beetle!\", \"Invasion of the Secret Santas!\", \"Return of the Fearsome Fangs!\") | tv_series : episode (\"The Hanged Man\", \"Home By Another Way\", \"Keepers\"), share (5.0, 6.0, 9.0), viewers_m (\"6.75\", \"5.28\", \"5.75\"), air_date (\"December 10, 2007\", \"September 24, 2007\", \"September 24, 2007\"), weekly_rank (61.0, 66.0, 71.0), id (3.0, 3.0, 6.0), rating (\"3.8\", \"3.5\", \"4.3\"), 18_49_rating_share (\"1.5/4\", \"2.2/6\", \"2.1/5\"), channel (\"707\", \"728\", \"714\") | animated_series : written_by (\"James Krieg\", \"Todd Casey\", \"Steven Melching\"), original_air_date (\"January16,2009\", \"December5,2008\", \"January9,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"701\", \"728\", \"728\"), id (11.0, 1.0, 4.0), production_code (108.0, 106.0, 105.0), title (\"Fall of the Blue Beetle!\", \"Invasion of the Secret Santas!\", \"Return of the Fearsome Fangs!\")", + "schema_without_content": "tv_channel : hight_definition_tv , package_option \", \"no \", content , pay_per_view_ppv , id , language , series_name , country , pixel_aspect_ratio_par | toons : written_by , original_air_date , directed_by , channel , id , production_code , title | tv_series : episode , share , viewers_m , air_date , weekly_rank , id , rating , 18_49_rating_share , channel | animated_series : written_by , original_air_date , directed_by , channel , id , production_code , title", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "series name of the TV Channel": "TV_Channel.series_name", + "cartoon": "Cartoon", + "Title": "Cartoon.Title" + } + }, + { + "question": "list the #title# of all cartoons showed on #tv channel with series nam# e \"sky radio\".", + "db_id": "tvshow", + "orig_query": "select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "tv_series : weekly_rank (67.0, 67.0, 62.0), 18_49_rating_share (\"2.7/7\", \"3.5/9\", \"2.1/5\"), share (5.0, 9.0, 5.0), rating (\"3.0\", \"5.3\", \"3.7\"), viewers_m (\"6.75\", \"5.61\", \"9.16\"), episode (\"The Year of the Rabbit\", \"Blowback\", \"Double Down\"), channel (\"700\", \"700\", \"701\"), air_date (\"October 8, 2007\", \"October 29, 2007\", \"November 5, 2007\"), id (7.0, 6.0, 2.0) | cartoon : production_code (109.0, 101.0, 108.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"December12,2008\", \"January30,2009\", \"December5,2008\"), written_by (\"Matt Wayne\", \"Steven Melching\", \"Matt Wayne\"), channel (\"704\", \"701\", \"705\"), title (\"Journey to the Center of the Bat!\", \"Enter the Outsiders!\", \"Deep Cover for Batman!\"), id (9.0, 10.0, 8.0) | Television_Channel : series_name (\"Sky Radio\", \"Match Music\", \"MTV Classic\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), id (\"713\", \"703\", \"713\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), content (\"music\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"no ( FTV )\") | Broadcasting_Channel : series_name (\"Sky Radio\", \"Match Music\", \"MTV Classic\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), id (\"713\", \"703\", \"713\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), content (\"music\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"no ( FTV )\")", + "schema_without_content": "tv_series : weekly_rank , 18_49_rating_share , share , rating , viewers_m , episode , channel , air_date , id | cartoon : production_code , directed_by , original_air_date , written_by , channel , title , id | Television_Channel : series_name , hight_definition_tv , language , id , pixel_aspect_ratio_par , country , pay_per_view_ppv , content , package_option \", \"no \" | Broadcasting_Channel : series_name , hight_definition_tv , language , id , pixel_aspect_ratio_par , country , pay_per_view_ppv , content , package_option \", \"no \"", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "title": "Cartoon.Title", + "TV Channel with series nam": "TV_Channel", + "series name": "TV_Channel.series_name" + } + }, + { + "question": "list the #title# of all cartoons showed on #tv channel with series nam# e \"sky radio\".", + "db_id": "tvshow", + "orig_query": "select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "animated_series : title (\"Evil Under the Sea!\", \"Journey to the Center of the Bat!\", \"Return of the Fearsome Fangs!\"), written_by (\"Todd Casey\", \"J. M. DeMatteis\", \"Steven Melching\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (6.0, 7.0, 7.0), production_code (112.0, 112.0, 101.0), channel (\"708\", \"728\", \"700\"), original_air_date (\"February27,2009\", \"January2,2009\", \"December12,2008\") | tv_channel : hight_definition_tv (\"no\", \"yes\"), id (\"700\", \"707\", \"706\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"MTV Rocks\", \"MTV Dance\", \"MTV Music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Option\", \"no ( FTV )\", \"Option\"), content (\"music\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\") | tv_series : 18_49_rating_share (\"2.9/7\", \"3.2/8\", \"3.5/9\"), channel (\"708\", \"713\", \"708\"), episode (\"The Year of the Rabbit\", \"The Year of the Rabbit\", \"The Hanged Man\"), rating (\"3.7\", \"4.0\", \"5.8\"), weekly_rank (71.0, 43.0, 67.0), viewers_m (\"9.16\", \"6.06\", \"8.23\"), air_date (\"October 1, 2007\", \"October 8, 2007\", \"November 12, 2007\"), id (4.0, 12.0, 11.0), share (5.0, 6.0, 7.0) | toons : title (\"Evil Under the Sea!\", \"Journey to the Center of the Bat!\", \"Return of the Fearsome Fangs!\"), written_by (\"Todd Casey\", \"J. M. DeMatteis\", \"Steven Melching\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (6.0, 7.0, 7.0), production_code (112.0, 112.0, 101.0), channel (\"708\", \"728\", \"700\"), original_air_date (\"February27,2009\", \"January2,2009\", \"December12,2008\")", + "schema_without_content": "animated_series : title , written_by , directed_by , id , production_code , channel , original_air_date | tv_channel : hight_definition_tv , id , country , series_name , pixel_aspect_ratio_par , package_option \", \"Option\", content , language , pay_per_view_ppv | tv_series : 18_49_rating_share , channel , episode , rating , weekly_rank , viewers_m , air_date , id , share | toons : title , written_by , directed_by , id , production_code , channel , original_air_date", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "title": "Cartoon.Title", + "TV Channel with series nam": "TV_Channel", + "series name": "TV_Channel.series_name" + } + }, + { + "question": "what is the #title# of all the cartools that are on the #tv channel with the series name# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "Television_Channel : pay_per_view_ppv (\"no\"), series_name (\"MTV Dance\", \"Music Box Italia\", \"MTV Dance\"), id (\"704\", \"728\", \"704\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\") | Broadcasting_Channel : pay_per_view_ppv (\"no\"), series_name (\"MTV Dance\", \"Music Box Italia\", \"MTV Dance\"), id (\"704\", \"728\", \"704\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\") | tv_series : episode (\"Double Down\", \"Keepers\", \"Home By Another Way\"), weekly_rank (66.0, 72.0, 71.0), channel (\"700\", \"719\", \"717\"), 18_49_rating_share (\"3.2/8\", \"2.2/6\", \"3.5/9\"), air_date (\"October 29, 2007\", \"October 15, 2007\", \"September 24, 2007\"), share (9.0, 6.0, 5.0), viewers_m (\"5.13\", \"5.28\", \"6.05\"), id (4.0, 2.0, 8.0), rating (\"3.5\", \"4.4\", \"3.0\") | cartoon : id (1.0, 12.0, 9.0), original_air_date (\"January9,2009\", \"January2,2009\", \"February6,2009\"), channel (\"704\", \"701\", \"728\"), production_code (103.0, 110.0, 110.0), written_by (\"Matt Wayne\", \"Matt Wayne\", \"Steven Melching\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"The Eyes of Despero!\", \"Fall of the Blue Beetle!\", \"Day of the Dark Knight!\")", + "schema_without_content": "Television_Channel : pay_per_view_ppv , series_name , id , hight_definition_tv , pixel_aspect_ratio_par , content , country , language , package_option | Broadcasting_Channel : pay_per_view_ppv , series_name , id , hight_definition_tv , pixel_aspect_ratio_par , content , country , language , package_option | tv_series : episode , weekly_rank , channel , 18_49_rating_share , air_date , share , viewers_m , id , rating | cartoon : id , original_air_date , channel , production_code , written_by , directed_by , title", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "title": "Cartoon.Title", + "TV Channel with the series name": "TV_Channel.series_name" + } + }, + { + "question": "what is the #title# of all the cartools that are on the #tv channel with the series name# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "animated_series : id (4.0, 9.0, 1.0), production_code (104.0, 106.0, 104.0), channel (\"728\", \"704\", \"705\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Steven Melching\", \"Steven Melching\", \"Todd Casey\"), original_air_date (\"January30,2009\", \"November14,2008\", \"December5,2008\"), title (\"Dawn of the Dead Man!\", \"Terror on Dinosaur Island!\", \"Journey to the Center of the Bat!\") | tv_series : share (6.0, 5.0, 7.0), id (5.0, 12.0, 2.0), weekly_rank (72.0, 71.0, 71.0), viewers_m (\"6.75\", \"9.16\", \"6.75\"), episode (\"Blowback\", \"Home By Another Way\", \"A Love of a Lifetime\"), channel (\"708\", \"707\", \"701\"), air_date (\"December 17, 2007\", \"September 24, 2007\", \"November 12, 2007\"), rating (\"4.4\", \"4.3\", \"4.0\"), 18_49_rating_share (\"2.4/6\", \"2.2/6\", \"2.2/6\") | toons : id (4.0, 9.0, 1.0), production_code (104.0, 106.0, 104.0), channel (\"728\", \"704\", \"705\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Steven Melching\", \"Steven Melching\", \"Todd Casey\"), original_air_date (\"January30,2009\", \"November14,2008\", \"December5,2008\"), title (\"Dawn of the Dead Man!\", \"Terror on Dinosaur Island!\", \"Journey to the Center of the Bat!\") | tv_channel : language (\"Italian\", \"English\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), id (\"708\", \"713\", \"728\"), series_name (\"Match Music\", \"Sky Radio\", \"MTV Music\"), pay_per_view_ppv (\"no\"), package_option (\"Option\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\")", + "schema_without_content": "animated_series : id , production_code , channel , directed_by , written_by , original_air_date , title | tv_series : share , id , weekly_rank , viewers_m , episode , channel , air_date , rating , 18_49_rating_share | toons : id , production_code , channel , directed_by , written_by , original_air_date , title | tv_channel : language , content , hight_definition_tv , id , series_name , pay_per_view_ppv , package_option , country , pixel_aspect_ratio_par", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "title": "Cartoon.Title", + "TV Channel with the series name": "TV_Channel.series_name" + } + }, + { + "question": "list the #episode of all tv series# sorted by #rating# .", + "db_id": "tvshow", + "orig_query": "select episode from tv_series order by rating", + "schema_with_content": "tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Music\", \"MTV Rocks\", \"MTV Classic\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"709\", \"728\", \"700\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), content (\"music\") | TV_show : 18_49_rating_share (\"3.5/9\", \"2.7/7\", \"1.5/4\"), share (9.0, 5.0, 7.0), air_date (\"September 24, 2007\", \"October 22, 2007\", \"October 1, 2007\"), rating (\"3.8\", \"5.8\", \"4.3\"), episode (\"Blowback\", \"Keepers\", \"Winterland\"), channel (\"713\", \"707\", \"701\"), weekly_rank (68.0, 65.0, 62.0), viewers_m (\"6.94\", \"5.13\", \"5.75\"), id (8.0, 2.0, 11.0) | TV_program : 18_49_rating_share (\"3.5/9\", \"2.7/7\", \"1.5/4\"), share (9.0, 5.0, 7.0), air_date (\"September 24, 2007\", \"October 22, 2007\", \"October 1, 2007\"), rating (\"3.8\", \"5.8\", \"4.3\"), episode (\"Blowback\", \"Keepers\", \"Winterland\"), channel (\"713\", \"707\", \"701\"), weekly_rank (68.0, 65.0, 62.0), viewers_m (\"6.94\", \"5.13\", \"5.75\"), id (8.0, 2.0, 11.0) | cartoon : id (8.0, 3.0, 7.0), production_code (112.0, 109.0, 101.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Fall of the Blue Beetle!\", \"The Eyes of Despero!\", \"Return of the Fearsome Fangs!\"), channel (\"707\", \"704\", \"706\"), written_by (\"James Krieg\", \"Adam Beechen\", \"Todd Casey\"), original_air_date (\"January9,2009\", \"January23,2009\", \"November21,2008\")", + "schema_without_content": "tv_channel : pixel_aspect_ratio_par , series_name , country , id , hight_definition_tv , package_option , pay_per_view_ppv , language , content | TV_show : 18_49_rating_share , share , air_date , rating , episode , channel , weekly_rank , viewers_m , id | TV_program : 18_49_rating_share , share , air_date , rating , episode , channel , weekly_rank , viewers_m , id | cartoon : id , production_code , directed_by , title , channel , written_by , original_air_date", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "Episode of all TV series": "TV_series.Episode", + "rating": "TV_series.Rating" + } + }, + { + "question": "what are all of the #episodes# ordered by #ratings# ?", + "db_id": "tvshow", + "orig_query": "select episode from tv_series order by rating", + "schema_with_content": "tv_channel : package_option (\"Option\", \"Sky Famiglia\", \"Sky Famiglia\"), series_name (\"MTV Live HD\", \"MTV Classic\", \"Rock TV\"), content (\"music\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), id (\"706\", \"714\", \"703\") | TV_program : viewers_m (\"6.75\", \"6.09\", \"4.24\"), episode (\"Emily\", \"Double Down\", \"Blowback\"), air_date (\"September 24, 2007\", \"October 8, 2007\", \"November 19, 2007\"), 18_49_rating_share (\"3.5/9\", \"1.7/5\", \"2.2/6\"), id (11.0, 5.0, 1.0), weekly_rank (61.0, 67.0, 66.0), rating (\"3.7\", \"3.7\", \"4.0\"), share (6.0, 9.0, 6.0), channel (\"717\", \"700\", \"708\") | cartoon : production_code (103.0, 104.0, 106.0), written_by (\"J. M. DeMatteis\", \"Todd Casey\", \"Joseph Kuhr\"), channel (\"700\", \"708\", \"701\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Deep Cover for Batman!\", \"Journey to the Center of the Bat!\", \"Fall of the Blue Beetle!\"), id (3.0, 4.0, 11.0), original_air_date (\"February20,2009\", \"January9,2009\", \"December12,2008\") | TV_show : viewers_m (\"6.75\", \"6.09\", \"4.24\"), episode (\"Emily\", \"Double Down\", \"Blowback\"), air_date (\"September 24, 2007\", \"October 8, 2007\", \"November 19, 2007\"), 18_49_rating_share (\"3.5/9\", \"1.7/5\", \"2.2/6\"), id (11.0, 5.0, 1.0), weekly_rank (61.0, 67.0, 66.0), rating (\"3.7\", \"3.7\", \"4.0\"), share (6.0, 9.0, 6.0), channel (\"717\", \"700\", \"708\")", + "schema_without_content": "tv_channel : package_option , series_name , content , language , country , pay_per_view_ppv , pixel_aspect_ratio_par , hight_definition_tv , id | TV_program : viewers_m , episode , air_date , 18_49_rating_share , id , weekly_rank , rating , share , channel | cartoon : production_code , written_by , channel , directed_by , title , id , original_air_date | TV_show : viewers_m , episode , air_date , 18_49_rating_share , id , weekly_rank , rating , share , channel", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "episodes": "TV_series.Episode", + "ratings": "TV_series.Rating" + } + }, + { + "question": "list top 3 highest #rating# #tv series# . list the #tv series's episode# and rating.", + "db_id": "tvshow", + "orig_query": "select episode, rating from tv_series order by rating desc limit 3", + "schema_with_content": "TV_program : episode (\"Winterland\", \"The Year of the Rabbit\", \"Game Three\"), channel (\"717\", \"719\", \"701\"), weekly_rank (67.0, 43.0, 72.0), share (5.0, 7.0, 6.0), rating (\"5.8\", \"4.0\", \"4.4\"), id (12.0, 9.0, 12.0), air_date (\"October 8, 2007\", \"September 24, 2007\", \"November 19, 2007\"), viewers_m (\"9.16\", \"4.24\", \"5.61\"), 18_49_rating_share (\"3.5/9\", \"3.5/9\", \"1.5/4\") | TV_show : episode (\"Winterland\", \"The Year of the Rabbit\", \"Game Three\"), channel (\"717\", \"719\", \"701\"), weekly_rank (67.0, 43.0, 72.0), share (5.0, 7.0, 6.0), rating (\"5.8\", \"4.0\", \"4.4\"), id (12.0, 9.0, 12.0), air_date (\"October 8, 2007\", \"September 24, 2007\", \"November 19, 2007\"), viewers_m (\"9.16\", \"4.24\", \"5.61\"), 18_49_rating_share (\"3.5/9\", \"3.5/9\", \"1.5/4\") | tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Hits\", \"Classica\", \"MTV Rocks\"), package_option (\"Option\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), id (\"700\", \"714\", \"714\"), language (\"Italian\", \"English\") | cartoon : channel (\"707\", \"701\", \"704\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"The Rise of the Blue Beetle!\", \"Journey to the Center of the Bat!\", \"The Eyes of Despero!\"), id (10.0, 2.0, 4.0), written_by (\"Adam Beechen\", \"Adam Beechen\", \"Matt Wayne\"), production_code (108.0, 112.0, 111.0), original_air_date (\"January16,2009\", \"November21,2008\", \"February6,2009\")", + "schema_without_content": "TV_program : episode , channel , weekly_rank , share , rating , id , air_date , viewers_m , 18_49_rating_share | TV_show : episode , channel , weekly_rank , share , rating , id , air_date , viewers_m , 18_49_rating_share | tv_channel : pixel_aspect_ratio_par , hight_definition_tv , country , content , pay_per_view_ppv , series_name , package_option , id , language | cartoon : channel , directed_by , title , id , written_by , production_code , original_air_date", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "Rating TV serie": "TV_series.Rating", + "TV series": "TV_series", + "Rating": "TV_series.Rating", + "TV series's Episode": "TV_series.Episode" + } + }, + { + "question": "what are 3 most highly rated #episodes in the tv series table# and what were those #ratings# ?", + "db_id": "tvshow", + "orig_query": "select episode, rating from tv_series order by rating desc limit 3", + "schema_with_content": "tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), series_name (\"Match Music\", \"Rock TV\", \"Sky Music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"Sky Famiglia\"), hight_definition_tv (\"no\", \"yes\"), id (\"708\", \"717\", \"714\") | cartoon : original_air_date (\"January9,2009\", \"January30,2009\", \"January16,2009\"), channel (\"708\", \"705\", \"703\"), id (5.0, 11.0, 1.0), title (\"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\", \"Deep Cover for Batman!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (104.0, 103.0, 105.0), written_by (\"Matt Wayne\", \"James Krieg\", \"Adam Beechen\") | TV_show : id (3.0, 10.0, 3.0), share (6.0, 9.0, 7.0), channel (\"700\", \"717\", \"719\"), viewers_m (\"5.75\", \"5.75\", \"6.09\"), episode (\"The Hanged Man\", \"Winterland\", \"Winterland\"), rating (\"3.0\", \"5.8\", \"4.3\"), weekly_rank (70.0, 43.0, 62.0), air_date (\"October 1, 2007\", \"November 12, 2007\", \"October 22, 2007\"), 18_49_rating_share (\"2.2/6\", \"3.2/8\", \"3.2/8\") | TV_program : id (3.0, 10.0, 3.0), share (6.0, 9.0, 7.0), channel (\"700\", \"717\", \"719\"), viewers_m (\"5.75\", \"5.75\", \"6.09\"), episode (\"The Hanged Man\", \"Winterland\", \"Winterland\"), rating (\"3.0\", \"5.8\", \"4.3\"), weekly_rank (70.0, 43.0, 62.0), air_date (\"October 1, 2007\", \"November 12, 2007\", \"October 22, 2007\"), 18_49_rating_share (\"2.2/6\", \"3.2/8\", \"3.2/8\")", + "schema_without_content": "tv_channel : country , content , series_name , pixel_aspect_ratio_par , pay_per_view_ppv , language , package_option \", \"Sky Famiglia\", hight_definition_tv , id | cartoon : original_air_date , channel , id , title , directed_by , production_code , written_by | TV_show : id , share , channel , viewers_m , episode , rating , weekly_rank , air_date , 18_49_rating_share | TV_program : id , share , channel , viewers_m , episode , rating , weekly_rank , air_date , 18_49_rating_share", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "episodes in the TV series table": "TV_series.Episode", + "ratings": "TV_series.Rating" + } + }, + { + "question": "what is the #air date of tv series with episode# \"a love of a lifetime\"?", + "db_id": "tvshow", + "orig_query": "select air_date from tv_series where episode = \"A Love of a Lifetime\"", + "schema_with_content": "TV_program : id (7.0, 7.0, 10.0), episode (\"The Hanged Man\", \"A Love of a Lifetime\", \"The Year of the Rabbit\"), 18_49_rating_share (\"2.9/7\", \"3.2/8\", \"1.7/5\"), rating (\"3.0\", \"3.4\", \"3.0\"), viewers_m (\"5.75\", \"8.23\", \"5.28\"), air_date (\"December 10, 2007\", \"November 5, 2007\", \"October 8, 2007\"), share (5.0, 6.0, 5.0), channel (\"713\", \"700\", \"719\"), weekly_rank (65.0, 61.0, 50.0) | tv_channel : pay_per_view_ppv (\"no\"), series_name (\"Classica\", \"Sky Music\", \"myDeejay\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"713\", \"728\", \"701\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\") | TV_show : id (7.0, 7.0, 10.0), episode (\"The Hanged Man\", \"A Love of a Lifetime\", \"The Year of the Rabbit\"), 18_49_rating_share (\"2.9/7\", \"3.2/8\", \"1.7/5\"), rating (\"3.0\", \"3.4\", \"3.0\"), viewers_m (\"5.75\", \"8.23\", \"5.28\"), air_date (\"December 10, 2007\", \"November 5, 2007\", \"October 8, 2007\"), share (5.0, 6.0, 5.0), channel (\"713\", \"700\", \"719\"), weekly_rank (65.0, 61.0, 50.0) | cartoon : written_by (\"Steven Melching\", \"Matt Wayne\", \"Todd Casey\"), id (1.0, 11.0, 4.0), title (\"Deep Cover for Batman!\", \"Invasion of the Secret Santas!\", \"Enter the Outsiders!\"), channel (\"706\", \"708\", \"701\"), production_code (105.0, 112.0, 107.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"November14,2008\", \"January2,2009\", \"November14,2008\")", + "schema_without_content": "TV_program : id , episode , 18_49_rating_share , rating , viewers_m , air_date , share , channel , weekly_rank | tv_channel : pay_per_view_ppv , series_name , pixel_aspect_ratio_par , hight_definition_tv , content , country , id , language , package_option | TV_show : id , episode , 18_49_rating_share , rating , viewers_m , air_date , share , channel , weekly_rank | cartoon : written_by , id , title , channel , production_code , directed_by , original_air_date", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "air date of TV series with Episode": "TV_series.Air_Date" + } + }, + { + "question": "when did the #episode# \"a love of a lifetime\" #air# ?", + "db_id": "tvshow", + "orig_query": "select air_date from tv_series where episode = \"A Love of a Lifetime\"", + "schema_with_content": "TV_program : 18_49_rating_share (\"3.2/8\", \"2.4/6\", \"2.1/5\"), viewers_m (\"6.09\", \"6.94\", \"9.16\"), share (6.0, 7.0, 9.0), id (1.0, 9.0, 7.0), weekly_rank (43.0, 65.0, 67.0), air_date (\"November 19, 2007\", \"December 17, 2007\", \"October 15, 2007\"), rating (\"3.7\", \"4.0\", \"4.0\"), episode (\"Winterland\", \"Friendly Skies\", \"Winterland\"), channel (\"708\", \"728\", \"708\") | cartoon : written_by (\"J. M. DeMatteis\", \"Adam Beechen\", \"Todd Casey\"), production_code (112.0, 111.0, 107.0), id (11.0, 4.0, 5.0), channel (\"703\", \"705\", \"728\"), title (\"Terror on Dinosaur Island!\", \"Terror on Dinosaur Island!\", \"The Rise of the Blue Beetle!\"), original_air_date (\"December12,2008\", \"December5,2008\", \"November14,2008\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | TV_show : 18_49_rating_share (\"3.2/8\", \"2.4/6\", \"2.1/5\"), viewers_m (\"6.09\", \"6.94\", \"9.16\"), share (6.0, 7.0, 9.0), id (1.0, 9.0, 7.0), weekly_rank (43.0, 65.0, 67.0), air_date (\"November 19, 2007\", \"December 17, 2007\", \"October 15, 2007\"), rating (\"3.7\", \"4.0\", \"4.0\"), episode (\"Winterland\", \"Friendly Skies\", \"Winterland\"), channel (\"708\", \"728\", \"708\") | tv_channel : hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Live HD\", \"Sky Music\", \"Radio Capital TiV\u00c3\u00b9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), id (\"715\", \"709\", \"717\"), package_option (\"Option\", \"no ( FTV )\", \"Sky Famiglia\"), language (\"Italian\", \"English\")", + "schema_without_content": "TV_program : 18_49_rating_share , viewers_m , share , id , weekly_rank , air_date , rating , episode , channel | cartoon : written_by , production_code , id , channel , title , original_air_date , directed_by | TV_show : 18_49_rating_share , viewers_m , share , id , weekly_rank , air_date , rating , episode , channel | tv_channel : hight_definition_tv , pixel_aspect_ratio_par , pay_per_view_ppv , series_name , country , content , id , package_option \", \"Sky Famiglia\", language", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "episode": "TV_series.Episode", + "air": "TV_series.Air_Date" + } + }, + { + "question": "what is #weekly rank of tv series with episode# \"a love of a lifetime\"?", + "db_id": "tvshow", + "orig_query": "select weekly_rank from tv_series where episode = \"A Love of a Lifetime\"", + "schema_with_content": "tv_channel : content (\"music\"), package_option (\"Sky Famiglia + Sky HD\", \"Option\", \"Option\"), language (\"Italian\", \"English\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Classic\", \"Sky Music\", \"Rock TV\"), id (\"728\", \"719\", \"715\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (5.0, 11.0, 11.0), channel (\"708\", \"728\", \"700\"), title (\"The Rise of the Blue Beetle!\", \"Deep Cover for Batman!\", \"The Eyes of Despero!\"), written_by (\"Michael Jelenic\", \"Matt Wayne\", \"Steven Melching\"), original_air_date (\"January30,2009\", \"February6,2009\", \"December12,2008\"), production_code (103.0, 105.0, 101.0) | TV_show : viewers_m (\"6.06\", \"6.09\", \"6.06\"), id (12.0, 1.0, 9.0), share (5.0, 9.0, 7.0), episode (\"The Hanged Man\", \"Keepers\", \"Winterland\"), 18_49_rating_share (\"3.2/8\", \"1.7/5\", \"3.5/9\"), channel (\"708\", \"719\", \"700\"), air_date (\"September 24, 2007\", \"November 26, 2007\", \"October 29, 2007\"), rating (\"3.7\", \"5.8\", \"3.7\"), weekly_rank (66.0, 67.0, 70.0) | TV_program : viewers_m (\"6.06\", \"6.09\", \"6.06\"), id (12.0, 1.0, 9.0), share (5.0, 9.0, 7.0), episode (\"The Hanged Man\", \"Keepers\", \"Winterland\"), 18_49_rating_share (\"3.2/8\", \"1.7/5\", \"3.5/9\"), channel (\"708\", \"719\", \"700\"), air_date (\"September 24, 2007\", \"November 26, 2007\", \"October 29, 2007\"), rating (\"3.7\", \"5.8\", \"3.7\"), weekly_rank (66.0, 67.0, 70.0)", + "schema_without_content": "tv_channel : content , package_option , language , hight_definition_tv , pay_per_view_ppv , pixel_aspect_ratio_par , series_name , id , country | cartoon : directed_by , id , channel , title , written_by , original_air_date , production_code | TV_show : viewers_m , id , share , episode , 18_49_rating_share , channel , air_date , rating , weekly_rank | TV_program : viewers_m , id , share , episode , 18_49_rating_share , channel , air_date , rating , weekly_rank", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "Weekly Rank of TV series with Episode": "TV_series.Weekly_Rank" + } + }, + { + "question": "what is the #weekly rank for the episode# \"a love of a lifetime\"?", + "db_id": "tvshow", + "orig_query": "select weekly_rank from tv_series where episode = \"A Love of a Lifetime\"", + "schema_with_content": "TV_program : episode (\"Winterland\", \"Home By Another Way\", \"The Hanged Man\"), channel (\"701\", \"714\", \"719\"), share (9.0, 7.0, 7.0), id (1.0, 6.0, 8.0), weekly_rank (50.0, 72.0, 70.0), air_date (\"December 17, 2007\", \"October 15, 2007\", \"November 5, 2007\"), 18_49_rating_share (\"3.2/8\", \"2.7/7\", \"1.5/4\"), viewers_m (\"8.23\", \"5.75\", \"5.61\"), rating (\"3.0\", \"3.8\", \"3.4\") | tv_channel : id (\"719\", \"709\", \"728\"), content (\"music\"), series_name (\"Radio Capital TiV\u00c3\u00b9\", \"MTV Rocks\", \"Radio Capital TiV\u00c3\u00b9\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Option\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\") | cartoon : written_by (\"Adam Beechen\", \"Todd Casey\", \"J. M. DeMatteis\"), id (1.0, 9.0, 1.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (107.0, 101.0, 107.0), channel (\"700\", \"708\", \"704\"), title (\"Deep Cover for Batman!\", \"Fall of the Blue Beetle!\", \"Invasion of the Secret Santas!\"), original_air_date (\"December12,2008\", \"December12,2008\", \"December5,2008\") | TV_show : episode (\"Winterland\", \"Home By Another Way\", \"The Hanged Man\"), channel (\"701\", \"714\", \"719\"), share (9.0, 7.0, 7.0), id (1.0, 6.0, 8.0), weekly_rank (50.0, 72.0, 70.0), air_date (\"December 17, 2007\", \"October 15, 2007\", \"November 5, 2007\"), 18_49_rating_share (\"3.2/8\", \"2.7/7\", \"1.5/4\"), viewers_m (\"8.23\", \"5.75\", \"5.61\"), rating (\"3.0\", \"3.8\", \"3.4\")", + "schema_without_content": "TV_program : episode , channel , share , id , weekly_rank , air_date , 18_49_rating_share , viewers_m , rating | tv_channel : id , content , series_name , hight_definition_tv , country , pixel_aspect_ratio_par , package_option , language , pay_per_view_ppv | cartoon : written_by , id , directed_by , production_code , channel , title , original_air_date | TV_show : episode , channel , share , id , weekly_rank , air_date , 18_49_rating_share , viewers_m , rating", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "weekly rank for the episode": "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_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t2.episode = \"A Love of a Lifetime\"", + "schema_with_content": "Broadcasting_Channel : pay_per_view_ppv (\"no\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Option\", \"Option\"), id (\"714\", \"700\", \"709\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Dance\", \"Hip Hop TV\", \"myDeejay\") | Television_Channel : pay_per_view_ppv (\"no\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Option\", \"Option\"), id (\"714\", \"700\", \"709\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Dance\", \"Hip Hop TV\", \"myDeejay\") | cartoon : title (\"Journey to the Center of the Bat!\", \"Evil Under the Sea!\", \"Day of the Dark Knight!\"), production_code (111.0, 105.0, 106.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"J. M. DeMatteis\", \"Todd Casey\", \"Matt Wayne\"), channel (\"706\", \"703\", \"728\"), original_air_date (\"February20,2009\", \"January2,2009\", \"January30,2009\"), id (1.0, 8.0, 1.0) | tv_series : share (6.0, 9.0, 9.0), 18_49_rating_share (\"3.5/9\", \"1.5/4\", \"1.5/4\"), episode (\"Emily\", \"Game Three\", \"Friendly Skies\"), channel (\"714\", \"707\", \"714\"), viewers_m (\"6.06\", \"6.75\", \"9.16\"), air_date (\"October 1, 2007\", \"September 24, 2007\", \"November 12, 2007\"), rating (\"5.8\", \"5.8\", \"4.3\"), weekly_rank (72.0, 68.0, 80.0), id (9.0, 1.0, 12.0)", + "schema_without_content": "Broadcasting_Channel : pay_per_view_ppv , content , country , language , package_option , id , hight_definition_tv , pixel_aspect_ratio_par , series_name | Television_Channel : pay_per_view_ppv , content , country , language , package_option , id , hight_definition_tv , pixel_aspect_ratio_par , series_name | cartoon : title , production_code , directed_by , written_by , channel , original_air_date , id | tv_series : share , 18_49_rating_share , episode , channel , viewers_m , air_date , rating , weekly_rank , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "TV series with Episode": "TV_series.Episode", + "TV Channel's series name": "TV_Channel.series_name" + } + }, + { + "question": "what is the tv channel of #tv series with episode# \"a love of a lifetime\"? list the #tv channel's series name# .", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t2.episode = \"A Love of a Lifetime\"", + "schema_with_content": "cartoon : id (6.0, 7.0, 6.0), original_air_date (\"December5,2008\", \"January16,2009\", \"December5,2008\"), title (\"Day of the Dark Knight!\", \"Deep Cover for Batman!\", \"Enter the Outsiders!\"), production_code (111.0, 104.0, 106.0), channel (\"708\", \"708\", \"704\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"James Krieg\", \"Adam Beechen\", \"Adam Beechen\") | TV_program : weekly_rank (70.0, 71.0, 62.0), id (11.0, 12.0, 4.0), 18_49_rating_share (\"2.4/6\", \"3.5/9\", \"3.5/9\"), rating (\"3.8\", \"4.0\", \"3.4\"), episode (\"Double Down\", \"A Love of a Lifetime\", \"Double Down\"), viewers_m (\"6.06\", \"5.61\", \"9.16\"), air_date (\"October 29, 2007\", \"November 19, 2007\", \"December 17, 2007\"), channel (\"707\", \"700\", \"707\"), share (5.0, 5.0, 7.0) | TV_show : weekly_rank (70.0, 71.0, 62.0), id (11.0, 12.0, 4.0), 18_49_rating_share (\"2.4/6\", \"3.5/9\", \"3.5/9\"), rating (\"3.8\", \"4.0\", \"3.4\"), episode (\"Double Down\", \"A Love of a Lifetime\", \"Double Down\"), viewers_m (\"6.06\", \"5.61\", \"9.16\"), air_date (\"October 29, 2007\", \"November 19, 2007\", \"December 17, 2007\"), channel (\"707\", \"700\", \"707\"), share (5.0, 5.0, 7.0) | tv_channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), id (\"717\", \"728\", \"717\"), series_name (\"Classica\", \"MTV Live HD\", \"MTV Music\"), pay_per_view_ppv (\"no\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), package_option (\"Option\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\"), content (\"music\")", + "schema_without_content": "cartoon : id , original_air_date , title , production_code , channel , directed_by , written_by | TV_program : weekly_rank , id , 18_49_rating_share , rating , episode , viewers_m , air_date , channel , share | TV_show : weekly_rank , id , 18_49_rating_share , rating , episode , viewers_m , air_date , channel , share | tv_channel : pixel_aspect_ratio_par , hight_definition_tv , id , series_name , pay_per_view_ppv , country , language , package_option \", content", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "TV series with Episode": "TV_series.Episode", + "TV Channel's series name": "TV_Channel.series_name" + } + }, + { + "question": "what is the #name of the series# that has the #episode# \"a love of a lifetime\"?", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t2.episode = \"A Love of a Lifetime\"", + "schema_with_content": "tv_series : rating (\"5.3\", \"3.7\", \"3.4\"), episode (\"Game Three\", \"Game Three\", \"The Year of the Rabbit\"), channel (\"701\", \"700\", \"714\"), weekly_rank (62.0, 72.0, 71.0), 18_49_rating_share (\"2.4/6\", \"1.5/4\", \"2.9/7\"), share (5.0, 6.0, 6.0), id (7.0, 5.0, 3.0), viewers_m (\"5.75\", \"8.23\", \"9.16\"), air_date (\"October 15, 2007\", \"October 1, 2007\", \"December 17, 2007\") | Broadcasting_Channel : id (\"728\", \"728\", \"709\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"Option\"), pay_per_view_ppv (\"no\"), content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Hits\", \"myDeejay\", \"MTV Dance\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | Television_Channel : id (\"728\", \"728\", \"709\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"Option\"), pay_per_view_ppv (\"no\"), content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"MTV Hits\", \"myDeejay\", \"MTV Dance\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | cartoon : title (\"Return of the Fearsome Fangs!\", \"Terror on Dinosaur Island!\", \"Deep Cover for Batman!\"), original_air_date (\"November14,2008\", \"January9,2009\", \"November21,2008\"), id (5.0, 6.0, 3.0), channel (\"728\", \"700\", \"703\"), written_by (\"Todd Casey\", \"Matt Wayne\", \"James Krieg\"), production_code (112.0, 105.0, 109.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\")", + "schema_without_content": "tv_series : rating , episode , channel , weekly_rank , 18_49_rating_share , share , id , viewers_m , air_date | Broadcasting_Channel : id , package_option \", \"Option\", pay_per_view_ppv , content , language , pixel_aspect_ratio_par , series_name , hight_definition_tv , country | Television_Channel : id , package_option \", \"Option\", pay_per_view_ppv , content , language , pixel_aspect_ratio_par , series_name , hight_definition_tv , country | cartoon : title , original_air_date , id , channel , written_by , production_code , directed_by", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the series": "TV_Channel.series_name", + "episode": "TV_series.Episode" + } + }, + { + "question": "what is the #name of the series# that has the #episode# \"a love of a lifetime\"?", + "db_id": "tvshow", + "orig_query": "select t1.series_name from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t2.episode = \"A Love of a Lifetime\"", + "schema_with_content": "tv_channel : package_option (\"Option\", \"Sky Famiglia\", \"Sky Famiglia\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"Match Music\", \"Radio Capital TiV\u00c3\u00b9\", \"MTV Dance\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), id (\"728\", \"715\", \"728\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (112.0, 108.0, 104.0), written_by (\"Adam Beechen\", \"Michael Jelenic\", \"Michael Jelenic\"), id (11.0, 11.0, 6.0), original_air_date (\"November21,2008\", \"January2,2009\", \"February20,2009\"), channel (\"705\", \"706\", \"704\"), title (\"Deep Cover for Batman!\", \"Fall of the Blue Beetle!\", \"Day of the Dark Knight!\") | TV_show : channel (\"713\", \"708\", \"713\"), id (10.0, 4.0, 5.0), rating (\"3.4\", \"3.7\", \"3.7\"), share (5.0, 5.0, 5.0), episode (\"The Hanged Man\", \"Blowback\", \"Double Down\"), weekly_rank (80.0, 71.0, 80.0), 18_49_rating_share (\"1.5/4\", \"2.4/6\", \"2.2/6\"), viewers_m (\"5.61\", \"6.09\", \"8.23\"), air_date (\"October 29, 2007\", \"October 1, 2007\", \"December 17, 2007\") | TV_program : channel (\"713\", \"708\", \"713\"), id (10.0, 4.0, 5.0), rating (\"3.4\", \"3.7\", \"3.7\"), share (5.0, 5.0, 5.0), episode (\"The Hanged Man\", \"Blowback\", \"Double Down\"), weekly_rank (80.0, 71.0, 80.0), 18_49_rating_share (\"1.5/4\", \"2.4/6\", \"2.2/6\"), viewers_m (\"5.61\", \"6.09\", \"8.23\"), air_date (\"October 29, 2007\", \"October 1, 2007\", \"December 17, 2007\")", + "schema_without_content": "tv_channel : package_option , content , country , series_name , pay_per_view_ppv , language , pixel_aspect_ratio_par , hight_definition_tv , id | cartoon : directed_by , production_code , written_by , id , original_air_date , channel , title | TV_show : channel , id , rating , share , episode , weekly_rank , 18_49_rating_share , viewers_m , air_date | TV_program : channel , id , rating , share , episode , weekly_rank , 18_49_rating_share , viewers_m , air_date", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the series": "TV_Channel.series_name", + "episode": "TV_series.Episode" + } + }, + { + "question": "list the episode of all #tv series# showed on #tv channel with series nam# e \"sky radio\".", + "db_id": "tvshow", + "orig_query": "select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "Broadcasting_Channel : hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), series_name (\"Match Music\", \"Radio Capital TiV\u00c3\u00b9\", \"Sky Radio\"), package_option (\"Option\", \"no ( FTV )\", \"no ( FTV )\"), language (\"Italian\", \"English\"), id (\"704\", \"714\", \"713\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | cartoon : channel (\"705\", \"700\", \"701\"), production_code (103.0, 107.0, 102.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"December5,2008\", \"December5,2008\", \"January30,2009\"), written_by (\"Steven Melching\", \"Steven Melching\", \"James Krieg\"), id (1.0, 12.0, 8.0), title (\"Deep Cover for Batman!\", \"Dawn of the Dead Man!\", \"Invasion of the Secret Santas!\") | Television_Channel : hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), series_name (\"Match Music\", \"Radio Capital TiV\u00c3\u00b9\", \"Sky Radio\"), package_option (\"Option\", \"no ( FTV )\", \"no ( FTV )\"), language (\"Italian\", \"English\"), id (\"704\", \"714\", \"713\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | tv_series : air_date (\"December 10, 2007\", \"September 24, 2007\", \"November 26, 2007\"), weekly_rank (72.0, 70.0, 70.0), 18_49_rating_share (\"2.1/5\", \"3.5/9\", \"3.5/9\"), channel (\"717\", \"719\", \"700\"), id (5.0, 7.0, 12.0), viewers_m (\"6.09\", \"5.61\", \"9.16\"), share (5.0, 6.0, 5.0), episode (\"Double Down\", \"Emily\", \"Home By Another Way\"), rating (\"5.8\", \"3.0\", \"5.3\")", + "schema_without_content": "Broadcasting_Channel : hight_definition_tv , pay_per_view_ppv , series_name , package_option \", \"no \", language , id , pixel_aspect_ratio_par , content , country | cartoon : channel , production_code , directed_by , original_air_date , written_by , id , title | Television_Channel : hight_definition_tv , pay_per_view_ppv , series_name , package_option \", \"no \", language , id , pixel_aspect_ratio_par , content , country | tv_series : air_date , weekly_rank , 18_49_rating_share , channel , id , viewers_m , share , episode , rating", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "Episode of all TV serie": "TV_series.Episode", + "TV Channel with series nam": "TV_Channel", + "TV series": "TV_series", + "series name": "TV_Channel.series_name" + } + }, + { + "question": "list the episode of all #tv series# showed on #tv channel with series nam# e \"sky radio\".", + "db_id": "tvshow", + "orig_query": "select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "TV_show : episode (\"Keepers\", \"Double Down\", \"Winterland\"), rating (\"5.8\", \"4.4\", \"3.5\"), air_date (\"October 29, 2007\", \"December 10, 2007\", \"October 29, 2007\"), 18_49_rating_share (\"1.5/4\", \"3.5/9\", \"2.1/5\"), share (6.0, 5.0, 7.0), viewers_m (\"9.16\", \"5.28\", \"5.13\"), weekly_rank (65.0, 72.0, 50.0), id (12.0, 9.0, 1.0), channel (\"713\", \"708\", \"728\") | cartoon : written_by (\"Michael Jelenic\", \"Michael Jelenic\", \"Todd Casey\"), original_air_date (\"February27,2009\", \"January30,2009\", \"January30,2009\"), id (1.0, 3.0, 9.0), production_code (107.0, 112.0, 104.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"701\", \"708\", \"707\"), title (\"The Eyes of Despero!\", \"Journey to the Center of the Bat!\", \"Invasion of the Secret Santas!\") | tv_channel : series_name (\"myDeejay\", \"Music Box Italia\", \"Music Box Italia\"), content (\"music\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"713\", \"700\", \"714\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"no ( FTV )\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | TV_program : episode (\"Keepers\", \"Double Down\", \"Winterland\"), rating (\"5.8\", \"4.4\", \"3.5\"), air_date (\"October 29, 2007\", \"December 10, 2007\", \"October 29, 2007\"), 18_49_rating_share (\"1.5/4\", \"3.5/9\", \"2.1/5\"), share (6.0, 5.0, 7.0), viewers_m (\"9.16\", \"5.28\", \"5.13\"), weekly_rank (65.0, 72.0, 50.0), id (12.0, 9.0, 1.0), channel (\"713\", \"708\", \"728\")", + "schema_without_content": "TV_show : episode , rating , air_date , 18_49_rating_share , share , viewers_m , weekly_rank , id , channel | cartoon : written_by , original_air_date , id , production_code , directed_by , channel , title | tv_channel : series_name , content , language , pay_per_view_ppv , country , id , hight_definition_tv , package_option \", pixel_aspect_ratio_par | TV_program : episode , rating , air_date , 18_49_rating_share , share , viewers_m , weekly_rank , id , channel", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "Episode of all TV serie": "TV_series.Episode", + "TV Channel with series nam": "TV_Channel", + "TV series": "TV_series", + "series name": "TV_Channel.series_name" + } + }, + { + "question": "what is the #episode for the tv series named# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "Television_Channel : content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), id (\"703\", \"706\", \"714\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"MTV Rocks\", \"Rock TV\", \"Hip Hop TV\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Sky Famiglia\") | tv_series : id (3.0, 12.0, 1.0), weekly_rank (66.0, 80.0, 70.0), share (7.0, 9.0, 9.0), air_date (\"November 19, 2007\", \"November 12, 2007\", \"November 26, 2007\"), episode (\"Winterland\", \"The Year of the Rabbit\", \"Game Three\"), 18_49_rating_share (\"2.7/7\", \"1.7/5\", \"2.7/7\"), rating (\"3.4\", \"5.3\", \"4.4\"), channel (\"719\", \"700\", \"701\"), viewers_m (\"6.75\", \"6.06\", \"6.75\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Joseph Kuhr\", \"James Krieg\", \"Matt Wayne\"), title (\"Deep Cover for Batman!\", \"The Eyes of Despero!\", \"Invasion of the Secret Santas!\"), production_code (108.0, 111.0, 107.0), id (6.0, 11.0, 1.0), channel (\"707\", \"706\", \"704\"), original_air_date (\"February27,2009\", \"February20,2009\", \"January2,2009\") | Broadcasting_Channel : content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), id (\"703\", \"706\", \"714\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"MTV Rocks\", \"Rock TV\", \"Hip Hop TV\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Sky Famiglia\")", + "schema_without_content": "Television_Channel : content , country , pay_per_view_ppv , id , hight_definition_tv , series_name , language , pixel_aspect_ratio_par , package_option \", \"Sky Famiglia\", \"Sky Famiglia\" | tv_series : id , weekly_rank , share , air_date , episode , 18_49_rating_share , rating , channel , viewers_m | cartoon : directed_by , written_by , title , production_code , id , channel , original_air_date | Broadcasting_Channel : content , country , pay_per_view_ppv , id , hight_definition_tv , series_name , language , pixel_aspect_ratio_par , package_option \", \"Sky Famiglia\", \"Sky Famiglia\"", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "episode for the TV series named": "TV_series.Episode" + } + }, + { + "question": "what is the #episode for the tv series named# \"sky radio\"?", + "db_id": "tvshow", + "orig_query": "select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = \"Sky Radio\"", + "schema_with_content": "cartoon : id (5.0, 8.0, 8.0), production_code (110.0, 105.0, 112.0), original_air_date (\"January2,2009\", \"December12,2008\", \"November21,2008\"), title (\"Terror on Dinosaur Island!\", \"The Eyes of Despero!\", \"Return of the Fearsome Fangs!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"J. M. DeMatteis\", \"Michael Jelenic\", \"James Krieg\"), channel (\"704\", \"707\", \"705\") | TV_show : id (4.0, 4.0, 4.0), viewers_m (\"5.61\", \"5.75\", \"8.23\"), episode (\"The Hanged Man\", \"Game Three\", \"The Hanged Man\"), 18_49_rating_share (\"2.4/6\", \"2.9/7\", \"2.4/6\"), share (5.0, 9.0, 5.0), channel (\"700\", \"719\", \"719\"), air_date (\"September 24, 2007\", \"October 29, 2007\", \"November 12, 2007\"), rating (\"3.0\", \"4.4\", \"3.7\"), weekly_rank (66.0, 62.0, 65.0) | tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), series_name (\"Sky Music\", \"MTV Rocks\", \"Hip Hop TV\"), id (\"714\", \"700\", \"706\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Option\") | TV_program : id (4.0, 4.0, 4.0), viewers_m (\"5.61\", \"5.75\", \"8.23\"), episode (\"The Hanged Man\", \"Game Three\", \"The Hanged Man\"), 18_49_rating_share (\"2.4/6\", \"2.9/7\", \"2.4/6\"), share (5.0, 9.0, 5.0), channel (\"700\", \"719\", \"719\"), air_date (\"September 24, 2007\", \"October 29, 2007\", \"November 12, 2007\"), rating (\"3.0\", \"4.4\", \"3.7\"), weekly_rank (66.0, 62.0, 65.0)", + "schema_without_content": "cartoon : id , production_code , original_air_date , title , directed_by , written_by , channel | TV_show : id , viewers_m , episode , 18_49_rating_share , share , channel , air_date , rating , weekly_rank | tv_channel : country , language , series_name , id , hight_definition_tv , pay_per_view_ppv , content , pixel_aspect_ratio_par , package_option | TV_program : id , viewers_m , episode , 18_49_rating_share , share , channel , air_date , rating , weekly_rank", + "extra_map": null, + "extra_table_map": { + "tv_series": [ + "TV_show", + "TV_program" + ] + }, + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "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" + ] + }, + "column_linking_gt": { + "episode for the TV series named": "TV_series.Episode" + } + }, + { + "question": "find the #number of cartoons directed by# each of the listed directors.", + "db_id": "tvshow", + "orig_query": "select count(*), directed_by from cartoon group by directed_by", + "schema_with_content": "animated_series : original_air_date (\"January30,2009\", \"December12,2008\", \"January23,2009\"), production_code (109.0, 103.0, 102.0), title (\"Day of the Dark Knight!\", \"Day of the Dark Knight!\", \"Dawn of the Dead Man!\"), channel (\"706\", \"704\", \"706\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Adam Beechen\"), id (10.0, 11.0, 6.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | toons : original_air_date (\"January30,2009\", \"December12,2008\", \"January23,2009\"), production_code (109.0, 103.0, 102.0), title (\"Day of the Dark Knight!\", \"Day of the Dark Knight!\", \"Dawn of the Dead Man!\"), channel (\"706\", \"704\", \"706\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Adam Beechen\"), id (10.0, 11.0, 6.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | tv_channel : language (\"Italian\", \"English\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"728\", \"728\", \"708\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"MTV Live HD\", \"MTV Classic\", \"Match Music\") | tv_series : 18_49_rating_share (\"2.7/7\", \"1.7/5\", \"1.5/4\"), weekly_rank (65.0, 80.0, 62.0), channel (\"700\", \"707\", \"701\"), air_date (\"November 19, 2007\", \"December 17, 2007\", \"October 22, 2007\"), episode (\"Winterland\", \"Game Three\", \"Emily\"), share (7.0, 5.0, 9.0), id (3.0, 10.0, 2.0), rating (\"3.0\", \"4.3\", \"3.7\"), viewers_m (\"5.75\", \"4.24\", \"9.16\")", + "schema_without_content": "animated_series : original_air_date , production_code , title , channel , written_by , id , directed_by | toons : original_air_date , production_code , title , channel , written_by , id , directed_by | tv_channel : language , package_option \", country , id , pixel_aspect_ratio_par , content , pay_per_view_ppv , hight_definition_tv , series_name | tv_series : 18_49_rating_share , weekly_rank , channel , air_date , episode , share , id , rating , viewers_m", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "number of cartoons directed by": "cartoon.Directed_by" + } + }, + { + "question": "how many #cartoons# did each #director# create?", + "db_id": "tvshow", + "orig_query": "select count(*), directed_by from cartoon group by directed_by", + "schema_with_content": "animated_series : channel (\"707\", \"705\", \"728\"), original_air_date (\"November14,2008\", \"February27,2009\", \"February27,2009\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Todd Casey\"), title (\"Day of the Dark Knight!\", \"The Rise of the Blue Beetle!\", \"Dawn of the Dead Man!\"), production_code (103.0, 102.0, 103.0), id (6.0, 8.0, 5.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | tv_channel : pay_per_view_ppv (\"no\"), series_name (\"MTV Rocks\", \"Music Box Italia\", \"Rock TV\"), language (\"Italian\", \"English\"), package_option (\"Sky Famiglia\", \"Sky Famiglia\", \"no ( FTV )\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"705\", \"706\", \"714\") | tv_series : id (12.0, 7.0, 7.0), episode (\"The Legend of Dylan McCleen\", \"Blowback\", \"Blowback\"), viewers_m (\"5.28\", \"6.94\", \"5.28\"), weekly_rank (50.0, 80.0, 67.0), channel (\"714\", \"700\", \"707\"), rating (\"3.0\", \"4.4\", \"5.3\"), 18_49_rating_share (\"2.2/6\", \"3.2/8\", \"3.5/9\"), air_date (\"October 8, 2007\", \"October 1, 2007\", \"October 1, 2007\"), share (6.0, 6.0, 5.0) | toons : channel (\"707\", \"705\", \"728\"), original_air_date (\"November14,2008\", \"February27,2009\", \"February27,2009\"), written_by (\"Adam Beechen\", \"Joseph Kuhr\", \"Todd Casey\"), title (\"Day of the Dark Knight!\", \"The Rise of the Blue Beetle!\", \"Dawn of the Dead Man!\"), production_code (103.0, 102.0, 103.0), id (6.0, 8.0, 5.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\")", + "schema_without_content": "animated_series : channel , original_air_date , written_by , title , production_code , id , directed_by | tv_channel : pay_per_view_ppv , series_name , language , package_option \", country , hight_definition_tv , content , pixel_aspect_ratio_par , id | tv_series : id , episode , viewers_m , weekly_rank , channel , rating , 18_49_rating_share , air_date , share | toons : channel , original_air_date , written_by , title , production_code , id , directed_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cartoons": "Cartoon", + "director": "Cartoon.Directed_by" + } + }, + { + "question": "find the #package choice# and #series name of the tv channel# that has #high definition tv# .", + "db_id": "tvshow", + "orig_query": "select package_option, series_name from tv_channel where hight_definition_tv = \"yes\"", + "schema_with_content": "cartoon : id (11.0, 11.0, 3.0), original_air_date (\"November21,2008\", \"February27,2009\", \"February20,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"700\", \"704\", \"707\"), written_by (\"Todd Casey\", \"Adam Beechen\", \"James Krieg\"), title (\"The Eyes of Despero!\", \"Fall of the Blue Beetle!\", \"Dawn of the Dead Man!\"), production_code (109.0, 110.0, 111.0) | Broadcasting_Channel : language (\"Italian\", \"English\"), package_option (\"no ( FTV )\", \"Option\", \"no ( FTV )\"), id (\"703\", \"713\", \"700\"), series_name (\"Match Music\", \"MTV Rocks\", \"Hip Hop TV\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | Television_Channel : language (\"Italian\", \"English\"), package_option (\"no ( FTV )\", \"Option\", \"no ( FTV )\"), id (\"703\", \"713\", \"700\"), series_name (\"Match Music\", \"MTV Rocks\", \"Hip Hop TV\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | tv_series : weekly_rank (61.0, 71.0, 71.0), viewers_m (\"8.23\", \"4.24\", \"5.28\"), air_date (\"October 8, 2007\", \"October 8, 2007\", \"September 24, 2007\"), id (8.0, 7.0, 5.0), 18_49_rating_share (\"3.5/9\", \"1.5/4\", \"3.2/8\"), share (7.0, 6.0, 5.0), channel (\"719\", \"728\", \"719\"), episode (\"Home By Another Way\", \"The Legend of Dylan McCleen\", \"Blowback\"), rating (\"3.0\", \"4.4\", \"5.8\")", + "schema_without_content": "cartoon : id , original_air_date , directed_by , channel , written_by , title , production_code | Broadcasting_Channel : language , package_option \", \"Option\", \"no \", id , series_name , content , hight_definition_tv , country , pay_per_view_ppv , pixel_aspect_ratio_par | Television_Channel : language , package_option \", \"Option\", \"no \", id , series_name , content , hight_definition_tv , country , pay_per_view_ppv , pixel_aspect_ratio_par | tv_series : weekly_rank , viewers_m , air_date , id , 18_49_rating_share , share , channel , episode , rating", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "package choice": "TV_Channel.Package_Option", + "series name of the TV channel": "TV_Channel.series_name", + "high definition TV": "TV_Channel.Hight_definition_TV" + } + }, + { + "question": "what are the #package options# and the #name of the series for the tv channel# that supports #high definition tv# ?", + "db_id": "tvshow", + "orig_query": "select package_option, series_name from tv_channel where hight_definition_tv = \"yes\"", + "schema_with_content": "Broadcasting_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"706\", \"714\", \"708\"), series_name (\"MTV Live HD\", \"MTV Classic\", \"MTV Live HD\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), content (\"music\"), pay_per_view_ppv (\"no\") | Television_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"706\", \"714\", \"708\"), series_name (\"MTV Live HD\", \"MTV Classic\", \"MTV Live HD\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Option\"), content (\"music\"), pay_per_view_ppv (\"no\") | cartoon : title (\"Journey to the Center of the Bat!\", \"The Eyes of Despero!\", \"Invasion of the Secret Santas!\"), written_by (\"Joseph Kuhr\", \"Joseph Kuhr\", \"Michael Jelenic\"), production_code (109.0, 108.0, 108.0), original_air_date (\"January30,2009\", \"February27,2009\", \"January9,2009\"), channel (\"701\", \"701\", \"706\"), id (6.0, 3.0, 12.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | tv_series : air_date (\"November 19, 2007\", \"September 24, 2007\", \"November 12, 2007\"), rating (\"5.8\", \"3.8\", \"4.4\"), viewers_m (\"5.28\", \"5.61\", \"6.05\"), 18_49_rating_share (\"3.5/9\", \"3.5/9\", \"2.4/6\"), weekly_rank (62.0, 80.0, 61.0), episode (\"Home By Another Way\", \"Game Three\", \"Double Down\"), share (5.0, 9.0, 9.0), channel (\"707\", \"719\", \"713\"), id (5.0, 5.0, 6.0)", + "schema_without_content": "Broadcasting_Channel : pixel_aspect_ratio_par , id , series_name , country , language , hight_definition_tv , package_option , content , pay_per_view_ppv | Television_Channel : pixel_aspect_ratio_par , id , series_name , country , language , hight_definition_tv , package_option , content , pay_per_view_ppv | cartoon : title , written_by , production_code , original_air_date , channel , id , directed_by | tv_series : air_date , rating , viewers_m , 18_49_rating_share , weekly_rank , episode , share , channel , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "package options": "TV_Channel.Package_Option", + "name of the series for the TV Channel": "TV_Channel.series_name", + "high definition TV": "TV_Channel.Hight_definition_TV" + } + }, + { + "question": "which #countries' tv channels# are playing some c #artoon written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "tv_series : share (5.0, 6.0, 7.0), viewers_m (\"6.75\", \"8.23\", \"6.05\"), channel (\"728\", \"717\", \"719\"), weekly_rank (50.0, 72.0, 72.0), rating (\"4.4\", \"4.0\", \"3.7\"), 18_49_rating_share (\"2.1/5\", \"3.2/8\", \"2.2/6\"), id (2.0, 6.0, 5.0), episode (\"Friendly Skies\", \"Keepers\", \"Blowback\"), air_date (\"October 8, 2007\", \"December 10, 2007\", \"November 26, 2007\") | cartoon : title (\"The Rise of the Blue Beetle!\", \"Deep Cover for Batman!\", \"The Rise of the Blue Beetle!\"), channel (\"704\", \"704\", \"701\"), written_by (\"Michael Jelenic\", \"J. M. DeMatteis\", \"Steven Melching\"), production_code (104.0, 101.0, 112.0), original_air_date (\"February6,2009\", \"February6,2009\", \"November21,2008\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (9.0, 5.0, 6.0) | Broadcasting_Channel : language (\"Italian\", \"English\"), series_name (\"Hip Hop TV\", \"Sky Music\", \"myDeejay\"), hight_definition_tv (\"no\", \"yes\"), id (\"703\", \"728\", \"708\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Option\"), content (\"music\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\") | Television_Channel : language (\"Italian\", \"English\"), series_name (\"Hip Hop TV\", \"Sky Music\", \"myDeejay\"), hight_definition_tv (\"no\", \"yes\"), id (\"703\", \"728\", \"708\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Option\"), content (\"music\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\")", + "schema_without_content": "tv_series : share , viewers_m , channel , weekly_rank , rating , 18_49_rating_share , id , episode , air_date | cartoon : title , channel , written_by , production_code , original_air_date , directed_by , id | Broadcasting_Channel : language , series_name , hight_definition_tv , id , country , package_option \", \"no \", \"Option\", content , pay_per_view_ppv , pixel_aspect_ratio_par | Television_Channel : language , series_name , hight_definition_tv , id , country , package_option \", \"no \", \"Option\", content , pay_per_view_ppv , pixel_aspect_ratio_par", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "countries' tv channels": "TV_Channel.Country", + "artoon written by": "Cartoon.Written_by", + "cartoon": "Cartoon" + } + }, + { + "question": "which #countries' tv channels# are playing some c #artoon written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "animated_series : channel (\"705\", \"707\", \"728\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (104.0, 109.0, 103.0), original_air_date (\"January16,2009\", \"November21,2008\", \"January30,2009\"), id (10.0, 9.0, 7.0), title (\"Day of the Dark Knight!\", \"Fall of the Blue Beetle!\", \"Enter the Outsiders!\"), written_by (\"Matt Wayne\", \"J. M. DeMatteis\", \"James Krieg\") | tv_channel : hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"no ( FTV )\"), language (\"Italian\", \"English\"), series_name (\"MTV Music\", \"Match Music\", \"Radio Capital TiV\u00c3\u00b9\"), pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"719\", \"706\", \"709\") | toons : channel (\"705\", \"707\", \"728\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (104.0, 109.0, 103.0), original_air_date (\"January16,2009\", \"November21,2008\", \"January30,2009\"), id (10.0, 9.0, 7.0), title (\"Day of the Dark Knight!\", \"Fall of the Blue Beetle!\", \"Enter the Outsiders!\"), written_by (\"Matt Wayne\", \"J. M. DeMatteis\", \"James Krieg\") | tv_series : episode (\"Emily\", \"Game Three\", \"A Love of a Lifetime\"), channel (\"700\", \"708\", \"708\"), weekly_rank (66.0, 68.0, 66.0), 18_49_rating_share (\"1.7/5\", \"2.4/6\", \"1.5/4\"), share (6.0, 5.0, 6.0), air_date (\"November 19, 2007\", \"October 29, 2007\", \"October 1, 2007\"), rating (\"4.3\", \"4.0\", \"4.4\"), id (9.0, 1.0, 3.0), viewers_m (\"6.94\", \"6.75\", \"9.16\")", + "schema_without_content": "animated_series : channel , directed_by , production_code , original_air_date , id , title , written_by | tv_channel : hight_definition_tv , country , content , package_option \", language , series_name , pay_per_view_ppv , pixel_aspect_ratio_par , id | toons : channel , directed_by , production_code , original_air_date , id , title , written_by | tv_series : episode , channel , weekly_rank , 18_49_rating_share , share , air_date , rating , id , viewers_m", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "countries' tv channels": "TV_Channel.Country", + "artoon written by": "Cartoon.Written_by", + "cartoon": "Cartoon" + } + }, + { + "question": "what are the #countries# that have #cartoons# on tv that were #written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "Broadcasting_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"Sky Music\", \"MTV Live HD\", \"MTV Music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Option\", \"no ( FTV )\", \"Option\"), pay_per_view_ppv (\"no\"), content (\"music\"), id (\"705\", \"719\", \"708\"), language (\"Italian\", \"English\") | cartoon : channel (\"708\", \"706\", \"707\"), written_by (\"Steven Melching\", \"Steven Melching\", \"Steven Melching\"), original_air_date (\"January2,2009\", \"November21,2008\", \"January2,2009\"), id (7.0, 3.0, 10.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Terror on Dinosaur Island!\", \"The Rise of the Blue Beetle!\", \"Evil Under the Sea!\"), production_code (101.0, 104.0, 110.0) | tv_series : viewers_m (\"5.61\", \"6.75\", \"5.13\"), episode (\"Home By Another Way\", \"Keepers\", \"Keepers\"), 18_49_rating_share (\"2.2/6\", \"1.7/5\", \"3.2/8\"), air_date (\"September 24, 2007\", \"October 22, 2007\", \"November 26, 2007\"), share (9.0, 5.0, 9.0), weekly_rank (61.0, 71.0, 80.0), rating (\"4.4\", \"4.3\", \"4.0\"), channel (\"707\", \"700\", \"713\"), id (1.0, 11.0, 12.0) | Television_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), series_name (\"Sky Music\", \"MTV Live HD\", \"MTV Music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Option\", \"no ( FTV )\", \"Option\"), pay_per_view_ppv (\"no\"), content (\"music\"), id (\"705\", \"719\", \"708\"), language (\"Italian\", \"English\")", + "schema_without_content": "Broadcasting_Channel : country , hight_definition_tv , series_name , pixel_aspect_ratio_par , package_option \", \"Option\", pay_per_view_ppv , content , id , language | cartoon : channel , written_by , original_air_date , id , directed_by , title , production_code | tv_series : viewers_m , episode , 18_49_rating_share , air_date , share , weekly_rank , rating , channel , id | Television_Channel : country , hight_definition_tv , series_name , pixel_aspect_ratio_par , package_option \", \"Option\", pay_per_view_ppv , content , id , language", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "countries": "TV_Channel.Country", + "cartoons": "Cartoon", + "written by": "Cartoon.Written_by" + } + }, + { + "question": "what are the #countries# that have #cartoons# on tv that were #written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "tv_channel : language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"Sky Music\", \"MTV Classic\", \"Match Music\"), package_option (\"Option\", \"Option\", \"Option\"), id (\"701\", \"706\", \"706\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), content (\"music\") | animated_series : id (1.0, 3.0, 5.0), production_code (108.0, 104.0, 110.0), written_by (\"Joseph Kuhr\", \"Matt Wayne\", \"J. M. DeMatteis\"), original_air_date (\"November14,2008\", \"November14,2008\", \"January23,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"705\", \"708\", \"728\"), title (\"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\", \"Terror on Dinosaur Island!\") | tv_series : id (1.0, 8.0, 11.0), share (7.0, 5.0, 9.0), weekly_rank (67.0, 71.0, 65.0), air_date (\"October 15, 2007\", \"October 8, 2007\", \"December 10, 2007\"), viewers_m (\"6.75\", \"5.75\", \"9.16\"), channel (\"728\", \"719\", \"700\"), 18_49_rating_share (\"2.2/6\", \"3.2/8\", \"1.7/5\"), episode (\"Emily\", \"Home By Another Way\", \"Friendly Skies\"), rating (\"3.7\", \"3.4\", \"3.8\") | toons : id (1.0, 3.0, 5.0), production_code (108.0, 104.0, 110.0), written_by (\"Joseph Kuhr\", \"Matt Wayne\", \"J. M. DeMatteis\"), original_air_date (\"November14,2008\", \"November14,2008\", \"January23,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"705\", \"708\", \"728\"), title (\"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\", \"Terror on Dinosaur Island!\")", + "schema_without_content": "tv_channel : language , pixel_aspect_ratio_par , series_name , package_option , id , hight_definition_tv , country , pay_per_view_ppv , content | animated_series : id , production_code , written_by , original_air_date , directed_by , channel , title | tv_series : id , share , weekly_rank , air_date , viewers_m , channel , 18_49_rating_share , episode , rating | toons : id , production_code , written_by , original_air_date , directed_by , channel , title", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "TV_Channel.Country", + "cartoons": "Cartoon", + "written by": "Cartoon.Written_by" + } + }, + { + "question": "which #countries' tv channels# are not playing any c #artoon written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select country from tv_channel except select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "Television_Channel : series_name (\"Match Music\", \"Classica\", \"MTV Music\"), id (\"709\", \"703\", \"704\"), content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"Sky Famiglia\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | Broadcasting_Channel : series_name (\"Match Music\", \"Classica\", \"MTV Music\"), id (\"709\", \"703\", \"704\"), content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia\", \"no ( FTV )\", \"Sky Famiglia\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | tv_series : 18_49_rating_share (\"2.4/6\", \"3.2/8\", \"3.2/8\"), rating (\"3.4\", \"3.5\", \"4.3\"), episode (\"A Love of a Lifetime\", \"The Hanged Man\", \"The Legend of Dylan McCleen\"), share (5.0, 9.0, 7.0), viewers_m (\"5.61\", \"6.05\", \"4.24\"), channel (\"701\", \"700\", \"713\"), air_date (\"October 1, 2007\", \"December 17, 2007\", \"November 12, 2007\"), weekly_rank (50.0, 71.0, 65.0), id (11.0, 3.0, 10.0) | cartoon : original_air_date (\"January9,2009\", \"December12,2008\", \"January30,2009\"), written_by (\"Todd Casey\", \"Michael Jelenic\", \"Todd Casey\"), title (\"Day of the Dark Knight!\", \"Journey to the Center of the Bat!\", \"The Eyes of Despero!\"), channel (\"703\", \"708\", \"706\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (111.0, 101.0, 111.0), id (9.0, 12.0, 10.0)", + "schema_without_content": "Television_Channel : series_name , id , content , language , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option \", \"Sky Famiglia\", country | Broadcasting_Channel : series_name , id , content , language , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option \", \"Sky Famiglia\", country | tv_series : 18_49_rating_share , rating , episode , share , viewers_m , channel , air_date , weekly_rank , id | cartoon : original_air_date , written_by , title , channel , directed_by , production_code , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "artoon written by": "Cartoon.Written_by", + "countries' tv channels": "TV_Channel.Country", + "cartoon": "Cartoon" + } + }, + { + "question": "which #countries' tv channels# are not playing any c #artoon written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select country from tv_channel except select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "toons : id (2.0, 7.0, 6.0), written_by (\"Matt Wayne\", \"Joseph Kuhr\", \"Matt Wayne\"), title (\"Fall of the Blue Beetle!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\"), production_code (102.0, 102.0, 106.0), channel (\"704\", \"700\", \"700\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"January23,2009\", \"January23,2009\", \"February6,2009\") | tv_series : 18_49_rating_share (\"3.2/8\", \"2.1/5\", \"3.2/8\"), rating (\"3.4\", \"3.7\", \"3.5\"), weekly_rank (68.0, 61.0, 72.0), viewers_m (\"4.24\", \"5.75\", \"5.75\"), share (7.0, 7.0, 9.0), channel (\"708\", \"707\", \"700\"), episode (\"The Legend of Dylan McCleen\", \"Emily\", \"Blowback\"), id (6.0, 3.0, 2.0), air_date (\"September 24, 2007\", \"October 22, 2007\", \"October 8, 2007\") | tv_channel : content (\"music\"), hight_definition_tv (\"no\", \"yes\"), id (\"703\", \"713\", \"715\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"Sky Famiglia + Sky HD\"), language (\"Italian\", \"English\"), series_name (\"MTV Hits\", \"Hip Hop TV\", \"myDeejay\") | animated_series : id (2.0, 7.0, 6.0), written_by (\"Matt Wayne\", \"Joseph Kuhr\", \"Matt Wayne\"), title (\"Fall of the Blue Beetle!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\"), production_code (102.0, 102.0, 106.0), channel (\"704\", \"700\", \"700\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), original_air_date (\"January23,2009\", \"January23,2009\", \"February6,2009\")", + "schema_without_content": "toons : id , written_by , title , production_code , channel , directed_by , original_air_date | tv_series : 18_49_rating_share , rating , weekly_rank , viewers_m , share , channel , episode , id , air_date | tv_channel : content , hight_definition_tv , id , pixel_aspect_ratio_par , pay_per_view_ppv , country , package_option \", \"Sky Famiglia + Sky HD\", language , series_name | animated_series : id , written_by , title , production_code , channel , directed_by , original_air_date", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "artoon written by": "Cartoon.Written_by", + "countries' tv channels": "TV_Channel.Country", + "cartoon": "Cartoon" + } + }, + { + "question": "what are the #countries# that are not playing #cartoons written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select country from tv_channel except select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "Television_Channel : content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia\"), id (\"706\", \"704\", \"715\"), series_name (\"Hip Hop TV\", \"MTV Rocks\", \"MTV Hits\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | Broadcasting_Channel : content (\"music\"), language (\"Italian\", \"English\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia\"), id (\"706\", \"704\", \"715\"), series_name (\"Hip Hop TV\", \"MTV Rocks\", \"MTV Hits\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\") | tv_series : id (5.0, 2.0, 6.0), rating (\"3.8\", \"3.5\", \"4.4\"), air_date (\"October 1, 2007\", \"October 29, 2007\", \"November 19, 2007\"), share (7.0, 6.0, 6.0), weekly_rank (67.0, 62.0, 80.0), episode (\"Home By Another Way\", \"Blowback\", \"Home By Another Way\"), 18_49_rating_share (\"2.7/7\", \"2.2/6\", \"2.7/7\"), viewers_m (\"9.16\", \"6.94\", \"8.23\"), channel (\"707\", \"701\", \"701\") | cartoon : written_by (\"J. M. DeMatteis\", \"Michael Jelenic\", \"Steven Melching\"), original_air_date (\"January9,2009\", \"January9,2009\", \"February20,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (105.0, 104.0, 108.0), title (\"Terror on Dinosaur Island!\", \"Deep Cover for Batman!\", \"Fall of the Blue Beetle!\"), id (10.0, 4.0, 1.0), channel (\"700\", \"728\", \"701\")", + "schema_without_content": "Television_Channel : content , language , pixel_aspect_ratio_par , pay_per_view_ppv , package_option , id , series_name , hight_definition_tv , country | Broadcasting_Channel : content , language , pixel_aspect_ratio_par , pay_per_view_ppv , package_option , id , series_name , hight_definition_tv , country | tv_series : id , rating , air_date , share , weekly_rank , episode , 18_49_rating_share , viewers_m , channel | cartoon : written_by , original_air_date , directed_by , production_code , title , id , channel", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "countries": "TV_Channel.Country", + "cartoons written by": "Cartoon.Written_by" + } + }, + { + "question": "what are the #countries# that are not playing #cartoons written by# todd casey?", + "db_id": "tvshow", + "orig_query": "select country from tv_channel except select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'Todd Casey'", + "schema_with_content": "tv_channel : series_name (\"Radio Capital TiV\u00c3\u00b9\", \"Music Box Italia\", \"Match Music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), id (\"701\", \"713\", \"707\"), package_option (\"Sky Famiglia\", \"Sky Famiglia + Sky HD\", \"no ( FTV )\"), content (\"music\") | tv_series : episode (\"The Legend of Dylan McCleen\", \"Emily\", \"The Legend of Dylan McCleen\"), id (6.0, 9.0, 2.0), 18_49_rating_share (\"2.2/6\", \"2.1/5\", \"3.5/9\"), air_date (\"November 26, 2007\", \"December 10, 2007\", \"December 10, 2007\"), weekly_rank (61.0, 66.0, 72.0), share (6.0, 6.0, 5.0), channel (\"728\", \"708\", \"719\"), rating (\"4.0\", \"4.0\", \"3.5\"), viewers_m (\"6.06\", \"9.16\", \"6.94\") | toons : id (12.0, 8.0, 9.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"708\", \"708\", \"707\"), title (\"Return of the Fearsome Fangs!\", \"Journey to the Center of the Bat!\", \"Evil Under the Sea!\"), original_air_date (\"November14,2008\", \"November14,2008\", \"December12,2008\"), production_code (109.0, 109.0, 107.0), written_by (\"Adam Beechen\", \"Steven Melching\", \"James Krieg\") | animated_series : id (12.0, 8.0, 9.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"708\", \"708\", \"707\"), title (\"Return of the Fearsome Fangs!\", \"Journey to the Center of the Bat!\", \"Evil Under the Sea!\"), original_air_date (\"November14,2008\", \"November14,2008\", \"December12,2008\"), production_code (109.0, 109.0, 107.0), written_by (\"Adam Beechen\", \"Steven Melching\", \"James Krieg\")", + "schema_without_content": "tv_channel : series_name , country , pay_per_view_ppv , hight_definition_tv , pixel_aspect_ratio_par , language , id , package_option \", content | tv_series : episode , id , 18_49_rating_share , air_date , weekly_rank , share , channel , rating , viewers_m | toons : id , directed_by , channel , title , original_air_date , production_code , written_by | animated_series : id , directed_by , channel , title , original_air_date , production_code , written_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "TV_Channel.Country", + "cartoons written by": "Cartoon.Written_by" + } + }, + { + "question": "find the #series name# and #country# of the tv channel that is playing some #cartoons directed by# ben jones and michael chang?", + "db_id": "tvshow", + "orig_query": "select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Michael Chang' intersect select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Ben Jones'", + "schema_with_content": "cartoon : id (1.0, 1.0, 8.0), original_air_date (\"January2,2009\", \"February6,2009\", \"December12,2008\"), production_code (111.0, 101.0, 106.0), written_by (\"Steven Melching\", \"Adam Beechen\", \"Matt Wayne\"), title (\"Return of the Fearsome Fangs!\", \"Fall of the Blue Beetle!\", \"Day of the Dark Knight!\"), channel (\"706\", \"706\", \"700\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | Television_Channel : series_name (\"Radio Capital TiV\u00c3\u00b9\", \"MTV Dance\", \"Rock TV\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), id (\"704\", \"715\", \"715\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\") | tv_series : air_date (\"December 10, 2007\", \"November 12, 2007\", \"October 8, 2007\"), episode (\"Game Three\", \"A Love of a Lifetime\", \"Winterland\"), id (10.0, 9.0, 10.0), weekly_rank (61.0, 43.0, 65.0), viewers_m (\"5.61\", \"5.28\", \"6.06\"), channel (\"713\", \"700\", \"708\"), rating (\"4.3\", \"4.4\", \"3.8\"), share (6.0, 6.0, 7.0), 18_49_rating_share (\"3.5/9\", \"3.5/9\", \"1.7/5\") | Broadcasting_Channel : series_name (\"Radio Capital TiV\u00c3\u00b9\", \"MTV Dance\", \"Rock TV\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), id (\"704\", \"715\", \"715\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\")", + "schema_without_content": "cartoon : id , original_air_date , production_code , written_by , title , channel , directed_by | Television_Channel : series_name , package_option \", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\", content , pixel_aspect_ratio_par , hight_definition_tv , id , language , country , pay_per_view_ppv | tv_series : air_date , episode , id , weekly_rank , viewers_m , channel , rating , share , 18_49_rating_share | Broadcasting_Channel : series_name , package_option \", \"Sky Famiglia + Sky HD\", \"Sky Famiglia\", content , pixel_aspect_ratio_par , hight_definition_tv , id , language , country , pay_per_view_ppv", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "series name": "TV_Channel.series_name", + "country": "TV_Channel.Country", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "question": "find the #series name# and #country# of the tv channel that is playing some #cartoons directed by# ben jones and michael chang?", + "db_id": "tvshow", + "orig_query": "select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Michael Chang' intersect select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Ben Jones'", + "schema_with_content": "animated_series : title (\"Return of the Fearsome Fangs!\", \"Dawn of the Dead Man!\", \"Enter the Outsiders!\"), written_by (\"Matt Wayne\", \"J. M. DeMatteis\", \"Michael Jelenic\"), original_air_date (\"January16,2009\", \"February27,2009\", \"November14,2008\"), channel (\"705\", \"707\", \"701\"), production_code (112.0, 103.0, 112.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (1.0, 11.0, 5.0) | tv_channel : language (\"Italian\", \"English\"), content (\"music\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Sky Famiglia\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Dance\", \"Music Box Italia\", \"Hip Hop TV\"), id (\"705\", \"715\", \"703\"), hight_definition_tv (\"no\", \"yes\") | tv_series : id (5.0, 2.0, 12.0), episode (\"Blowback\", \"Emily\", \"The Legend of Dylan McCleen\"), rating (\"3.0\", \"3.7\", \"4.0\"), air_date (\"October 15, 2007\", \"November 19, 2007\", \"November 5, 2007\"), 18_49_rating_share (\"1.7/5\", \"2.2/6\", \"1.7/5\"), viewers_m (\"9.16\", \"6.94\", \"9.16\"), channel (\"713\", \"717\", \"700\"), weekly_rank (68.0, 62.0, 72.0), share (6.0, 7.0, 7.0) | toons : title (\"Return of the Fearsome Fangs!\", \"Dawn of the Dead Man!\", \"Enter the Outsiders!\"), written_by (\"Matt Wayne\", \"J. M. DeMatteis\", \"Michael Jelenic\"), original_air_date (\"January16,2009\", \"February27,2009\", \"November14,2008\"), channel (\"705\", \"707\", \"701\"), production_code (112.0, 103.0, 112.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (1.0, 11.0, 5.0)", + "schema_without_content": "animated_series : title , written_by , original_air_date , channel , production_code , directed_by , id | tv_channel : language , content , package_option , country , pixel_aspect_ratio_par , pay_per_view_ppv , series_name , id , hight_definition_tv | tv_series : id , episode , rating , air_date , 18_49_rating_share , viewers_m , channel , weekly_rank , share | toons : title , written_by , original_air_date , channel , production_code , directed_by , id", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "series name": "TV_Channel.series_name", + "country": "TV_Channel.Country", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "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_id": "tvshow", + "orig_query": "select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Michael Chang' intersect select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Ben Jones'", + "schema_with_content": "Broadcasting_Channel : hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"717\", \"705\", \"719\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), series_name (\"MTV Dance\", \"MTV Rocks\", \"Sky Radio\"), content (\"music\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\") | cartoon : production_code (101.0, 104.0, 102.0), channel (\"728\", \"706\", \"706\"), original_air_date (\"November14,2008\", \"January23,2009\", \"December12,2008\"), title (\"Journey to the Center of the Bat!\", \"Terror on Dinosaur Island!\", \"Invasion of the Secret Santas!\"), id (9.0, 12.0, 6.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Michael Jelenic\", \"Matt Wayne\", \"Todd Casey\") | Television_Channel : hight_definition_tv (\"no\", \"yes\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"717\", \"705\", \"719\"), pay_per_view_ppv (\"no\"), language (\"Italian\", \"English\"), series_name (\"MTV Dance\", \"MTV Rocks\", \"Sky Radio\"), content (\"music\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Sky Famiglia\") | tv_series : id (12.0, 1.0, 2.0), air_date (\"October 1, 2007\", \"November 5, 2007\", \"November 19, 2007\"), weekly_rank (80.0, 65.0, 72.0), share (6.0, 6.0, 9.0), viewers_m (\"6.75\", \"4.24\", \"5.13\"), 18_49_rating_share (\"1.5/4\", \"2.9/7\", \"2.1/5\"), episode (\"Game Three\", \"The Year of the Rabbit\", \"Blowback\"), channel (\"714\", \"713\", \"719\"), rating (\"5.3\", \"4.3\", \"4.4\")", + "schema_without_content": "Broadcasting_Channel : hight_definition_tv , pixel_aspect_ratio_par , country , id , pay_per_view_ppv , language , series_name , content , package_option \", \"no \", \"Sky Famiglia\" | cartoon : production_code , channel , original_air_date , title , id , directed_by , written_by | Television_Channel : hight_definition_tv , pixel_aspect_ratio_par , country , id , pay_per_view_ppv , language , series_name , content , package_option \", \"no \", \"Sky Famiglia\" | tv_series : id , air_date , weekly_rank , share , viewers_m , 18_49_rating_share , episode , channel , rating", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "series name": "TV_Channel.series_name", + "country of all TV channels": "TV_Channel.Country", + "cartoons directed by Ben Jones": "Cartoon.Directed_by", + "cartoons directed by Michael Chang": "Cartoon.Directed_by" + } + }, + { + "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_id": "tvshow", + "orig_query": "select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Michael Chang' intersect select t1.series_name, t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = 'Ben Jones'", + "schema_with_content": "tv_series : id (3.0, 7.0, 6.0), 18_49_rating_share (\"2.4/6\", \"2.4/6\", \"1.5/4\"), share (9.0, 7.0, 9.0), channel (\"713\", \"714\", \"717\"), weekly_rank (67.0, 62.0, 70.0), air_date (\"December 10, 2007\", \"October 1, 2007\", \"November 26, 2007\"), rating (\"3.0\", \"5.8\", \"5.3\"), viewers_m (\"6.06\", \"9.16\", \"6.94\"), episode (\"The Hanged Man\", \"The Year of the Rabbit\", \"Keepers\") | tv_channel : id (\"703\", \"715\", \"719\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"Sky Famiglia\", \"Option\"), content (\"music\"), pay_per_view_ppv (\"no\"), series_name (\"Music Box Italia\", \"MTV Music\", \"MTV Hits\"), language (\"Italian\", \"English\") | toons : title (\"The Eyes of Despero!\", \"Day of the Dark Knight!\", \"The Eyes of Despero!\"), written_by (\"Joseph Kuhr\", \"Joseph Kuhr\", \"Matt Wayne\"), production_code (108.0, 108.0, 111.0), original_air_date (\"January9,2009\", \"January16,2009\", \"January2,2009\"), id (2.0, 3.0, 7.0), channel (\"705\", \"703\", \"700\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | animated_series : title (\"The Eyes of Despero!\", \"Day of the Dark Knight!\", \"The Eyes of Despero!\"), written_by (\"Joseph Kuhr\", \"Joseph Kuhr\", \"Matt Wayne\"), production_code (108.0, 108.0, 111.0), original_air_date (\"January9,2009\", \"January16,2009\", \"January2,2009\"), id (2.0, 3.0, 7.0), channel (\"705\", \"703\", \"700\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\")", + "schema_without_content": "tv_series : id , 18_49_rating_share , share , channel , weekly_rank , air_date , rating , viewers_m , episode | tv_channel : id , pixel_aspect_ratio_par , hight_definition_tv , country , package_option \", \"Sky Famiglia\", \"Option\", content , pay_per_view_ppv , series_name , language | toons : title , written_by , production_code , original_air_date , id , channel , directed_by | animated_series : title , written_by , production_code , original_air_date , id , channel , directed_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "series name": "TV_Channel.series_name", + "country of all TV channels": "TV_Channel.Country", + "cartoons directed by Ben Jones": "Cartoon.Directed_by", + "cartoons directed by Michael Chang": "Cartoon.Directed_by" + } + }, + { + "question": "find the #pixel aspect ratio# and #nation of the tv channels# that do not use #english# .", + "db_id": "tvshow", + "orig_query": "select pixel_aspect_ratio_par, country from tv_channel where language != 'English'", + "schema_with_content": "Television_Channel : id (\"717\", \"714\", \"704\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"Option\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Live HD\", \"MTV Dance\", \"MTV Live HD\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\") | cartoon : written_by (\"James Krieg\", \"Joseph Kuhr\", \"Joseph Kuhr\"), production_code (106.0, 104.0, 104.0), original_air_date (\"February6,2009\", \"December12,2008\", \"January9,2009\"), id (8.0, 1.0, 9.0), channel (\"703\", \"704\", \"728\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), title (\"Fall of the Blue Beetle!\", \"Invasion of the Secret Santas!\", \"Invasion of the Secret Santas!\") | tv_series : channel (\"700\", \"713\", \"728\"), weekly_rank (70.0, 66.0, 71.0), id (1.0, 1.0, 8.0), 18_49_rating_share (\"1.7/5\", \"1.5/4\", \"1.5/4\"), share (7.0, 7.0, 6.0), viewers_m (\"5.28\", \"5.28\", \"9.16\"), episode (\"Winterland\", \"A Love of a Lifetime\", \"Friendly Skies\"), rating (\"4.4\", \"4.4\", \"3.5\"), air_date (\"September 24, 2007\", \"November 19, 2007\", \"November 26, 2007\") | Broadcasting_Channel : id (\"717\", \"714\", \"704\"), package_option (\"no ( FTV )\", \"Sky Famiglia + Sky HD\", \"Option\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Live HD\", \"MTV Dance\", \"MTV Live HD\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\")", + "schema_without_content": "Television_Channel : id , package_option \", \"Sky Famiglia + Sky HD\", \"Option\", pixel_aspect_ratio_par , content , pay_per_view_ppv , series_name , country , hight_definition_tv , language | cartoon : written_by , production_code , original_air_date , id , channel , directed_by , title | tv_series : channel , weekly_rank , id , 18_49_rating_share , share , viewers_m , episode , rating , air_date | Broadcasting_Channel : id , package_option \", \"Sky Famiglia + Sky HD\", \"Option\", pixel_aspect_ratio_par , content , pay_per_view_ppv , series_name , country , hight_definition_tv , language", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "pixel aspect ratio": "TV_Channel.Pixel_aspect_ratio_PAR", + "nation of the tv channels": "TV_Channel.Country", + "English": "TV_Channel.Language" + } + }, + { + "question": "what is the #pixel aspect ratio# and #country of origin for all tv channels# that do not use #english# ?", + "db_id": "tvshow", + "orig_query": "select pixel_aspect_ratio_par, country from tv_channel where language != 'English'", + "schema_with_content": "Television_Channel : content (\"music\"), id (\"715\", \"700\", \"705\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Music\", \"Sky Radio\", \"MTV Hits\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"Sky Famiglia\", \"Option\", \"Sky Famiglia + Sky HD\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\") | Broadcasting_Channel : content (\"music\"), id (\"715\", \"700\", \"705\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), series_name (\"MTV Music\", \"Sky Radio\", \"MTV Hits\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"Sky Famiglia\", \"Option\", \"Sky Famiglia + Sky HD\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\") | cartoon : production_code (107.0, 107.0, 106.0), channel (\"700\", \"701\", \"728\"), id (5.0, 3.0, 5.0), title (\"The Eyes of Despero!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\"), original_air_date (\"January2,2009\", \"January16,2009\", \"February20,2009\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Michael Jelenic\", \"Steven Melching\", \"Joseph Kuhr\") | tv_series : channel (\"714\", \"714\", \"713\"), 18_49_rating_share (\"2.9/7\", \"2.7/7\", \"3.5/9\"), share (9.0, 6.0, 9.0), viewers_m (\"6.09\", \"6.09\", \"5.75\"), air_date (\"October 8, 2007\", \"December 17, 2007\", \"October 8, 2007\"), rating (\"5.8\", \"3.7\", \"3.4\"), episode (\"The Year of the Rabbit\", \"Game Three\", \"A Love of a Lifetime\"), id (8.0, 2.0, 6.0), weekly_rank (71.0, 65.0, 66.0)", + "schema_without_content": "Television_Channel : content , id , pixel_aspect_ratio_par , pay_per_view_ppv , series_name , country , package_option , hight_definition_tv , language | Broadcasting_Channel : content , id , pixel_aspect_ratio_par , pay_per_view_ppv , series_name , country , package_option , hight_definition_tv , language | cartoon : production_code , channel , id , title , original_air_date , directed_by , written_by | tv_series : channel , 18_49_rating_share , share , viewers_m , air_date , rating , episode , id , weekly_rank", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "pixel aspect ratio": "TV_Channel.Pixel_aspect_ratio_PAR", + "country of origin for all TV channels": "TV_Channel.Country", + "English": "TV_Channel.Language" + } + }, + { + "question": "find #id of the tv channels# that from the #countries# where have more than two tv channels.", + "db_id": "tvshow", + "orig_query": "select id from tv_channel group by country having count(*) > 2", + "schema_with_content": "Broadcasting_Channel : language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"Sky Radio\", \"MTV Classic\", \"Radio Capital TiV\u00c3\u00b9\"), id (\"707\", \"708\", \"703\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\") | Television_Channel : language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), pay_per_view_ppv (\"no\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), series_name (\"Sky Radio\", \"MTV Classic\", \"Radio Capital TiV\u00c3\u00b9\"), id (\"707\", \"708\", \"703\"), hight_definition_tv (\"no\", \"yes\"), content (\"music\") | tv_series : rating (\"3.8\", \"3.5\", \"3.7\"), share (7.0, 7.0, 7.0), channel (\"701\", \"700\", \"719\"), 18_49_rating_share (\"3.2/8\", \"2.9/7\", \"1.5/4\"), id (2.0, 9.0, 1.0), viewers_m (\"5.61\", \"6.94\", \"6.05\"), weekly_rank (50.0, 43.0, 80.0), episode (\"Friendly Skies\", \"The Legend of Dylan McCleen\", \"Blowback\"), air_date (\"November 19, 2007\", \"October 29, 2007\", \"November 5, 2007\") | cartoon : original_air_date (\"January16,2009\", \"January23,2009\", \"December5,2008\"), written_by (\"Todd Casey\", \"Steven Melching\", \"Matt Wayne\"), title (\"Terror on Dinosaur Island!\", \"The Rise of the Blue Beetle!\", \"Fall of the Blue Beetle!\"), channel (\"706\", \"701\", \"704\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (3.0, 2.0, 4.0), production_code (112.0, 110.0, 104.0)", + "schema_without_content": "Broadcasting_Channel : language , country , pay_per_view_ppv , package_option , pixel_aspect_ratio_par , series_name , id , hight_definition_tv , content | Television_Channel : language , country , pay_per_view_ppv , package_option , pixel_aspect_ratio_par , series_name , id , hight_definition_tv , content | tv_series : rating , share , channel , 18_49_rating_share , id , viewers_m , weekly_rank , episode , air_date | cartoon : original_air_date , written_by , title , channel , directed_by , id , production_code", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "id of the tv channels": "TV_Channel.id", + "countries": "TV_Channel.Country", + "tv channels": "TV_Channel" + } + }, + { + "question": "what are the #ids of all tv channels# that have #more than 2 tv channels# ?", + "db_id": "tvshow", + "orig_query": "select id from tv_channel group by country having count(*) > 2", + "schema_with_content": "Broadcasting_Channel : series_name (\"MTV Rocks\", \"Music Box Italia\", \"Radio Capital TiV\u00c3\u00b9\"), package_option (\"Option\", \"Sky Famiglia\", \"Option\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"704\", \"708\", \"713\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\") | Television_Channel : series_name (\"MTV Rocks\", \"Music Box Italia\", \"Radio Capital TiV\u00c3\u00b9\"), package_option (\"Option\", \"Sky Famiglia\", \"Option\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"704\", \"708\", \"713\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), language (\"Italian\", \"English\"), pay_per_view_ppv (\"no\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\") | tv_series : 18_49_rating_share (\"2.4/6\", \"2.9/7\", \"2.9/7\"), weekly_rank (71.0, 62.0, 68.0), rating (\"5.3\", \"4.0\", \"5.8\"), air_date (\"October 1, 2007\", \"November 26, 2007\", \"November 5, 2007\"), episode (\"Friendly Skies\", \"A Love of a Lifetime\", \"Winterland\"), viewers_m (\"6.09\", \"6.05\", \"6.05\"), channel (\"708\", \"713\", \"713\"), share (6.0, 6.0, 9.0), id (3.0, 2.0, 12.0) | cartoon : channel (\"701\", \"705\", \"701\"), production_code (104.0, 102.0, 108.0), title (\"The Eyes of Despero!\", \"Evil Under the Sea!\", \"The Rise of the Blue Beetle!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), written_by (\"Joseph Kuhr\", \"Michael Jelenic\", \"Matt Wayne\"), original_air_date (\"February20,2009\", \"February6,2009\", \"January30,2009\"), id (6.0, 8.0, 3.0)", + "schema_without_content": "Broadcasting_Channel : series_name , package_option , pixel_aspect_ratio_par , id , country , language , pay_per_view_ppv , content , hight_definition_tv | Television_Channel : series_name , package_option , pixel_aspect_ratio_par , id , country , language , pay_per_view_ppv , content , hight_definition_tv | tv_series : 18_49_rating_share , weekly_rank , rating , air_date , episode , viewers_m , channel , share , id | cartoon : channel , production_code , title , directed_by , written_by , original_air_date , id", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ids of all tv channels": "TV_Channel.id", + "more than 2 TV channels": "TV_Channel.Country" + } + }, + { + "question": "find the #id# of tv channels that do not play any #cartoon directed by# ben jones.", + "db_id": "tvshow", + "orig_query": "select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones'", + "schema_with_content": "tv_series : weekly_rank (50.0, 71.0, 71.0), episode (\"The Hanged Man\", \"The Year of the Rabbit\", \"The Legend of Dylan McCleen\"), share (7.0, 7.0, 5.0), viewers_m (\"6.09\", \"6.09\", \"5.61\"), channel (\"714\", \"708\", \"728\"), id (6.0, 12.0, 11.0), 18_49_rating_share (\"1.5/4\", \"2.2/6\", \"2.9/7\"), rating (\"3.5\", \"5.3\", \"3.8\"), air_date (\"October 29, 2007\", \"December 10, 2007\", \"November 26, 2007\") | Television_Channel : pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), language (\"Italian\", \"English\"), series_name (\"MTV Live HD\", \"Music Box Italia\", \"MTV Rocks\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"Option\"), id (\"705\", \"705\", \"704\") | Broadcasting_Channel : pay_per_view_ppv (\"no\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), content (\"music\"), language (\"Italian\", \"English\"), series_name (\"MTV Live HD\", \"Music Box Italia\", \"MTV Rocks\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"no ( FTV )\", \"Option\"), id (\"705\", \"705\", \"704\") | cartoon : directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), channel (\"701\", \"708\", \"708\"), id (7.0, 12.0, 7.0), production_code (108.0, 102.0, 112.0), written_by (\"Adam Beechen\", \"James Krieg\", \"Joseph Kuhr\"), title (\"Return of the Fearsome Fangs!\", \"Evil Under the Sea!\", \"Enter the Outsiders!\"), original_air_date (\"December5,2008\", \"January23,2009\", \"November14,2008\")", + "schema_without_content": "tv_series : weekly_rank , episode , share , viewers_m , channel , id , 18_49_rating_share , rating , air_date | Television_Channel : pay_per_view_ppv , pixel_aspect_ratio_par , content , language , series_name , country , hight_definition_tv , package_option \", \"Option\", id | Broadcasting_Channel : pay_per_view_ppv , pixel_aspect_ratio_par , content , language , series_name , country , hight_definition_tv , package_option \", \"Option\", id | cartoon : directed_by , channel , id , production_code , written_by , title , original_air_date", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "id": "TV_Channel.id", + "cartoon directed by": "Cartoon.Directed_by" + } + }, + { + "question": "find the #id# of tv channels that do not play any #cartoon directed by# ben jones.", + "db_id": "tvshow", + "orig_query": "select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones'", + "schema_with_content": "tv_series : episode (\"Winterland\", \"The Legend of Dylan McCleen\", \"The Legend of Dylan McCleen\"), id (9.0, 10.0, 1.0), 18_49_rating_share (\"2.4/6\", \"3.5/9\", \"2.2/6\"), viewers_m (\"5.28\", \"6.09\", \"8.23\"), air_date (\"November 12, 2007\", \"December 17, 2007\", \"September 24, 2007\"), weekly_rank (71.0, 65.0, 61.0), share (9.0, 5.0, 7.0), rating (\"3.4\", \"3.7\", \"5.3\"), channel (\"719\", \"713\", \"714\") | toons : written_by (\"Steven Melching\", \"Matt Wayne\", \"Adam Beechen\"), title (\"Return of the Fearsome Fangs!\", \"Journey to the Center of the Bat!\", \"The Rise of the Blue Beetle!\"), channel (\"701\", \"701\", \"701\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (107.0, 106.0, 106.0), original_air_date (\"January16,2009\", \"January30,2009\", \"January2,2009\"), id (4.0, 4.0, 1.0) | animated_series : written_by (\"Steven Melching\", \"Matt Wayne\", \"Adam Beechen\"), title (\"Return of the Fearsome Fangs!\", \"Journey to the Center of the Bat!\", \"The Rise of the Blue Beetle!\"), channel (\"701\", \"701\", \"701\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (107.0, 106.0, 106.0), original_air_date (\"January16,2009\", \"January30,2009\", \"January2,2009\"), id (4.0, 4.0, 1.0) | tv_channel : hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), series_name (\"Music Box Italia\", \"Classica\", \"MTV Rocks\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), package_option (\"Option\", \"no ( FTV )\", \"Sky Famiglia\"), pay_per_view_ppv (\"no\"), id (\"714\", \"705\", \"706\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\")", + "schema_without_content": "tv_series : episode , id , 18_49_rating_share , viewers_m , air_date , weekly_rank , share , rating , channel | toons : written_by , title , channel , directed_by , production_code , original_air_date , id | animated_series : written_by , title , channel , directed_by , production_code , original_air_date , id | tv_channel : hight_definition_tv , language , series_name , pixel_aspect_ratio_par , package_option \", \"Sky Famiglia\", pay_per_view_ppv , id , country , content", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "TV_Channel.id", + "cartoon directed by": "Cartoon.Directed_by" + } + }, + { + "question": "what are the #ids# of the tv channels that do not have any #cartoons directed by# ben jones?", + "db_id": "tvshow", + "orig_query": "select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones'", + "schema_with_content": "tv_series : id (7.0, 10.0, 4.0), share (5.0, 5.0, 5.0), channel (\"719\", \"728\", \"714\"), viewers_m (\"6.75\", \"6.09\", \"9.16\"), air_date (\"November 5, 2007\", \"November 26, 2007\", \"November 12, 2007\"), rating (\"3.5\", \"5.8\", \"3.5\"), episode (\"Home By Another Way\", \"The Hanged Man\", \"The Year of the Rabbit\"), 18_49_rating_share (\"2.7/7\", \"2.1/5\", \"1.5/4\"), weekly_rank (61.0, 68.0, 50.0) | Television_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"708\", \"728\", \"700\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Option\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), series_name (\"Classica\", \"MTV Classic\", \"Hip Hop TV\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), content (\"music\") | cartoon : production_code (110.0, 103.0, 111.0), written_by (\"Todd Casey\", \"James Krieg\", \"Matt Wayne\"), title (\"Deep Cover for Batman!\", \"Invasion of the Secret Santas!\", \"Evil Under the Sea!\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), id (10.0, 1.0, 3.0), original_air_date (\"January2,2009\", \"January2,2009\", \"November21,2008\"), channel (\"705\", \"706\", \"728\") | Broadcasting_Channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"708\", \"728\", \"700\"), package_option (\"Sky Famiglia + Sky HD\", \"Sky Famiglia\", \"Option\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\"), series_name (\"Classica\", \"MTV Classic\", \"Hip Hop TV\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), content (\"music\")", + "schema_without_content": "tv_series : id , share , channel , viewers_m , air_date , rating , episode , 18_49_rating_share , weekly_rank | Television_Channel : country , id , package_option , hight_definition_tv , pay_per_view_ppv , series_name , pixel_aspect_ratio_par , language , content | cartoon : production_code , written_by , title , directed_by , id , original_air_date , channel | Broadcasting_Channel : country , id , package_option , hight_definition_tv , pay_per_view_ppv , series_name , pixel_aspect_ratio_par , language , content", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "ids": "TV_Channel.id", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "question": "what are the #ids# of the tv channels that do not have any #cartoons directed by# ben jones?", + "db_id": "tvshow", + "orig_query": "select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones'", + "schema_with_content": "toons : title (\"Terror on Dinosaur Island!\", \"Deep Cover for Batman!\", \"The Rise of the Blue Beetle!\"), id (6.0, 7.0, 4.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (109.0, 111.0, 110.0), original_air_date (\"November21,2008\", \"November14,2008\", \"February6,2009\"), channel (\"705\", \"700\", \"700\"), written_by (\"Michael Jelenic\", \"James Krieg\", \"Michael Jelenic\") | tv_series : episode (\"Keepers\", \"Emily\", \"Blowback\"), 18_49_rating_share (\"2.7/7\", \"1.5/4\", \"3.2/8\"), share (9.0, 6.0, 5.0), rating (\"3.4\", \"3.5\", \"4.0\"), viewers_m (\"8.23\", \"9.16\", \"6.06\"), air_date (\"October 1, 2007\", \"October 29, 2007\", \"October 22, 2007\"), channel (\"717\", \"728\", \"707\"), id (2.0, 6.0, 3.0), weekly_rank (66.0, 61.0, 68.0) | animated_series : title (\"Terror on Dinosaur Island!\", \"Deep Cover for Batman!\", \"The Rise of the Blue Beetle!\"), id (6.0, 7.0, 4.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (109.0, 111.0, 110.0), original_air_date (\"November21,2008\", \"November14,2008\", \"February6,2009\"), channel (\"705\", \"700\", \"700\"), written_by (\"Michael Jelenic\", \"James Krieg\", \"Michael Jelenic\") | tv_channel : country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"728\", \"717\", \"701\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), language (\"Italian\", \"English\"), series_name (\"myDeejay\", \"myDeejay\", \"MTV Dance\"), package_option (\"Sky Famiglia\", \"Sky Famiglia\", \"Sky Famiglia + Sky HD\"), content (\"music\"), hight_definition_tv (\"no\", \"yes\"), pay_per_view_ppv (\"no\")", + "schema_without_content": "toons : title , id , directed_by , production_code , original_air_date , channel , written_by | tv_series : episode , 18_49_rating_share , share , rating , viewers_m , air_date , channel , id , weekly_rank | animated_series : title , id , directed_by , production_code , original_air_date , channel , written_by | tv_channel : country , id , pixel_aspect_ratio_par , language , series_name , package_option , content , hight_definition_tv , pay_per_view_ppv", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "ids": "TV_Channel.id", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "question": "find the #package option# of the tv channel that do not have any #cartoon directed by# ben jones.", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'Ben Jones')", + "schema_with_content": "cartoon : original_air_date (\"January9,2009\", \"November21,2008\", \"January16,2009\"), channel (\"706\", \"707\", \"701\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (112.0, 102.0, 110.0), written_by (\"Matt Wayne\", \"Michael Jelenic\", \"Adam Beechen\"), title (\"Enter the Outsiders!\", \"Terror on Dinosaur Island!\", \"Deep Cover for Batman!\"), id (4.0, 10.0, 11.0) | tv_series : share (9.0, 9.0, 5.0), weekly_rank (67.0, 72.0, 68.0), id (3.0, 8.0, 6.0), channel (\"701\", \"714\", \"713\"), 18_49_rating_share (\"2.1/5\", \"3.2/8\", \"2.1/5\"), air_date (\"October 22, 2007\", \"November 5, 2007\", \"November 19, 2007\"), episode (\"A Love of a Lifetime\", \"Double Down\", \"Double Down\"), viewers_m (\"6.75\", \"5.13\", \"8.23\"), rating (\"3.5\", \"3.8\", \"3.5\") | Broadcasting_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), id (\"705\", \"719\", \"709\"), series_name (\"Music Box Italia\", \"Sky Music\", \"MTV Rocks\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Option\") | Television_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\"), hight_definition_tv (\"no\", \"yes\"), language (\"Italian\", \"English\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), content (\"music\"), id (\"705\", \"719\", \"709\"), series_name (\"Music Box Italia\", \"Sky Music\", \"MTV Rocks\"), package_option (\"no ( FTV )\", \"no ( FTV )\", \"Option\")", + "schema_without_content": "cartoon : original_air_date , channel , directed_by , production_code , written_by , title , id | tv_series : share , weekly_rank , id , channel , 18_49_rating_share , air_date , episode , viewers_m , rating | Broadcasting_Channel : pixel_aspect_ratio_par , pay_per_view_ppv , hight_definition_tv , language , country , content , id , series_name , package_option \", \"no \", \"Option\" | Television_Channel : pixel_aspect_ratio_par , pay_per_view_ppv , hight_definition_tv , language , country , content , id , series_name , package_option \", \"no \", \"Option\"", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "package option": "TV_Channel.Package_Option", + "cartoon directed by": "Cartoon.Directed_by" + } + }, + { + "question": "find the #package option# of the tv channel that do not have any #cartoon directed by# ben jones.", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'Ben Jones')", + "schema_with_content": "toons : written_by (\"Todd Casey\", \"Todd Casey\", \"Adam Beechen\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (112.0, 111.0, 104.0), original_air_date (\"November14,2008\", \"February27,2009\", \"November14,2008\"), id (5.0, 2.0, 11.0), channel (\"703\", \"707\", \"703\"), title (\"Dawn of the Dead Man!\", \"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\") | tv_series : air_date (\"December 17, 2007\", \"November 12, 2007\", \"October 29, 2007\"), episode (\"Game Three\", \"Blowback\", \"Double Down\"), id (7.0, 3.0, 11.0), channel (\"717\", \"714\", \"713\"), viewers_m (\"5.75\", \"8.23\", \"6.05\"), 18_49_rating_share (\"3.5/9\", \"3.2/8\", \"2.1/5\"), weekly_rank (68.0, 65.0, 67.0), rating (\"3.7\", \"3.5\", \"3.0\"), share (7.0, 6.0, 7.0) | tv_channel : content (\"music\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), id (\"709\", \"708\", \"715\"), language (\"Italian\", \"English\"), series_name (\"myDeejay\", \"Sky Radio\", \"myDeejay\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Sky Famiglia + Sky HD\", \"Option\", \"Sky Famiglia\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\") | animated_series : written_by (\"Todd Casey\", \"Todd Casey\", \"Adam Beechen\"), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\"), production_code (112.0, 111.0, 104.0), original_air_date (\"November14,2008\", \"February27,2009\", \"November14,2008\"), id (5.0, 2.0, 11.0), channel (\"703\", \"707\", \"703\"), title (\"Dawn of the Dead Man!\", \"Journey to the Center of the Bat!\", \"Dawn of the Dead Man!\")", + "schema_without_content": "toons : written_by , directed_by , production_code , original_air_date , id , channel , title | tv_series : air_date , episode , id , channel , viewers_m , 18_49_rating_share , weekly_rank , rating , share | tv_channel : content , country , id , language , series_name , hight_definition_tv , package_option , pixel_aspect_ratio_par , pay_per_view_ppv | animated_series : written_by , directed_by , production_code , original_air_date , id , channel , title", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "package option": "TV_Channel.Package_Option", + "cartoon directed by": "Cartoon.Directed_by" + } + }, + { + "question": "what are the #package options of all tv channels# that are not playing any #cartoons directed by# ben jones?", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'Ben Jones')", + "schema_with_content": "Broadcasting_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"706\", \"715\", \"704\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"Rock TV\", \"Rock TV\", \"Music Box Italia\"), language (\"Italian\", \"English\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Option\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), pay_per_view_ppv (\"no\"), content (\"music\") | Television_Channel : pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), id (\"706\", \"715\", \"704\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), series_name (\"Rock TV\", \"Rock TV\", \"Music Box Italia\"), language (\"Italian\", \"English\"), hight_definition_tv (\"no\", \"yes\"), package_option (\"Option\", \"Sky Famiglia + Sky HD\", \"Sky Famiglia + Sky HD\"), pay_per_view_ppv (\"no\"), content (\"music\") | cartoon : production_code (101.0, 109.0, 110.0), channel (\"703\", \"728\", \"728\"), title (\"Invasion of the Secret Santas!\", \"The Eyes of Despero!\", \"Enter the Outsiders!\"), written_by (\"Matt Wayne\", \"Steven Melching\", \"Joseph Kuhr\"), original_air_date (\"February6,2009\", \"November14,2008\", \"February6,2009\"), id (9.0, 5.0, 11.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | tv_series : 18_49_rating_share (\"1.7/5\", \"2.1/5\", \"2.2/6\"), id (2.0, 6.0, 1.0), channel (\"717\", \"719\", \"701\"), share (5.0, 6.0, 6.0), air_date (\"November 19, 2007\", \"October 1, 2007\", \"October 29, 2007\"), rating (\"3.7\", \"5.8\", \"4.3\"), episode (\"Blowback\", \"Blowback\", \"Keepers\"), weekly_rank (43.0, 65.0, 67.0), viewers_m (\"5.13\", \"6.06\", \"6.09\")", + "schema_without_content": "Broadcasting_Channel : pixel_aspect_ratio_par , id , country , series_name , language , hight_definition_tv , package_option , pay_per_view_ppv , content | Television_Channel : pixel_aspect_ratio_par , id , country , series_name , language , hight_definition_tv , package_option , pay_per_view_ppv , content | cartoon : production_code , channel , title , written_by , original_air_date , id , directed_by | tv_series : 18_49_rating_share , id , channel , share , air_date , rating , episode , weekly_rank , viewers_m", + "extra_map": null, + "extra_table_map": { + "tv_channel": [ + "Broadcasting_Channel", + "Television_Channel" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "package options of all tv channels": "TV_Channel.Package_Option", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "question": "what are the #package options of all tv channels# that are not playing any #cartoons directed by# ben jones?", + "db_id": "tvshow", + "orig_query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'Ben Jones')", + "schema_with_content": "tv_channel : series_name (\"Sky Music\", \"MTV Music\", \"Rock TV\"), id (\"715\", \"704\", \"713\"), hight_definition_tv (\"no\", \"yes\"), country (\"Italy\", \"United Kingdom\", \"Poland\"), package_option (\"no ( FTV )\", \"Option\", \"Sky Famiglia\"), language (\"Italian\", \"English\"), content (\"music\"), pixel_aspect_ratio_par (\"4:3\", \"4:3 / 16:9\", \"16:9\"), pay_per_view_ppv (\"no\") | tv_series : id (11.0, 9.0, 10.0), 18_49_rating_share (\"1.5/4\", \"2.9/7\", \"2.7/7\"), episode (\"Double Down\", \"A Love of a Lifetime\", \"Double Down\"), channel (\"708\", \"700\", \"714\"), weekly_rank (72.0, 68.0, 50.0), air_date (\"November 5, 2007\", \"October 1, 2007\", \"October 1, 2007\"), rating (\"3.4\", \"4.4\", \"5.8\"), share (9.0, 7.0, 7.0), viewers_m (\"9.16\", \"6.06\", \"5.28\") | animated_series : original_air_date (\"January9,2009\", \"February6,2009\", \"November14,2008\"), production_code (103.0, 103.0, 109.0), title (\"Dawn of the Dead Man!\", \"Evil Under the Sea!\", \"The Eyes of Despero!\"), channel (\"706\", \"701\", \"707\"), written_by (\"Joseph Kuhr\", \"Michael Jelenic\", \"Steven Melching\"), id (5.0, 11.0, 5.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\") | toons : original_air_date (\"January9,2009\", \"February6,2009\", \"November14,2008\"), production_code (103.0, 103.0, 109.0), title (\"Dawn of the Dead Man!\", \"Evil Under the Sea!\", \"The Eyes of Despero!\"), channel (\"706\", \"701\", \"707\"), written_by (\"Joseph Kuhr\", \"Michael Jelenic\", \"Steven Melching\"), id (5.0, 11.0, 5.0), directed_by (\"Ben Jones\", \"Brandon Vietti\", \"Michael Chang\")", + "schema_without_content": "tv_channel : series_name , id , hight_definition_tv , country , package_option \", \"Option\", \"Sky Famiglia\", language , content , pixel_aspect_ratio_par , pay_per_view_ppv | tv_series : id , 18_49_rating_share , episode , channel , weekly_rank , air_date , rating , share , viewers_m | animated_series : original_air_date , production_code , title , channel , written_by , id , directed_by | toons : original_air_date , production_code , title , channel , written_by , id , directed_by", + "extra_map": null, + "extra_table_map": { + "cartoon": [ + "animated_series", + "toons" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "package options of all tv channels": "TV_Channel.Package_Option", + "cartoons directed by": "Cartoon.Directed_by" + } + }, + { + "question": "list the #earnings of poker players# in descending order.", + "db_id": "poker_player", + "orig_query": "select earnings from poker_player order by earnings desc", + "schema_with_content": "people : birth_date (\"August 16, 1982\", \"February 8, 1981\", \"July 14, 1983\"), height (196.0, 187.0, 182.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Teodor Salparov\", \"Teodor Salparov\"), people_id (6, 3, 3) | player : final_table_made (19.0, 19.0, 26.0), people_id (5, 7, 1), best_finish (1.0, 2.0, 3.0), earnings (189233.0, 104871.0, 476090.0), poker_player_id (4, 2, 4), money_rank (58.0, 154.0, 166.0) | gambler : final_table_made (19.0, 19.0, 26.0), people_id (5, 7, 1), best_finish (1.0, 2.0, 3.0), earnings (189233.0, 104871.0, 476090.0), poker_player_id (4, 2, 4), money_rank (58.0, 154.0, 166.0)", + "schema_without_content": "people : birth_date , height , nationality , name , people_id | player : final_table_made , people_id , best_finish , earnings , poker_player_id , money_rank | gambler : final_table_made , people_id , best_finish , earnings , poker_player_id , money_rank", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "earnings of poker players": "poker_player.Earnings" + } + }, + { + "question": "what are the #earnings of poker players# , ordered descending by value?", + "db_id": "poker_player", + "orig_query": "select earnings from poker_player order by earnings desc", + "schema_with_content": "player : people_id (7, 1, 7), final_table_made (26.0, 10.0, 42.0), money_rank (166.0, 166.0, 154.0), poker_player_id (4, 2, 4), earnings (476090.0, 142800.0, 476090.0), best_finish (1.0, 2.0, 3.0) | people : birth_date (\"May 26, 1986\", \"August 16, 1982\", \"May 26, 1986\"), people_id (6, 2, 4), height (187.0, 182.0, 182.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Teodor Salparov\", \"Roman Bragin\", \"Maksim Botin\") | gambler : people_id (7, 1, 7), final_table_made (26.0, 10.0, 42.0), money_rank (166.0, 166.0, 154.0), poker_player_id (4, 2, 4), earnings (476090.0, 142800.0, 476090.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "player : people_id , final_table_made , money_rank , poker_player_id , earnings , best_finish | people : birth_date , people_id , height , nationality , name | gambler : people_id , final_table_made , money_rank , poker_player_id , earnings , best_finish", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "earnings of poker players": "poker_player.Earnings" + } + }, + { + "question": "what is the #money rank of the poker player# with the highest #earnings# ?", + "db_id": "poker_player", + "orig_query": "select money_rank from poker_player order by earnings desc limit 1", + "schema_with_content": "people : nationality (\"Russia\", \"Bulgaria\"), people_id (4, 6, 7), birth_date (\"August 16, 1982\", \"February 8, 1981\", \"August 8, 1986\"), name (\"Teodor Salparov\", \"Sergey Grankin\", \"Semen Poltavskiy\"), height (196.0, 207.0, 182.0) | player : money_rank (154.0, 68.0, 166.0), final_table_made (21.0, 21.0, 10.0), earnings (596462.0, 104871.0, 104871.0), poker_player_id (3, 2, 4), best_finish (1.0, 2.0, 3.0), people_id (6, 7, 1) | gambler : money_rank (154.0, 68.0, 166.0), final_table_made (21.0, 21.0, 10.0), earnings (596462.0, 104871.0, 104871.0), poker_player_id (3, 2, 4), best_finish (1.0, 2.0, 3.0), people_id (6, 7, 1)", + "schema_without_content": "people : nationality , people_id , birth_date , name , height | player : money_rank , final_table_made , earnings , poker_player_id , best_finish , people_id | gambler : money_rank , final_table_made , earnings , poker_player_id , best_finish , people_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "money rank of the poker player": "poker_player.Money_Rank", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #money rank of the player# with the greatest #earnings# .", + "db_id": "poker_player", + "orig_query": "select money_rank from poker_player order by earnings desc limit 1", + "schema_with_content": "player : poker_player_id (2, 2, 2), money_rank (141.0, 141.0, 58.0), final_table_made (21.0, 10.0, 42.0), people_id (5, 7, 1), earnings (476090.0, 142800.0, 189233.0), best_finish (1.0, 2.0, 3.0) | people : height (196.0, 182.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), people_id (1, 5, 2), name (\"Teodor Salparov\", \"Teodor Salparov\", \"Yevgeni Sivozhelez\"), birth_date (\"August 8, 1986\", \"February 8, 1981\", \"April 17, 1987\") | gambler : poker_player_id (2, 2, 2), money_rank (141.0, 141.0, 58.0), final_table_made (21.0, 10.0, 42.0), people_id (5, 7, 1), earnings (476090.0, 142800.0, 189233.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "player : poker_player_id , money_rank , final_table_made , people_id , earnings , best_finish | people : height , nationality , people_id , name , birth_date | gambler : poker_player_id , money_rank , final_table_made , people_id , earnings , best_finish", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "money rank of the player": "poker_player.Money_Rank", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what is the #maximum number of final tables made# among #poker players with earnings# less than 200000?", + "db_id": "poker_player", + "orig_query": "select max(final_table_made) from poker_player where earnings < 200000", + "schema_with_content": "player : best_finish (1.0, 2.0, 3.0), money_rank (58.0, 58.0, 141.0), earnings (189233.0, 142800.0, 142800.0), people_id (1, 7, 1), poker_player_id (1, 5, 5), final_table_made (10.0, 10.0, 21.0) | people : height (193.0, 194.0, 194.0), birth_date (\"January 22, 1987\", \"August 16, 1982\", \"May 26, 1986\"), nationality (\"Russia\", \"Bulgaria\"), name (\"Yevgeni Sivozhelez\", \"Roman Bragin\", \"Roman Bragin\"), people_id (1, 5, 5) | gambler : best_finish (1.0, 2.0, 3.0), money_rank (58.0, 58.0, 141.0), earnings (189233.0, 142800.0, 142800.0), people_id (1, 7, 1), poker_player_id (1, 5, 5), final_table_made (10.0, 10.0, 21.0)", + "schema_without_content": "player : best_finish , money_rank , earnings , people_id , poker_player_id , final_table_made | people : height , birth_date , nationality , name , people_id | gambler : best_finish , money_rank , earnings , people_id , poker_player_id , final_table_made", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "maximum number of final tables made": "poker_player.Final_Table_Made", + "poker players with earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #maximum final tables made# across all #poker players# who have #earnings# below 200000.", + "db_id": "poker_player", + "orig_query": "select max(final_table_made) from poker_player where earnings < 200000", + "schema_with_content": "gambler : best_finish (1.0, 2.0, 3.0), people_id (7, 6, 7), final_table_made (19.0, 26.0, 21.0), earnings (476090.0, 596462.0, 596462.0), poker_player_id (4, 1, 4), money_rank (68.0, 68.0, 166.0) | people : nationality (\"Russia\", \"Bulgaria\"), height (182.0, 194.0, 187.0), people_id (3, 2, 4), birth_date (\"April 17, 1987\", \"July 14, 1983\", \"July 14, 1983\"), name (\"Yevgeni Sivozhelez\", \"Teodor Salparov\", \"Roman Bragin\") | player : best_finish (1.0, 2.0, 3.0), people_id (7, 6, 7), final_table_made (19.0, 26.0, 21.0), earnings (476090.0, 596462.0, 596462.0), poker_player_id (4, 1, 4), money_rank (68.0, 68.0, 166.0)", + "schema_without_content": "gambler : best_finish , people_id , final_table_made , earnings , poker_player_id , money_rank | people : nationality , height , people_id , birth_date , name | player : best_finish , people_id , final_table_made , earnings , poker_player_id , money_rank", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "maximum final tables made": "poker_player.Final_Table_Made", + "poker players": "poker_player", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what are the #names of poker players# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", + "schema_with_content": "player : people_id (5, 2, 2), final_table_made (10.0, 19.0, 19.0), poker_player_id (3, 4, 4), earnings (476090.0, 104871.0, 596462.0), money_rank (141.0, 166.0, 154.0), best_finish (1.0, 2.0, 3.0) | gambler : people_id (5, 2, 2), final_table_made (10.0, 19.0, 19.0), poker_player_id (3, 4, 4), earnings (476090.0, 104871.0, 596462.0), money_rank (141.0, 166.0, 154.0), best_finish (1.0, 2.0, 3.0) | people : people_id (1, 7, 4), birth_date (\"January 22, 1987\", \"May 26, 1986\", \"January 22, 1987\"), height (193.0, 182.0, 207.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Sergey Grankin\", \"Roman Bragin\", \"Teodor Salparov\")", + "schema_without_content": "player : people_id , final_table_made , poker_player_id , earnings , money_rank , best_finish | gambler : people_id , final_table_made , poker_player_id , earnings , money_rank , best_finish | people : people_id , birth_date , height , nationality , name", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name" + } + }, + { + "question": "what are the #names of poker players# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", + "schema_with_content": "poker_player : people_id (5, 6, 6), money_rank (166.0, 141.0, 68.0), best_finish (1.0, 2.0, 3.0), final_table_made (42.0, 21.0, 42.0), poker_player_id (3, 5, 1), earnings (476090.0, 104871.0, 189233.0) | person : people_id (3, 5, 7), name (\"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\", \"Maksim Botin\"), birth_date (\"July 14, 1983\", \"April 17, 1987\", \"February 8, 1981\"), height (196.0, 205.0, 194.0), nationality (\"Russia\", \"Bulgaria\") | individuals : people_id (3, 5, 7), name (\"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\", \"Maksim Botin\"), birth_date (\"July 14, 1983\", \"April 17, 1987\", \"February 8, 1981\"), height (196.0, 205.0, 194.0), nationality (\"Russia\", \"Bulgaria\")", + "schema_without_content": "poker_player : people_id , money_rank , best_finish , final_table_made , poker_player_id , earnings | person : people_id , name , birth_date , height , nationality | individuals : people_id , name , birth_date , height , nationality", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name" + } + }, + { + "question": "return the #names of all the poker players# .", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", + "schema_with_content": "gambler : best_finish (1.0, 2.0, 3.0), poker_player_id (4, 3, 5), people_id (2, 7, 5), earnings (104871.0, 189233.0, 476090.0), money_rank (68.0, 166.0, 141.0), final_table_made (10.0, 21.0, 21.0) | player : best_finish (1.0, 2.0, 3.0), poker_player_id (4, 3, 5), people_id (2, 7, 5), earnings (104871.0, 189233.0, 476090.0), money_rank (68.0, 166.0, 141.0), final_table_made (10.0, 21.0, 21.0) | people : people_id (2, 7, 6), name (\"Roman Bragin\", \"Aleksey Ostapenko\", \"Sergey Grankin\"), height (194.0, 194.0, 193.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"April 17, 1987\", \"April 17, 1987\", \"January 22, 1987\")", + "schema_without_content": "gambler : best_finish , poker_player_id , people_id , earnings , money_rank , final_table_made | player : best_finish , poker_player_id , people_id , earnings , money_rank , final_table_made | people : people_id , name , height , nationality , birth_date", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of all the poker players": "people.Name" + } + }, + { + "question": "return the #names of all the poker players# .", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", + "schema_with_content": "individuals : birth_date (\"February 8, 1981\", \"February 8, 1981\", \"February 8, 1981\"), nationality (\"Russia\", \"Bulgaria\"), height (187.0, 196.0, 207.0), people_id (6, 2, 3), name (\"Semen Poltavskiy\", \"Aleksey Ostapenko\", \"Aleksey Ostapenko\") | person : birth_date (\"February 8, 1981\", \"February 8, 1981\", \"February 8, 1981\"), nationality (\"Russia\", \"Bulgaria\"), height (187.0, 196.0, 207.0), people_id (6, 2, 3), name (\"Semen Poltavskiy\", \"Aleksey Ostapenko\", \"Aleksey Ostapenko\") | poker_player : people_id (2, 6, 1), final_table_made (10.0, 19.0, 10.0), earnings (596462.0, 189233.0, 142800.0), money_rank (68.0, 141.0, 154.0), best_finish (1.0, 2.0, 3.0), poker_player_id (2, 5, 4)", + "schema_without_content": "individuals : birth_date , nationality , height , people_id , name | person : birth_date , nationality , height , people_id , name | poker_player : people_id , final_table_made , earnings , money_rank , best_finish , poker_player_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of all the poker players": "people.Name" + } + }, + { + "question": "what are the #names of poker players# whose #earnings# is higher than 300000?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000", + "schema_with_content": "player : earnings (142800.0, 476090.0, 596462.0), money_rank (166.0, 166.0, 154.0), best_finish (1.0, 2.0, 3.0), final_table_made (10.0, 21.0, 19.0), poker_player_id (1, 1, 5), people_id (6, 2, 2) | gambler : earnings (142800.0, 476090.0, 596462.0), money_rank (166.0, 166.0, 154.0), best_finish (1.0, 2.0, 3.0), final_table_made (10.0, 21.0, 19.0), poker_player_id (1, 1, 5), people_id (6, 2, 2) | people : name (\"Yevgeni Sivozhelez\", \"Teodor Salparov\", \"Maksim Botin\"), birth_date (\"February 8, 1981\", \"July 14, 1983\", \"August 8, 1986\"), height (205.0, 187.0, 193.0), nationality (\"Russia\", \"Bulgaria\"), people_id (6, 2, 5)", + "schema_without_content": "player : earnings , money_rank , best_finish , final_table_made , poker_player_id , people_id | gambler : earnings , money_rank , best_finish , final_table_made , poker_player_id , people_id | people : name , birth_date , height , nationality , people_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what are the #names of poker players# whose #earnings# is higher than 300000?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000", + "schema_with_content": "person : people_id (1, 4, 2), nationality (\"Russia\", \"Bulgaria\"), name (\"Aleksey Ostapenko\", \"Teodor Salparov\", \"Sergey Grankin\"), height (194.0, 187.0, 194.0), birth_date (\"July 14, 1983\", \"January 22, 1987\", \"May 26, 1986\") | individuals : people_id (1, 4, 2), nationality (\"Russia\", \"Bulgaria\"), name (\"Aleksey Ostapenko\", \"Teodor Salparov\", \"Sergey Grankin\"), height (194.0, 187.0, 194.0), birth_date (\"July 14, 1983\", \"January 22, 1987\", \"May 26, 1986\") | poker_player : final_table_made (26.0, 42.0, 21.0), poker_player_id (1, 1, 4), people_id (6, 7, 2), earnings (189233.0, 596462.0, 596462.0), money_rank (58.0, 166.0, 154.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "person : people_id , nationality , name , height , birth_date | individuals : people_id , nationality , name , height , birth_date | poker_player : final_table_made , poker_player_id , people_id , earnings , money_rank , best_finish", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "give the #names of poker players# who have #earnings# above 300000.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000", + "schema_with_content": "people : name (\"Roman Bragin\", \"Aleksey Ostapenko\", \"Yevgeni Sivozhelez\"), nationality (\"Russia\", \"Bulgaria\"), people_id (1, 5, 2), birth_date (\"February 8, 1981\", \"August 16, 1982\", \"August 8, 1986\"), height (196.0, 187.0, 205.0) | player : final_table_made (10.0, 42.0, 19.0), people_id (6, 1, 5), best_finish (1.0, 2.0, 3.0), earnings (189233.0, 142800.0, 142800.0), poker_player_id (5, 4, 4), money_rank (141.0, 58.0, 166.0) | gambler : final_table_made (10.0, 42.0, 19.0), people_id (6, 1, 5), best_finish (1.0, 2.0, 3.0), earnings (189233.0, 142800.0, 142800.0), poker_player_id (5, 4, 4), money_rank (141.0, 58.0, 166.0)", + "schema_without_content": "people : name , nationality , people_id , birth_date , height | player : final_table_made , people_id , best_finish , earnings , poker_player_id , money_rank | gambler : final_table_made , people_id , best_finish , earnings , poker_player_id , money_rank", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "give the #names of poker players# who have #earnings# above 300000.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000", + "schema_with_content": "individuals : height (196.0, 196.0, 194.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"May 26, 1986\", \"May 26, 1986\", \"August 8, 1986\"), name (\"Maksim Botin\", \"Roman Bragin\", \"Teodor Salparov\"), people_id (2, 3, 4) | person : height (196.0, 196.0, 194.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"May 26, 1986\", \"May 26, 1986\", \"August 8, 1986\"), name (\"Maksim Botin\", \"Roman Bragin\", \"Teodor Salparov\"), people_id (2, 3, 4) | poker_player : earnings (596462.0, 476090.0, 596462.0), poker_player_id (4, 5, 2), people_id (2, 6, 5), money_rank (68.0, 154.0, 166.0), final_table_made (42.0, 19.0, 10.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "individuals : height , nationality , birth_date , name , people_id | person : height , nationality , birth_date , name , people_id | poker_player : earnings , poker_player_id , people_id , money_rank , final_table_made , best_finish", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "list the #names of poker players# ordered by the #final tables made# in ascending order.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.final_table_made", + "schema_with_content": "people : birth_date (\"February 8, 1981\", \"July 14, 1983\", \"January 22, 1987\"), nationality (\"Russia\", \"Bulgaria\"), name (\"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\", \"Yevgeni Sivozhelez\"), height (196.0, 194.0, 187.0), people_id (7, 1, 6) | player : people_id (2, 2, 7), earnings (596462.0, 189233.0, 104871.0), money_rank (154.0, 58.0, 154.0), final_table_made (42.0, 42.0, 42.0), poker_player_id (3, 2, 4), best_finish (1.0, 2.0, 3.0) | gambler : people_id (2, 2, 7), earnings (596462.0, 189233.0, 104871.0), money_rank (154.0, 58.0, 154.0), final_table_made (42.0, 42.0, 42.0), poker_player_id (3, 2, 4), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "people : birth_date , nationality , name , height , people_id | player : people_id , earnings , money_rank , final_table_made , poker_player_id , best_finish | gambler : people_id , earnings , money_rank , final_table_made , poker_player_id , best_finish", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "final tables made": "poker_player.Final_Table_Made" + } + }, + { + "question": "list the #names of poker players# ordered by the #final tables made# in ascending order.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.final_table_made", + "schema_with_content": "person : name (\"Maksim Botin\", \"Sergey Grankin\", \"Roman Bragin\"), birth_date (\"August 16, 1982\", \"May 26, 1986\", \"August 8, 1986\"), height (205.0, 196.0, 194.0), people_id (6, 6, 6), nationality (\"Russia\", \"Bulgaria\") | individuals : name (\"Maksim Botin\", \"Sergey Grankin\", \"Roman Bragin\"), birth_date (\"August 16, 1982\", \"May 26, 1986\", \"August 8, 1986\"), height (205.0, 196.0, 194.0), people_id (6, 6, 6), nationality (\"Russia\", \"Bulgaria\") | poker_player : poker_player_id (4, 2, 5), money_rank (166.0, 58.0, 68.0), people_id (7, 7, 1), earnings (476090.0, 142800.0, 142800.0), final_table_made (26.0, 42.0, 21.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "person : name , birth_date , height , people_id , nationality | individuals : name , birth_date , height , people_id , nationality | poker_player : poker_player_id , money_rank , people_id , earnings , final_table_made , best_finish", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "final tables made": "poker_player.Final_Table_Made" + } + }, + { + "question": "what are the #names of poker players# , ordered ascending by the number of #final tables they have made# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.final_table_made", + "schema_with_content": "gambler : best_finish (1.0, 2.0, 3.0), final_table_made (10.0, 19.0, 19.0), poker_player_id (1, 5, 3), people_id (7, 2, 6), earnings (104871.0, 189233.0, 104871.0), money_rank (166.0, 58.0, 141.0) | player : best_finish (1.0, 2.0, 3.0), final_table_made (10.0, 19.0, 19.0), poker_player_id (1, 5, 3), people_id (7, 2, 6), earnings (104871.0, 189233.0, 104871.0), money_rank (166.0, 58.0, 141.0) | people : birth_date (\"August 16, 1982\", \"January 22, 1987\", \"January 22, 1987\"), people_id (1, 6, 7), height (194.0, 205.0, 207.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Roman Bragin\", \"Maksim Botin\", \"Semen Poltavskiy\")", + "schema_without_content": "gambler : best_finish , final_table_made , poker_player_id , people_id , earnings , money_rank | player : best_finish , final_table_made , poker_player_id , people_id , earnings , money_rank | people : birth_date , people_id , height , nationality , name", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "final tables they have made": "poker_player.Final_Table_Made" + } + }, + { + "question": "what are the #names of poker players# , ordered ascending by the number of #final tables they have made# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.final_table_made", + "schema_with_content": "individuals : height (193.0, 194.0, 205.0), name (\"Teodor Salparov\", \"Yevgeni Sivozhelez\", \"Sergey Grankin\"), nationality (\"Russia\", \"Bulgaria\"), people_id (5, 3, 1), birth_date (\"August 8, 1986\", \"February 8, 1981\", \"May 26, 1986\") | poker_player : poker_player_id (4, 1, 4), best_finish (1.0, 2.0, 3.0), final_table_made (26.0, 19.0, 42.0), people_id (2, 1, 6), earnings (476090.0, 142800.0, 596462.0), money_rank (154.0, 154.0, 141.0) | person : height (193.0, 194.0, 205.0), name (\"Teodor Salparov\", \"Yevgeni Sivozhelez\", \"Sergey Grankin\"), nationality (\"Russia\", \"Bulgaria\"), people_id (5, 3, 1), birth_date (\"August 8, 1986\", \"February 8, 1981\", \"May 26, 1986\")", + "schema_without_content": "individuals : height , name , nationality , people_id , birth_date | poker_player : poker_player_id , best_finish , final_table_made , people_id , earnings , money_rank | person : height , name , nationality , people_id , birth_date", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "final tables they have made": "poker_player.Final_Table_Made" + } + }, + { + "question": "what is the #birth date of the poker player# with the lowest #earnings# ?", + "db_id": "poker_player", + "orig_query": "select t1.birth_date from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings asc limit 1", + "schema_with_content": "people : name (\"Semen Poltavskiy\", \"Sergey Grankin\", \"Sergey Grankin\"), people_id (5, 1, 2), birth_date (\"August 16, 1982\", \"February 8, 1981\", \"May 26, 1986\"), nationality (\"Russia\", \"Bulgaria\"), height (193.0, 207.0, 196.0) | gambler : money_rank (68.0, 141.0, 68.0), poker_player_id (1, 2, 5), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 104871.0, 104871.0), people_id (2, 7, 7), final_table_made (19.0, 42.0, 10.0) | player : money_rank (68.0, 141.0, 68.0), poker_player_id (1, 2, 5), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 104871.0, 104871.0), people_id (2, 7, 7), final_table_made (19.0, 42.0, 10.0)", + "schema_without_content": "people : name , people_id , birth_date , nationality , height | gambler : money_rank , poker_player_id , best_finish , earnings , people_id , final_table_made | player : money_rank , poker_player_id , best_finish , earnings , people_id , final_table_made", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "birth date of the poker player": "people.Birth_Date", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what is the #birth date of the poker player# with the lowest #earnings# ?", + "db_id": "poker_player", + "orig_query": "select t1.birth_date from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings asc limit 1", + "schema_with_content": "poker_player : final_table_made (10.0, 21.0, 19.0), money_rank (58.0, 141.0, 68.0), poker_player_id (5, 3, 4), people_id (2, 2, 7), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 189233.0, 189233.0) | individuals : birth_date (\"May 26, 1986\", \"August 16, 1982\", \"August 8, 1986\"), name (\"Semen Poltavskiy\", \"Maksim Botin\", \"Yevgeni Sivozhelez\"), nationality (\"Russia\", \"Bulgaria\"), height (205.0, 193.0, 196.0), people_id (2, 3, 2) | person : birth_date (\"May 26, 1986\", \"August 16, 1982\", \"August 8, 1986\"), name (\"Semen Poltavskiy\", \"Maksim Botin\", \"Yevgeni Sivozhelez\"), nationality (\"Russia\", \"Bulgaria\"), height (205.0, 193.0, 196.0), people_id (2, 3, 2)", + "schema_without_content": "poker_player : final_table_made , money_rank , poker_player_id , people_id , best_finish , earnings | individuals : birth_date , name , nationality , height , people_id | person : birth_date , name , nationality , height , people_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "birth date of the poker player": "people.Birth_Date", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #birth date of the poker player# with the lowest #earnings# .", + "db_id": "poker_player", + "orig_query": "select t1.birth_date from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings asc limit 1", + "schema_with_content": "people : people_id (5, 6, 1), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Roman Bragin\", \"Sergey Grankin\"), birth_date (\"April 17, 1987\", \"February 8, 1981\", \"July 14, 1983\"), height (196.0, 182.0, 207.0) | gambler : money_rank (166.0, 154.0, 68.0), final_table_made (10.0, 10.0, 10.0), people_id (5, 2, 7), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 142800.0, 596462.0), poker_player_id (3, 4, 2) | player : money_rank (166.0, 154.0, 68.0), final_table_made (10.0, 10.0, 10.0), people_id (5, 2, 7), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 142800.0, 596462.0), poker_player_id (3, 4, 2)", + "schema_without_content": "people : people_id , nationality , name , birth_date , height | gambler : money_rank , final_table_made , people_id , best_finish , earnings , poker_player_id | player : money_rank , final_table_made , people_id , best_finish , earnings , poker_player_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "birth date of the poker player": "people.Birth_Date", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #birth date of the poker player# with the lowest #earnings# .", + "db_id": "poker_player", + "orig_query": "select t1.birth_date from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings asc limit 1", + "schema_with_content": "individuals : nationality (\"Russia\", \"Bulgaria\"), name (\"Sergey Grankin\", \"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\"), height (196.0, 194.0, 196.0), people_id (2, 3, 6), birth_date (\"August 8, 1986\", \"August 8, 1986\", \"August 16, 1982\") | person : nationality (\"Russia\", \"Bulgaria\"), name (\"Sergey Grankin\", \"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\"), height (196.0, 194.0, 196.0), people_id (2, 3, 6), birth_date (\"August 8, 1986\", \"August 8, 1986\", \"August 16, 1982\") | poker_player : earnings (142800.0, 104871.0, 476090.0), people_id (1, 2, 6), best_finish (1.0, 2.0, 3.0), final_table_made (42.0, 26.0, 19.0), money_rank (166.0, 166.0, 166.0), poker_player_id (1, 3, 3)", + "schema_without_content": "individuals : nationality , name , height , people_id , birth_date | person : nationality , name , height , people_id , birth_date | poker_player : earnings , people_id , best_finish , final_table_made , money_rank , poker_player_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "birth date of the poker player": "people.Birth_Date", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what is the #money rank of the tallest poker player# ?", + "db_id": "poker_player", + "orig_query": "select t2.money_rank from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t1.height desc limit 1", + "schema_with_content": "gambler : money_rank (141.0, 166.0, 166.0), final_table_made (42.0, 19.0, 19.0), people_id (2, 7, 5), earnings (104871.0, 189233.0, 189233.0), poker_player_id (4, 5, 2), best_finish (1.0, 2.0, 3.0) | people : people_id (7, 5, 4), name (\"Semen Poltavskiy\", \"Maksim Botin\", \"Maksim Botin\"), height (193.0, 194.0, 207.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"August 16, 1982\", \"August 8, 1986\", \"January 22, 1987\") | player : money_rank (141.0, 166.0, 166.0), final_table_made (42.0, 19.0, 19.0), people_id (2, 7, 5), earnings (104871.0, 189233.0, 189233.0), poker_player_id (4, 5, 2), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "gambler : money_rank , final_table_made , people_id , earnings , poker_player_id , best_finish | people : people_id , name , height , nationality , birth_date | player : money_rank , final_table_made , people_id , earnings , poker_player_id , best_finish", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "money rank of the tallest poker player": "poker_player.Money_Rank" + } + }, + { + "question": "what is the #money rank of the tallest poker player# ?", + "db_id": "poker_player", + "orig_query": "select t2.money_rank from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t1.height desc limit 1", + "schema_with_content": "individuals : people_id (3, 7, 5), birth_date (\"August 16, 1982\", \"April 17, 1987\", \"April 17, 1987\"), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Semen Poltavskiy\", \"Sergey Grankin\"), height (205.0, 182.0, 187.0) | poker_player : final_table_made (10.0, 10.0, 10.0), money_rank (141.0, 68.0, 58.0), best_finish (1.0, 2.0, 3.0), poker_player_id (4, 4, 2), people_id (5, 5, 5), earnings (596462.0, 476090.0, 189233.0) | person : people_id (3, 7, 5), birth_date (\"August 16, 1982\", \"April 17, 1987\", \"April 17, 1987\"), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Semen Poltavskiy\", \"Sergey Grankin\"), height (205.0, 182.0, 187.0)", + "schema_without_content": "individuals : people_id , birth_date , nationality , name , height | poker_player : final_table_made , money_rank , best_finish , poker_player_id , people_id , earnings | person : people_id , birth_date , nationality , name , height", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "money rank of the tallest poker player": "poker_player.Money_Rank" + } + }, + { + "question": "return the #money rank of the poker player# with the greatest #height# .", + "db_id": "poker_player", + "orig_query": "select t2.money_rank from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t1.height desc limit 1", + "schema_with_content": "gambler : final_table_made (42.0, 10.0, 21.0), poker_player_id (2, 3, 3), money_rank (58.0, 68.0, 154.0), earnings (189233.0, 104871.0, 596462.0), best_finish (1.0, 2.0, 3.0), people_id (6, 1, 7) | people : height (207.0, 207.0, 182.0), name (\"Maksim Botin\", \"Teodor Salparov\", \"Teodor Salparov\"), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"February 8, 1981\", \"July 14, 1983\", \"January 22, 1987\"), people_id (5, 5, 5) | player : final_table_made (42.0, 10.0, 21.0), poker_player_id (2, 3, 3), money_rank (58.0, 68.0, 154.0), earnings (189233.0, 104871.0, 596462.0), best_finish (1.0, 2.0, 3.0), people_id (6, 1, 7)", + "schema_without_content": "gambler : final_table_made , poker_player_id , money_rank , earnings , best_finish , people_id | people : height , name , nationality , birth_date , people_id | player : final_table_made , poker_player_id , money_rank , earnings , best_finish , people_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "money rank of the poker player": "poker_player.Money_Rank", + "height": "people.Height" + } + }, + { + "question": "return the #money rank of the poker player# with the greatest #height# .", + "db_id": "poker_player", + "orig_query": "select t2.money_rank from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t1.height desc limit 1", + "schema_with_content": "person : birth_date (\"January 22, 1987\", \"August 8, 1986\", \"April 17, 1987\"), name (\"Aleksey Ostapenko\", \"Sergey Grankin\", \"Teodor Salparov\"), people_id (4, 3, 5), height (187.0, 182.0, 205.0), nationality (\"Russia\", \"Bulgaria\") | poker_player : best_finish (1.0, 2.0, 3.0), final_table_made (21.0, 19.0, 10.0), money_rank (141.0, 141.0, 166.0), earnings (189233.0, 596462.0, 142800.0), poker_player_id (2, 1, 4), people_id (6, 1, 2) | individuals : birth_date (\"January 22, 1987\", \"August 8, 1986\", \"April 17, 1987\"), name (\"Aleksey Ostapenko\", \"Sergey Grankin\", \"Teodor Salparov\"), people_id (4, 3, 5), height (187.0, 182.0, 205.0), nationality (\"Russia\", \"Bulgaria\")", + "schema_without_content": "person : birth_date , name , people_id , height , nationality | poker_player : best_finish , final_table_made , money_rank , earnings , poker_player_id , people_id | individuals : birth_date , name , people_id , height , nationality", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "money rank of the poker player": "poker_player.Money_Rank", + "height": "people.Height" + } + }, + { + "question": "what is the #average earnings of poker players with height# higher than 200?", + "db_id": "poker_player", + "orig_query": "select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200", + "schema_with_content": "people : height (187.0, 196.0, 196.0), name (\"Maksim Botin\", \"Sergey Grankin\", \"Yevgeni Sivozhelez\"), nationality (\"Russia\", \"Bulgaria\"), people_id (5, 2, 6), birth_date (\"August 16, 1982\", \"May 26, 1986\", \"May 26, 1986\") | gambler : final_table_made (26.0, 42.0, 42.0), poker_player_id (1, 3, 5), earnings (476090.0, 476090.0, 189233.0), people_id (6, 1, 5), best_finish (1.0, 2.0, 3.0), money_rank (166.0, 141.0, 154.0) | player : final_table_made (26.0, 42.0, 42.0), poker_player_id (1, 3, 5), earnings (476090.0, 476090.0, 189233.0), people_id (6, 1, 5), best_finish (1.0, 2.0, 3.0), money_rank (166.0, 141.0, 154.0)", + "schema_without_content": "people : height , name , nationality , people_id , birth_date | gambler : final_table_made , poker_player_id , earnings , people_id , best_finish , money_rank | player : final_table_made , poker_player_id , earnings , people_id , best_finish , money_rank", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "average earnings of poker players with height": "poker_player.Earnings" + } + }, + { + "question": "what is the #average earnings of poker players with height# higher than 200?", + "db_id": "poker_player", + "orig_query": "select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200", + "schema_with_content": "individuals : nationality (\"Russia\", \"Bulgaria\"), birth_date (\"May 26, 1986\", \"February 8, 1981\", \"April 17, 1987\"), name (\"Sergey Grankin\", \"Roman Bragin\", \"Teodor Salparov\"), people_id (2, 4, 2), height (207.0, 187.0, 193.0) | poker_player : best_finish (1.0, 2.0, 3.0), money_rank (166.0, 68.0, 58.0), earnings (596462.0, 476090.0, 596462.0), people_id (5, 1, 7), final_table_made (21.0, 10.0, 42.0), poker_player_id (2, 1, 3) | person : nationality (\"Russia\", \"Bulgaria\"), birth_date (\"May 26, 1986\", \"February 8, 1981\", \"April 17, 1987\"), name (\"Sergey Grankin\", \"Roman Bragin\", \"Teodor Salparov\"), people_id (2, 4, 2), height (207.0, 187.0, 193.0)", + "schema_without_content": "individuals : nationality , birth_date , name , people_id , height | poker_player : best_finish , money_rank , earnings , people_id , final_table_made , poker_player_id | person : nationality , birth_date , name , people_id , height", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "average earnings of poker players with height": "poker_player.Earnings" + } + }, + { + "question": "give #average earnings of poker players# who are #taller than 200# .", + "db_id": "poker_player", + "orig_query": "select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200", + "schema_with_content": "gambler : earnings (476090.0, 142800.0, 189233.0), best_finish (1.0, 2.0, 3.0), people_id (1, 1, 2), final_table_made (26.0, 19.0, 21.0), poker_player_id (4, 2, 3), money_rank (154.0, 58.0, 166.0) | player : earnings (476090.0, 142800.0, 189233.0), best_finish (1.0, 2.0, 3.0), people_id (1, 1, 2), final_table_made (26.0, 19.0, 21.0), poker_player_id (4, 2, 3), money_rank (154.0, 58.0, 166.0) | people : nationality (\"Russia\", \"Bulgaria\"), name (\"Aleksey Ostapenko\", \"Aleksey Ostapenko\", \"Semen Poltavskiy\"), people_id (2, 2, 7), height (207.0, 196.0, 194.0), birth_date (\"February 8, 1981\", \"May 26, 1986\", \"August 8, 1986\")", + "schema_without_content": "gambler : earnings , best_finish , people_id , final_table_made , poker_player_id , money_rank | player : earnings , best_finish , people_id , final_table_made , poker_player_id , money_rank | people : nationality , name , people_id , height , birth_date", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "average earnings of poker players": "poker_player.Earnings", + "taller than 200": "people.Height" + } + }, + { + "question": "give #average earnings of poker players# who are #taller than 200# .", + "db_id": "poker_player", + "orig_query": "select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200", + "schema_with_content": "poker_player : earnings (142800.0, 142800.0, 596462.0), money_rank (141.0, 68.0, 68.0), people_id (7, 7, 2), final_table_made (21.0, 19.0, 26.0), poker_player_id (1, 5, 5), best_finish (1.0, 2.0, 3.0) | person : birth_date (\"July 14, 1983\", \"January 22, 1987\", \"February 8, 1981\"), height (193.0, 194.0, 194.0), nationality (\"Russia\", \"Bulgaria\"), people_id (2, 1, 2), name (\"Semen Poltavskiy\", \"Semen Poltavskiy\", \"Roman Bragin\") | individuals : birth_date (\"July 14, 1983\", \"January 22, 1987\", \"February 8, 1981\"), height (193.0, 194.0, 194.0), nationality (\"Russia\", \"Bulgaria\"), people_id (2, 1, 2), name (\"Semen Poltavskiy\", \"Semen Poltavskiy\", \"Roman Bragin\")", + "schema_without_content": "poker_player : earnings , money_rank , people_id , final_table_made , poker_player_id , best_finish | person : birth_date , height , nationality , people_id , name | individuals : birth_date , height , nationality , people_id , name", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "average earnings of poker players": "poker_player.Earnings", + "taller than 200": "people.Height" + } + }, + { + "question": "what are the #names of poker players# in descending order of #earnings# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings desc", + "schema_with_content": "player : final_table_made (26.0, 10.0, 42.0), people_id (1, 7, 6), money_rank (68.0, 58.0, 154.0), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 476090.0, 476090.0), poker_player_id (4, 4, 1) | people : height (194.0, 182.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), people_id (7, 5, 3), name (\"Roman Bragin\", \"Maksim Botin\", \"Yevgeni Sivozhelez\"), birth_date (\"April 17, 1987\", \"May 26, 1986\", \"April 17, 1987\") | gambler : final_table_made (26.0, 10.0, 42.0), people_id (1, 7, 6), money_rank (68.0, 58.0, 154.0), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 476090.0, 476090.0), poker_player_id (4, 4, 1)", + "schema_without_content": "player : final_table_made , people_id , money_rank , best_finish , earnings , poker_player_id | people : height , nationality , people_id , name , birth_date | gambler : final_table_made , people_id , money_rank , best_finish , earnings , poker_player_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what are the #names of poker players# in descending order of #earnings# ?", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings desc", + "schema_with_content": "poker_player : people_id (2, 5, 7), poker_player_id (2, 4, 3), final_table_made (10.0, 21.0, 42.0), money_rank (58.0, 154.0, 166.0), best_finish (1.0, 2.0, 3.0), earnings (104871.0, 142800.0, 596462.0) | individuals : nationality (\"Russia\", \"Bulgaria\"), people_id (4, 7, 2), birth_date (\"July 14, 1983\", \"February 8, 1981\", \"February 8, 1981\"), name (\"Roman Bragin\", \"Teodor Salparov\", \"Yevgeni Sivozhelez\"), height (205.0, 194.0, 187.0) | person : nationality (\"Russia\", \"Bulgaria\"), people_id (4, 7, 2), birth_date (\"July 14, 1983\", \"February 8, 1981\", \"February 8, 1981\"), name (\"Roman Bragin\", \"Teodor Salparov\", \"Yevgeni Sivozhelez\"), height (205.0, 194.0, 187.0)", + "schema_without_content": "poker_player : people_id , poker_player_id , final_table_made , money_rank , best_finish , earnings | individuals : nationality , people_id , birth_date , name , height | person : nationality , people_id , birth_date , name , height", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #names of poker players# sorted by their #earnings# descending.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings desc", + "schema_with_content": "player : best_finish (1.0, 2.0, 3.0), people_id (5, 2, 2), final_table_made (21.0, 42.0, 19.0), money_rank (68.0, 154.0, 166.0), poker_player_id (4, 3, 2), earnings (596462.0, 189233.0, 104871.0) | gambler : best_finish (1.0, 2.0, 3.0), people_id (5, 2, 2), final_table_made (21.0, 42.0, 19.0), money_rank (68.0, 154.0, 166.0), poker_player_id (4, 3, 2), earnings (596462.0, 189233.0, 104871.0) | people : name (\"Semen Poltavskiy\", \"Sergey Grankin\", \"Roman Bragin\"), nationality (\"Russia\", \"Bulgaria\"), height (196.0, 193.0, 182.0), birth_date (\"July 14, 1983\", \"August 8, 1986\", \"May 26, 1986\"), people_id (6, 4, 3)", + "schema_without_content": "player : best_finish , people_id , final_table_made , money_rank , poker_player_id , earnings | gambler : best_finish , people_id , final_table_made , money_rank , poker_player_id , earnings | people : name , nationality , height , birth_date , people_id", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "return the #names of poker players# sorted by their #earnings# descending.", + "db_id": "poker_player", + "orig_query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings desc", + "schema_with_content": "person : people_id (2, 6, 7), nationality (\"Russia\", \"Bulgaria\"), height (207.0, 193.0, 187.0), name (\"Roman Bragin\", \"Roman Bragin\", \"Roman Bragin\"), birth_date (\"August 16, 1982\", \"August 8, 1986\", \"May 26, 1986\") | poker_player : people_id (1, 7, 7), final_table_made (42.0, 26.0, 42.0), money_rank (58.0, 141.0, 154.0), best_finish (1.0, 2.0, 3.0), earnings (189233.0, 189233.0, 189233.0), poker_player_id (1, 1, 2) | individuals : people_id (2, 6, 7), nationality (\"Russia\", \"Bulgaria\"), height (207.0, 193.0, 187.0), name (\"Roman Bragin\", \"Roman Bragin\", \"Roman Bragin\"), birth_date (\"August 16, 1982\", \"August 8, 1986\", \"May 26, 1986\")", + "schema_without_content": "person : people_id , nationality , height , name , birth_date | poker_player : people_id , final_table_made , money_rank , best_finish , earnings , poker_player_id | individuals : people_id , nationality , height , name , birth_date", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of poker players": "people.Name", + "earnings": "poker_player.Earnings" + } + }, + { + "question": "what are different #nationalities of people# and the corresponding number of people from each nation?", + "db_id": "poker_player", + "orig_query": "select nationality, count(*) from people group by nationality", + "schema_with_content": "individuals : height (194.0, 207.0, 205.0), birth_date (\"August 8, 1986\", \"August 16, 1982\", \"July 14, 1983\"), name (\"Yevgeni Sivozhelez\", \"Teodor Salparov\", \"Roman Bragin\"), people_id (2, 3, 7), nationality (\"Russia\", \"Bulgaria\") | person : height (194.0, 207.0, 205.0), birth_date (\"August 8, 1986\", \"August 16, 1982\", \"July 14, 1983\"), name (\"Yevgeni Sivozhelez\", \"Teodor Salparov\", \"Roman Bragin\"), people_id (2, 3, 7), nationality (\"Russia\", \"Bulgaria\") | poker_player : final_table_made (21.0, 42.0, 10.0), money_rank (154.0, 58.0, 141.0), earnings (189233.0, 596462.0, 104871.0), poker_player_id (5, 2, 3), people_id (5, 6, 2), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "individuals : height , birth_date , name , people_id , nationality | person : height , birth_date , name , people_id , nationality | poker_player : final_table_made , money_rank , earnings , poker_player_id , people_id , best_finish", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "nationalities of people": "people.Nationality", + "people": "people" + } + }, + { + "question": "how many #people# are there of each #nationality# ?", + "db_id": "poker_player", + "orig_query": "select nationality, count(*) from people group by nationality", + "schema_with_content": "person : height (205.0, 207.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), people_id (6, 3, 6), birth_date (\"July 14, 1983\", \"August 16, 1982\", \"February 8, 1981\"), name (\"Roman Bragin\", \"Maksim Botin\", \"Sergey Grankin\") | individuals : height (205.0, 207.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), people_id (6, 3, 6), birth_date (\"July 14, 1983\", \"August 16, 1982\", \"February 8, 1981\"), name (\"Roman Bragin\", \"Maksim Botin\", \"Sergey Grankin\") | poker_player : poker_player_id (1, 3, 1), money_rank (154.0, 58.0, 166.0), final_table_made (10.0, 26.0, 42.0), people_id (7, 1, 2), earnings (104871.0, 476090.0, 189233.0), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "person : height , nationality , people_id , birth_date , name | individuals : height , nationality , people_id , birth_date , name | poker_player : poker_player_id , money_rank , final_table_made , people_id , earnings , best_finish", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "people": "people", + "nationality": "people.Nationality" + } + }, + { + "question": "what is the most common #nationality of people# ?", + "db_id": "poker_player", + "orig_query": "select nationality from people group by nationality order by count(*) desc limit 1", + "schema_with_content": "individuals : people_id (6, 3, 2), nationality (\"Russia\", \"Bulgaria\"), height (207.0, 187.0, 205.0), name (\"Roman Bragin\", \"Sergey Grankin\", \"Sergey Grankin\"), birth_date (\"May 26, 1986\", \"July 14, 1983\", \"May 26, 1986\") | poker_player : final_table_made (10.0, 19.0, 21.0), poker_player_id (1, 5, 5), earnings (189233.0, 142800.0, 189233.0), best_finish (1.0, 2.0, 3.0), money_rank (166.0, 154.0, 58.0), people_id (6, 6, 5) | person : people_id (6, 3, 2), nationality (\"Russia\", \"Bulgaria\"), height (207.0, 187.0, 205.0), name (\"Roman Bragin\", \"Sergey Grankin\", \"Sergey Grankin\"), birth_date (\"May 26, 1986\", \"July 14, 1983\", \"May 26, 1986\")", + "schema_without_content": "individuals : people_id , nationality , height , name , birth_date | poker_player : final_table_made , poker_player_id , earnings , best_finish , money_rank , people_id | person : people_id , nationality , height , name , birth_date", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "nationality of people": "people.Nationality" + } + }, + { + "question": "give the #nationality# that is most common across all #people# .", + "db_id": "poker_player", + "orig_query": "select nationality from people group by nationality order by count(*) desc limit 1", + "schema_with_content": "poker_player : money_rank (166.0, 68.0, 68.0), people_id (1, 2, 6), final_table_made (10.0, 26.0, 10.0), poker_player_id (2, 5, 4), earnings (142800.0, 189233.0, 476090.0), best_finish (1.0, 2.0, 3.0) | individuals : birth_date (\"July 14, 1983\", \"May 26, 1986\", \"August 16, 1982\"), nationality (\"Russia\", \"Bulgaria\"), people_id (3, 2, 1), height (207.0, 187.0, 196.0), name (\"Roman Bragin\", \"Roman Bragin\", \"Maksim Botin\") | person : birth_date (\"July 14, 1983\", \"May 26, 1986\", \"August 16, 1982\"), nationality (\"Russia\", \"Bulgaria\"), people_id (3, 2, 1), height (207.0, 187.0, 196.0), name (\"Roman Bragin\", \"Roman Bragin\", \"Maksim Botin\")", + "schema_without_content": "poker_player : money_rank , people_id , final_table_made , poker_player_id , earnings , best_finish | individuals : birth_date , nationality , people_id , height , name | person : birth_date , nationality , people_id , height , name", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "nationality": "people.Nationality", + "people": "people" + } + }, + { + "question": "what are the #nationalities# that are shared by at least two #people# ?", + "db_id": "poker_player", + "orig_query": "select nationality from people group by nationality having count(*) >= 2", + "schema_with_content": "poker_player : best_finish (1.0, 2.0, 3.0), earnings (189233.0, 189233.0, 104871.0), money_rank (68.0, 68.0, 154.0), people_id (1, 2, 5), final_table_made (21.0, 19.0, 21.0), poker_player_id (5, 1, 3) | person : nationality (\"Russia\", \"Bulgaria\"), birth_date (\"January 22, 1987\", \"August 16, 1982\", \"August 8, 1986\"), height (194.0, 196.0, 194.0), name (\"Aleksey Ostapenko\", \"Sergey Grankin\", \"Teodor Salparov\"), people_id (3, 2, 7) | individuals : nationality (\"Russia\", \"Bulgaria\"), birth_date (\"January 22, 1987\", \"August 16, 1982\", \"August 8, 1986\"), height (194.0, 196.0, 194.0), name (\"Aleksey Ostapenko\", \"Sergey Grankin\", \"Teodor Salparov\"), people_id (3, 2, 7)", + "schema_without_content": "poker_player : best_finish , earnings , money_rank , people_id , final_table_made , poker_player_id | person : nationality , birth_date , height , name , people_id | individuals : nationality , birth_date , height , name , people_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "nationalities": "people.Nationality", + "people": "people" + } + }, + { + "question": "return the #nationalities# for which there are two or more #people# .", + "db_id": "poker_player", + "orig_query": "select nationality from people group by nationality having count(*) >= 2", + "schema_with_content": "poker_player : final_table_made (26.0, 19.0, 10.0), people_id (6, 6, 6), poker_player_id (2, 3, 4), money_rank (68.0, 166.0, 58.0), best_finish (1.0, 2.0, 3.0), earnings (476090.0, 596462.0, 104871.0) | person : birth_date (\"August 16, 1982\", \"August 16, 1982\", \"May 26, 1986\"), nationality (\"Russia\", \"Bulgaria\"), height (194.0, 194.0, 187.0), people_id (7, 4, 3), name (\"Yevgeni Sivozhelez\", \"Semen Poltavskiy\", \"Teodor Salparov\") | individuals : birth_date (\"August 16, 1982\", \"August 16, 1982\", \"May 26, 1986\"), nationality (\"Russia\", \"Bulgaria\"), height (194.0, 194.0, 187.0), people_id (7, 4, 3), name (\"Yevgeni Sivozhelez\", \"Semen Poltavskiy\", \"Teodor Salparov\")", + "schema_without_content": "poker_player : final_table_made , people_id , poker_player_id , money_rank , best_finish , earnings | person : birth_date , nationality , height , people_id , name | individuals : birth_date , nationality , height , people_id , name", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "nationalities": "people.Nationality", + "people": "people" + } + }, + { + "question": "list the #names# and #birth dates of people# in ascending alphabetical order of name.", + "db_id": "poker_player", + "orig_query": "select name, birth_date from people order by name asc", + "schema_with_content": "individuals : height (194.0, 207.0, 196.0), birth_date (\"January 22, 1987\", \"January 22, 1987\", \"August 8, 1986\"), name (\"Maksim Botin\", \"Yevgeni Sivozhelez\", \"Roman Bragin\"), people_id (3, 1, 6), nationality (\"Russia\", \"Bulgaria\") | person : height (194.0, 207.0, 196.0), birth_date (\"January 22, 1987\", \"January 22, 1987\", \"August 8, 1986\"), name (\"Maksim Botin\", \"Yevgeni Sivozhelez\", \"Roman Bragin\"), people_id (3, 1, 6), nationality (\"Russia\", \"Bulgaria\") | poker_player : final_table_made (19.0, 10.0, 21.0), best_finish (1.0, 2.0, 3.0), money_rank (141.0, 68.0, 166.0), poker_player_id (5, 2, 4), people_id (6, 7, 2), earnings (596462.0, 189233.0, 104871.0)", + "schema_without_content": "individuals : height , birth_date , name , people_id , nationality | person : height , birth_date , name , people_id , nationality | poker_player : final_table_made , best_finish , money_rank , poker_player_id , people_id , earnings", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names": "people.Name", + "birth dates of people": "people.Birth_Date" + } + }, + { + "question": "what are the #names# and #birth dates of people# , ordered by their names in alphabetical order?", + "db_id": "poker_player", + "orig_query": "select name, birth_date from people order by name asc", + "schema_with_content": "individuals : birth_date (\"July 14, 1983\", \"April 17, 1987\", \"August 8, 1986\"), people_id (1, 5, 2), height (205.0, 196.0, 182.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Yevgeni Sivozhelez\", \"Sergey Grankin\") | poker_player : poker_player_id (1, 1, 4), final_table_made (21.0, 42.0, 21.0), people_id (5, 7, 5), money_rank (154.0, 154.0, 141.0), best_finish (1.0, 2.0, 3.0), earnings (142800.0, 596462.0, 476090.0) | person : birth_date (\"July 14, 1983\", \"April 17, 1987\", \"August 8, 1986\"), people_id (1, 5, 2), height (205.0, 196.0, 182.0), nationality (\"Russia\", \"Bulgaria\"), name (\"Semen Poltavskiy\", \"Yevgeni Sivozhelez\", \"Sergey Grankin\")", + "schema_without_content": "individuals : birth_date , people_id , height , nationality , name | poker_player : poker_player_id , final_table_made , people_id , money_rank , best_finish , earnings | person : birth_date , people_id , height , nationality , name", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names": "people.Name", + "birth dates of people": "people.Birth_Date" + } + }, + { + "question": "show #names of people# whose #nationality# is not \"russia\".", + "db_id": "poker_player", + "orig_query": "select name from people where nationality != \"Russia\"", + "schema_with_content": "person : name (\"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\", \"Semen Poltavskiy\"), people_id (6, 3, 6), height (182.0, 207.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"February 8, 1981\", \"February 8, 1981\", \"May 26, 1986\") | poker_player : final_table_made (10.0, 26.0, 19.0), people_id (2, 2, 1), earnings (142800.0, 596462.0, 476090.0), best_finish (1.0, 2.0, 3.0), poker_player_id (3, 1, 2), money_rank (141.0, 58.0, 154.0) | individuals : name (\"Yevgeni Sivozhelez\", \"Aleksey Ostapenko\", \"Semen Poltavskiy\"), people_id (6, 3, 6), height (182.0, 207.0, 196.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"February 8, 1981\", \"February 8, 1981\", \"May 26, 1986\")", + "schema_without_content": "person : name , people_id , height , nationality , birth_date | poker_player : final_table_made , people_id , earnings , best_finish , poker_player_id , money_rank | individuals : name , people_id , height , nationality , birth_date", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "nationality": "people.Nationality" + } + }, + { + "question": "what are the #names of people# who are not from #russia# ?", + "db_id": "poker_player", + "orig_query": "select name from people where nationality != \"Russia\"", + "schema_with_content": "person : name (\"Roman Bragin\", \"Sergey Grankin\", \"Aleksey Ostapenko\"), people_id (2, 2, 5), height (194.0, 187.0, 207.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"April 17, 1987\", \"January 22, 1987\", \"August 8, 1986\") | individuals : name (\"Roman Bragin\", \"Sergey Grankin\", \"Aleksey Ostapenko\"), people_id (2, 2, 5), height (194.0, 187.0, 207.0), nationality (\"Russia\", \"Bulgaria\"), birth_date (\"April 17, 1987\", \"January 22, 1987\", \"August 8, 1986\") | poker_player : money_rank (58.0, 141.0, 141.0), final_table_made (10.0, 26.0, 10.0), best_finish (1.0, 2.0, 3.0), poker_player_id (1, 1, 3), earnings (189233.0, 142800.0, 142800.0), people_id (1, 7, 2)", + "schema_without_content": "person : name , people_id , height , nationality , birth_date | individuals : name , people_id , height , nationality , birth_date | poker_player : money_rank , final_table_made , best_finish , poker_player_id , earnings , people_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "Russia": "people.Nationality" + } + }, + { + "question": "list the #names of people# that are not #poker players# .", + "db_id": "poker_player", + "orig_query": "select name from people where people_id not in (select people_id from poker_player)", + "schema_with_content": "player : money_rank (58.0, 141.0, 166.0), final_table_made (10.0, 26.0, 19.0), poker_player_id (2, 1, 1), earnings (189233.0, 189233.0, 189233.0), people_id (2, 7, 5), best_finish (1.0, 2.0, 3.0) | people : birth_date (\"August 16, 1982\", \"May 26, 1986\", \"August 16, 1982\"), name (\"Teodor Salparov\", \"Sergey Grankin\", \"Maksim Botin\"), nationality (\"Russia\", \"Bulgaria\"), height (187.0, 193.0, 196.0), people_id (3, 5, 4) | gambler : money_rank (58.0, 141.0, 166.0), final_table_made (10.0, 26.0, 19.0), poker_player_id (2, 1, 1), earnings (189233.0, 189233.0, 189233.0), people_id (2, 7, 5), best_finish (1.0, 2.0, 3.0)", + "schema_without_content": "player : money_rank , final_table_made , poker_player_id , earnings , people_id , best_finish | people : birth_date , name , nationality , height , people_id | gambler : money_rank , final_table_made , poker_player_id , earnings , people_id , best_finish", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "poker players": "poker_player" + } + }, + { + "question": "list the #names of people# that are not #poker players# .", + "db_id": "poker_player", + "orig_query": "select name from people where people_id not in (select people_id from poker_player)", + "schema_with_content": "individuals : birth_date (\"January 22, 1987\", \"May 26, 1986\", \"January 22, 1987\"), name (\"Aleksey Ostapenko\", \"Maksim Botin\", \"Maksim Botin\"), nationality (\"Russia\", \"Bulgaria\"), people_id (2, 5, 2), height (194.0, 205.0, 207.0) | person : birth_date (\"January 22, 1987\", \"May 26, 1986\", \"January 22, 1987\"), name (\"Aleksey Ostapenko\", \"Maksim Botin\", \"Maksim Botin\"), nationality (\"Russia\", \"Bulgaria\"), people_id (2, 5, 2), height (194.0, 205.0, 207.0) | poker_player : earnings (142800.0, 476090.0, 596462.0), final_table_made (42.0, 19.0, 19.0), best_finish (1.0, 2.0, 3.0), poker_player_id (1, 1, 3), money_rank (58.0, 141.0, 141.0), people_id (6, 2, 7)", + "schema_without_content": "individuals : birth_date , name , nationality , people_id , height | person : birth_date , name , nationality , people_id , height | poker_player : earnings , final_table_made , best_finish , poker_player_id , money_rank , people_id", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "poker players": "poker_player" + } + }, + { + "question": "what are the #names of people# who #do not play poker# ?", + "db_id": "poker_player", + "orig_query": "select name from people where people_id not in (select people_id from poker_player)", + "schema_with_content": "people : people_id (2, 4, 4), name (\"Roman Bragin\", \"Sergey Grankin\", \"Roman Bragin\"), nationality (\"Russia\", \"Bulgaria\"), height (194.0, 194.0, 207.0), birth_date (\"April 17, 1987\", \"August 8, 1986\", \"August 16, 1982\") | player : people_id (1, 7, 5), poker_player_id (3, 5, 2), final_table_made (19.0, 42.0, 19.0), best_finish (1.0, 2.0, 3.0), earnings (104871.0, 104871.0, 596462.0), money_rank (166.0, 58.0, 154.0) | gambler : people_id (1, 7, 5), poker_player_id (3, 5, 2), final_table_made (19.0, 42.0, 19.0), best_finish (1.0, 2.0, 3.0), earnings (104871.0, 104871.0, 596462.0), money_rank (166.0, 58.0, 154.0)", + "schema_without_content": "people : people_id , name , nationality , height , birth_date | player : people_id , poker_player_id , final_table_made , best_finish , earnings , money_rank | gambler : people_id , poker_player_id , final_table_made , best_finish , earnings , money_rank", + "extra_map": null, + "extra_table_map": { + "poker_player": [ + "player", + "gambler" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "do not play poker": "poker_player" + } + }, + { + "question": "what are the #names of people# who #do not play poker# ?", + "db_id": "poker_player", + "orig_query": "select name from people where people_id not in (select people_id from poker_player)", + "schema_with_content": "individuals : height (187.0, 196.0, 196.0), people_id (6, 5, 4), nationality (\"Russia\", \"Bulgaria\"), name (\"Yevgeni Sivozhelez\", \"Yevgeni Sivozhelez\", \"Maksim Botin\"), birth_date (\"May 26, 1986\", \"August 16, 1982\", \"May 26, 1986\") | person : height (187.0, 196.0, 196.0), people_id (6, 5, 4), nationality (\"Russia\", \"Bulgaria\"), name (\"Yevgeni Sivozhelez\", \"Yevgeni Sivozhelez\", \"Maksim Botin\"), birth_date (\"May 26, 1986\", \"August 16, 1982\", \"May 26, 1986\") | poker_player : people_id (1, 7, 5), earnings (476090.0, 189233.0, 142800.0), best_finish (1.0, 2.0, 3.0), poker_player_id (4, 5, 3), money_rank (68.0, 166.0, 58.0), final_table_made (10.0, 21.0, 21.0)", + "schema_without_content": "individuals : height , people_id , nationality , name , birth_date | person : height , people_id , nationality , name , birth_date | poker_player : people_id , earnings , best_finish , poker_player_id , money_rank , final_table_made", + "extra_map": null, + "extra_table_map": { + "people": [ + "person", + "individuals" + ] + }, + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "column_linking_gt": { + "names of people": "people.Name", + "do not play poker": "poker_player" + } + }, + { + "question": "list the #contestant numbers# and names, ordered by contestant name descending.", + "db_id": "voter_1", + "orig_query": "select contestant_number, contestant_name from contestants order by contestant_name desc", + "schema_with_content": "candidates : contestant_number (11, 4, 7), contestant_name (\"Loraine NygrenTania Mattioli\", \"Loraine NygrenTania Mattioli\", \"Tabatha Gehling\") | votes : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:36\"), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (6209222712, 5112677315, 6209222712), contestant_number (2, 3, 5), vote_id (3, 1, 1) | participants : contestant_number (11, 4, 7), contestant_name (\"Loraine NygrenTania Mattioli\", \"Loraine NygrenTania Mattioli\", \"Tabatha Gehling\") | area_code_state : area_code (212, 857, 217), state (\"ND\", \"MI\", \"DE\")", + "schema_without_content": "candidates : contestant_number , contestant_name | votes : created , state , phone_number , contestant_number , vote_id | participants : contestant_number , contestant_name | area_code_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "contestant numbers": "CONTESTANTS.contestant_number", + "contestant names": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what is #last date created of votes# from the #state# 'ca'?", + "db_id": "voter_1", + "orig_query": "select max(created) from votes where state = 'CA'", + "schema_with_content": "contestants : contestant_name (\"Edwina Burnam\", \"Ericka Dieter\", \"Tabatha Gehling\"), contestant_number (5, 10, 5) | polls : vote_id (3, 5, 2), state (\"NY\", \"CA\", \"NJ\n\"), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:21\"), contestant_number (2, 3, 5), phone_number (5112677315, 5112677315, 6209222712) | balloths : vote_id (3, 5, 2), state (\"NY\", \"CA\", \"NJ\n\"), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:21\"), contestant_number (2, 3, 5), phone_number (5112677315, 5112677315, 6209222712) | area_code_state : area_code (385, 480, 510), state (\"NY\", \"NY\", \"MN\")", + "schema_without_content": "contestants : contestant_name , contestant_number | polls : vote_id , state , created , contestant_number , phone_number | balloths : vote_id , state , created , contestant_number , phone_number | area_code_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "last date created of votes": "votes.created", + "state": "votes.state" + } + }, + { + "question": "what are the #names of the contestants# whose #names are not 'jessie alloway'# ", + "db_id": "voter_1", + "orig_query": "select contestant_name from contestants where contestant_name != 'Jessie Alloway'", + "schema_with_content": "votes : created (\"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\"), contestant_number (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), vote_id (2, 3, 2), phone_number (5112677315, 6209222712, 6209222712) | participants : contestant_name (\"Edwina Burnam\", \"Nita Coster\", \"Alana Bregman\"), contestant_number (7, 2, 11) | candidates : contestant_name (\"Edwina Burnam\", \"Nita Coster\", \"Alana Bregman\"), contestant_number (7, 2, 11) | area_code_state : area_code (229, 319, 627), state (\"MS\", \"PA\", \"IN\")", + "schema_without_content": "votes : created , contestant_number , state , vote_id , phone_number | participants : contestant_name , contestant_number | candidates : contestant_name , contestant_number | area_code_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "names of the contestants": "CONTESTANTS.contestant_name", + "names are not 'Jessie Alloway'": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what are the #contestant numbers# and names of the contestants who had at least two #votes# ?", + "db_id": "voter_1", + "orig_query": "select t1.contestant_number, t1.contestant_name from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number group by t1.contestant_number having count(*) >= 2", + "schema_with_content": "candidates : contestant_number (10, 3, 8), contestant_name (\"Jessie Alloway\", \"Ericka Dieter\", \"Nita Coster\") | participants : contestant_number (10, 3, 8), contestant_name (\"Jessie Alloway\", \"Ericka Dieter\", \"Nita Coster\") | votes : phone_number (5112677315, 7182887233, 6209222712), vote_id (5, 3, 2), contestant_number (2, 3, 5), created (\"2018-03-09 19:03:39\", \"2018-03-09 19:03:36\", \"2018-03-09 19:03:40\"), state (\"NY\", \"CA\", \"NJ\n\") | area_code_state : area_code (956, 603, 573), state (\"PA\", \"LA\", \"WA\")", + "schema_without_content": "candidates : contestant_number , contestant_name | participants : contestant_number , contestant_name | votes : phone_number , vote_id , contestant_number , created , state | area_code_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "contestant numbers": "CONTESTANTS.contestant_number", + "votes": "VOTES", + "contestant names": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what are the #contestant numbers# and names of the contestants who had at least two #votes# ?", + "db_id": "voter_1", + "orig_query": "select t1.contestant_number, t1.contestant_name from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number group by t1.contestant_number having count(*) >= 2", + "schema_with_content": "contestants : contestant_name (\"Kelly Clauss\", \"Kurt Walser\", \"Loraine NygrenTania Mattioli\"), contestant_number (11, 9, 5) | polls : contestant_number (2, 3, 5), vote_id (1, 3, 1), phone_number (7148407040, 5112677315, 7182887233), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:36\", \"2018-03-09 19:03:36\"), state (\"NY\", \"CA\", \"NJ\n\") | area_code_state : state (\"IN\", \"CA\", \"KS\"), area_code (260, 630, 954) | balloths : contestant_number (2, 3, 5), vote_id (1, 3, 1), phone_number (7148407040, 5112677315, 7182887233), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:36\", \"2018-03-09 19:03:36\"), state (\"NY\", \"CA\", \"NJ\n\")", + "schema_without_content": "contestants : contestant_name , contestant_number | polls : contestant_number , vote_id , phone_number , created , state | area_code_state : state , area_code | balloths : contestant_number , vote_id , phone_number , created , state", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "contestant numbers": "CONTESTANTS.contestant_number", + "votes": "VOTES", + "contestant names": "CONTESTANTS.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_id": "voter_1", + "orig_query": "select t1.contestant_number, t1.contestant_name from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number group by t1.contestant_number order by count(*) asc limit 1", + "schema_with_content": "area_code_state : state (\"KY\", \"KS\", \"MT\"), area_code (765, 430, 805) | participants : contestant_number (2, 9, 3), contestant_name (\"Jessie Alloway\", \"Loraine NygrenTania Mattioli\", \"Jessie Alloway\") | candidates : contestant_number (2, 9, 3), contestant_name (\"Jessie Alloway\", \"Loraine NygrenTania Mattioli\", \"Jessie Alloway\") | votes : state (\"NY\", \"CA\", \"NJ\n\"), vote_id (3, 1, 3), contestant_number (2, 3, 5), phone_number (6209222712, 7148407040, 7182887233), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:39\")", + "schema_without_content": "area_code_state : state , area_code | participants : contestant_number , contestant_name | candidates : contestant_number , contestant_name | votes : state , vote_id , contestant_number , phone_number , created", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "contestants who got voted": "VOTES.contestant_number", + "contestant number": "CONTESTANTS.contestant_number", + "votes": "VOTES", + "contestant name": "CONTESTANTS.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_id": "voter_1", + "orig_query": "select t1.contestant_number, t1.contestant_name from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number group by t1.contestant_number order by count(*) asc limit 1", + "schema_with_content": "polls : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\"), contestant_number (2, 3, 5), phone_number (6209222712, 5112677315, 6209222712), state (\"NY\", \"CA\", \"NJ\n\"), vote_id (2, 2, 1) | balloths : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\"), contestant_number (2, 3, 5), phone_number (6209222712, 5112677315, 6209222712), state (\"NY\", \"CA\", \"NJ\n\"), vote_id (2, 2, 1) | area_code_state : state (\"MI\", \"NJ\", \"KS\"), area_code (240, 208, 817) | contestants : contestant_name (\"Loraine NygrenTania Mattioli\", \"Tabatha Gehling\", \"Kelly Clauss\"), contestant_number (10, 4, 2)", + "schema_without_content": "polls : created , contestant_number , phone_number , state , vote_id | balloths : created , contestant_number , phone_number , state , vote_id | area_code_state : state , area_code | contestants : contestant_name , contestant_number", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "contestants who got voted": "VOTES.contestant_number", + "contestant number": "CONTESTANTS.contestant_number", + "votes": "VOTES", + "contestant name": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what are the #number of votes# from #state# 'ny' or 'ca'?", + "db_id": "voter_1", + "orig_query": "select count(*) from votes where state = 'NY' or state = 'CA'", + "schema_with_content": "polls : contestant_number (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (5112677315, 5112677315, 7148407040), created (\"2018-03-09 19:03:39\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\"), vote_id (5, 5, 2) | balloths : contestant_number (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (5112677315, 5112677315, 7148407040), created (\"2018-03-09 19:03:39\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\"), vote_id (5, 5, 2) | contestants : contestant_name (\"Nita Coster\", \"Jessie Alloway\", \"Jessie Alloway\"), contestant_number (2, 6, 11) | area_code_state : area_code (716, 682, 407), state (\"SC\", \"DC\", \"NH\")", + "schema_without_content": "polls : contestant_number , state , phone_number , created , vote_id | balloths : contestant_number , state , phone_number , created , vote_id | contestants : contestant_name , contestant_number | area_code_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "number of votes": "votes", + "state": "votes.state" + } + }, + { + "question": "how many #contestants# did not get #voted# ?", + "db_id": "voter_1", + "orig_query": "select count(*) from contestants where contestant_number not in (select contestant_number from votes)", + "schema_with_content": "area_code_state : state (\"VT\", \"OH\", \"NH\"), area_code (478, 806, 276) | participants : contestant_number (6, 10, 4), contestant_name (\"Nita Coster\", \"Jessie Alloway\", \"Nita Coster\") | candidates : contestant_number (6, 10, 4), contestant_name (\"Nita Coster\", \"Jessie Alloway\", \"Nita Coster\") | votes : vote_id (3, 1, 3), state (\"NY\", \"CA\", \"NJ\n\"), created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\"), contestant_number (2, 3, 5), phone_number (6209222712, 7182887233, 7182887233)", + "schema_without_content": "area_code_state : state , area_code | participants : contestant_number , contestant_name | candidates : contestant_number , contestant_name | votes : vote_id , state , created , contestant_number , phone_number", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "contestants": "CONTESTANTS", + "voted": "VOTES.contestant_number", + "contestant_number": "CONTESTANTS.contestant_number" + } + }, + { + "question": "how many #contestants# did not get #voted# ?", + "db_id": "voter_1", + "orig_query": "select count(*) from contestants where contestant_number not in (select contestant_number from votes)", + "schema_with_content": "balloths : phone_number (6209222712, 6209222712, 7182887233), state (\"NY\", \"CA\", \"NJ\n\"), vote_id (1, 3, 5), created (\"2018-03-09 19:03:39\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\"), contestant_number (2, 3, 5) | area_code_state : area_code (858, 619, 240), state (\"ND\", \"CO\", \"UT\") | contestants : contestant_name (\"Edwina Burnam\", \"Ericka Dieter\", \"Jessie Eichman\"), contestant_number (2, 1, 4) | polls : phone_number (6209222712, 6209222712, 7182887233), state (\"NY\", \"CA\", \"NJ\n\"), vote_id (1, 3, 5), created (\"2018-03-09 19:03:39\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\"), contestant_number (2, 3, 5)", + "schema_without_content": "balloths : phone_number , state , vote_id , created , contestant_number | area_code_state : area_code , state | contestants : contestant_name , contestant_number | polls : phone_number , state , vote_id , created , contestant_number", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "contestants": "CONTESTANTS", + "voted": "VOTES.contestant_number", + "contestant_number": "CONTESTANTS.contestant_number" + } + }, + { + "question": "what is the #area code# in which the most #voters# voted?", + "db_id": "voter_1", + "orig_query": "select t1.area_code from area_code_state as t1 join votes as t2 on t1.state = t2.state group by t1.area_code order by count(*) desc limit 1", + "schema_with_content": "zipcode_state : area_code (615, 928, 212), state (\"VA\", \"AZ\", \"MN\") | votes : phone_number (7148407040, 7182887233, 7182887233), state (\"NY\", \"CA\", \"NJ\n\"), contestant_number (2, 3, 5), created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:39\", \"2018-03-09 19:03:40\"), vote_id (3, 2, 5) | contestants : contestant_name (\"Jessie Eichman\", \"Ericka Dieter\", \"Loraine NygrenTania Mattioli\"), contestant_number (5, 7, 11) | region_state : area_code (615, 928, 212), state (\"VA\", \"AZ\", \"MN\")", + "schema_without_content": "zipcode_state : area_code , state | votes : phone_number , state , contestant_number , created , vote_id | contestants : contestant_name , contestant_number | region_state : area_code , state", + "extra_map": null, + "extra_table_map": { + "area_code_state": [ + "zipcode_state", + "region_state" + ] + }, + "db_schema": { + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "zipcode_state": [ + "area_code", + "state" + ], + "region_state": [ + "area_code", + "state" + ] + }, + "column_linking_gt": { + "area code": "AREA_CODE_STATE.area_code", + "voters": "VOTES" + } + }, + { + "question": "what is the #area code# in which the most #voters# voted?", + "db_id": "voter_1", + "orig_query": "select t1.area_code from area_code_state as t1 join votes as t2 on t1.state = t2.state group by t1.area_code order by count(*) desc limit 1", + "schema_with_content": "balloths : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:39\"), contestant_number (2, 3, 5), vote_id (5, 5, 1), phone_number (5112677315, 7182887233, 7182887233), state (\"NY\", \"CA\", \"NJ\n\") | area_code_state : state (\"OK\", \"SD\", \"LA\"), area_code (586, 907, 931) | contestants : contestant_number (3, 9, 9), contestant_name (\"Loraine NygrenTania Mattioli\", \"Ericka Dieter\", \"Kelly Clauss\") | polls : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:39\"), contestant_number (2, 3, 5), vote_id (5, 5, 1), phone_number (5112677315, 7182887233, 7182887233), state (\"NY\", \"CA\", \"NJ\n\")", + "schema_without_content": "balloths : created , contestant_number , vote_id , phone_number , state | area_code_state : state , area_code | contestants : contestant_number , contestant_name | polls : created , contestant_number , vote_id , phone_number , state", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "area code": "AREA_CODE_STATE.area_code", + "voters": "VOTES" + } + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the #contestant named 'tabatha gehling'# ?", + "db_id": "voter_1", + "orig_query": "select t2.created, t2.state, t2.phone_number from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number where t1.contestant_name = 'Tabatha Gehling'", + "schema_with_content": "participants : contestant_number (5, 2, 2), contestant_name (\"Edwina Burnam\", \"Ericka Dieter\", \"Jessie Alloway\") | votes : created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:21\"), phone_number (6209222712, 6209222712, 5112677315), contestant_number (2, 3, 5), vote_id (5, 2, 5), state (\"NY\", \"CA\", \"NJ\n\") | area_code_state : state (\"OH\", \"NH\", \"FL\"), area_code (857, 228, 970) | candidates : contestant_number (5, 2, 2), contestant_name (\"Edwina Burnam\", \"Ericka Dieter\", \"Jessie Alloway\")", + "schema_without_content": "participants : contestant_number , contestant_name | votes : created , phone_number , contestant_number , vote_id , state | area_code_state : state , area_code | candidates : contestant_number , contestant_name", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "create dates": "VOTES.created", + "states": "VOTES.state", + "phone numbers": "VOTES.phone_number", + "contestant named 'Tabatha Gehling'": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the #contestant named 'tabatha gehling'# ?", + "db_id": "voter_1", + "orig_query": "select t2.created, t2.state, t2.phone_number from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number where t1.contestant_name = 'Tabatha Gehling'", + "schema_with_content": "balloths : created (\"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\"), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (6209222712, 5112677315, 7148407040), vote_id (1, 2, 1), contestant_number (2, 3, 5) | contestants : contestant_name (\"Edwina Burnam\", \"Edwina Burnam\", \"Nita Coster\"), contestant_number (11, 6, 7) | polls : created (\"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:21\"), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (6209222712, 5112677315, 7148407040), vote_id (1, 2, 1), contestant_number (2, 3, 5) | area_code_state : state (\"OR\", \"NV\", \"PA\"), area_code (563, 747, 808)", + "schema_without_content": "balloths : created , state , phone_number , vote_id , contestant_number | contestants : contestant_name , contestant_number | polls : created , state , phone_number , vote_id , contestant_number | area_code_state : state , area_code", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "create dates": "VOTES.created", + "states": "VOTES.state", + "phone numbers": "VOTES.phone_number", + "contestant named 'Tabatha Gehling'": "CONTESTANTS.contestant_name" + } + }, + { + "question": "list the #area codes# in which #voters# voted both for the #contestant# 'tabatha gehling' and the contestant 'kelly clauss'.", + "db_id": "voter_1", + "orig_query": "select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Tabatha Gehling' intersect select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Kelly Clauss'", + "schema_with_content": "votes : created (\"2018-03-09 19:03:21\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:36\"), contestant_number (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), phone_number (6209222712, 6209222712, 6209222712), vote_id (5, 2, 2) | region_state : area_code (206, 331, 567), state (\"TX\", \"CT\", \"OR\") | zipcode_state : area_code (206, 331, 567), state (\"TX\", \"CT\", \"OR\") | contestants : contestant_name (\"Nita Coster\", \"Loraine NygrenTania Mattioli\", \"Jessie Alloway\"), contestant_number (9, 5, 3)", + "schema_without_content": "votes : created , contestant_number , state , phone_number , vote_id | region_state : area_code , state | zipcode_state : area_code , state | contestants : contestant_name , contestant_number", + "extra_map": null, + "extra_table_map": { + "area_code_state": [ + "zipcode_state", + "region_state" + ] + }, + "db_schema": { + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "zipcode_state": [ + "area_code", + "state" + ], + "region_state": [ + "area_code", + "state" + ] + }, + "column_linking_gt": { + "area codes": "AREA_CODE_STATE.area_code", + "voters": "VOTES", + "contestant": "CONTESTANTS.contestant_name" + } + }, + { + "question": "list the #area codes# in which #voters# voted both for the #contestant# 'tabatha gehling' and the contestant 'kelly clauss'.", + "db_id": "voter_1", + "orig_query": "select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Tabatha Gehling' intersect select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Kelly Clauss'", + "schema_with_content": "candidates : contestant_name (\"Allie Rogalski\", \"Edwina Burnam\", \"Kurt Walser\"), contestant_number (7, 2, 11) | participants : contestant_name (\"Allie Rogalski\", \"Edwina Burnam\", \"Kurt Walser\"), contestant_number (7, 2, 11) | area_code_state : area_code (757, 562, 719), state (\"CO\", \"PA\", \"MA\") | votes : vote_id (1, 1, 5), state (\"NY\", \"CA\", \"NJ\n\"), contestant_number (2, 3, 5), phone_number (7182887233, 7182887233, 6209222712), created (\"2018-03-09 19:03:40\", \"2018-03-09 19:03:40\", \"2018-03-09 19:03:36\")", + "schema_without_content": "candidates : contestant_name , contestant_number | participants : contestant_name , contestant_number | area_code_state : area_code , state | votes : vote_id , state , contestant_number , phone_number , created", + "extra_map": null, + "extra_table_map": { + "contestants": [ + "candidates", + "participants" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "column_linking_gt": { + "area codes": "AREA_CODE_STATE.area_code", + "voters": "VOTES", + "contestant": "CONTESTANTS.contestant_name" + } + }, + { + "question": "list the #area codes# in which #voters# voted both for the #contestant# 'tabatha gehling' and the contestant 'kelly clauss'.", + "db_id": "voter_1", + "orig_query": "select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Tabatha Gehling' intersect select t3.area_code from contestants as t1 join votes as t2 on t1.contestant_number = t2.contestant_number join area_code_state as t3 on t2.state = t3.state where t1.contestant_name = 'Kelly Clauss'", + "schema_with_content": "polls : phone_number (5112677315, 7182887233, 6209222712), vote_id (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), contestant_number (2, 3, 5), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:36\") | balloths : phone_number (5112677315, 7182887233, 6209222712), vote_id (2, 3, 5), state (\"NY\", \"CA\", \"NJ\n\"), contestant_number (2, 3, 5), created (\"2018-03-09 19:03:36\", \"2018-03-09 19:03:21\", \"2018-03-09 19:03:36\") | area_code_state : state (\"LA\", \"NJ\", \"WA\"), area_code (464, 210, 732) | contestants : contestant_name (\"Alana Bregman\", \"Kurt Walser\", \"Alana Bregman\"), contestant_number (8, 4, 2)", + "schema_without_content": "polls : phone_number , vote_id , state , contestant_number , created | balloths : phone_number , vote_id , state , contestant_number , created | area_code_state : state , area_code | contestants : contestant_name , contestant_number", + "extra_map": null, + "extra_table_map": { + "votes": [ + "balloths", + "polls" + ] + }, + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "column_linking_gt": { + "area codes": "AREA_CODE_STATE.area_code", + "voters": "VOTES", + "contestant": "CONTESTANTS.contestant_name" + } + }, + { + "question": "what are the #names of all the countries# that became #independent# after 1950?", + "db_id": "world_1", + "orig_query": "select name from country where indepyear > 1950", + "schema_with_content": "state : gnp (299.0, 6064.0, 20208.0), localname (\"Lubnan\", \"Kenya\", \"Ukrajina\"), region (\"Southern Africa\", \"Nordic Countries\", \"Melanesia\"), governmentform (\"Co-administrated\", \"Nonmetropolitan Territory of New Zealand\", \"Overseas Department of France\"), lifeexpectancy (51.1, 68.0, 80.1), name (\"Bangladesh\", \"Mauritania\", \"Cameroon\"), code (\"SLV\", \"SUR\", \"FRA\"), code2 (\"VA\", \"MW\", \"SC\"), indepyear (1822, 1956, 1912), gnpold (1136.0, 755.0, 3922.0), continent (\"Europe\", \"South America\", \"North America\"), capital (1800, 3016, 2256), surfacearea (41526.0, 199900.0, 587041.0), population (38000, 27000, 1213000), headofstate (\"Fernando de la R\u00c3\u00baa\", \"Teburoro Tito\", \"Mohammed VI\") | countrylanguage : isofficial (\"T\", \"F\"), language (\"Boa\", \"Sara\", \"Akan\"), countrycode (\"ECU\", \"CXR\", \"TUN\"), percentage (62.2, 6.7, 69.9) | nation : gnp (299.0, 6064.0, 20208.0), localname (\"Lubnan\", \"Kenya\", \"Ukrajina\"), region (\"Southern Africa\", \"Nordic Countries\", \"Melanesia\"), governmentform (\"Co-administrated\", \"Nonmetropolitan Territory of New Zealand\", \"Overseas Department of France\"), lifeexpectancy (51.1, 68.0, 80.1), name (\"Bangladesh\", \"Mauritania\", \"Cameroon\"), code (\"SLV\", \"SUR\", \"FRA\"), code2 (\"VA\", \"MW\", \"SC\"), indepyear (1822, 1956, 1912), gnpold (1136.0, 755.0, 3922.0), continent (\"Europe\", \"South America\", \"North America\"), capital (1800, 3016, 2256), surfacearea (41526.0, 199900.0, 587041.0), population (38000, 27000, 1213000), headofstate (\"Fernando de la R\u00c3\u00baa\", \"Teburoro Tito\", \"Mohammed VI\") | city : name (\"Naogaon\", \"Karaman\", \"Ceyhan\"), population (136924, 222223, 192981), id (574, 3892, 578), countrycode (\"JOR\", \"TGO\", \"ECU\"), district (\"Massachusetts\", \"Harkova\", \"Caras-Severin\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "state : gnp , localname , region , governmentform , lifeexpectancy , name , code , code2 , indepyear , gnpold , continent , capital , surfacearea , population , headofstate | countrylanguage : isofficial , language , countrycode , percentage | nation : gnp , localname , region , governmentform , lifeexpectancy , name , code , code2 , indepyear , gnpold , continent , capital , surfacearea , population , headofstate | city : name , population , id , countrycode , district | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of all the countries": "country.Name", + "independent": "country.IndepYear" + } + }, + { + "question": "give the #names of the nations# that were #founded after 1950# .", + "db_id": "world_1", + "orig_query": "select name from country where indepyear > 1950", + "schema_with_content": "city : countrycode (\"MLT\", \"SVK\", \"ISL\"), id (358, 1137, 770), population (98100, 93350, 125884), district (\"Beirut\", \"Zaporizzja\", \"Izmir\"), name (\"Barahanagar (Baranagar)\", \"Jena\", \"Pinang\") | countrylanguage : countrycode (\"GRC\", \"COM\", \"GUF\"), isofficial (\"T\", \"F\"), percentage (52.0, 97.9, 43.7), language (\"Tadzhik\", \"Somali\", \"Sunda\") | sqlite_sequence : seq (4079), name (\"city\") | nation : surfacearea (27834.0, 163610.0, 2586.0), population (1158000, 2024000, 15000), code2 (\"ML\", \"IS\", \"VE\"), gnpold (5279.0, 23383.0, 6887.0), gnp (69213.0, 3205.0, 4173.0), name (\"Nauru\", \"Burundi\", \"Armenia\"), capital (1881, 2814, 905), region (\"Central Africa\", \"Northern Africa\", \"Southern and Central Asia\"), lifeexpectancy (66.0, 77.9, 77.9), governmentform (\"Parliamentary Coprincipality\", \"Occupied by Marocco\", \"Autonomous Area\"), indepyear (1811, 1912, 1960), headofstate (\"Ahmet Necdet Sezer\", \"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Abdoulaye Wade\"), localname (\"Luxembourg/L\u00c3\u00abtzebuerg\", \"Paraguay\", \"Guyane fran\u00c3\u00a7aise\"), continent (\"Antarctica\", \"Antarctica\", \"Oceania\"), code (\"AND\", \"GMB\", \"CRI\") | state : surfacearea (27834.0, 163610.0, 2586.0), population (1158000, 2024000, 15000), code2 (\"ML\", \"IS\", \"VE\"), gnpold (5279.0, 23383.0, 6887.0), gnp (69213.0, 3205.0, 4173.0), name (\"Nauru\", \"Burundi\", \"Armenia\"), capital (1881, 2814, 905), region (\"Central Africa\", \"Northern Africa\", \"Southern and Central Asia\"), lifeexpectancy (66.0, 77.9, 77.9), governmentform (\"Parliamentary Coprincipality\", \"Occupied by Marocco\", \"Autonomous Area\"), indepyear (1811, 1912, 1960), headofstate (\"Ahmet Necdet Sezer\", \"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Abdoulaye Wade\"), localname (\"Luxembourg/L\u00c3\u00abtzebuerg\", \"Paraguay\", \"Guyane fran\u00c3\u00a7aise\"), continent (\"Antarctica\", \"Antarctica\", \"Oceania\"), code (\"AND\", \"GMB\", \"CRI\")", + "schema_without_content": "city : countrycode , id , population , district , name \", \"Jena\", \"Pinang\" | countrylanguage : countrycode , isofficial , percentage , language | sqlite_sequence : seq , name | nation : surfacearea , population , code2 , gnpold , gnp , name , capital , region , lifeexpectancy , governmentform , indepyear , headofstate , localname , continent , code | state : surfacearea , population , code2 , gnpold , gnp , name , capital , region , lifeexpectancy , governmentform , indepyear , headofstate , localname , continent , code", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the nations": "country.Name", + "founded after 1950": "country.IndepYear" + } + }, + { + "question": "how many #countries# have a #republic# as their #form of government# ?", + "db_id": "world_1", + "orig_query": "select count(*) from country where governmentform = \"Republic\"", + "schema_with_content": "city : name (\"Chinhae\", \"Taitung\", \"Road Town\"), district (\"Vojvodina\", \"Terengganu\", \"San Marino\"), countrycode (\"PRK\", \"DJI\", \"ERI\"), population (105200, 419776, 195629), id (1750, 91, 3863) | state : lifeexpectancy (75.6, 70.7, 45.2), name (\"Switzerland\", \"Niue\", \"East Timor\"), code (\"JAM\", \"AFG\", \"TCA\"), gnp (1536.0, 212.0, 211860.0), continent (\"Africa\", \"South America\", \"Antarctica\"), localname (\"Svalbard og Jan Mayen\", \"Bouvet\u00c3\u00b8ya\", \"Montserrat\"), population (78000, 23930000, 67702000), indepyear (1825, 1918, 1955), region (\"Micronesia/Caribbean\", \"Western Africa\", \"Nordic Countries\"), headofstate (\"Rudolf Schuster\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\", \"Leo A. Falcam\"), code2 (\"FM\", \"JM\", \"LA\"), surfacearea (459.0, 14874.0, 83859.0), gnpold (4837.0, 706.0, 8920.0), governmentform (\"Monarchy (Emirate)\", \"Parlementary Monarchy\", \"Constitutional Monarchy\"), capital (3539, 3243, 938) | countrylanguage : language (\"Dinka\", \"Romansh\", \"Slovene\"), countrycode (\"SPM\", \"ISR\", \"COG\"), isofficial (\"T\", \"F\"), percentage (7.8, 9.1, 16.9) | nation : lifeexpectancy (75.6, 70.7, 45.2), name (\"Switzerland\", \"Niue\", \"East Timor\"), code (\"JAM\", \"AFG\", \"TCA\"), gnp (1536.0, 212.0, 211860.0), continent (\"Africa\", \"South America\", \"Antarctica\"), localname (\"Svalbard og Jan Mayen\", \"Bouvet\u00c3\u00b8ya\", \"Montserrat\"), population (78000, 23930000, 67702000), indepyear (1825, 1918, 1955), region (\"Micronesia/Caribbean\", \"Western Africa\", \"Nordic Countries\"), headofstate (\"Rudolf Schuster\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\", \"Leo A. Falcam\"), code2 (\"FM\", \"JM\", \"LA\"), surfacearea (459.0, 14874.0, 83859.0), gnpold (4837.0, 706.0, 8920.0), governmentform (\"Monarchy (Emirate)\", \"Parlementary Monarchy\", \"Constitutional Monarchy\"), capital (3539, 3243, 938) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "city : name , district , countrycode , population , id | state : lifeexpectancy , name , code , gnp , continent , localname , population , indepyear , region , headofstate , code2 , surfacearea , gnpold , governmentform \", \"Parlementary Monarchy\", \"Constitutional Monarchy\", capital | countrylanguage : language , countrycode , isofficial , percentage | nation : lifeexpectancy , name , code , gnp , continent , localname , population , indepyear , region , headofstate , code2 , surfacearea , gnpold , governmentform \", \"Parlementary Monarchy\", \"Constitutional Monarchy\", capital | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country", + "republic": "country.GovernmentForm", + "form of government": "country.GovernmentForm" + } + }, + { + "question": "how many #countries# have #governments# that are #republics# ?", + "db_id": "world_1", + "orig_query": "select count(*) from country where governmentform = \"Republic\"", + "schema_with_content": "nation : lifeexpectancy (41.3, 77.4, 78.0), headofstate (\"Zayid bin Sultan al-Nahayan\", \"Robert G. Mugabe\", \"Leonid Kut\u00c5\u00a1ma\"), surfacearea (17364.0, 112088.0, 580367.0), continent (\"Africa\", \"Oceania\", \"Oceania\"), governmentform (\"People'sRepublic\", \"Islamic Republic\", \"Autonomous Area\"), indepyear (1902, 1769, 1990), capital (2814, 1804, 3243), code2 (\"UY\", \"LU\", \"GY\"), name (\"Greece\", \"Malawi\", \"Romania\"), region (\"Northern Africa\", \"Polynesia\", \"Polynesia\"), code (\"REU\", \"LBY\", \"KOR\"), gnpold (1186.0, 65186.0, 2559.0), gnp (1043.0, 63.2, 2352.0), population (37032000, 24170000, 40377000), localname (\"Congo\", \"Cayman Islands\", \"Qatar\") | countrylanguage : isofficial (\"T\", \"F\"), language (\"Makua\", \"Bengali\", \"Icelandic\"), percentage (2.9, 96.4, 80.0), countrycode (\"SGP\", \"MLT\", \"ARG\") | state : lifeexpectancy (41.3, 77.4, 78.0), headofstate (\"Zayid bin Sultan al-Nahayan\", \"Robert G. Mugabe\", \"Leonid Kut\u00c5\u00a1ma\"), surfacearea (17364.0, 112088.0, 580367.0), continent (\"Africa\", \"Oceania\", \"Oceania\"), governmentform (\"People'sRepublic\", \"Islamic Republic\", \"Autonomous Area\"), indepyear (1902, 1769, 1990), capital (2814, 1804, 3243), code2 (\"UY\", \"LU\", \"GY\"), name (\"Greece\", \"Malawi\", \"Romania\"), region (\"Northern Africa\", \"Polynesia\", \"Polynesia\"), code (\"REU\", \"LBY\", \"KOR\"), gnpold (1186.0, 65186.0, 2559.0), gnp (1043.0, 63.2, 2352.0), population (37032000, 24170000, 40377000), localname (\"Congo\", \"Cayman Islands\", \"Qatar\") | sqlite_sequence : seq (4079), name (\"city\") | city : population (212977, 126381, 101578), name (\"Johannesburg\", \"Delft\", \"Srinagar\"), id (2808, 995, 1727), district (\"Marinmaa\", \"Imereti\", \"Saint-Pierre\"), countrycode (\"SGP\", \"LVA\", \"NFK\")", + "schema_without_content": "nation : lifeexpectancy , headofstate , surfacearea , continent , governmentform , indepyear , capital , code2 , name , region , code , gnpold , gnp , population , localname | countrylanguage : isofficial , language , percentage , countrycode | state : lifeexpectancy , headofstate , surfacearea , continent , governmentform , indepyear , capital , code2 , name , region , code , gnpold , gnp , population , localname | sqlite_sequence : seq , name | city : population , name , id , district , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country", + "governments": "country.GovernmentForm", + "republics": "country.GovernmentForm" + } + }, + { + "question": "what is the #total surface area of the countries in the caribbean region# ?", + "db_id": "world_1", + "orig_query": "select sum(surfacearea) from country where region = \"Caribbean\"", + "schema_with_content": "state : name (\"Saint Kitts and Nevis\", \"Saint Vincent and the Grenadines\", \"Argentina\"), capital (2814, 901, 4068), gnp (8005.0, 44806.0, 48267.0), code2 (\"LR\", \"DZ\", \"PS\"), governmentform (\"Federal Republic\", \"Monarchy (Sultanate)\", \"Federal Republic\"), code (\"PRY\", \"ESP\", \"NLD\"), population (328000, 93000, 11168000), region (\"Micronesia/Caribbean\", \"Micronesia/Caribbean\", \"Caribbean\"), indepyear (1804, 1841, -660), lifeexpectancy (69.1, 37.6, 68.1), continent (\"South America\", \"Antarctica\", \"Europe\"), headofstate (\"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Henri\", \"Andr\u00c3\u00a9s Pastrana Arango\"), gnpold (1392448.0, 19300.0, 227757.0), surfacearea (90000.0, 151.0, 1399.0), localname (\"United Kingdom\", \"Australia\", \"\u00e2\u0080\u0093\") | city : id (2864, 137, 1571), population (299000, 132770, 118960), district (\"Hordaland\", \"Vinnytsja\", \"Hanti-Mansia\"), countrycode (\"PER\", \"CAF\", \"TGO\"), name (\"Comit\u00c3\u00a1n de Dom\u00c3\u00adnguez\", \"Masjed-e-Soleyman\", \"Fengcheng\") | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : countrycode (\"NPL\", \"BRA\", \"LAO\"), language (\"Mano\", \"Spanish\", \"Karakalpak\"), percentage (13.2, 32.1, 59.2), isofficial (\"T\", \"F\") | nation : name (\"Saint Kitts and Nevis\", \"Saint Vincent and the Grenadines\", \"Argentina\"), capital (2814, 901, 4068), gnp (8005.0, 44806.0, 48267.0), code2 (\"LR\", \"DZ\", \"PS\"), governmentform (\"Federal Republic\", \"Monarchy (Sultanate)\", \"Federal Republic\"), code (\"PRY\", \"ESP\", \"NLD\"), population (328000, 93000, 11168000), region (\"Micronesia/Caribbean\", \"Micronesia/Caribbean\", \"Caribbean\"), indepyear (1804, 1841, -660), lifeexpectancy (69.1, 37.6, 68.1), continent (\"South America\", \"Antarctica\", \"Europe\"), headofstate (\"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Henri\", \"Andr\u00c3\u00a9s Pastrana Arango\"), gnpold (1392448.0, 19300.0, 227757.0), surfacearea (90000.0, 151.0, 1399.0), localname (\"United Kingdom\", \"Australia\", \"\u00e2\u0080\u0093\")", + "schema_without_content": "state : name , capital , gnp , code2 , governmentform \", \"Federal Republic\", code , population , region , indepyear , lifeexpectancy , continent , headofstate , gnpold , surfacearea , localname | city : id , population , district , countrycode , name | sqlite_sequence : seq , name | countrylanguage : countrycode , language , percentage , isofficial | nation : name , capital , gnp , code2 , governmentform \", \"Federal Republic\", code , population , region , indepyear , lifeexpectancy , continent , headofstate , gnpold , surfacearea , localname", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "total surface area of the countries in the Caribbean region": "country.SurfaceArea" + } + }, + { + "question": "how much #surface area# do the countires in the carribean cover together?", + "db_id": "world_1", + "orig_query": "select sum(surfacearea) from country where region = \"Caribbean\"", + "schema_with_content": "city : district (\"Karjala\", \"North Kazakstan\", \"Hamadan\"), name (\"Sogamoso\", \"Ilagan\", \"Cilegon\"), countrycode (\"NCL\", \"SJM\", \"NLD\"), population (98000, 183375, 101144), id (739, 1390, 440) | state : gnp (180375.0, 1061.0, 4988.0), continent (\"Africa\", \"Antarctica\", \"North America\"), name (\"Georgia\", \"Afghanistan\", \"Romania\"), code2 (\"SI\", \"SV\", \"CC\"), indepyear (-660, 1945, 1944), localname (\"Yisra\u00e2\u0080\u0099el/Isra\u00e2\u0080\u0099il\", \"Barbados\", \"Solomon Islands\"), lifeexpectancy (68.7, 46.2, 78.3), code (\"ROM\", \"CRI\", \"ALB\"), governmentform (\"Occupied by Marocco\", \"Parliamentary Coprincipality\", \"Overseas Department of France\"), population (56000, 25000, 22256000), surfacearea (2724900.0, 49012.0, 17818.0), headofstate (\"Abdiqassim Salad Hassan\", \"Salahuddin Abdul Aziz Shah Alhaj\", \"Kim Dae-jung\"), region (\"Northern Africa\", \"Western Africa\", \"Central America\"), capital (3066, 2710, 1522), gnpold (7474.0, 4542.0, 3545.0) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : language (\"Kiga\", \"Ganda\", \"Wolea\"), isofficial (\"T\", \"F\"), countrycode (\"ZMB\", \"PRY\", \"SOM\"), percentage (13.3, 3.4, 12.8) | nation : gnp (180375.0, 1061.0, 4988.0), continent (\"Africa\", \"Antarctica\", \"North America\"), name (\"Georgia\", \"Afghanistan\", \"Romania\"), code2 (\"SI\", \"SV\", \"CC\"), indepyear (-660, 1945, 1944), localname (\"Yisra\u00e2\u0080\u0099el/Isra\u00e2\u0080\u0099il\", \"Barbados\", \"Solomon Islands\"), lifeexpectancy (68.7, 46.2, 78.3), code (\"ROM\", \"CRI\", \"ALB\"), governmentform (\"Occupied by Marocco\", \"Parliamentary Coprincipality\", \"Overseas Department of France\"), population (56000, 25000, 22256000), surfacearea (2724900.0, 49012.0, 17818.0), headofstate (\"Abdiqassim Salad Hassan\", \"Salahuddin Abdul Aziz Shah Alhaj\", \"Kim Dae-jung\"), region (\"Northern Africa\", \"Western Africa\", \"Central America\"), capital (3066, 2710, 1522), gnpold (7474.0, 4542.0, 3545.0)", + "schema_without_content": "city : district , name , countrycode , population , id | state : gnp , continent , name , code2 , indepyear , localname , lifeexpectancy , code , governmentform , population , surfacearea , headofstate , region , capital , gnpold | sqlite_sequence : seq , name | countrylanguage : language , isofficial , countrycode , percentage | nation : gnp , continent , name , code2 , indepyear , localname , lifeexpectancy , code , governmentform , population , surfacearea , headofstate , region , capital , gnpold", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "surface area": "country.SurfaceArea", + "Caribbean": "country.Region", + "countries": "country" + } + }, + { + "question": "which #continent is anguilla# in?", + "db_id": "world_1", + "orig_query": "select continent from country where name = \"Anguilla\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : language (\"Mpongwe\", \"Malenasian Languages\", \"Dagara\"), isofficial (\"T\", \"F\"), percentage (99.6, 11.2, 16.8), countrycode (\"ISL\", \"ESP\", \"BTN\") | city : countrycode (\"LAO\", \"MSR\", \"PCN\"), district (\"Tripoli\", \"al-Zarqa\", \"Central Macedonia\"), name (\"Toledo\", \"Jakarta\", \"Cagliari\"), population (146086, 116200, 96322), id (727, 3064, 3289) | state : surfacearea (464.0, 70273.0, 2780400.0), lifeexpectancy (63.2, 45.2, 80.1), code2 (\"NG\", \"BG\", \"LU\"), population (77000, 444000, 3567000), governmentform (\"Monarchy (Emirate)\", \"Federation\", \"Part of Denmark\"), name (\"Qatar\", \"Zimbabwe\", \"Palau\"), capital (191, 549, 3538), indepyear (1492, 1499, 1990), continent (\"Antarctica\", \"North America\", \"Antarctica\"), region (\"Southern Europe\", \"British Islands\", \"Eastern Asia\"), localname (\"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\", \"Zambia\", \"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\"), gnp (4401.0, 1694.0, 903.0), gnpold (119833.0, 22834.0, 430572.0), headofstate (\"Letsie III\", \"Boris Trajkovski\", \"Juan Carlos I\"), code (\"NCL\", \"UZB\", \"ZMB\") | nation : surfacearea (464.0, 70273.0, 2780400.0), lifeexpectancy (63.2, 45.2, 80.1), code2 (\"NG\", \"BG\", \"LU\"), population (77000, 444000, 3567000), governmentform (\"Monarchy (Emirate)\", \"Federation\", \"Part of Denmark\"), name (\"Qatar\", \"Zimbabwe\", \"Palau\"), capital (191, 549, 3538), indepyear (1492, 1499, 1990), continent (\"Antarctica\", \"North America\", \"Antarctica\"), region (\"Southern Europe\", \"British Islands\", \"Eastern Asia\"), localname (\"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\", \"Zambia\", \"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\"), gnp (4401.0, 1694.0, 903.0), gnpold (119833.0, 22834.0, 430572.0), headofstate (\"Letsie III\", \"Boris Trajkovski\", \"Juan Carlos I\"), code (\"NCL\", \"UZB\", \"ZMB\")", + "schema_without_content": "sqlite_sequence : seq , name | countrylanguage : language , isofficial , percentage , countrycode | city : countrycode , district , name , population , id | state : surfacearea , lifeexpectancy , code2 , population , governmentform \", \"Federation\", \"Part of Denmark\", name , capital , indepyear , continent , region , localname \", gnp , gnpold , headofstate , code | nation : surfacearea , lifeexpectancy , code2 , population , governmentform \", \"Federation\", \"Part of Denmark\", name , capital , indepyear , continent , region , localname \", gnp , gnpold , headofstate , code", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continent is Anguilla": "country.Continent" + } + }, + { + "question": "what is the #continent name# which #anguilla# belongs to?", + "db_id": "world_1", + "orig_query": "select continent from country where name = \"Anguilla\"", + "schema_with_content": "city : population (22000, 409100, 470866), countrycode (\"BHS\", \"ANT\", \"PAN\"), id (1727, 2412, 541), district (\"Plymouth\", \"Atlantique\", \"Tabora\"), name (\"Jalna\", \"Yamato\", \"Zenica\") | state : gnp (1197.0, 9174.0, 20831.0), governmentform (\"Monarchy (Sultanate)\", \"Dependent Territory of the US\", \"Monarchy (Sultanate)\"), lifeexpectancy (81.1, 68.0, 59.8), name (\"Cyprus\", \"Gambia\", \"Maldives\"), region (\"Western Europe\", \"Melanesia\", \"Northern Africa\"), surfacearea (130000.0, 36.0, 112088.0), code2 (\"CL\", \"KE\", \"NR\"), indepyear (1990, 1825, 1976), localname (\"Honduras\", \"Sierra Leone\", \"Nouvelle-Cal\u00c3\u00a9donie\"), headofstate (\"Arthur N. R. Robinson\", \"Ali Abdallah Salih\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\"), capital (766, 187, 910), code (\"NIU\", \"LUX\", \"GIN\"), gnpold (102133.0, 33514.0, 18898.0), population (38653600, 2024000, 51654000), continent (\"Oceania\", \"Asia\", \"Europe\") | sqlite_sequence : name (\"city\"), seq (4079) | nation : gnp (1197.0, 9174.0, 20831.0), governmentform (\"Monarchy (Sultanate)\", \"Dependent Territory of the US\", \"Monarchy (Sultanate)\"), lifeexpectancy (81.1, 68.0, 59.8), name (\"Cyprus\", \"Gambia\", \"Maldives\"), region (\"Western Europe\", \"Melanesia\", \"Northern Africa\"), surfacearea (130000.0, 36.0, 112088.0), code2 (\"CL\", \"KE\", \"NR\"), indepyear (1990, 1825, 1976), localname (\"Honduras\", \"Sierra Leone\", \"Nouvelle-Cal\u00c3\u00a9donie\"), headofstate (\"Arthur N. R. Robinson\", \"Ali Abdallah Salih\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\"), capital (766, 187, 910), code (\"NIU\", \"LUX\", \"GIN\"), gnpold (102133.0, 33514.0, 18898.0), population (38653600, 2024000, 51654000), continent (\"Oceania\", \"Asia\", \"Europe\") | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"GNQ\", \"BRA\", \"KEN\"), percentage (7.6, 2.6, 59.2), language (\"Man\", \"Man\", \"Bali\")", + "schema_without_content": "city : population , countrycode , id , district , name | state : gnp , governmentform \", \"Dependent Territory of the US\", \"Monarchy \", lifeexpectancy , name , region , surfacearea , code2 , indepyear , localname , headofstate , capital , code , gnpold , population , continent | sqlite_sequence : name , seq | nation : gnp , governmentform \", \"Dependent Territory of the US\", \"Monarchy \", lifeexpectancy , name , region , surfacearea , code2 , indepyear , localname , headofstate , capital , code , gnpold , population , continent | countrylanguage : isofficial , countrycode , percentage , language", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continent name": "country.Continent", + "Anguilla": "country.Name" + } + }, + { + "question": "which #region is the city kabul# located in?", + "db_id": "world_1", + "orig_query": "select region from country as t1 join city as t2 on t1.code = t2.countrycode where t2.name = \"Kabul\"", + "schema_with_content": "town : id (276, 2902, 954), population (320296, 232961, 127026), district (\"Z\u00c3\u00bcrich\", \"Tabuk\", \"Utrecht\"), name (\"P\u00c3\u00a9njamo\", \"Limeira\", \"Ishinomaki\"), countrycode (\"BLZ\", \"NLD\", \"GAB\") | country : code (\"DEU\", \"TKM\", \"THA\"), indepyear (-1000, 1955, 1993), governmentform (\"Commonwealth of the US\", \"Federation\", \"Monarchy (Emirate)\"), gnp (1579.0, 2133367.0, 146.0), lifeexpectancy (75.2, 63.2, 71.6), localname (\"Heard and McDonald Islands\", \"United Kingdom\", \"Vi\u00c3\u00aat Nam\"), name (\"Uzbekistan\", \"Portugal\", \"Colombia\"), population (617000, 12000, 3520000), code2 (\"SR\", \"US\", \"SD\"), capital (901, 3306, 179), gnpold (1056.0, 392911.0, 105116.0), surfacearea (338145.0, 8875.0, 241038.0), region (\"Southeast Asia\", \"Micronesia\", \"Eastern Europe\"), headofstate (None, \"Gnassingb\u00c3\u00a9 Eyad\u00c3\u00a9ma\", \"Teburoro Tito\"), continent (\"Oceania\", \"North America\", \"Oceania\") | countrylanguage : percentage (19.6, 10.4, 13.3), countrycode (\"SUR\", \"CHN\", \"KIR\"), language (\"Mende\", \"Gujarati\", \"Polynesian Languages\"), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | metropolis : id (276, 2902, 954), population (320296, 232961, 127026), district (\"Z\u00c3\u00bcrich\", \"Tabuk\", \"Utrecht\"), name (\"P\u00c3\u00a9njamo\", \"Limeira\", \"Ishinomaki\"), countrycode (\"BLZ\", \"NLD\", \"GAB\")", + "schema_without_content": "town : id , population , district , name , countrycode | country : code , indepyear , governmentform \", gnp , lifeexpectancy , localname , name , population , code2 , capital , gnpold , surfacearea , region , headofstate , continent | countrylanguage : percentage , countrycode , language , isofficial | sqlite_sequence : seq , name | metropolis : id , population , district , name , countrycode", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "region is the city Kabul": "country.Region" + } + }, + { + "question": "which #region is the city kabul# located in?", + "db_id": "world_1", + "orig_query": "select region from country as t1 join city as t2 on t1.code = t2.countrycode where t2.name = \"Kabul\"", + "schema_with_content": "state : capital (3068, 2821, 194), code (\"ISR\", \"GNB\", \"GAB\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Natsagiin Bagabandi\", \"Abdullah II\"), name (\"Germany\", \"New Caledonia\", \"Canada\"), region (\"Western Europe\", \"Middle East\", \"Southern Africa\"), population (22256000, 1013662000, 40377000), gnp (2108.0, 15706.0, 96.0), indepyear (1963, 1804, -660), code2 (\"IL\", \"PH\", \"CK\"), governmentform (\"Monarchy (Emirate)\", \"Monarchy (Sultanate)\", \"Nonmetropolitan Territory of France\"), localname (\"Al-\u00c2\u00b4Arabiya as-Sa\u00c2\u00b4udiya\", \"Ell\u00c3\u00a1da\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\"), surfacearea (2344858.0, 25713.0, 108889.0), gnpold (189122.0, 8110900.0, 16153.0), lifeexpectancy (81.6, 63.4, 73.6), continent (\"North America\", \"South America\", \"Africa\") | nation : capital (3068, 2821, 194), code (\"ISR\", \"GNB\", \"GAB\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Natsagiin Bagabandi\", \"Abdullah II\"), name (\"Germany\", \"New Caledonia\", \"Canada\"), region (\"Western Europe\", \"Middle East\", \"Southern Africa\"), population (22256000, 1013662000, 40377000), gnp (2108.0, 15706.0, 96.0), indepyear (1963, 1804, -660), code2 (\"IL\", \"PH\", \"CK\"), governmentform (\"Monarchy (Emirate)\", \"Monarchy (Sultanate)\", \"Nonmetropolitan Territory of France\"), localname (\"Al-\u00c2\u00b4Arabiya as-Sa\u00c2\u00b4udiya\", \"Ell\u00c3\u00a1da\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\"), surfacearea (2344858.0, 25713.0, 108889.0), gnpold (189122.0, 8110900.0, 16153.0), lifeexpectancy (81.6, 63.4, 73.6), continent (\"North America\", \"South America\", \"Africa\") | countrylanguage : countrycode (\"RWA\", \"CHL\", \"KNA\"), isofficial (\"T\", \"F\"), percentage (14.2, 55.1, 21.4), language (\"Nyamwesi\", \"Luhya\", \"Tigrinja\") | sqlite_sequence : name (\"city\"), seq (4079) | city : name (\"Huimanguillo\", \"Green Bay\", \"Abaetetuba\"), id (2631, 1649, 100), countrycode (\"JPN\", \"COD\", \"MEX\"), population (151585, 117800, 120265), district (\"Paran\u00c3\u00a1\", \"Tottori\", \"Monagas\")", + "schema_without_content": "state : capital , code , headofstate , name , region , population , gnp , indepyear , code2 , governmentform \", \"Monarchy \", \"Nonmetropolitan Territory of France\", localname , surfacearea , gnpold , lifeexpectancy , continent | nation : capital , code , headofstate , name , region , population , gnp , indepyear , code2 , governmentform \", \"Monarchy \", \"Nonmetropolitan Territory of France\", localname , surfacearea , gnpold , lifeexpectancy , continent | countrylanguage : countrycode , isofficial , percentage , language | sqlite_sequence : name , seq | city : name , id , countrycode , population , district", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "region is the city Kabul": "country.Region" + } + }, + { + "question": "what #region is kabul# in?", + "db_id": "world_1", + "orig_query": "select region from country as t1 join city as t2 on t1.code = t2.countrycode where t2.name = \"Kabul\"", + "schema_with_content": "country : code (\"NER\", \"AZE\", \"BWA\"), continent (\"Asia\", \"Asia\", \"Africa\"), name (\"Peru\", \"Tajikistan\", \"Nauru\"), localname (\"The Cook Islands\", \"Zimbabwe\", \"Mongol Uls\"), gnpold (6097.0, 220.0, 12460.0), capital (921, 922, 3067), headofstate (\"Elisabeth II\", \"Aljaksandr Luka\u00c5\u00a1enka\", \"Emomali Rahmonov\"), governmentform (\"Parlementary Monarchy\", \"Socialistic Republic\", \"Special Administrative Region of China\"), surfacearea (329758.0, 70273.0, 1102.0), region (\"Central Africa\", \"Melanesia\", \"Central America\"), population (861000, 10097000, 51654000), code2 (\"MD\", \"KP\", \"RW\"), lifeexpectancy (83.5, 68.6, 68.0), indepyear (1499, 1964, 1838), gnp (334.0, 44806.0, 320.0) | countrylanguage : percentage (61.9, 2.7, 22.7), language (\"Georgiana\", \"Macedonian\", \"Kannada\"), isofficial (\"T\", \"F\"), countrycode (\"SYR\", \"BEN\", \"BLZ\") | metropolis : district (\"Rjazan\", \"Ibaragi\", \"Massachusetts\"), id (1494, 3959, 1386), name (\"Linhai\", \"Huejutla de Reyes\", \"Ligao\"), countrycode (\"SWZ\", \"ISR\", \"URY\"), population (133000, 90535, 189569) | town : district (\"Rjazan\", \"Ibaragi\", \"Massachusetts\"), id (1494, 3959, 1386), name (\"Linhai\", \"Huejutla de Reyes\", \"Ligao\"), countrycode (\"SWZ\", \"ISR\", \"URY\"), population (133000, 90535, 189569) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "country : code , continent , name , localname , gnpold , capital , headofstate , governmentform , surfacearea , region , population , code2 , lifeexpectancy , indepyear , gnp | countrylanguage : percentage , language , isofficial , countrycode | metropolis : district , id , name , countrycode , population | town : district , id , name , countrycode , population | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "region is Kabul": "country.Region" + } + }, + { + "question": "what #region is kabul# in?", + "db_id": "world_1", + "orig_query": "select region from country as t1 join city as t2 on t1.code = t2.countrycode where t2.name = \"Kabul\"", + "schema_with_content": "city : id (3501, 3045, 878), name (\"Bassein (Pathein)\", \"Djougou\", \"Turmero\"), countrycode (\"SLV\", \"CYM\", \"MDV\"), district (\"National Capital Dis\", \"Braila\", \"Loreto\"), population (660000, 133910, 1682000) | nation : gnpold (442989.0, 10169.0, 1400.0), name (\"Belize\", \"Comoros\", \"Nepal\"), capital (2463, 3198, 149), population (75967000, 149000, 1277558000), headofstate (\"Yoweri Museveni\", \"Carlos Roberto Flores Facuss\u00c3\u00a9\", None), indepyear (1912, 1980, 1917), region (\"Central Africa\", \"Antarctica\", \"Southern Africa\"), lifeexpectancy (75.4, 50.2, 75.6), localname (\"R\u00c3\u00a9union\", \"El Salvador\", \"Bangladesh\"), governmentform (\"Socialistic State\", \"Parlementary Monarchy\", \"Constitutional Monarchy (Emirate)\"), gnp (722.0, 95023.0, 0.0), continent (\"Oceania\", \"Asia\", \"Asia\"), surfacearea (1284000.0, 505992.0, 241038.0), code (\"GTM\", \"MCO\", \"RUS\"), code2 (\"BR\", \"PH\", \"SB\") | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : countrycode (\"PCN\", \"KAZ\", \"TCA\"), language (\"Ket\u00c5\u00a1ua\", \"Puyi\", \"Gur\"), isofficial (\"T\", \"F\"), percentage (97.7, 7.2, 18.4) | state : gnpold (442989.0, 10169.0, 1400.0), name (\"Belize\", \"Comoros\", \"Nepal\"), capital (2463, 3198, 149), population (75967000, 149000, 1277558000), headofstate (\"Yoweri Museveni\", \"Carlos Roberto Flores Facuss\u00c3\u00a9\", None), indepyear (1912, 1980, 1917), region (\"Central Africa\", \"Antarctica\", \"Southern Africa\"), lifeexpectancy (75.4, 50.2, 75.6), localname (\"R\u00c3\u00a9union\", \"El Salvador\", \"Bangladesh\"), governmentform (\"Socialistic State\", \"Parlementary Monarchy\", \"Constitutional Monarchy (Emirate)\"), gnp (722.0, 95023.0, 0.0), continent (\"Oceania\", \"Asia\", \"Asia\"), surfacearea (1284000.0, 505992.0, 241038.0), code (\"GTM\", \"MCO\", \"RUS\"), code2 (\"BR\", \"PH\", \"SB\")", + "schema_without_content": "city : id , name \", \"Djougou\", \"Turmero\", countrycode , district , population | nation : gnpold , name , capital , population , headofstate , indepyear , region , lifeexpectancy , localname , governmentform \", gnp , continent , surfacearea , code , code2 | sqlite_sequence : seq , name | countrylanguage : countrycode , language , isofficial , percentage | state : gnpold , name , capital , population , headofstate , indepyear , region , lifeexpectancy , localname , governmentform \", gnp , continent , surfacearea , code , code2", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "region is Kabul": "country.Region" + } + }, + { + "question": "which #language# is the most popular in #aruba# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\" order by percentage desc limit 1", + "schema_with_content": "nation : indepyear (1991, 1941, 1945), continent (\"North America\", \"Europe\", \"South America\"), lifeexpectancy (49.0, 77.4, 42.5), population (147000, 8495000, 57680000), surfacearea (25713.0, 185180.0, 4000.0), capital (1365, 2821, 1522), code2 (\"LK\", \"PS\", \"DE\"), gnp (935.0, 510.0, 0.0), localname (\"Pakistan\", \"Bolivia\", \"Mongol Uls\"), gnpold (1400.0, 3922.0, 97884.0), headofstate (\"Kostis Stefanopoulos\", \"Olusegun Obasanjo\", \"Teodoro Obiang Nguema Mbasogo\"), code (\"MLI\", \"HMD\", \"BMU\"), name (\"Bangladesh\", \"Saint Vincent and the Grenadines\", \"Tonga\"), governmentform (\"Constitutional Monarchy, Federation\", \"Special Administrative Region of China\", \"Territorial Collectivity of France\"), region (\"Eastern Africa\", \"Eastern Asia\", \"Melanesia\") | state : indepyear (1991, 1941, 1945), continent (\"North America\", \"Europe\", \"South America\"), lifeexpectancy (49.0, 77.4, 42.5), population (147000, 8495000, 57680000), surfacearea (25713.0, 185180.0, 4000.0), capital (1365, 2821, 1522), code2 (\"LK\", \"PS\", \"DE\"), gnp (935.0, 510.0, 0.0), localname (\"Pakistan\", \"Bolivia\", \"Mongol Uls\"), gnpold (1400.0, 3922.0, 97884.0), headofstate (\"Kostis Stefanopoulos\", \"Olusegun Obasanjo\", \"Teodoro Obiang Nguema Mbasogo\"), code (\"MLI\", \"HMD\", \"BMU\"), name (\"Bangladesh\", \"Saint Vincent and the Grenadines\", \"Tonga\"), governmentform (\"Constitutional Monarchy, Federation\", \"Special Administrative Region of China\", \"Territorial Collectivity of France\"), region (\"Eastern Africa\", \"Eastern Asia\", \"Melanesia\") | countrylanguage : isofficial (\"T\", \"F\"), percentage (32.3, 78.1, 4.9), language (\"Estonian\", \"Hakka\", \"Kiga\"), countrycode (\"LBR\", \"TJK\", \"TKL\") | city : countrycode (\"TCA\", \"CCK\", \"EST\"), name (\"Maputo\", \"La Rioja\", \"Taubat\u00c3\u00a9\"), id (7, 1729, 3039), district (\"Nevada\", \"Zytomyr\", \"Cear\u00c3\u00a1\"), population (457601, 627500, 169300) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "nation : indepyear , continent , lifeexpectancy , population , surfacearea , capital , code2 , gnp , localname , gnpold , headofstate , code , name , governmentform , region | state : indepyear , continent , lifeexpectancy , population , surfacearea , capital , code2 , gnp , localname , gnpold , headofstate , code , name , governmentform , region | countrylanguage : isofficial , percentage , language , countrycode | city : countrycode , name , id , district , population | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "which #language# is the most popular in #aruba# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\" order by percentage desc limit 1", + "schema_with_content": "spoken_language : language (\"Chewa\", \"Lango\", \"Chechen\"), isofficial (\"T\", \"F\"), percentage (0.1, 8.6, 11.8), countrycode (\"BGD\", \"BFA\", \"URY\") | official_language : language (\"Chewa\", \"Lango\", \"Chechen\"), isofficial (\"T\", \"F\"), percentage (0.1, 8.6, 11.8), countrycode (\"BGD\", \"BFA\", \"URY\") | city : name (\"Passo Fundo\", \"Kassala\", \"Suita\"), id (791, 2436, 3301), population (222993, 246322, 110963), district (\"Suez\", \"Hubei\", \"Centre\"), countrycode (\"KGZ\", \"BEL\", \"GIN\") | sqlite_sequence : name (\"city\"), seq (4079) | country : code (\"KOR\", \"STP\", \"TUR\"), localname (\"Ireland/\u00c3\u0089ire\", \"Sierra Leone\", \"\u00c2\u00b4Uman\"), population (6485000, 3200, 4629000), gnp (3101.0, 1536.0, 650.0), code2 (\"NO\", \"LU\", \"ER\"), lifeexpectancy (78.0, 73.1, 54.7), headofstate (\"Arthur N. R. Robinson\", \"Festus G. Mogae\", \"Gustavo Noboa Bejarano\"), region (\"North America\", \"Antarctica\", \"Western Africa\"), governmentform (\"Constitutional Monarchy\", \"Monarchy (Sultanate)\", \"Autonomous Area\"), surfacearea (163265.0, 2344858.0, 70273.0), capital (2401, 148, 928), gnpold (3347.0, 263451.0, 5924.0), continent (\"North America\", \"Oceania\", \"Europe\"), indepyear (1932, 1776, 836), name (\"India\", \"Spain\", \"Chad\")", + "schema_without_content": "spoken_language : language , isofficial , percentage , countrycode | official_language : language , isofficial , percentage , countrycode | city : name , id , population , district , countrycode | sqlite_sequence : name , seq | country : code , localname , population , gnp , code2 , lifeexpectancy , headofstate , region , governmentform \", \"Autonomous Area\", surfacearea , capital , gnpold , continent , indepyear , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "what #language# is predominantly spoken in #aruba# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\" order by percentage desc limit 1", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | nation : gnp (256254.0, 63.2, 828.0), lifeexpectancy (68.9, 50.1, 42.9), indepyear (1944, 1979, 1844), capital (3236, 5, 3048), gnpold (5924.0, 64960.0, 97884.0), code (\"SLV\", \"SPM\", \"TCA\"), population (417000, 170115000, 328000), continent (\"North America\", \"Africa\", \"Oceania\"), code2 (\"FR\", \"BE\", \"CV\"), region (\"Southern and Central Asia\", \"Middle East\", \"Melanesia\"), governmentform (\"Part of Denmark\", \"US Territory\", \"Socialistic Republic\"), name (\"Luxembourg\", \"Burkina Faso\", \"Ireland\"), surfacearea (2724900.0, 41526.0, 160.0), headofstate (\"Negasso Gidada\", \"Johannes Rau\", \"Yahya Jammeh\"), localname (\"Suomi\", \"The Cook Islands\", \"Italia\") | state : gnp (256254.0, 63.2, 828.0), lifeexpectancy (68.9, 50.1, 42.9), indepyear (1944, 1979, 1844), capital (3236, 5, 3048), gnpold (5924.0, 64960.0, 97884.0), code (\"SLV\", \"SPM\", \"TCA\"), population (417000, 170115000, 328000), continent (\"North America\", \"Africa\", \"Oceania\"), code2 (\"FR\", \"BE\", \"CV\"), region (\"Southern and Central Asia\", \"Middle East\", \"Melanesia\"), governmentform (\"Part of Denmark\", \"US Territory\", \"Socialistic Republic\"), name (\"Luxembourg\", \"Burkina Faso\", \"Ireland\"), surfacearea (2724900.0, 41526.0, 160.0), headofstate (\"Negasso Gidada\", \"Johannes Rau\", \"Yahya Jammeh\"), localname (\"Suomi\", \"The Cook Islands\", \"Italia\") | city : population (269649, 6789479, 120700), countrycode (\"PCN\", \"MYS\", \"GRC\"), id (210, 279, 2783), name (\"Selayang Baru\", \"Warraq al-Arab\", \"Adamstown\"), district (\"\u00c3\u0085rhus\", \"Antioquia\", \"Caraga\") | countrylanguage : isofficial (\"T\", \"F\"), percentage (99.1, 62.2, 20.3), countrycode (\"THA\", \"BTN\", \"NCL\"), language (\"Swedish\", \"Zenaga\", \"Romansh\")", + "schema_without_content": "sqlite_sequence : name , seq | nation : gnp , lifeexpectancy , indepyear , capital , gnpold , code , population , continent , code2 , region , governmentform , name , surfacearea , headofstate , localname | state : gnp , lifeexpectancy , indepyear , capital , gnpold , code , population , continent , code2 , region , governmentform , name , surfacearea , headofstate , localname | city : population , countrycode , id , name , district | countrylanguage : isofficial , percentage , countrycode , language", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "what #language# is predominantly spoken in #aruba# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\" order by percentage desc limit 1", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | country : gnp (982268.0, 8005.0, 3750.0), code2 (\"SA\", \"ET\", \"MK\"), indepyear (1974, 1143, 1994), lifeexpectancy (81.6, 70.5, 80.7), capital (764, 2429, 3580), code (\"NRU\", \"ARE\", \"TZA\"), name (\"Brunei\", \"Solomon Islands\", \"Turkey\"), localname (\"YeItyop\u00c2\u00b4iya\", \"Nederlandse Antillen\", \"Belarus\"), region (\"Southern Europe\", \"Southern Africa\", \"Middle East\"), surfacearea (130000.0, 96.0, 1284000.0), gnpold (82239.0, 12460.0, 2149.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Republic\", \"Nonmetropolitan Territory of The Netherlands\"), continent (\"Africa\", \"North America\", \"South America\"), headofstate (\"Vernon Shaw\", \"Omar Hassan Ahmad al-Bashir\", \"Zayid bin Sultan al-Nahayan\"), population (18827000, 444000, 3567000) | official_language : isofficial (\"T\", \"F\"), language (\"Basque\", \"Ngbaka\", \"Nyaneka-nkhumbi\"), countrycode (\"BEN\", \"KHM\", \"EGY\"), percentage (75.0, 60.4, 89.7) | city : id (1642, 1003, 3316), population (240609, 102372, 253100), name (\"Shuangcheng\", \"Roxas\", \"Hohhot\"), countrycode (\"REU\", \"MAC\", \"MAC\"), district (\"West Java\", \"DhiQar\", \"Vaud\") | spoken_language : isofficial (\"T\", \"F\"), language (\"Basque\", \"Ngbaka\", \"Nyaneka-nkhumbi\"), countrycode (\"BEN\", \"KHM\", \"EGY\"), percentage (75.0, 60.4, 89.7)", + "schema_without_content": "sqlite_sequence : name , seq | country : gnp , code2 , indepyear , lifeexpectancy , capital , code , name , localname , region , surfacearea , gnpold , governmentform , continent , headofstate , population | official_language : isofficial , language , countrycode , percentage | city : id , population , name , countrycode , district | spoken_language : isofficial , language , countrycode , percentage", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "what are the #population# and #life expectancies in brazil# ?", + "db_id": "world_1", + "orig_query": "select population, lifeexpectancy from country where name = \"Brazil\"", + "schema_with_content": "state : indepyear (1963, 1956, 1907), code (\"MDV\", \"BRN\", \"MAC\"), capital (3539, 2890, 204), continent (\"Africa\", \"Antarctica\", \"South America\"), localname (\"Suriya\", \"Uganda\", \"Zambia\"), governmentform (\"Administrated by the UN\", \"Emirate Federation\", \"Autonomous Area\"), code2 (\"CA\", \"TC\", \"GM\"), headofstate (\"Kostis Stefanopoulos\", \"Abdiqassim Salad Hassan\", \"Mswati III\"), lifeexpectancy (61.1, 77.4, 65.3), name (\"American Samoa\", \"Czech Republic\", \"Dominica\"), gnpold (256092.0, 10169.0, 2190.0), region (\"Southern Europe\", \"Southern Africa\", \"Eastern Europe\"), surfacearea (1104300.0, 30518.0, 10990.0), population (2000, 885000, 57680000), gnp (9217.0, 982268.0, 14194.0) | sqlite_sequence : seq (4079), name (\"city\") | nation : indepyear (1963, 1956, 1907), code (\"MDV\", \"BRN\", \"MAC\"), capital (3539, 2890, 204), continent (\"Africa\", \"Antarctica\", \"South America\"), localname (\"Suriya\", \"Uganda\", \"Zambia\"), governmentform (\"Administrated by the UN\", \"Emirate Federation\", \"Autonomous Area\"), code2 (\"CA\", \"TC\", \"GM\"), headofstate (\"Kostis Stefanopoulos\", \"Abdiqassim Salad Hassan\", \"Mswati III\"), lifeexpectancy (61.1, 77.4, 65.3), name (\"American Samoa\", \"Czech Republic\", \"Dominica\"), gnpold (256092.0, 10169.0, 2190.0), region (\"Southern Europe\", \"Southern Africa\", \"Eastern Europe\"), surfacearea (1104300.0, 30518.0, 10990.0), population (2000, 885000, 57680000), gnp (9217.0, 982268.0, 14194.0) | city : district (\"Barinas\", \"North Ossetia-Alania\", \"Arecibo\"), countrycode (\"ATG\", \"FLK\", \"GIB\"), id (2086, 1354, 2239), name (\"Khouribga\", \"Fuji\", \"Anyang\"), population (381161, 1104405, 95000) | countrylanguage : language (\"Kavango\", \"Diola\", \"Chiu chau\"), countrycode (\"ARE\", \"UZB\", \"AFG\"), isofficial (\"T\", \"F\"), percentage (0.3, 11.9, 36.4)", + "schema_without_content": "state : indepyear , code , capital , continent , localname , governmentform , code2 , headofstate , lifeexpectancy , name , gnpold , region , surfacearea , population , gnp | sqlite_sequence : seq , name | nation : indepyear , code , capital , continent , localname , governmentform , code2 , headofstate , lifeexpectancy , name , gnpold , region , surfacearea , population , gnp | city : district , countrycode , id , name , population | countrylanguage : language , countrycode , isofficial , percentage", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "population": "country.Population", + "life expectancies in Brazil": "country.LifeExpectancy" + } + }, + { + "question": "give me brazil\u2019s #population# and #life expectancies# .", + "db_id": "world_1", + "orig_query": "select population, lifeexpectancy from country where name = \"Brazil\"", + "schema_with_content": "state : name (\"Gibraltar\", \"Heard Island and McDonald Islands\", \"Malaysia\"), code2 (\"CA\", \"VE\", \"DM\"), code (\"CRI\", \"ESP\", \"CYP\"), lifeexpectancy (71.3, 50.1, 42.9), headofstate (\"Kim Dae-jung\", \"Teburoro Tito\", \"Cassam Uteem\"), region (\"Polynesia\", \"Polynesia\", \"British Islands\"), continent (\"Antarctica\", \"Oceania\", \"North America\"), capital (2441, 763, 3248), surfacearea (36188.0, 61.0, 260.0), localname (\"Micronesia\", \"Niger\", \"Dhivehi Raajje/Maldives\"), gnpold (1392448.0, 2201.0, 11203.0), population (20212000, 11201000, 861000), governmentform (\"Monarchy (Sultanate)\", \"Federation\", \"Monarchy\"), gnp (7137.0, 598862.0, 166448.0), indepyear (1825, 1965, 1901) | city : countrycode (\"ZWE\", \"GTM\", \"EST\"), district (\"Ucayali\", \"Nampula\", \"Carolina\"), population (352125, 150869, 206998), name (\"Hodeida\", \"Fatehpur\", \"Zlatoust\"), id (338, 1948, 2906) | sqlite_sequence : seq (4079), name (\"city\") | nation : name (\"Gibraltar\", \"Heard Island and McDonald Islands\", \"Malaysia\"), code2 (\"CA\", \"VE\", \"DM\"), code (\"CRI\", \"ESP\", \"CYP\"), lifeexpectancy (71.3, 50.1, 42.9), headofstate (\"Kim Dae-jung\", \"Teburoro Tito\", \"Cassam Uteem\"), region (\"Polynesia\", \"Polynesia\", \"British Islands\"), continent (\"Antarctica\", \"Oceania\", \"North America\"), capital (2441, 763, 3248), surfacearea (36188.0, 61.0, 260.0), localname (\"Micronesia\", \"Niger\", \"Dhivehi Raajje/Maldives\"), gnpold (1392448.0, 2201.0, 11203.0), population (20212000, 11201000, 861000), governmentform (\"Monarchy (Sultanate)\", \"Federation\", \"Monarchy\"), gnp (7137.0, 598862.0, 166448.0), indepyear (1825, 1965, 1901) | countrylanguage : percentage (99.1, 34.8, 50.2), countrycode (\"FRO\", \"GUM\", \"DNK\"), isofficial (\"T\", \"F\"), language (\"Arabic-French\", \"Gilaki\", \"Niue\")", + "schema_without_content": "state : name , code2 , code , lifeexpectancy , headofstate , region , continent , capital , surfacearea , localname , gnpold , population , governmentform \", \"Federation\", \"Monarchy\", gnp , indepyear | city : countrycode , district , population , name , id | sqlite_sequence : seq , name | nation : name , code2 , code , lifeexpectancy , headofstate , region , continent , capital , surfacearea , localname , gnpold , population , governmentform \", \"Federation\", \"Monarchy\", gnp , indepyear | countrylanguage : percentage , countrycode , isofficial , language", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "Brazil": "country.Name", + "population": "country.Population", + "life expectancies": "country.LifeExpectancy" + } + }, + { + "question": "what are the #region# and #population of angola# ?", + "db_id": "world_1", + "orig_query": "select population, region from country where name = \"Angola\"", + "schema_with_content": "nation : population (8495000, 5083000, 180000), name (\"Bahamas\", \"Indonesia\", \"Madagascar\"), localname (\"Malawi\", \"Madagasikara/Madagascar\", \"Bosna i Hercegovina\"), governmentform (\"Socialistic Republic\", \"Nonmetropolitan Territory of The Netherlands\", \"Constitutional Monarchy\"), code (\"JPN\", \"MOZ\", \"ISR\"), gnpold (392911.0, 2102826.0, 5279.0), surfacearea (377829.0, 20256.0, 459.0), lifeexpectancy (42.5, 53.2, 61.1), capital (3336, 910, 33), region (\"Eastern Asia\", \"Australia and New Zealand\", \"Western Africa\"), continent (\"Antarctica\", \"South America\", \"Asia\"), headofstate (\"Fahd ibn Abdul-Aziz al-Sa\u00c2\u00b4ud\", \"Muammar al-Qadhafi\", \"Jabir al-Ahmad al-Jabir al-Sabah\"), indepyear (843, 1974, 1983), code2 (\"AI\", \"NA\", \"SL\"), gnp (15846.0, 903.0, 382.0) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Kotokoli\", \"Tigrinja\", \"Mari\"), percentage (12.4, 87.0, 43.9), countrycode (\"TKL\", \"NGA\", \"SPM\") | city : district (\"Serravalle/Dogano\", \"Magwe [Magway]\", \"Ziguinchor\"), id (2868, 4073, 1033), population (332288, 126346, 120400), countrycode (\"GNQ\", \"MSR\", \"GNQ\"), name (\"Tomsk\", \"Le Havre\", \"La Serena\") | sqlite_sequence : name (\"city\"), seq (4079) | state : population (8495000, 5083000, 180000), name (\"Bahamas\", \"Indonesia\", \"Madagascar\"), localname (\"Malawi\", \"Madagasikara/Madagascar\", \"Bosna i Hercegovina\"), governmentform (\"Socialistic Republic\", \"Nonmetropolitan Territory of The Netherlands\", \"Constitutional Monarchy\"), code (\"JPN\", \"MOZ\", \"ISR\"), gnpold (392911.0, 2102826.0, 5279.0), surfacearea (377829.0, 20256.0, 459.0), lifeexpectancy (42.5, 53.2, 61.1), capital (3336, 910, 33), region (\"Eastern Asia\", \"Australia and New Zealand\", \"Western Africa\"), continent (\"Antarctica\", \"South America\", \"Asia\"), headofstate (\"Fahd ibn Abdul-Aziz al-Sa\u00c2\u00b4ud\", \"Muammar al-Qadhafi\", \"Jabir al-Ahmad al-Jabir al-Sabah\"), indepyear (843, 1974, 1983), code2 (\"AI\", \"NA\", \"SL\"), gnp (15846.0, 903.0, 382.0)", + "schema_without_content": "nation : population , name , localname , governmentform , code , gnpold , surfacearea , lifeexpectancy , capital , region , continent , headofstate , indepyear , code2 , gnp | countrylanguage : isofficial , language , percentage , countrycode | city : district , id , population , countrycode , name | sqlite_sequence : name , seq | state : population , name , localname , governmentform , code , gnpold , surfacearea , lifeexpectancy , capital , region , continent , headofstate , indepyear , code2 , gnp", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "region": "country.Region", + "population of Angola": "country.Population" + } + }, + { + "question": "what #region# does #angola# belong to and what is its #population# ?", + "db_id": "world_1", + "orig_query": "select population, region from country where name = \"Angola\"", + "schema_with_content": "nation : continent (\"Antarctica\", \"Africa\", \"Africa\"), code2 (\"VN\", \"MQ\", \"DK\"), name (\"Qatar\", \"Trinidad and Tobago\", \"Honduras\"), headofstate (\"Letsie III\", \"Jiang Zemin\", \"Robert G. Mugabe\"), lifeexpectancy (46.0, 72.3, 76.5), code (\"BRB\", \"NAM\", \"SYR\"), gnpold (5639.0, 40562.0, 6722.0), surfacearea (267668.0, 7780.0, 513115.0), governmentform (\"Monarchy (Sultanate)\", \"People'sRepublic\", \"Occupied by Marocco\"), population (754700, 68000, 600), gnp (10692.0, 3512.0, 182.0), indepyear (1970, 1821, 1975), capital (919, 1365, 3813), localname (\"Al-\u00c2\u00b4Iraq\", \"Belarus\", \"Lao\"), region (\"Polynesia\", \"Northern Africa\", \"Northern Africa\") | sqlite_sequence : seq (4079), name (\"city\") | city : population (91471, 129765, 173500), id (885, 2292, 2204), district (\"al-Asima\", \"Balkh\", \"Borgou\"), name (\"Yamagata\", \"Sorocaba\", \"Andria\"), countrycode (\"ATG\", \"CMR\", \"COG\") | countrylanguage : percentage (2.3, 98.3, 86.8), isofficial (\"T\", \"F\"), countrycode (\"VUT\", \"CHN\", \"NOR\"), language (\"Hassaniya\", \"Mon-khmer\", \"Mandjia\") | state : continent (\"Antarctica\", \"Africa\", \"Africa\"), code2 (\"VN\", \"MQ\", \"DK\"), name (\"Qatar\", \"Trinidad and Tobago\", \"Honduras\"), headofstate (\"Letsie III\", \"Jiang Zemin\", \"Robert G. Mugabe\"), lifeexpectancy (46.0, 72.3, 76.5), code (\"BRB\", \"NAM\", \"SYR\"), gnpold (5639.0, 40562.0, 6722.0), surfacearea (267668.0, 7780.0, 513115.0), governmentform (\"Monarchy (Sultanate)\", \"People'sRepublic\", \"Occupied by Marocco\"), population (754700, 68000, 600), gnp (10692.0, 3512.0, 182.0), indepyear (1970, 1821, 1975), capital (919, 1365, 3813), localname (\"Al-\u00c2\u00b4Iraq\", \"Belarus\", \"Lao\"), region (\"Polynesia\", \"Northern Africa\", \"Northern Africa\")", + "schema_without_content": "nation : continent , code2 , name , headofstate , lifeexpectancy , code , gnpold , surfacearea , governmentform \", \"People'sRepublic\", \"Occupied by Marocco\", population , gnp , indepyear , capital , localname , region | sqlite_sequence : seq , name | city : population , id , district , name , countrycode | countrylanguage : percentage , isofficial , countrycode , language | state : continent , code2 , name , headofstate , lifeexpectancy , code , gnpold , surfacearea , governmentform \", \"People'sRepublic\", \"Occupied by Marocco\", population , gnp , indepyear , capital , localname , region", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "region": "country.Region", + "Angola": "country.Name", + "population": "country.Population" + } + }, + { + "question": "what is the #average expected life expectancy for countries in the region of central africa# ?", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where region = \"Central Africa\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : localname (\"Kiribati\", \"Rom\u00c3\u00a2nia\", \"Naoero/Nauru\"), surfacearea (238533.0, 309500.0, 618.0), headofstate (\"France-Albert Ren\u00c3\u00a9\", \"Mswati III\", \"Chen Shui-bian\"), continent (\"Oceania\", \"Antarctica\", \"Oceania\"), gnpold (7988.0, 220.0, 171028.0), code (\"MAC\", \"GRC\", \"IRL\"), gnp (19770.0, 166448.0, 13714.0), population (57680000, 578000, 10043200), name (\"India\", \"Belarus\", \"Hungary\"), region (\"Southern Africa\", \"Melanesia\", \"Eastern Europe\"), indepyear (1973, 1907, 1278), lifeexpectancy (55.0, 71.0, 47.4), capital (2515, 1786, 3063), governmentform (\"Constitutional Monarchy (Emirate)\", \"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\"), code2 (\"PK\", \"AL\", \"LA\") | nation : localname (\"Kiribati\", \"Rom\u00c3\u00a2nia\", \"Naoero/Nauru\"), surfacearea (238533.0, 309500.0, 618.0), headofstate (\"France-Albert Ren\u00c3\u00a9\", \"Mswati III\", \"Chen Shui-bian\"), continent (\"Oceania\", \"Antarctica\", \"Oceania\"), gnpold (7988.0, 220.0, 171028.0), code (\"MAC\", \"GRC\", \"IRL\"), gnp (19770.0, 166448.0, 13714.0), population (57680000, 578000, 10043200), name (\"India\", \"Belarus\", \"Hungary\"), region (\"Southern Africa\", \"Melanesia\", \"Eastern Europe\"), indepyear (1973, 1907, 1278), lifeexpectancy (55.0, 71.0, 47.4), capital (2515, 1786, 3063), governmentform (\"Constitutional Monarchy (Emirate)\", \"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\"), code2 (\"PK\", \"AL\", \"LA\") | city : population (98619, 125070, 101144), district (\"Giza\", \"San Luis\", \"Harare\"), id (1253, 3867, 2283), name (\"San Juan del Monte\", \"Saint-Denis\", \"Lubbock\"), countrycode (\"NIU\", \"CRI\", \"SWZ\") | countrylanguage : countrycode (\"ZMB\", \"OMN\", \"IRQ\"), isofficial (\"T\", \"F\"), language (\"Mossi\", \"Soqutri\", \"Meru\"), percentage (32.6, 92.0, 17.7)", + "schema_without_content": "sqlite_sequence : seq , name | state : localname , surfacearea , headofstate , continent , gnpold , code , gnp , population , name , region , indepyear , lifeexpectancy , capital , governmentform \", \"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", code2 | nation : localname , surfacearea , headofstate , continent , gnpold , code , gnp , population , name , region , indepyear , lifeexpectancy , capital , governmentform \", \"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", code2 | city : population , district , id , name , countrycode | countrylanguage : countrycode , isofficial , language , percentage", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average expected life expectancy for countries in the region of Central Africa": "country.LifeExpectancy" + } + }, + { + "question": "how long is the people\u2019s av #erage life expectancy in central africa?# ", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where region = \"Central Africa\"", + "schema_with_content": "countrylanguage : isofficial (\"T\", \"F\"), percentage (21.7, 96.8, 3.8), language (\"Zapotec\", \"Maya Languages\", \"Oromo\"), countrycode (\"ECU\", \"BRA\", \"MRT\") | nation : indepyear (1968, 1878, 1979), code2 (\"SC\", \"LC\", \"CY\"), code (\"ATF\", \"MHL\", \"YEM\"), governmentform (\"Commonwealth of the US\", \"Federal Republic\", \"Overseas Department of France\"), gnpold (5867.0, 58549.0, 781.0), surfacearea (242.0, 23200.0, 175016.0), population (7000, 28351000, 11937000), region (\"Central Africa\", \"Melanesia\", \"Eastern Africa\"), localname (\"Barbados\", \"Tonga\", \"Belarus\"), headofstate (\"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Harald V\", \"Kumba Ial\u00c3\u00a1\"), continent (\"Europe\", \"Antarctica\", \"Oceania\"), gnp (11863.0, 21929.0, 5333.0), lifeexpectancy (67.5, 73.7, 66.5), capital (756, 34, 3236), name (\"Laos\", \"Monaco\", \"Malta\") | sqlite_sequence : name (\"city\"), seq (4079) | state : indepyear (1968, 1878, 1979), code2 (\"SC\", \"LC\", \"CY\"), code (\"ATF\", \"MHL\", \"YEM\"), governmentform (\"Commonwealth of the US\", \"Federal Republic\", \"Overseas Department of France\"), gnpold (5867.0, 58549.0, 781.0), surfacearea (242.0, 23200.0, 175016.0), population (7000, 28351000, 11937000), region (\"Central Africa\", \"Melanesia\", \"Eastern Africa\"), localname (\"Barbados\", \"Tonga\", \"Belarus\"), headofstate (\"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Harald V\", \"Kumba Ial\u00c3\u00a1\"), continent (\"Europe\", \"Antarctica\", \"Oceania\"), gnp (11863.0, 21929.0, 5333.0), lifeexpectancy (67.5, 73.7, 66.5), capital (756, 34, 3236), name (\"Laos\", \"Monaco\", \"Malta\") | city : population (234323, 302800, 96348), id (3636, 2779, 2478), countrycode (\"LIE\", \"GNB\", \"GBR\"), name (\"Regensburg\", \"Mathura\", \"Raichur\"), district (\"Sergipe\", \"Bissau\", \"Capital Region\")", + "schema_without_content": "countrylanguage : isofficial , percentage , language , countrycode | nation : indepyear , code2 , code , governmentform , gnpold , surfacearea , population , region , localname , headofstate , continent , gnp , lifeexpectancy , capital , name | sqlite_sequence : name , seq | state : indepyear , code2 , code , governmentform , gnpold , surfacearea , population , region , localname , headofstate , continent , gnp , lifeexpectancy , capital , name | city : population , id , countrycode , name , district", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "erage life expectancy in Central Africa?": "country.Region", + "average life expectancy": "country.LifeExpectancy" + } + }, + { + "question": "what is the #name of country# that has the shortest #life expectancy in asia# ?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Asia\" order by lifeexpectancy limit 1", + "schema_with_content": "countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"REU\", \"HKG\", \"SDN\"), percentage (52.6, 0.2, 95.6), language (\"Shan\", \"Mandjia\", \"Kirundi\") | nation : continent (\"South America\", \"North America\", \"Africa\"), code (\"MDV\", \"SOM\", \"PYF\"), governmentform (\"Administrated by the UN\", \"Autonomous Area\", \"Monarchy (Emirate)\"), capital (3337, 3064, 34), population (14786000, 6695000, 46844000), lifeexpectancy (71.0, 73.6, 62.5), name (\"Guatemala\", \"Kazakstan\", \"Tajikistan\"), localname (\"As-Sudan\", \"Slovensko\", \"Macau/Aomen\"), gnp (6871.0, 8255.0, 1043.0), indepyear (1902, 1847, 1912), gnpold (21300.0, 18898.0, 5639.0), headofstate (\"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Maumoon Abdul Gayoom\", \"Gnassingb\u00c3\u00a9 Eyad\u00c3\u00a9ma\"), code2 (\"LA\", \"MW\", \"BH\"), surfacearea (241038.0, 23200.0, 1267000.0), region (\"Polynesia\", \"Southeast Asia\", \"Micronesia/Caribbean\") | state : continent (\"South America\", \"North America\", \"Africa\"), code (\"MDV\", \"SOM\", \"PYF\"), governmentform (\"Administrated by the UN\", \"Autonomous Area\", \"Monarchy (Emirate)\"), capital (3337, 3064, 34), population (14786000, 6695000, 46844000), lifeexpectancy (71.0, 73.6, 62.5), name (\"Guatemala\", \"Kazakstan\", \"Tajikistan\"), localname (\"As-Sudan\", \"Slovensko\", \"Macau/Aomen\"), gnp (6871.0, 8255.0, 1043.0), indepyear (1902, 1847, 1912), gnpold (21300.0, 18898.0, 5639.0), headofstate (\"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Maumoon Abdul Gayoom\", \"Gnassingb\u00c3\u00a9 Eyad\u00c3\u00a9ma\"), code2 (\"LA\", \"MW\", \"BH\"), surfacearea (241038.0, 23200.0, 1267000.0), region (\"Polynesia\", \"Southeast Asia\", \"Micronesia/Caribbean\") | city : district (\"Eastern Cape\", \"Imo & Abia\", \"Changhwa\"), countrycode (\"MSR\", \"BDI\", \"PRI\"), id (2509, 923, 3644), population (98434, 215489, 90814), name (\"Uluberia\", \"Xingcheng\", \"Panzhihua\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "countrylanguage : isofficial , countrycode , percentage , language | nation : continent , code , governmentform \", capital , population , lifeexpectancy , name , localname , gnp , indepyear , gnpold , headofstate , code2 , surfacearea , region | state : continent , code , governmentform \", capital , population , lifeexpectancy , name , localname , gnp , indepyear , gnpold , headofstate , code2 , surfacearea , region | city : district , countrycode , id , population , name | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name of country": "country.Name", + "life expectancy in Asia": "country.LifeExpectancy" + } + }, + { + "question": "give the #name of the country in asia# with the lowest #life expectancy# .", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Asia\" order by lifeexpectancy limit 1", + "schema_with_content": "state : headofstate (\"Leonid Kut\u00c5\u00a1ma\", \"Paul Biya\", \"Paul Kagame\"), population (22244000, 32300, 9997600), lifeexpectancy (46.2, 41.3, 66.2), governmentform (\"Monarchy (Emirate)\", \"Islamic Republic\", \"Nonmetropolitan Territory of France\"), region (\"Baltic Countries\", \"Northern Africa\", \"Micronesia\"), capital (2511, 5, 3243), gnpold (220.0, 45914.0, 263451.0), surfacearea (455.0, 338145.0, 175016.0), continent (\"Antarctica\", \"Europe\", \"Asia\"), code (\"ARG\", \"MLT\", \"BIH\"), indepyear (1066, 1769, 1861), localname (\"Az\u00c3\u00a4rbaycan\", \"Sakartvelo\", \"Al-Jaza\u00e2\u0080\u0099ir/Alg\u00c3\u00a9rie\"), code2 (\"PY\", \"NZ\", \"KH\"), name (\"Haiti\", \"Iran\", \"Virgin Islands, British\"), gnp (5121.0, 1579.0, 5332.0) | countrylanguage : language (\"Tahitian\", \"Araucan\", \"Gbaya\"), percentage (95.8, 17.9, 11.1), isofficial (\"T\", \"F\"), countrycode (\"SEN\", \"KIR\", \"GBR\") | city : id (126, 1927, 3775), district (\"al-Bahr al-Ahmar\", \"Penza\", \"Horad Minsk\"), name (\"Vijayawada\", \"Chesapeake\", \"Monywa\"), population (179976, 147595, 171173), countrycode (\"ABW\", \"SYR\", \"AUT\") | nation : headofstate (\"Leonid Kut\u00c5\u00a1ma\", \"Paul Biya\", \"Paul Kagame\"), population (22244000, 32300, 9997600), lifeexpectancy (46.2, 41.3, 66.2), governmentform (\"Monarchy (Emirate)\", \"Islamic Republic\", \"Nonmetropolitan Territory of France\"), region (\"Baltic Countries\", \"Northern Africa\", \"Micronesia\"), capital (2511, 5, 3243), gnpold (220.0, 45914.0, 263451.0), surfacearea (455.0, 338145.0, 175016.0), continent (\"Antarctica\", \"Europe\", \"Asia\"), code (\"ARG\", \"MLT\", \"BIH\"), indepyear (1066, 1769, 1861), localname (\"Az\u00c3\u00a4rbaycan\", \"Sakartvelo\", \"Al-Jaza\u00e2\u0080\u0099ir/Alg\u00c3\u00a9rie\"), code2 (\"PY\", \"NZ\", \"KH\"), name (\"Haiti\", \"Iran\", \"Virgin Islands, British\"), gnp (5121.0, 1579.0, 5332.0) | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "state : headofstate , population , lifeexpectancy , governmentform \", \"Islamic Republic\", \"Nonmetropolitan Territory of France\", region , capital , gnpold , surfacearea , continent , code , indepyear , localname , code2 , name , gnp | countrylanguage : language , percentage , isofficial , countrycode | city : id , district , name , population , countrycode | nation : headofstate , population , lifeexpectancy , governmentform \", \"Islamic Republic\", \"Nonmetropolitan Territory of France\", region , capital , gnpold , surfacearea , continent , code , indepyear , localname , code2 , name , gnp | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the country in Asia": "country.Name", + "life expectancy": "country.LifeExpectancy" + } + }, + { + "question": "what is the #total population# and #maximum gnp in asia# ?", + "db_id": "world_1", + "orig_query": "select sum(population), max(gnp) from country where continent = \"Asia\"", + "schema_with_content": "state : localname (\"Brasil\", \"Australia\", \"Ghana\"), population (180000, 22720000, 190000), lifeexpectancy (63.4, 68.7, 74.8), surfacearea (756626.0, 64589.0, 151.0), governmentform (\"Part of Denmark\", \"Special Administrative Region of China\", \"Socialistic Republic\"), name (\"Burkina Faso\", \"Angola\", \"Colombia\"), code (\"TMP\", \"SPM\", \"KIR\"), gnpold (2023.0, 625626.0, 858.0), region (\"Southern and Central Asia\", \"Eastern Europe\", \"Melanesia\"), gnp (1579.0, 351182.0, 63.2), code2 (\"SI\", \"PE\", \"SH\"), continent (\"Europe\", \"Oceania\", \"Africa\"), indepyear (1350, 885, 836), headofstate (\"Thomas Klestil\", \"Paul Kagame\", \"kenraali Than Shwe\"), capital (1523, 33, 3483) | nation : localname (\"Brasil\", \"Australia\", \"Ghana\"), population (180000, 22720000, 190000), lifeexpectancy (63.4, 68.7, 74.8), surfacearea (756626.0, 64589.0, 151.0), governmentform (\"Part of Denmark\", \"Special Administrative Region of China\", \"Socialistic Republic\"), name (\"Burkina Faso\", \"Angola\", \"Colombia\"), code (\"TMP\", \"SPM\", \"KIR\"), gnpold (2023.0, 625626.0, 858.0), region (\"Southern and Central Asia\", \"Eastern Europe\", \"Melanesia\"), gnp (1579.0, 351182.0, 63.2), code2 (\"SI\", \"PE\", \"SH\"), continent (\"Europe\", \"Oceania\", \"Africa\"), indepyear (1350, 885, 836), headofstate (\"Thomas Klestil\", \"Paul Kagame\", \"kenraali Than Shwe\"), capital (1523, 33, 3483) | city : id (960, 3722, 1727), population (106600, 94326, 587211), countrycode (\"CIV\", \"CMR\", \"KHM\"), name (\"Termiz\", \"Varanasi (Benares)\", \"Fukuoka\"), district (\"Sumatera Utara\", \"North Kazakstan\", \"Ba Ria-Vung Tau\") | sqlite_sequence : name (\"city\"), seq (4079) | countrylanguage : percentage (94.2, 60.4, 9.2), language (\"Ngala and Bangi\", \"Kosrean\", \"Chin\"), isofficial (\"T\", \"F\"), countrycode (\"ESH\", \"SGP\", \"MNP\")", + "schema_without_content": "state : localname , population , lifeexpectancy , surfacearea , governmentform , name , code , gnpold , region , gnp , code2 , continent , indepyear , headofstate , capital | nation : localname , population , lifeexpectancy , surfacearea , governmentform , name , code , gnpold , region , gnp , code2 , continent , indepyear , headofstate , capital | city : id , population , countrycode , name \", \"Fukuoka\", district | sqlite_sequence : name , seq | countrylanguage : percentage , language , isofficial , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "total population": "country.Population", + "maximum GNP in Asia": "country.GNP" + } + }, + { + "question": "how many #people# live in #asia# , and what is the #largest gnp# among them?", + "db_id": "world_1", + "orig_query": "select sum(population), max(gnp) from country where continent = \"Asia\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : id (3766, 2576, 4041), district (\"Kinshasa\", \"Nord\", \"Piau\u00c3\u00ad\"), population (599515, 96938, 393664), countrycode (\"KEN\", \"OMN\", \"KIR\"), name (\"Walsall\", \"Antwerpen\", \"Batangas\") | state : code (\"ARG\", \"AIA\", \"ETH\"), population (40377000, 28351000, 59623400), region (\"Caribbean\", \"Micronesia/Caribbean\", \"Central Africa\"), governmentform (\"Commonwealth of the US\", \"Autonomous Area\", \"Part of Denmark\"), indepyear (1806, 1278, 1948), gnpold (2559.0, 206025.0, 616.0), headofstate (\"Vojislav Ko\u00c5\u00a1tunica\", \"Heyd\u00c3\u00a4r \u00c3\u0084liyev\", \"Vladimir Putin\"), code2 (\"PH\", \"BS\", \"TO\"), surfacearea (2381741.0, 301316.0, 51197.0), capital (3349, 3161, 150), localname (\"Lietuva\", \"Bosna i Hercegovina\", \"Balgarija\"), lifeexpectancy (70.7, 68.0, 79.8), gnp (1988.0, 722.0, 102896.0), name (\"Dominica\", \"Tokelau\", \"Guinea-Bissau\"), continent (\"North America\", \"Europe\", \"Europe\") | nation : code (\"ARG\", \"AIA\", \"ETH\"), population (40377000, 28351000, 59623400), region (\"Caribbean\", \"Micronesia/Caribbean\", \"Central Africa\"), governmentform (\"Commonwealth of the US\", \"Autonomous Area\", \"Part of Denmark\"), indepyear (1806, 1278, 1948), gnpold (2559.0, 206025.0, 616.0), headofstate (\"Vojislav Ko\u00c5\u00a1tunica\", \"Heyd\u00c3\u00a4r \u00c3\u0084liyev\", \"Vladimir Putin\"), code2 (\"PH\", \"BS\", \"TO\"), surfacearea (2381741.0, 301316.0, 51197.0), capital (3349, 3161, 150), localname (\"Lietuva\", \"Bosna i Hercegovina\", \"Balgarija\"), lifeexpectancy (70.7, 68.0, 79.8), gnp (1988.0, 722.0, 102896.0), name (\"Dominica\", \"Tokelau\", \"Guinea-Bissau\"), continent (\"North America\", \"Europe\", \"Europe\") | countrylanguage : isofficial (\"T\", \"F\"), percentage (35.8, 47.4, 100.0), language (\"Beja\", \"Mbete\", \"Madura\"), countrycode (\"NZL\", \"LBR\", \"MDA\")", + "schema_without_content": "sqlite_sequence : seq , name | city : id , district , population , countrycode , name | state : code , population , region , governmentform , indepyear , gnpold , headofstate , code2 , surfacearea , capital , localname , lifeexpectancy , gnp , name , continent | nation : code , population , region , governmentform , indepyear , gnpold , headofstate , code2 , surfacearea , capital , localname , lifeexpectancy , gnp , name , continent | countrylanguage : isofficial , percentage , language , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "people": "country.Population", + "Asia": "country.Continent", + "largest GNP": "country.GNP" + } + }, + { + "question": "what is the #average life expectancy in african countries# that are #republics# ?", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where continent = \"Africa\" and governmentform = \"Republic\"", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | city : countrycode (\"CRI\", \"VCT\", \"EGY\"), population (165243, 92398, 117264), id (983, 1263, 3618), name (\"Bologna\", \"Kafr al-Shaykh\", \"Papantla\"), district (\"Salzburg\", \"Mahajanga\", \"Sindh\") | state : gnpold (420.0, 75780.0, 2474.0), lifeexpectancy (69.2, 68.6, 75.2), gnp (61289.0, 340238.0, 174099.0), governmentform (\"Nonmetropolitan Territory of France\", \"Republic\", \"Monarchy\"), headofstate (\"Mohammed VI\", \"Kim Jong-il\", \"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\"), capital (2696, 56, 192), name (\"Macao\", \"Comoros\", \"Mauritius\"), region (\"Polynesia\", \"Southern and Central Asia\", \"Australia and New Zealand\"), surfacearea (0.4, 283561.0, 11000.0), localname (\"Nihon/Nippon\", \"Singapore/Singapura/Xinjiapo/Singapur\", \"Ghana\"), code2 (\"CX\", \"BD\", \"TC\"), code (\"IOT\", \"KGZ\", \"CAN\"), indepyear (1983, 1963, 1971), population (75967000, 149000, 3401200), continent (\"North America\", \"Asia\", \"North America\") | nation : gnpold (420.0, 75780.0, 2474.0), lifeexpectancy (69.2, 68.6, 75.2), gnp (61289.0, 340238.0, 174099.0), governmentform (\"Nonmetropolitan Territory of France\", \"Republic\", \"Monarchy\"), headofstate (\"Mohammed VI\", \"Kim Jong-il\", \"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\"), capital (2696, 56, 192), name (\"Macao\", \"Comoros\", \"Mauritius\"), region (\"Polynesia\", \"Southern and Central Asia\", \"Australia and New Zealand\"), surfacearea (0.4, 283561.0, 11000.0), localname (\"Nihon/Nippon\", \"Singapore/Singapura/Xinjiapo/Singapur\", \"Ghana\"), code2 (\"CX\", \"BD\", \"TC\"), code (\"IOT\", \"KGZ\", \"CAN\"), indepyear (1983, 1963, 1971), population (75967000, 149000, 3401200), continent (\"North America\", \"Asia\", \"North America\") | countrylanguage : language (\"Maka\", \"Walaita\", \"Hebrew\"), percentage (88.7, 82.2, 91.3), isofficial (\"T\", \"F\"), countrycode (\"CAF\", \"ATG\", \"MYT\")", + "schema_without_content": "sqlite_sequence : name , seq | city : countrycode , population , id , name , district | state : gnpold , lifeexpectancy , gnp , governmentform , headofstate , capital , name , region , surfacearea , localname , code2 , code , indepyear , population , continent | nation : gnpold , lifeexpectancy , gnp , governmentform , headofstate , capital , name , region , surfacearea , localname , code2 , code , indepyear , population , continent | countrylanguage : language , percentage , isofficial , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average life expectancy in African countries": "country.LifeExpectancy", + "republics": "country.GovernmentForm" + } + }, + { + "question": "give the #average life expectancy for countries in africa# which are #republics# ?", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where continent = \"Africa\" and governmentform = \"Republic\"", + "schema_with_content": "city : population (171173, 142576, 33700), id (2844, 2945, 3863), name (\"Castries\", \"Kaluga\", \"Sumar\u00c3\u00a9\"), district (\"Kirovograd\", \"\u00c5\u00a0irak\", \"Kairo\"), countrycode (\"HKG\", \"SYR\", \"ATG\") | state : indepyear (800, 1905, 1902), name (\"Liberia\", \"Barbados\", \"Uruguay\"), region (\"Central Africa\", \"British Islands\", \"Nordic Countries\"), gnpold (9585.0, 1161.0, 5867.0), code2 (\"SH\", \"SY\", \"CU\"), gnp (1263.0, 722.0, 145895.0), capital (2710, 135, 539), population (3869000, 75967000, 19680000), lifeexpectancy (39.3, 77.7, 55.0), code (\"VUT\", \"ARG\", \"KWT\"), localname (\"Guam\", \"Tchad/Tshad\", \"Sierra Leone\"), governmentform (\"Nonmetropolitan Territory of France\", \"Monarchy (Emirate)\", \"Constitutional Monarchy (Emirate)\"), continent (\"Europe\", \"Antarctica\", \"Europe\"), headofstate (\"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\", \"Lansana Cont\u00c3\u00a9\", \"Petar Stojanov\"), surfacearea (3903.0, 47000.0, 29800.0) | countrylanguage : countrycode (\"AIA\", \"GRL\", \"IRQ\"), isofficial (\"T\", \"F\"), percentage (90.0, 0.2, 9.1), language (\"Quich\u00c3\u00a9\", \"Hungarian\", \"Canton Chinese\") | sqlite_sequence : seq (4079), name (\"city\") | nation : indepyear (800, 1905, 1902), name (\"Liberia\", \"Barbados\", \"Uruguay\"), region (\"Central Africa\", \"British Islands\", \"Nordic Countries\"), gnpold (9585.0, 1161.0, 5867.0), code2 (\"SH\", \"SY\", \"CU\"), gnp (1263.0, 722.0, 145895.0), capital (2710, 135, 539), population (3869000, 75967000, 19680000), lifeexpectancy (39.3, 77.7, 55.0), code (\"VUT\", \"ARG\", \"KWT\"), localname (\"Guam\", \"Tchad/Tshad\", \"Sierra Leone\"), governmentform (\"Nonmetropolitan Territory of France\", \"Monarchy (Emirate)\", \"Constitutional Monarchy (Emirate)\"), continent (\"Europe\", \"Antarctica\", \"Europe\"), headofstate (\"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\", \"Lansana Cont\u00c3\u00a9\", \"Petar Stojanov\"), surfacearea (3903.0, 47000.0, 29800.0)", + "schema_without_content": "city : population , id , name , district , countrycode | state : indepyear , name , region , gnpold , code2 , gnp , capital , population , lifeexpectancy , code , localname , governmentform \", \"Constitutional Monarchy \", continent , headofstate , surfacearea | countrylanguage : countrycode , isofficial , percentage , language | sqlite_sequence : seq , name | nation : indepyear , name , region , gnpold , code2 , gnp , capital , population , lifeexpectancy , code , localname , governmentform \", \"Constitutional Monarchy \", continent , headofstate , surfacearea", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average life expectancy for countries in Africa": "country.LifeExpectancy", + "republics": "country.GovernmentForm" + } + }, + { + "question": "what is the #total surface area of the continents asia# and #europe# ?", + "db_id": "world_1", + "orig_query": "select sum(surfacearea) from country where continent = \"Asia\" or continent = \"Europe\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | nation : code (\"MTQ\", \"CUB\", \"GRD\"), region (\"Micronesia\", \"Antarctica\", \"Southern Africa\"), name (\"Indonesia\", \"Israel\", \"Saudi Arabia\"), population (9997600, 16125000, 1158000), gnp (65707.0, 9217.0, 9217.0), headofstate (\"Mamadou Tandja\", \"Ahmet Necdet Sezer\", \"Valdas Adamkus\"), localname (\"Druk-Yul\", \"South Georgia and the South Sandwich Islands\", \"Shqip\u00c3\u00abria\"), capital (1889, 4068, 763), governmentform (\"Special Administrative Region of China\", \"Monarchy (Sultanate)\", \"Part of Denmark\"), indepyear (1878, -1523, 1919), code2 (\"TZ\", \"SZ\", \"NF\"), gnpold (1084.0, 1767.0, 4542.0), continent (\"Antarctica\", \"South America\", \"Africa\"), surfacearea (270534.0, 160.0, 26338.0), lifeexpectancy (55.8, 75.7, 77.4) | city : name (\"Harbin\", \"Aalborg\", \"Rio Branco\"), district (\"Ayacucho\", \"Lebap\", \"West Kazakstan\"), id (1537, 2852, 2715), countrycode (\"UZB\", \"GLP\", \"THA\"), population (564589, 118857, 103931) | state : code (\"MTQ\", \"CUB\", \"GRD\"), region (\"Micronesia\", \"Antarctica\", \"Southern Africa\"), name (\"Indonesia\", \"Israel\", \"Saudi Arabia\"), population (9997600, 16125000, 1158000), gnp (65707.0, 9217.0, 9217.0), headofstate (\"Mamadou Tandja\", \"Ahmet Necdet Sezer\", \"Valdas Adamkus\"), localname (\"Druk-Yul\", \"South Georgia and the South Sandwich Islands\", \"Shqip\u00c3\u00abria\"), capital (1889, 4068, 763), governmentform (\"Special Administrative Region of China\", \"Monarchy (Sultanate)\", \"Part of Denmark\"), indepyear (1878, -1523, 1919), code2 (\"TZ\", \"SZ\", \"NF\"), gnpold (1084.0, 1767.0, 4542.0), continent (\"Antarctica\", \"South America\", \"Africa\"), surfacearea (270534.0, 160.0, 26338.0), lifeexpectancy (55.8, 75.7, 77.4) | countrylanguage : isofficial (\"T\", \"F\"), percentage (69.9, 64.4, 1.2), language (\"Man\", \"Abhyasi\", \"Slovak\"), countrycode (\"BTN\", \"KNA\", \"GTM\")", + "schema_without_content": "sqlite_sequence : seq , name | nation : code , region , name , population , gnp , headofstate , localname , capital , governmentform \", \"Part of Denmark\", indepyear , code2 , gnpold , continent , surfacearea , lifeexpectancy | city : name , district , id , countrycode , population | state : code , region , name , population , gnp , headofstate , localname , capital , governmentform \", \"Part of Denmark\", indepyear , code2 , gnpold , continent , surfacearea , lifeexpectancy | countrylanguage : isofficial , percentage , language , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "total surface area of the continents Asia": "country.SurfaceArea", + "Europe": "country.Continent" + } + }, + { + "question": "give the #total surface area# covered by #countries in asia# or #europe# .", + "db_id": "world_1", + "orig_query": "select sum(surfacearea) from country where continent = \"Asia\" or continent = \"Europe\"", + "schema_with_content": "nation : code2 (\"VE\", \"PL\", \"CU\"), lifeexpectancy (74.7, 63.2, 63.1), gnpold (5279.0, 804108.0, 5729.0), indepyear (800, 1581, 1811), name (\"Tunisia\", \"Zambia\", \"Tunisia\"), region (\"Central Africa\", \"British Islands\", \"Micronesia/Caribbean\"), surfacearea (41526.0, 912050.0, 30518.0), headofstate (\"Olusegun Obasanjo\", \"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Mswati III\"), gnp (3527.0, 19756.0, 2425.0), capital (2914, 185, 1792), code (\"BIH\", \"BFA\", \"FSM\"), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"People'sRepublic\", \"Autonomous Area\"), localname (\"Martinique\", \"Druk-Yul\", \"Rom\u00c3\u00a2nia\"), continent (\"Oceania\", \"Europe\", \"Oceania\"), population (3698500, 18827000, 25000) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"WSM\", \"TWN\", \"GAB\"), language (\"N\u00c3\u00a1huatl\", \"Hindko\", \"Tadzhik\"), percentage (87.5, 7.5, 14.0) | city : district (\"Dnjestria\", \"Pusan\", \"Constantine\"), id (1061, 930, 3119), name (\"Paju\", \"Pavlograd\", \"Chigasaki\"), countrycode (\"BOL\", \"TON\", \"GIB\"), population (6320174, 182671, 117549) | state : code2 (\"VE\", \"PL\", \"CU\"), lifeexpectancy (74.7, 63.2, 63.1), gnpold (5279.0, 804108.0, 5729.0), indepyear (800, 1581, 1811), name (\"Tunisia\", \"Zambia\", \"Tunisia\"), region (\"Central Africa\", \"British Islands\", \"Micronesia/Caribbean\"), surfacearea (41526.0, 912050.0, 30518.0), headofstate (\"Olusegun Obasanjo\", \"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Mswati III\"), gnp (3527.0, 19756.0, 2425.0), capital (2914, 185, 1792), code (\"BIH\", \"BFA\", \"FSM\"), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"People'sRepublic\", \"Autonomous Area\"), localname (\"Martinique\", \"Druk-Yul\", \"Rom\u00c3\u00a2nia\"), continent (\"Oceania\", \"Europe\", \"Oceania\"), population (3698500, 18827000, 25000)", + "schema_without_content": "nation : code2 , lifeexpectancy , gnpold , indepyear , name , region , surfacearea , headofstate , gnp , capital , code , governmentform , localname , continent , population | sqlite_sequence : seq , name | countrylanguage : isofficial , countrycode , language , percentage | city : district , id , name , countrycode , population | state : code2 , lifeexpectancy , gnpold , indepyear , name , region , surfacearea , headofstate , gnp , capital , code , governmentform , localname , continent , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "total surface area": "country.SurfaceArea", + "countries in Asia": "country.Continent", + "Europe": "country.Continent" + } + }, + { + "question": "how many #people# live in #gelderland district# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from city where district = \"Gelderland\"", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | metropolis : countrycode (\"TON\", \"GRL\", \"LBR\"), id (2155, 3566, 1154), name (\"Mosul\", \"Pondok Aren\", \"Munger (Monghyr)\"), population (216000, 441649, 300500), district (\"Ulaanbaatar\", \"Aragua\", \"Antofagasta\") | countrylanguage : percentage (78.1, 18.4, 30.0), isofficial (\"T\", \"F\"), language (\"Arabic-French\", \"Moravian\", \"Thai\"), countrycode (\"MUS\", \"CHL\", \"GNB\") | town : countrycode (\"TON\", \"GRL\", \"LBR\"), id (2155, 3566, 1154), name (\"Mosul\", \"Pondok Aren\", \"Munger (Monghyr)\"), population (216000, 441649, 300500), district (\"Ulaanbaatar\", \"Aragua\", \"Antofagasta\") | country : population (3337000, 5171300, 40377000), governmentform (\"Co-administrated\", \"Socialistic State\", \"Overseas Department of France\"), code (\"LCA\", \"TUR\", \"WSM\"), gnp (283.0, 38158.0, 5951.0), region (\"Antarctica\", \"British Islands\", \"Central Africa\"), lifeexpectancy (71.4, 54.8, 77.8), name (\"Tunisia\", \"Micronesia, Federated States of\", \"Tokelau\"), code2 (\"AT\", \"SL\", \"GA\"), gnpold (933.0, 189122.0, 15519.0), headofstate (\"Norodom Sihanouk\", \"\u00c3\u0089mile Lahoud\", \"Bakili Muluzi\"), indepyear (1951, 1830, 1962), continent (\"Oceania\", \"Europe\", \"South America\"), localname (\"Nederlandse Antillen\", \"Afganistan/Afqanestan\", \"Al-Yaman\"), capital (3248, 1859, 554), surfacearea (181035.0, 11295.0, 12189.0)", + "schema_without_content": "sqlite_sequence : name , seq | metropolis : countrycode , id , name \", population , district | countrylanguage : percentage , isofficial , language , countrycode | town : countrycode , id , name \", population , district | country : population , governmentform , code , gnp , region , lifeexpectancy , name , code2 , gnpold , headofstate , indepyear , continent , localname , capital , surfacearea", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "people": "city.Population", + "Gelderland district": "city.District" + } + }, + { + "question": "what is the #total population of gelderland district# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from city where district = \"Gelderland\"", + "schema_with_content": "countrylanguage : countrycode (\"MYT\", \"MLT\", \"KGZ\"), isofficial (\"T\", \"F\"), percentage (39.8, 21.4, 98.8), language (\"Tigre\", \"Bulgariana\", \"Brahui\") | town : id (1852, 137, 1189), name (\"Belo Horizonte\", \"Kursk\", \"Tando Adam\"), countrycode (\"BEL\", \"NIC\", \"KIR\"), district (\"Ibaragi\", \"Abruzzit\", \"Smolensk\"), population (192407, 104761, 178748) | country : gnpold (5639.0, 1102.0, 993.0), code (\"CIV\", \"UZB\", \"TTO\"), lifeexpectancy (73.8, 79.0, 77.6), indepyear (1811, 1769, 800), population (22455500, 4699000, 435700), governmentform (\"Emirate Federation\", \"Nonmetropolitan Territory of New Zealand\", \"Occupied by Marocco\"), capital (2972, 3423, 2884), gnp (1206.0, 6648.0, 2352.0), surfacearea (923768.0, 1098581.0, 774815.0), localname (\"Pakistan\", \"Chile\", \"Kenya\"), code2 (\"ID\", \"GP\", \"DZ\"), headofstate (\"Bakili Muluzi\", \"Zayid bin Sultan al-Nahayan\", \"Nursultan Nazarbajev\"), region (\"Micronesia\", \"Caribbean\", \"Australia and New Zealand\"), name (\"Heard Island and McDonald Islands\", \"Yugoslavia\", \"Syria\"), continent (\"Africa\", \"Oceania\", \"Europe\") | metropolis : id (1852, 137, 1189), name (\"Belo Horizonte\", \"Kursk\", \"Tando Adam\"), countrycode (\"BEL\", \"NIC\", \"KIR\"), district (\"Ibaragi\", \"Abruzzit\", \"Smolensk\"), population (192407, 104761, 178748) | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "countrylanguage : countrycode , isofficial , percentage , language | town : id , name , countrycode , district , population | country : gnpold , code , lifeexpectancy , indepyear , population , governmentform , capital , gnp , surfacearea , localname , code2 , headofstate , region , name , continent | metropolis : id , name , countrycode , district , population | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "total population of Gelderland district": "city.Population" + } + }, + { + "question": "what is the #average gnp# and #total population# in all nations whose #government# is us territory?", + "db_id": "world_1", + "orig_query": "select avg(gnp), sum(population) from country where governmentform = \"US Territory\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : gnpold (146171.0, 73132.0, 706.0), population (3615000, 67702000, 6188000), name (\"Rwanda\", \"Argentina\", \"Yugoslavia\"), region (\"Micronesia/Caribbean\", \"North America\", \"British Islands\"), surfacearea (442.0, 4033.0, 5765.0), indepyear (1958, 1492, 1973), governmentform (\"Islamic Emirate\", \"Overseas Department of France\", \"Territorial Collectivity of France\"), capital (2919, 3426, 3332), gnp (6366.0, 96.0, 44806.0), code2 (\"VE\", \"GI\", \"SI\"), code (\"KNA\", \"PYF\", \"SYC\"), lifeexpectancy (68.5, 83.5, 69.9), headofstate (\"Joseph Kabila\", \"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\"), localname (\"Ghana\", \"South Africa\", \"Espa\u00c3\u00b1a\"), continent (\"Africa\", \"Asia\", \"Africa\") | countrylanguage : percentage (29.7, 48.2, 75.2), language (\"Sardinian\", \"Maranao\", \"Dyula\"), countrycode (\"CCK\", \"PCN\", \"CMR\"), isofficial (\"T\", \"F\") | nation : gnpold (146171.0, 73132.0, 706.0), population (3615000, 67702000, 6188000), name (\"Rwanda\", \"Argentina\", \"Yugoslavia\"), region (\"Micronesia/Caribbean\", \"North America\", \"British Islands\"), surfacearea (442.0, 4033.0, 5765.0), indepyear (1958, 1492, 1973), governmentform (\"Islamic Emirate\", \"Overseas Department of France\", \"Territorial Collectivity of France\"), capital (2919, 3426, 3332), gnp (6366.0, 96.0, 44806.0), code2 (\"VE\", \"GI\", \"SI\"), code (\"KNA\", \"PYF\", \"SYC\"), lifeexpectancy (68.5, 83.5, 69.9), headofstate (\"Joseph Kabila\", \"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\"), localname (\"Ghana\", \"South Africa\", \"Espa\u00c3\u00b1a\"), continent (\"Africa\", \"Asia\", \"Africa\") | city : name (\"Nancy\", \"Norilsk\", \"Baidyabati\"), district (\"Ziguinchor\", \"Lusaka\", \"Rhode Island\"), countrycode (\"NER\", \"UKR\", \"LVA\"), population (281248, 94531, 326776), id (2377, 2513, 2162)", + "schema_without_content": "sqlite_sequence : seq , name | state : gnpold , population , name , region , surfacearea , indepyear , governmentform , capital , gnp , code2 , code , lifeexpectancy , headofstate , localname , continent | countrylanguage : percentage , language , countrycode , isofficial | nation : gnpold , population , name , region , surfacearea , indepyear , governmentform , capital , gnp , code2 , code , lifeexpectancy , headofstate , localname , continent | city : name , district , countrycode , population , id", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average GNP": "country.GNP", + "total population": "country.Population", + "government": "country.GovernmentForm" + } + }, + { + "question": "give the #mean gnp# and #total population of nations# which are considered #us territory# .", + "db_id": "world_1", + "orig_query": "select avg(gnp), sum(population) from country where governmentform = \"US Territory\"", + "schema_with_content": "city : district (\"Zulia\", \"Hordaland\", \"Fukuoka\"), population (99862, 93623, 161032), countrycode (\"LBN\", \"GIB\", \"BDI\"), name (\"Zeleznodoroznyi\", \"Shibin al-Kawm\", \"Lahti\"), id (2205, 3723, 2508) | state : indepyear (1828, 1921, 1867), region (\"Eastern Asia\", \"Central America\", \"Western Africa\"), surfacearea (143998.0, 62422.0, 9363520.0), capital (2318, 937, 2728), gnp (10692.0, 261.0, 11863.0), gnpold (6180.0, 532031.0, 2559.0), population (5433000, 4968000, 170115000), governmentform (\"Nonmetropolitan Territory of France\", \"Republic\", \"Dependent Territory of the UK\"), localname (\"Wallis-et-Futuna\", \"Al-Urdunn\", \"Belarus\"), code (\"GRC\", \"SVN\", \"EST\"), continent (\"Asia\", \"Africa\", \"Oceania\"), headofstate (\"John Bani\", \"John Bani\", \"Shahabuddin Ahmad\"), name (\"Greece\", \"Lebanon\", \"Guinea\"), code2 (\"LU\", \"CO\", \"SI\"), lifeexpectancy (74.5, 66.3, 37.2) | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"IRN\", \"NCL\", \"GEO\"), language (\"Zhuang\", \"Gusii\", \"Mandyako\"), percentage (89.5, 10.5, 38.6) | nation : indepyear (1828, 1921, 1867), region (\"Eastern Asia\", \"Central America\", \"Western Africa\"), surfacearea (143998.0, 62422.0, 9363520.0), capital (2318, 937, 2728), gnp (10692.0, 261.0, 11863.0), gnpold (6180.0, 532031.0, 2559.0), population (5433000, 4968000, 170115000), governmentform (\"Nonmetropolitan Territory of France\", \"Republic\", \"Dependent Territory of the UK\"), localname (\"Wallis-et-Futuna\", \"Al-Urdunn\", \"Belarus\"), code (\"GRC\", \"SVN\", \"EST\"), continent (\"Asia\", \"Africa\", \"Oceania\"), headofstate (\"John Bani\", \"John Bani\", \"Shahabuddin Ahmad\"), name (\"Greece\", \"Lebanon\", \"Guinea\"), code2 (\"LU\", \"CO\", \"SI\"), lifeexpectancy (74.5, 66.3, 37.2) | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : district , population , countrycode , name , id | state : indepyear , region , surfacearea , capital , gnp , gnpold , population , governmentform , localname , code , continent , headofstate , name , code2 , lifeexpectancy | countrylanguage : isofficial , countrycode , language , percentage | nation : indepyear , region , surfacearea , capital , gnp , gnpold , population , governmentform , localname , code , continent , headofstate , name , code2 , lifeexpectancy | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "mean GNP": "country.GNP", + "total population of nations": "country.Population", + "US territory": "country.GovernmentForm" + } + }, + { + "question": "how many #type of governments# are in #africa# ?", + "db_id": "world_1", + "orig_query": "select count(distinct governmentform) from country where continent = \"Africa\"", + "schema_with_content": "nation : indepyear (1828, 1878, -660), continent (\"Asia\", \"Africa\", \"Africa\"), surfacearea (2381741.0, 118484.0, 147181.0), code (\"EGY\", \"COG\", \"SVN\"), governmentform (\"Federal Republic\", \"Autonomous Area\", \"Part of Denmark\"), region (\"Micronesia/Caribbean\", \"Melanesia\", \"North America\"), capital (2729, 2253, 3207), headofstate (\"Francisco Guillermo Flores P\u00c3\u00a9rez\", \"Gloria Macapagal-Arroyo\", \"Shahabuddin Ahmad\"), gnpold (1580.0, 793.0, 8920.0), lifeexpectancy (81.6, 71.1, 69.1), code2 (\"KW\", \"BB\", \"BW\"), name (\"Zambia\", \"Ecuador\", \"Bolivia\"), population (1622000, 22256000, 699000), localname (\"Sri Lanka/Ilankai\", \"Puerto Rico\", \"Canada\"), gnp (4401.0, 2012.0, 334.0) | city : countrycode (\"DOM\", \"GIB\", \"MSR\"), district (\"Alabama\", \"Logone Occidental\", \"Kairo\"), id (1703, 1594, 1678), name (\"Pekalongan\", \"Maradi\", \"Saratov\"), population (277305, 157700, 218447) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : language (\"Arabic\", \"Nyakusa\", \"Bugi\"), countrycode (\"OMN\", \"AND\", \"AUS\"), percentage (69.0, 87.6, 4.1), isofficial (\"T\", \"F\") | state : indepyear (1828, 1878, -660), continent (\"Asia\", \"Africa\", \"Africa\"), surfacearea (2381741.0, 118484.0, 147181.0), code (\"EGY\", \"COG\", \"SVN\"), governmentform (\"Federal Republic\", \"Autonomous Area\", \"Part of Denmark\"), region (\"Micronesia/Caribbean\", \"Melanesia\", \"North America\"), capital (2729, 2253, 3207), headofstate (\"Francisco Guillermo Flores P\u00c3\u00a9rez\", \"Gloria Macapagal-Arroyo\", \"Shahabuddin Ahmad\"), gnpold (1580.0, 793.0, 8920.0), lifeexpectancy (81.6, 71.1, 69.1), code2 (\"KW\", \"BB\", \"BW\"), name (\"Zambia\", \"Ecuador\", \"Bolivia\"), population (1622000, 22256000, 699000), localname (\"Sri Lanka/Ilankai\", \"Puerto Rico\", \"Canada\"), gnp (4401.0, 2012.0, 334.0)", + "schema_without_content": "nation : indepyear , continent , surfacearea , code , governmentform , region , capital , headofstate , gnpold , lifeexpectancy , code2 , name , population , localname , gnp | city : countrycode , district , id , name , population | sqlite_sequence : seq , name | countrylanguage : language , countrycode , percentage , isofficial | state : indepyear , continent , surfacearea , code , governmentform , region , capital , headofstate , gnpold , lifeexpectancy , code2 , name , population , localname , gnp", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "type of governments": "country.GovernmentForm", + "Africa": "country.Continent" + } + }, + { + "question": "how many different #forms of governments# are there in #africa# ?", + "db_id": "world_1", + "orig_query": "select count(distinct governmentform) from country where continent = \"Africa\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : lifeexpectancy (74.5, 49.8, 76.2), gnpold (4361.0, 3347.0, 401461.0), gnp (3750.0, 146.0, 145895.0), name (\"Syria\", \"Cocos (Keeling) Islands\", \"Sudan\"), indepyear (1966, 1961, 1821), continent (\"South America\", \"Europe\", \"Antarctica\"), code2 (\"LT\", \"CK\", \"EG\"), population (93000, 168000, 2000), localname (\"Afganistan/Afqanestan\", \"Xianggang/Hong Kong\", \"Togo\"), headofstate (\"Arthur N. R. Robinson\", \"Yoweri Museveni\", \"Ahmet Necdet Sezer\"), code (\"PRK\", \"ANT\", \"NER\"), region (\"Caribbean\", \"Australia and New Zealand\", \"North America\"), surfacearea (751.0, 580367.0, 18274.0), capital (928, 201, 3358), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Parlementary Monarchy\", \"Monarchy (Sultanate)\") | city : id (366, 2750, 3153), countrycode (\"TMP\", \"SMR\", \"AUT\"), name (\"San Juan\", \"Shangzi\", \"Huai\u00c2\u00b4an\"), population (862225, 167461, 162930), district (\"Darfur al-Shamaliya\", \"Kaolack\", \"Alabama\") | nation : lifeexpectancy (74.5, 49.8, 76.2), gnpold (4361.0, 3347.0, 401461.0), gnp (3750.0, 146.0, 145895.0), name (\"Syria\", \"Cocos (Keeling) Islands\", \"Sudan\"), indepyear (1966, 1961, 1821), continent (\"South America\", \"Europe\", \"Antarctica\"), code2 (\"LT\", \"CK\", \"EG\"), population (93000, 168000, 2000), localname (\"Afganistan/Afqanestan\", \"Xianggang/Hong Kong\", \"Togo\"), headofstate (\"Arthur N. R. Robinson\", \"Yoweri Museveni\", \"Ahmet Necdet Sezer\"), code (\"PRK\", \"ANT\", \"NER\"), region (\"Caribbean\", \"Australia and New Zealand\", \"North America\"), surfacearea (751.0, 580367.0, 18274.0), capital (928, 201, 3358), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Parlementary Monarchy\", \"Monarchy (Sultanate)\") | countrylanguage : language (\"Dusun\", \"Haiti Creole\", \"Italian\"), percentage (88.6, 2.1, 29.3), countrycode (\"KWT\", \"MEX\", \"WLF\"), isofficial (\"T\", \"F\")", + "schema_without_content": "sqlite_sequence : seq , name | state : lifeexpectancy , gnpold , gnp , name Islands\", \"Sudan\", indepyear , continent , code2 , population , localname , headofstate , code , region , surfacearea , capital , governmentform \" | city : id , countrycode , name , population , district | nation : lifeexpectancy , gnpold , gnp , name Islands\", \"Sudan\", indepyear , continent , code2 , population , localname , headofstate , code , region , surfacearea , capital , governmentform \" | countrylanguage : language , percentage , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "forms of governments": "country.GovernmentForm", + "Africa": "country.Continent" + } + }, + { + "question": "what is the total number of #languages# used in #aruba# ?", + "db_id": "world_1", + "orig_query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\"", + "schema_with_content": "state : continent (\"Oceania\", \"Oceania\", \"Africa\"), code (\"GUM\", \"TCD\", \"UZB\"), capital (2881, 126, 2413), gnpold (1863.0, 33514.0, 22834.0), code2 (\"SY\", \"BG\", \"KY\"), indepyear (1838, 1981, 1978), surfacearea (912050.0, 964.0, 18575.0), localname (\"British Indian Ocean Territory\", \"Panam\u00c3\u00a1\", \"Ertra\"), gnp (40.7, 60.0, 65707.0), name (\"United Kingdom\", \"Tajikistan\", \"Micronesia, Federated States of\"), region (\"Melanesia\", \"Nordic Countries\", \"Eastern Europe\"), lifeexpectancy (37.2, 60.8, 76.4), governmentform (\"People'sRepublic\", \"Autonomous Area\", \"Special Administrative Region of China\"), headofstate (\"Vernon Shaw\", \"Luis \u00c3\u0081ngel Gonz\u00c3\u00a1lez Macchi\", \"Daniel arap Moi\"), population (22720000, 5074000, 98881000) | nation : continent (\"Oceania\", \"Oceania\", \"Africa\"), code (\"GUM\", \"TCD\", \"UZB\"), capital (2881, 126, 2413), gnpold (1863.0, 33514.0, 22834.0), code2 (\"SY\", \"BG\", \"KY\"), indepyear (1838, 1981, 1978), surfacearea (912050.0, 964.0, 18575.0), localname (\"British Indian Ocean Territory\", \"Panam\u00c3\u00a1\", \"Ertra\"), gnp (40.7, 60.0, 65707.0), name (\"United Kingdom\", \"Tajikistan\", \"Micronesia, Federated States of\"), region (\"Melanesia\", \"Nordic Countries\", \"Eastern Europe\"), lifeexpectancy (37.2, 60.8, 76.4), governmentform (\"People'sRepublic\", \"Autonomous Area\", \"Special Administrative Region of China\"), headofstate (\"Vernon Shaw\", \"Luis \u00c3\u0081ngel Gonz\u00c3\u00a1lez Macchi\", \"Daniel arap Moi\"), population (22720000, 5074000, 98881000) | countrylanguage : language (\"Rwanda\", \"Walaita\", \"Mahor\u00c3\u00a9\"), percentage (26.3, 22.9, 50.7), isofficial (\"T\", \"F\"), countrycode (\"CYM\", \"BLZ\", \"MNP\") | sqlite_sequence : seq (4079), name (\"city\") | city : id (1258, 1853, 45), district (\"Tottori\", \"Wilayah Persekutuan\", \"Pavlodar\"), population (124437, 328535, 221857), countrycode (\"SVK\", \"CZE\", \"AGO\"), name (\"Bruxelles [Brussel]\", \"Anshan\", \"Toyohashi\")", + "schema_without_content": "state : continent , code , capital , gnpold , code2 , indepyear , surfacearea , localname , gnp , name , region , lifeexpectancy , governmentform , headofstate , population | nation : continent , code , capital , gnpold , code2 , indepyear , surfacearea , localname , gnp , name , region , lifeexpectancy , governmentform , headofstate , population | countrylanguage : language , percentage , isofficial , countrycode | sqlite_sequence : seq , name | city : id , district , population , countrycode , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "what is the total number of #languages# used in #aruba# ?", + "db_id": "world_1", + "orig_query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : name (\"Longueuil\", \"Birgunj\", \"Mobile\"), district (\"Kujawsko-Pomorskie\", \"T\u00c5\u00a1et\u00c5\u00a1enia\", \"Antalya\"), id (3035, 4073, 3911), population (172357, 147000, 435964), countrycode (\"IND\", \"NER\", \"CHN\") | spoken_language : countrycode (\"PAK\", \"USA\", \"TON\"), percentage (86.3, 4.0, 9.8), language (\"French\", \"Russian\", \"Gorane\"), isofficial (\"T\", \"F\") | official_language : countrycode (\"PAK\", \"USA\", \"TON\"), percentage (86.3, 4.0, 9.8), language (\"French\", \"Russian\", \"Gorane\"), isofficial (\"T\", \"F\") | country : gnpold (7967.0, 58623.0, 7984.0), continent (\"North America\", \"Europe\", \"South America\"), code (\"BEN\", \"SGP\", \"OMN\"), localname (\"Niue\", \"Norge\", \"Canada\"), population (395000, 83000, 12000), lifeexpectancy (66.5, 37.8, 50.1), surfacearea (13120000.0, 7780.0, 274000.0), gnp (1694.0, 42168.0, 9131.0), indepyear (1844, 1961, 1923), governmentform (\"Territory of Australia\", \"Parliamentary Coprincipality\", \"Dependent Territory of Norway\"), code2 (\"ST\", \"MO\", \"DE\"), name (\"Saint Vincent and the Grenadines\", \"Comoros\", \"Canada\"), capital (1864, 2413, 2256), headofstate (\"Jean-Bertrand Aristide\", \"Leonid Kut\u00c5\u00a1ma\", \"Vladimir Putin\"), region (\"Southern Europe\", \"Western Africa\", \"Micronesia\")", + "schema_without_content": "sqlite_sequence : seq , name | city : name , district , id , population , countrycode | spoken_language : countrycode , percentage , language , isofficial | official_language : countrycode , percentage , language , isofficial | country : gnpold , continent , code , localname , population , lifeexpectancy , surfacearea , gnp , indepyear , governmentform , code2 , name , capital , headofstate , region", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "how many #languages# are spoken in #aruba# ?", + "db_id": "world_1", + "orig_query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\"", + "schema_with_content": "city : countrycode (\"CZE\", \"ISL\", \"PRY\"), district (\"Kyongsangbuk\", \"Addis Abeba\", \"Astana\"), id (1442, 1619, 998), name (\"Tucheng\", \"Praia\", \"Wardha\"), population (406370, 222700, 142900) | nation : localname (\"As-Sudan\", \"Polyn\u00c3\u00a9sie fran\u00c3\u00a7aise\", \"Ukrajina\"), code2 (\"US\", \"VN\", \"TV\"), name (\"Antarctica\", \"Sao Tome and Principe\", \"Nicaragua\"), headofstate (\"John Kufuor\", \"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Ferenc M\u00c3\u00a1dl\"), gnpold (227757.0, 8920.0, 8920.0), indepyear (1973, 836, 1918), code (\"MDG\", \"IND\", \"MSR\"), region (\"Western Africa\", \"Northern Africa\", \"Southern and Central Asia\"), gnp (7137.0, 1579.0, 6064.0), capital (2884, 2690, 33), population (6188000, 94000, 43000), continent (\"South America\", \"Asia\", \"Antarctica\"), surfacearea (264.0, 4000.0, 270534.0), lifeexpectancy (60.2, 42.5, 52.4), governmentform (\"Territorial Collectivity of France\", \"Islamic Emirate\", \"People'sRepublic\") | countrylanguage : language (\"Kotokoli\", \"Quich\u00c3\u00a9\", \"Tadzhik\"), isofficial (\"T\", \"F\"), percentage (50.2, 12.3, 19.5), countrycode (\"CYM\", \"PAN\", \"MRT\") | state : localname (\"As-Sudan\", \"Polyn\u00c3\u00a9sie fran\u00c3\u00a7aise\", \"Ukrajina\"), code2 (\"US\", \"VN\", \"TV\"), name (\"Antarctica\", \"Sao Tome and Principe\", \"Nicaragua\"), headofstate (\"John Kufuor\", \"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Ferenc M\u00c3\u00a1dl\"), gnpold (227757.0, 8920.0, 8920.0), indepyear (1973, 836, 1918), code (\"MDG\", \"IND\", \"MSR\"), region (\"Western Africa\", \"Northern Africa\", \"Southern and Central Asia\"), gnp (7137.0, 1579.0, 6064.0), capital (2884, 2690, 33), population (6188000, 94000, 43000), continent (\"South America\", \"Asia\", \"Antarctica\"), surfacearea (264.0, 4000.0, 270534.0), lifeexpectancy (60.2, 42.5, 52.4), governmentform (\"Territorial Collectivity of France\", \"Islamic Emirate\", \"People'sRepublic\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "city : countrycode , district , id , name , population | nation : localname , code2 , name , headofstate , gnpold , indepyear , code , region , gnp , capital , population , continent , surfacearea , lifeexpectancy , governmentform | countrylanguage : language , isofficial , percentage , countrycode | state : localname , code2 , name , headofstate , gnpold , indepyear , code , region , gnp , capital , population , continent , surfacearea , lifeexpectancy , governmentform | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "how many #languages# are spoken in #aruba# ?", + "db_id": "world_1", + "orig_query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Aruba\"", + "schema_with_content": "official_language : isofficial (\"T\", \"F\"), countrycode (\"AGO\", \"MLI\", \"MAR\"), language (\"Kalenjin\", \"Hadareb\", \"Pampango\"), percentage (1.7, 10.1, 21.2) | spoken_language : isofficial (\"T\", \"F\"), countrycode (\"AGO\", \"MLI\", \"MAR\"), language (\"Kalenjin\", \"Hadareb\", \"Pampango\"), percentage (1.7, 10.1, 21.2) | country : gnpold (23383.0, 10241.0, 58623.0), headofstate (\"Gyanendra Bir Bikram\", \"Mary McAleese\", \"Bharrat Jagdeo\"), lifeexpectancy (73.4, 73.7, 67.2), indepyear (1907, 1991, 1966), governmentform (\"Socialistic State\", \"Dependent Territory of Norway\", \"Commonwealth of the US\"), capital (2805, 3212, 928), continent (\"South America\", \"North America\", \"Antarctica\"), surfacearea (61.0, 175016.0, 12189.0), code (\"NER\", \"NIC\", \"RWA\"), region (\"Eastern Europe\", \"Southern Europe\", \"Caribbean\"), localname (\"Timor Timur\", \"Kenya\", \"T\u00e2\u0080\u0099ai-wan\"), gnp (1694.0, 299.0, 105954.0), name (\"Papua New Guinea\", \"Angola\", \"Micronesia, Federated States of\"), code2 (\"HN\", \"RU\", \"CF\"), population (861000, 19000, 22244000) | sqlite_sequence : seq (4079), name (\"city\") | city : population (188101, 101400, 420332), countrycode (\"SHN\", \"BRN\", \"ISR\"), district (\"Mardin\", \"Akita\", \"Plovdiv\"), id (912, 1470, 1294), name (\"Debrecen\", \"Fujieda\", \"Newport News\")", + "schema_without_content": "official_language : isofficial , countrycode , language , percentage | spoken_language : isofficial , countrycode , language , percentage | country : gnpold , headofstate , lifeexpectancy , indepyear , governmentform , capital , continent , surfacearea , code , region , localname , gnp , name , code2 , population | sqlite_sequence : seq , name | city : population , countrycode , district , id , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "Aruba": "country.Name" + } + }, + { + "question": "how many #official languages# does #afghanistan# have?", + "db_id": "world_1", + "orig_query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Afghanistan\" and isofficial = \"T\"", + "schema_with_content": "nation : population (473000, 328000, 17000), lifeexpectancy (42.9, 54.8, 62.9), region (\"British Islands\", \"South America\", \"Eastern Asia\"), indepyear (1923, 1961, 1143), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Administrated by the UN\", \"Dependent Territory of the US\"), gnpold (539.0, 19452.0, 8670.0), continent (\"Africa\", \"Oceania\", \"Antarctica\"), code (\"VUT\", \"BHR\", \"DEU\"), localname (\"Macau/Aomen\", \"Andorra\", \"Magyarorsz\u00c3\u00a1g\"), name (\"Kyrgyzstan\", \"British Indian Ocean Territory\", \"Vanuatu\"), gnp (95023.0, 4173.0, 17121.0), headofstate (\"Kessai Note\", \"Hamad ibn Isa al-Khalifa\", \"Abdurrahman Wahid\"), capital (1532, 2928, 2690), code2 (\"BN\", \"IE\", \"YU\"), surfacearea (774815.0, 549.0, 93030.0) | countrylanguage : language (\"Maguindanao\", \"Fijian\", \"Maithili\"), countrycode (\"PRI\", \"BEL\", \"MKD\"), isofficial (\"T\", \"F\"), percentage (6.8, 87.0, 49.4) | sqlite_sequence : seq (4079), name (\"city\") | state : population (473000, 328000, 17000), lifeexpectancy (42.9, 54.8, 62.9), region (\"British Islands\", \"South America\", \"Eastern Asia\"), indepyear (1923, 1961, 1143), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Administrated by the UN\", \"Dependent Territory of the US\"), gnpold (539.0, 19452.0, 8670.0), continent (\"Africa\", \"Oceania\", \"Antarctica\"), code (\"VUT\", \"BHR\", \"DEU\"), localname (\"Macau/Aomen\", \"Andorra\", \"Magyarorsz\u00c3\u00a1g\"), name (\"Kyrgyzstan\", \"British Indian Ocean Territory\", \"Vanuatu\"), gnp (95023.0, 4173.0, 17121.0), headofstate (\"Kessai Note\", \"Hamad ibn Isa al-Khalifa\", \"Abdurrahman Wahid\"), capital (1532, 2928, 2690), code2 (\"BN\", \"IE\", \"YU\"), surfacearea (774815.0, 549.0, 93030.0) | city : district (\"Chollanam\", \"Qostanay\", \"Saarland\"), name (\"Warraq al-Arab\", \"Torre\u00c3\u00b3n\", \"Porto-Novo\"), id (2361, 4062, 356), population (120128, 170697, 171500), countrycode (\"HRV\", \"SVN\", \"GNB\")", + "schema_without_content": "nation : population , lifeexpectancy , region , indepyear , governmentform , gnpold , continent , code , localname , name , gnp , headofstate , capital , code2 , surfacearea | countrylanguage : language , countrycode , isofficial , percentage | sqlite_sequence : seq , name | state : population , lifeexpectancy , region , indepyear , governmentform , gnpold , continent , code , localname , name , gnp , headofstate , capital , code2 , surfacearea | city : district , name , id , population , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "official languages": "countrylanguage.IsOfficial", + "Afghanistan": "country.Name" + } + }, + { + "question": "how many #official languages# does #afghanistan# have?", + "db_id": "world_1", + "orig_query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Afghanistan\" and isofficial = \"T\"", + "schema_with_content": "city : name (\"Ciudad del Este\", \"Blantyre\", \"Budaun\"), countrycode (\"HND\", \"DEU\", \"VAT\"), id (4062, 735, 1209), population (367000, 179208, 117865), district (\"Caraga\", \"Haute-Za\u00c3\u00afre\", \"Ciego de \u00c3\u0081vila\") | spoken_language : language (\"Gusii\", \"Kirundi\", \"Burmese\"), countrycode (\"SWE\", \"SDN\", \"SHN\"), percentage (92.0, 15.0, 2.2), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079) | official_language : language (\"Gusii\", \"Kirundi\", \"Burmese\"), countrycode (\"SWE\", \"SDN\", \"SHN\"), percentage (92.0, 15.0, 2.2), isofficial (\"T\", \"F\") | country : headofstate (\"Thomas Klestil\", \"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Miguel Trovoada\"), lifeexpectancy (51.1, 66.5, 42.9), governmentform (\"Independent Church State\", \"Independent Church State\", \"Nonmetropolitan Territory of The Netherlands\"), population (5496000, 38653600, 46844000), continent (\"Africa\", \"Oceania\", \"Oceania\"), indepyear (1991, 1830, 1960), gnp (55017.0, 4787.0, 61289.0), region (\"South America\", \"Southern Africa\", \"Micronesia\"), code2 (\"GS\", \"LU\", \"IO\"), code (\"BLZ\", \"TKL\", \"IRN\"), surfacearea (75517.0, 59.0, 4033.0), capital (3492, 3212, 1365), gnpold (88434.0, 65186.0, 3384.0), name (\"Ukraine\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\", \"South Georgia and the South Sandwich Islands\"), localname (\"Malta\", \"Canada\", \"Cocos (Keeling) Islands\")", + "schema_without_content": "city : name , countrycode , id , population , district | spoken_language : language , countrycode , percentage , isofficial | sqlite_sequence : name , seq | official_language : language , countrycode , percentage , isofficial | country : headofstate , lifeexpectancy , governmentform , population , continent , indepyear , gnp , region , code2 , code , surfacearea , capital , gnpold , name , localname Islands\"", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "official languages": "countrylanguage.IsOfficial", + "Afghanistan": "country.Name" + } + }, + { + "question": "how many #official languages# are spoken in #afghanistan# ?", + "db_id": "world_1", + "orig_query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Afghanistan\" and isofficial = \"T\"", + "schema_with_content": "city : population (107329, 107800, 145133), district (\"Botosani\", \"Virginia\", \"Samsun\"), countrycode (\"MDA\", \"TMP\", \"LIE\"), id (2635, 2704, 136), name (\"Ujjain\", \"Santa Marta\", \"Nagano\") | countrylanguage : percentage (16.9, 74.4, 14.0), language (\"Hindko\", \"Mano\", \"Bura\"), countrycode (\"CHN\", \"SLV\", \"NLD\"), isofficial (\"T\", \"F\") | state : headofstate (\"Azali Assoumani\", \"Beatrix\", \"Jos\u00c3\u00a9 Alexandre Gusm\u00c3\u00a3o\"), population (2000, 2424200, 22256000), indepyear (1066, 1991, 1947), name (\"Costa Rica\", \"Singapore\", \"Cyprus\"), gnpold (4192638.0, 6097.0, 2287.0), governmentform (\"Special Administrative Region of China\", \"Monarchy (Sultanate)\", \"Overseas Department of France\"), lifeexpectancy (72.7, 64.5, 60.8), code (\"MDG\", \"TJK\", \"SEN\"), localname (\"Belgi\u00c3\u00ab/Belgique\", \"Cocos (Keeling) Islands\", \"Hrvatska\"), continent (\"Europe\", \"Africa\", \"South America\"), gnp (13714.0, 141.0, 536.0), code2 (\"LV\", \"FM\", \"SJ\"), surfacearea (20256.0, 56785.0, 883749.0), region (\"British Islands\", \"Eastern Europe\", \"Caribbean\"), capital (3250, 1864, 2401) | nation : headofstate (\"Azali Assoumani\", \"Beatrix\", \"Jos\u00c3\u00a9 Alexandre Gusm\u00c3\u00a3o\"), population (2000, 2424200, 22256000), indepyear (1066, 1991, 1947), name (\"Costa Rica\", \"Singapore\", \"Cyprus\"), gnpold (4192638.0, 6097.0, 2287.0), governmentform (\"Special Administrative Region of China\", \"Monarchy (Sultanate)\", \"Overseas Department of France\"), lifeexpectancy (72.7, 64.5, 60.8), code (\"MDG\", \"TJK\", \"SEN\"), localname (\"Belgi\u00c3\u00ab/Belgique\", \"Cocos (Keeling) Islands\", \"Hrvatska\"), continent (\"Europe\", \"Africa\", \"South America\"), gnp (13714.0, 141.0, 536.0), code2 (\"LV\", \"FM\", \"SJ\"), surfacearea (20256.0, 56785.0, 883749.0), region (\"British Islands\", \"Eastern Europe\", \"Caribbean\"), capital (3250, 1864, 2401) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "city : population , district , countrycode , id , name | countrylanguage : percentage , language , countrycode , isofficial | state : headofstate , population , indepyear , name , gnpold , governmentform \", \"Overseas Department of France\", lifeexpectancy , code , localname Islands\", \"Hrvatska\", continent , gnp , code2 , surfacearea , region , capital | nation : headofstate , population , indepyear , name , gnpold , governmentform \", \"Overseas Department of France\", lifeexpectancy , code , localname Islands\", \"Hrvatska\", continent , gnp , code2 , surfacearea , region , capital | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "official languages": "countrylanguage.IsOfficial", + "Afghanistan": "country.Name" + } + }, + { + "question": "how many #official languages# are spoken in #afghanistan# ?", + "db_id": "world_1", + "orig_query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"Afghanistan\" and isofficial = \"T\"", + "schema_with_content": "official_language : countrycode (\"HRV\", \"SHN\", \"CUB\"), language (\"Mixtec\", \"Comorian-French\", \"Yi\"), isofficial (\"T\", \"F\"), percentage (87.0, 12.9, 15.8) | sqlite_sequence : seq (4079), name (\"city\") | country : capital (2509, 3048, 2440), gnp (24375.0, 7137.0, 258.0), lifeexpectancy (68.7, 75.4, 45.2), governmentform (\"Socialistic Republic\", \"Commonwealth of the US\", \"Constitutional Monarchy, Federation\"), indepyear (1951, 1979, 1902), surfacearea (21.0, 17364.0, 322463.0), continent (\"Asia\", \"Antarctica\", \"Antarctica\"), name (\"Bosnia and Herzegovina\", \"Thailand\", \"Northern Mariana Islands\"), code2 (\"AW\", \"AU\", \"AT\"), localname (\"Nepal\", \"Misr\", \"Cabo Verde\"), region (\"Antarctica\", \"South America\", \"Eastern Europe\"), gnpold (206025.0, 10241.0, 15519.0), headofstate (\"Akihito\", \"Beatrix\", \"Ante Jelavic\"), population (3698500, 4459000, 14786000), code (\"KOR\", \"NER\", \"ABW\") | spoken_language : countrycode (\"HRV\", \"SHN\", \"CUB\"), language (\"Mixtec\", \"Comorian-French\", \"Yi\"), isofficial (\"T\", \"F\"), percentage (87.0, 12.9, 15.8) | city : id (1642, 800, 1541), countrycode (\"DNK\", \"TZA\", \"MLI\"), name (\"D\u00c3\u00bcren\", \"Haiphong\", \"Simferopol\"), population (11900, 183377, 168072), district (\"Las Tunas\", \"Kyongsangbuk\", \"Kemerovo\")", + "schema_without_content": "official_language : countrycode , language , isofficial , percentage | sqlite_sequence : seq , name | country : capital , gnp , lifeexpectancy , governmentform , indepyear , surfacearea , continent , name , code2 , localname , region , gnpold , headofstate , population , code | spoken_language : countrycode , language , isofficial , percentage | city : id , countrycode , name , population , district", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "official languages": "countrylanguage.IsOfficial", + "Afghanistan": "country.Name" + } + }, + { + "question": "what is #name of the country# that speaks the largest number of #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name order by count(*) desc limit 1", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : name (\"Fiji Islands\", \"Lithuania\", \"France\"), gnp (195746.0, 382.0, 109.0), headofstate (\"Milan Kucan\", \"Hans-Adam II\", \"Robert Kot\u00c5\u00a1arjan\"), surfacearea (1025520.0, 1958201.0, 475442.0), indepyear (1847, 1902, 1907), lifeexpectancy (69.5, 76.8, 74.4), continent (\"South America\", \"Asia\", \"Oceania\"), capital (764, 2974, 3198), governmentform (\"Parlementary Monarchy\", \"Federal Republic\", \"Dependent Territory of the UK\"), code (\"QAT\", \"HMD\", \"DEU\"), region (\"Southern Europe\", \"Australia and New Zealand\", \"Nordic Countries\"), localname (\"Druk-Yul\", \"Angola\", \"Nouvelle-Cal\u00c3\u00a9donie\"), population (6695000, 18112000, 19000), code2 (\"HM\", \"TP\", \"ST\"), gnpold (46966.0, 8596.0, 7967.0) | nation : name (\"Fiji Islands\", \"Lithuania\", \"France\"), gnp (195746.0, 382.0, 109.0), headofstate (\"Milan Kucan\", \"Hans-Adam II\", \"Robert Kot\u00c5\u00a1arjan\"), surfacearea (1025520.0, 1958201.0, 475442.0), indepyear (1847, 1902, 1907), lifeexpectancy (69.5, 76.8, 74.4), continent (\"South America\", \"Asia\", \"Oceania\"), capital (764, 2974, 3198), governmentform (\"Parlementary Monarchy\", \"Federal Republic\", \"Dependent Territory of the UK\"), code (\"QAT\", \"HMD\", \"DEU\"), region (\"Southern Europe\", \"Australia and New Zealand\", \"Nordic Countries\"), localname (\"Druk-Yul\", \"Angola\", \"Nouvelle-Cal\u00c3\u00a9donie\"), population (6695000, 18112000, 19000), code2 (\"HM\", \"TP\", \"ST\"), gnpold (46966.0, 8596.0, 7967.0) | city : id (3456, 2603, 3368), district (\"England\", \"San Miguelito\", \"Bac Thai\"), countrycode (\"NAM\", \"PNG\", \"GUM\"), name (\"Jaunpur\", \"Unnao\", \"Manchester\"), population (209086, 128037, 189569) | countrylanguage : countrycode (\"TCA\", \"KAZ\", \"MHL\"), language (\"Pangasinan\", \"Chichewa\", \"Malay\"), isofficial (\"T\", \"F\"), percentage (47.4, 49.4, 11.1)", + "schema_without_content": "sqlite_sequence : seq , name | state : name , gnp , headofstate , surfacearea , indepyear , lifeexpectancy , continent , capital , governmentform , code , region , localname , population , code2 , gnpold | nation : name , gnp , headofstate , surfacearea , indepyear , lifeexpectancy , continent , capital , governmentform , code , region , localname , population , code2 , gnpold | city : id , district , countrycode , name , population | countrylanguage : countrycode , language , isofficial , percentage", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the country": "country.Name", + "languages": "countrylanguage.Language" + } + }, + { + "question": "what is #name of the country# that speaks the largest number of #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name order by count(*) desc limit 1", + "schema_with_content": "spoken_language : isofficial (\"T\", \"F\"), percentage (97.9, 65.6, 26.9), countrycode (\"PHL\", \"BRA\", \"ESH\"), language (\"Caribbean\", \"Min\", \"Nkole\") | city : id (1496, 4066, 2039), district (\"Maritime\", \"Alto Paran\u00c3\u00a1\", \"Yucat\u00c3\u00a1n\"), population (116929, 107722, 103579), countrycode (\"ARE\", \"MWI\", \"BTN\"), name (\"Jinzhou\", \"Ahvaz\", \"Little Rock\") | country : lifeexpectancy (71.0, 68.6, 45.3), code (\"SOM\", \"LUX\", \"TUV\"), localname (\"Botswana\", \"Cuba\", \"Ecuador\"), capital (1822, 3217, 63), indepyear (1917, 1921, 1946), surfacearea (14874.0, 238533.0, 163610.0), governmentform (\"Emirate Federation\", \"Territorial Collectivity of France\", \"Federation\"), gnp (5332.0, 510.0, 65707.0), gnpold (8670.0, 6884.0, 246.0), continent (\"Asia\", \"Oceania\", \"Antarctica\"), region (\"Western Africa\", \"Micronesia\", \"Central America\"), population (3282000, 1622000, 2424200), name (\"Niger\", \"New Caledonia\", \"Suriname\"), code2 (\"GM\", \"NR\", \"FJ\"), headofstate (\"Saddam Hussein al-Takriti\", \"Jiang Zemin\", \"Rexhep Mejdani\") | official_language : isofficial (\"T\", \"F\"), percentage (97.9, 65.6, 26.9), countrycode (\"PHL\", \"BRA\", \"ESH\"), language (\"Caribbean\", \"Min\", \"Nkole\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "spoken_language : isofficial , percentage , countrycode , language | city : id , district , population , countrycode , name | country : lifeexpectancy , code , localname , capital , indepyear , surfacearea , governmentform , gnp , gnpold , continent , region , population , name , code2 , headofstate | official_language : isofficial , percentage , countrycode , language | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "name of the country": "country.Name", + "languages": "countrylanguage.Language" + } + }, + { + "question": "give the #name of the nation# that uses the greatest amount of #languages# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name order by count(*) desc limit 1", + "schema_with_content": "state : code (\"POL\", \"DMA\", \"SLV\"), indepyear (1951, 1816, 1841), headofstate (\"Glafkos Klerides\", \"Rexhep Mejdani\", \"Akihito\"), surfacearea (47000.0, 1098581.0, 6257.0), code2 (\"EG\", \"GE\", \"BO\"), population (6097000, 11234000, 3520000), gnpold (97884.0, 6722.0, 11203.0), governmentform (\"Autonomous Area\", \"Territorial Collectivity of France\", \"Part of Denmark\"), continent (\"Oceania\", \"South America\", \"Antarctica\"), name (\"France\", \"Israel\", \"Virgin Islands, British\"), capital (1780, 3538, 917), region (\"Antarctica\", \"Australia and New Zealand\", \"Micronesia\"), lifeexpectancy (66.4, 37.6, 62.5), localname (\"Tuvalu\", \"Al-Kuwayt\", \"R\u00c3\u00a9union\"), gnp (5951.0, 982268.0, 870.0) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : language (\"Abhyasi\", \"Chamorro\", \"Dari\"), isofficial (\"T\", \"F\"), countrycode (\"SVN\", \"HTI\", \"AGO\"), percentage (39.8, 50.2, 5.4) | city : district (\"Noord-Holland\", \"Imbabura\", \"Iasi\"), id (2893, 3443, 1968), name (\"Anqing\", \"Napoli\", \"Jersey City\"), countrycode (\"BDI\", \"MLT\", \"GRL\"), population (194567, 102580, 418944) | nation : code (\"POL\", \"DMA\", \"SLV\"), indepyear (1951, 1816, 1841), headofstate (\"Glafkos Klerides\", \"Rexhep Mejdani\", \"Akihito\"), surfacearea (47000.0, 1098581.0, 6257.0), code2 (\"EG\", \"GE\", \"BO\"), population (6097000, 11234000, 3520000), gnpold (97884.0, 6722.0, 11203.0), governmentform (\"Autonomous Area\", \"Territorial Collectivity of France\", \"Part of Denmark\"), continent (\"Oceania\", \"South America\", \"Antarctica\"), name (\"France\", \"Israel\", \"Virgin Islands, British\"), capital (1780, 3538, 917), region (\"Antarctica\", \"Australia and New Zealand\", \"Micronesia\"), lifeexpectancy (66.4, 37.6, 62.5), localname (\"Tuvalu\", \"Al-Kuwayt\", \"R\u00c3\u00a9union\"), gnp (5951.0, 982268.0, 870.0)", + "schema_without_content": "state : code , indepyear , headofstate , surfacearea , code2 , population , gnpold , governmentform , continent , name , capital , region , lifeexpectancy , localname , gnp | sqlite_sequence : seq , name | countrylanguage : language , isofficial , countrycode , percentage | city : district , id , name , countrycode , population | nation : code , indepyear , headofstate , surfacearea , code2 , population , gnpold , governmentform , continent , name , capital , region , lifeexpectancy , localname , gnp", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the nation": "country.Name", + "languages": "countrylanguage" + } + }, + { + "question": "give the #name of the nation# that uses the greatest amount of #languages# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name order by count(*) desc limit 1", + "schema_with_content": "spoken_language : language (\"English\", \"Avarian\", \"Banja\"), percentage (3.9, 7.7, 67.2), isofficial (\"T\", \"F\"), countrycode (\"BTN\", \"MYT\", \"LVA\") | official_language : language (\"English\", \"Avarian\", \"Banja\"), percentage (3.9, 7.7, 67.2), isofficial (\"T\", \"F\"), countrycode (\"BTN\", \"MYT\", \"LVA\") | sqlite_sequence : seq (4079), name (\"city\") | city : district (\"San Salvador\", \"Antioquia\", \"Esmeraldas\"), id (1718, 954, 1072), countrycode (\"PSE\", \"MYT\", \"ABW\"), name (\"Comilla\", \"Ambala Sadar\", \"Calamba\"), population (122705, 93900, 118553) | country : population (8861400, 19000, 50), continent (\"North America\", \"Europe\", \"Asia\"), lifeexpectancy (68.1, 78.9, 67.9), localname (\"Ghana\", \"Nihon/Nippon\", \"Centrafrique/B\u00c3\u00aa-Afr\u00c3\u00aeka\"), gnpold (1767.0, 220.0, 9757.0), headofstate (\"Beatrix\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\", \"Mohammed VI\"), capital (549, 3813, 905), region (\"British Islands\", \"Central Africa\", \"Australia and New Zealand\"), code2 (\"OM\", \"YE\", \"TV\"), gnp (746.0, 197.0, 299.0), governmentform (\"Islamic Emirate\", \"People'sRepublic\", \"Republic\"), surfacearea (26.0, 27750.0, 264.0), name (\"El Salvador\", \"Wallis and Futuna\", \"Japan\"), code (\"SLB\", \"CUB\", \"ABW\"), indepyear (1974, 1994, 1958)", + "schema_without_content": "spoken_language : language , percentage , isofficial , countrycode | official_language : language , percentage , isofficial , countrycode | sqlite_sequence : seq , name | city : district , id , countrycode , name , population | country : population , continent , lifeexpectancy , localname , gnpold , headofstate , capital , region , code2 , gnp , governmentform , surfacearea , name , code , indepyear", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "name of the nation": "country.Name", + "languages": "countrylanguage" + } + }, + { + "question": "which #continent# has the most diverse #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.continent from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.continent order by count(*) desc limit 1", + "schema_with_content": "countrylanguage : isofficial (\"T\", \"F\"), language (\"Kongo\", \"Ainu\", \"Gusii\"), countrycode (\"TWN\", \"BLR\", \"BGD\"), percentage (76.8, 5.1, 74.4) | city : district (\"Federaatio\", \"Salzburg\", \"Tatarstan\"), name (\"Hsinchuang\", \"Suihua\", \"Ichinomiya\"), countrycode (\"AFG\", \"SWE\", \"HTI\"), id (2062, 726, 3396), population (286848, 1181126, 105760) | sqlite_sequence : seq (4079), name (\"city\") | state : localname (\"\u00c2\u00b8esko\", \"Druk-Yul\", \"Tanzania\"), name (\"Sri Lanka\", \"Central African Republic\", \"Finland\"), gnp (776.0, 116416.0, 63.2), indepyear (-660, 1907, -660), code2 (\"BO\", \"MY\", \"GE\"), continent (\"North America\", \"South America\", \"Asia\"), capital (201, 2409, 594), population (270000, 5496000, 4699000), governmentform (\"Emirate Federation\", \"Nonmetropolitan Territory of New Zealand\", \"Territorial Collectivity of France\"), region (\"Central America\", \"Western Africa\", \"Melanesia\"), code (\"ECU\", \"SYR\", \"RUS\"), lifeexpectancy (65.5, 81.1, 68.7), headofstate (\"Carl XVI Gustaf\", \"Carl XVI Gustaf\", \"Mohammed VI\"), surfacearea (323877.0, 2040.0, 322463.0), gnpold (2023.0, 743.0, 18862.0) | nation : localname (\"\u00c2\u00b8esko\", \"Druk-Yul\", \"Tanzania\"), name (\"Sri Lanka\", \"Central African Republic\", \"Finland\"), gnp (776.0, 116416.0, 63.2), indepyear (-660, 1907, -660), code2 (\"BO\", \"MY\", \"GE\"), continent (\"North America\", \"South America\", \"Asia\"), capital (201, 2409, 594), population (270000, 5496000, 4699000), governmentform (\"Emirate Federation\", \"Nonmetropolitan Territory of New Zealand\", \"Territorial Collectivity of France\"), region (\"Central America\", \"Western Africa\", \"Melanesia\"), code (\"ECU\", \"SYR\", \"RUS\"), lifeexpectancy (65.5, 81.1, 68.7), headofstate (\"Carl XVI Gustaf\", \"Carl XVI Gustaf\", \"Mohammed VI\"), surfacearea (323877.0, 2040.0, 322463.0), gnpold (2023.0, 743.0, 18862.0)", + "schema_without_content": "countrylanguage : isofficial , language , countrycode , percentage | city : district , name , countrycode , id , population | sqlite_sequence : seq , name | state : localname , name , gnp , indepyear , code2 , continent , capital , population , governmentform , region , code , lifeexpectancy , headofstate , surfacearea , gnpold | nation : localname , name , gnp , indepyear , code2 , continent , capital , population , governmentform , region , code , lifeexpectancy , headofstate , surfacearea , gnpold", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continent": "country.Continent", + "languages": "countrylanguage.Language" + } + }, + { + "question": "which #continent# has the most diverse #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.continent from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.continent order by count(*) desc limit 1", + "schema_with_content": "city : id (1220, 2303, 3544), population (940589, 102121, 95761), countrycode (\"VAT\", \"PLW\", \"JAM\"), name (\"Norwich\", \"Ja\u00c3\u00ba\", \"Chonju\"), district (\"Belgorod\", \"Johor\", \"Manitoba\") | official_language : isofficial (\"T\", \"F\"), percentage (31.8, 1.6, 4.4), countrycode (\"WSM\", \"GHA\", \"SLB\"), language (\"Venda\", \"Zande\", \"Tharu\") | spoken_language : isofficial (\"T\", \"F\"), percentage (31.8, 1.6, 4.4), countrycode (\"WSM\", \"GHA\", \"SLB\"), language (\"Venda\", \"Zande\", \"Tharu\") | country : headofstate (\"Lansana Cont\u00c3\u00a9\", \"Saddam Hussein al-Takriti\", \"Beatrix\"), gnp (6398.0, 3563.0, 40.7), localname (\"Guyana\", \"Hrvatska\", \"Panam\u00c3\u00a1\"), code2 (\"PH\", \"IO\", \"VG\"), governmentform (\"Constitutional Monarchy, Federation\", \"Constitutional Monarchy, Federation\", \"Federation\"), gnpold (220.0, 7967.0, 64926.0), surfacearea (102173.0, 505992.0, 475442.0), region (\"Nordic Countries\", \"Baltic Countries\", \"Central America\"), continent (\"South America\", \"North America\", \"Oceania\"), population (6217000, 885000, 68000), capital (3306, 2437, 3171), name (\"Thailand\", \"United Arab Emirates\", \"Cape Verde\"), indepyear (1810, 1993, 1994), lifeexpectancy (51.6, 67.9, 61.1), code (\"UGA\", \"MLT\", \"MDV\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : id , population , countrycode , name , district | official_language : isofficial , percentage , countrycode , language | spoken_language : isofficial , percentage , countrycode , language | country : headofstate , gnp , localname , code2 , governmentform , gnpold , surfacearea , region , continent , population , capital , name , indepyear , lifeexpectancy , code | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "continent": "country.Continent", + "languages": "countrylanguage.Language" + } + }, + { + "question": "which #continent# speaks the most #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.continent from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.continent order by count(*) desc limit 1", + "schema_with_content": "countrylanguage : language (\"Friuli\", \"Ibibio\", \"Pilipino\"), percentage (91.5, 22.7, 81.7), countrycode (\"MDV\", \"NGA\", \"KEN\"), isofficial (\"T\", \"F\") | city : name (\"Vladivostok\", \"Palembang\", \"Pasay\"), district (\"al-Minya\", \"Konya\", \"Cort\u00c3\u00a9s\"), id (1469, 3633, 429), countrycode (\"TUR\", \"BRB\", \"TKL\"), population (170878, 107789, 398418) | sqlite_sequence : seq (4079), name (\"city\") | nation : code (\"ESH\", \"PNG\", \"BRA\"), lifeexpectancy (50.2, 80.1, 50.2), region (\"South America\", \"Antarctica\", \"Southern and Central Asia\"), continent (\"Antarctica\", \"South America\", \"Asia\"), surfacearea (83600.0, 23200.0, 449964.0), gnp (2841.0, 1206.0, 96.0), indepyear (1941, 1910, 1993), population (12000, 180000, 67702000), name (\"Niger\", \"Honduras\", \"Bahamas\"), localname (\"Portugal\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\", \"Al-Kuwayt\"), capital (3208, 2430, 2460), gnpold (2711.0, 584.0, 2141.0), headofstate (\"Jorge Samp\u00c3\u00a3io\", \"Rexhep Mejdani\", \"Fidel Castro Ruz\"), governmentform (\"Islamic Emirate\", \"Occupied by Marocco\", \"Commonwealth of the US\"), code2 (\"YE\", \"IQ\", \"VC\") | state : code (\"ESH\", \"PNG\", \"BRA\"), lifeexpectancy (50.2, 80.1, 50.2), region (\"South America\", \"Antarctica\", \"Southern and Central Asia\"), continent (\"Antarctica\", \"South America\", \"Asia\"), surfacearea (83600.0, 23200.0, 449964.0), gnp (2841.0, 1206.0, 96.0), indepyear (1941, 1910, 1993), population (12000, 180000, 67702000), name (\"Niger\", \"Honduras\", \"Bahamas\"), localname (\"Portugal\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\", \"Al-Kuwayt\"), capital (3208, 2430, 2460), gnpold (2711.0, 584.0, 2141.0), headofstate (\"Jorge Samp\u00c3\u00a3io\", \"Rexhep Mejdani\", \"Fidel Castro Ruz\"), governmentform (\"Islamic Emirate\", \"Occupied by Marocco\", \"Commonwealth of the US\"), code2 (\"YE\", \"IQ\", \"VC\")", + "schema_without_content": "countrylanguage : language , percentage , countrycode , isofficial | city : name , district , id , countrycode , population | sqlite_sequence : seq , name | nation : code , lifeexpectancy , region , continent , surfacearea , gnp , indepyear , population , name , localname , capital , gnpold , headofstate , governmentform , code2 | state : code , lifeexpectancy , region , continent , surfacearea , gnp , indepyear , population , name , localname , capital , gnpold , headofstate , governmentform , code2", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continent": "country.Continent", + "languages": "countrylanguage.Language" + } + }, + { + "question": "which #continent# speaks the most #languages# ?", + "db_id": "world_1", + "orig_query": "select t1.continent from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.continent order by count(*) desc limit 1", + "schema_with_content": "official_language : countrycode (\"PSE\", \"LIE\", \"CCK\"), language (\"Luhya\", \"Lithuanian\", \"Kongo\"), isofficial (\"T\", \"F\"), percentage (81.0, 1.4, 34.7) | spoken_language : countrycode (\"PSE\", \"LIE\", \"CCK\"), language (\"Luhya\", \"Lithuanian\", \"Kongo\"), isofficial (\"T\", \"F\"), percentage (81.0, 1.4, 34.7) | sqlite_sequence : seq (4079), name (\"city\") | city : id (3182, 2681, 3846), name (\"Chungli\", \"L\u00c3\u00bcnen\", \"Jingdezhen\"), district (\"Greater Accra\", \"Skopje\", \"Indiana\"), population (100836, 121578, 752319), countrycode (\"ESH\", \"TZA\", \"BOL\") | country : localname (\"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\", \"Terres australes fran\u00c3\u00a7aises\", \"Per\u00c3\u00ba/Piruw\"), code2 (\"EC\", \"CU\", \"GP\"), indepyear (1944, 1978, 1976), name (\"Macao\", \"Latvia\", \"Israel\"), gnpold (2141.0, 6180.0, 7967.0), governmentform (\"Socialistic Republic\", \"Overseas Department of France\", \"Nonmetropolitan Territory of New Zealand\"), code (\"GTM\", \"MNP\", \"ROM\"), capital (2515, 538, 2973), surfacearea (112622.0, 4000.0, 236.0), headofstate (\"\u00c5\u00a0tipe Mesic\", \"Norodom Sihanouk\", \"Carlos Roberto Flores Facuss\u00c3\u00a9\"), continent (\"Asia\", \"Asia\", \"North America\"), region (\"Southern Africa\", \"Eastern Africa\", \"Micronesia\"), gnp (44806.0, 9.0, 11500.0), lifeexpectancy (56.5, 71.6, 41.3), population (11201000, 4023000, 15864000)", + "schema_without_content": "official_language : countrycode , language , isofficial , percentage | spoken_language : countrycode , language , isofficial , percentage | sqlite_sequence : seq , name | city : id , name , district , population , countrycode | country : localname \", \"Terres australes fran\u00c3\u00a7aises\", \"Per\u00c3\u00ba/Piruw\", code2 , indepyear , name , gnpold , governmentform , code , capital , surfacearea , headofstate , continent , region , gnp , lifeexpectancy , population", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "continent": "country.Continent", + "languages": "countrylanguage.Language" + } + }, + { + "question": "how many #countries# speak both #english# and #dutch# ?", + "db_id": "world_1", + "orig_query": "select count(*) from (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\")", + "schema_with_content": "state : localname (\"Gibraltar\", \"R\u00c3\u00a9union\", \"Saint Kitts and Nevis\"), gnp (510.0, 7526.0, 722.0), lifeexpectancy (80.1, 80.1, 76.7), continent (\"Oceania\", \"South America\", \"Europe\"), code2 (\"GS\", \"AO\", \"AF\"), gnpold (1627.0, 3545.0, 539.0), code (\"IOT\", \"WLF\", \"AUS\"), region (\"Southern and Central Asia\", \"British Islands\", \"Melanesia\"), surfacearea (71740.0, 1285216.0, 1267000.0), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Emirate Federation\", \"Islamic Emirate\"), name (\"Armenia\", \"Central African Republic\", \"Palestine\"), capital (608, 1530, 2295), population (6695000, 62565000, 435700), indepyear (1492, 1960, 1962), headofstate (\"Bernard Dowiyogo\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\", \"Taufa'ahau Tupou IV\") | countrylanguage : language (\"Kymri\", \"Malagasy\", \"Berberi\"), percentage (4.5, 35.8, 6.9), isofficial (\"T\", \"F\"), countrycode (\"SDN\", \"TUV\", \"NCL\") | city : countrycode (\"BGD\", \"IDN\", \"JAM\"), name (\"Bissau\", \"Chonan\", \"al-Sib\"), id (1899, 1665, 2364), district (\"Li\u00c3\u00a8ge\", \"Rio Grande do Norte\", \"Khon Kaen\"), population (99799, 89388, 134222) | nation : localname (\"Gibraltar\", \"R\u00c3\u00a9union\", \"Saint Kitts and Nevis\"), gnp (510.0, 7526.0, 722.0), lifeexpectancy (80.1, 80.1, 76.7), continent (\"Oceania\", \"South America\", \"Europe\"), code2 (\"GS\", \"AO\", \"AF\"), gnpold (1627.0, 3545.0, 539.0), code (\"IOT\", \"WLF\", \"AUS\"), region (\"Southern and Central Asia\", \"British Islands\", \"Melanesia\"), surfacearea (71740.0, 1285216.0, 1267000.0), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Emirate Federation\", \"Islamic Emirate\"), name (\"Armenia\", \"Central African Republic\", \"Palestine\"), capital (608, 1530, 2295), population (6695000, 62565000, 435700), indepyear (1492, 1960, 1962), headofstate (\"Bernard Dowiyogo\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\", \"Taufa'ahau Tupou IV\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "state : localname , gnp , lifeexpectancy , continent , code2 , gnpold , code , region , surfacearea , governmentform , name , capital , population , indepyear , headofstate | countrylanguage : language , percentage , isofficial , countrycode | city : countrycode , name , id , district , population | nation : localname , gnp , lifeexpectancy , continent , code2 , gnpold , code , region , surfacearea , governmentform , name , capital , population , indepyear , headofstate | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country.Name", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "how many #countries# speak both #english# and #dutch# ?", + "db_id": "world_1", + "orig_query": "select count(*) from (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\")", + "schema_with_content": "country : code (\"TMP\", \"TWN\", \"KIR\"), lifeexpectancy (77.0, 47.4, 70.7), governmentform (\"Republic\", \"Islamic Emirate\", \"Nonmetropolitan Territory of France\"), gnpold (15076.0, 2149.0, 573.0), gnp (1630.0, 2352.0, 55017.0), surfacearea (1705.0, 10990.0, 12189.0), localname (\"Al-Bahrayn\", \"Kiribati\", \"Timor Timur\"), continent (\"Africa\", \"Africa\", \"Africa\"), code2 (\"SV\", \"FM\", \"ER\"), population (1000, 638000, 0), indepyear (1975, 1991, 1948), region (\"North America\", \"Eastern Europe\", \"Central Africa\"), headofstate (\"Natsagiin Bagabandi\", \"Idriss D\u00c3\u00a9by\", \"Mohammad Omar\"), capital (586, 902, 3493), name (\"Cuba\", \"French Guiana\", \"Argentina\") | city : district (\"Southern Mindanao\", \"Quind\u00c3\u00ado\", \"Siem Reap\"), id (319, 3496, 2024), population (184859, 107006, 242820), name (\"El Tigre\", \"Serampore\", \"Offa\"), countrycode (\"SVK\", \"SLE\", \"NCL\") | sqlite_sequence : seq (4079), name (\"city\") | official_language : language (\"Miskito\", \"Mbete\", \"Malajalam\"), countrycode (\"BLR\", \"JOR\", \"MCO\"), percentage (14.3, 90.7, 18.6), isofficial (\"T\", \"F\") | spoken_language : language (\"Miskito\", \"Mbete\", \"Malajalam\"), countrycode (\"BLR\", \"JOR\", \"MCO\"), percentage (14.3, 90.7, 18.6), isofficial (\"T\", \"F\")", + "schema_without_content": "country : code , lifeexpectancy , governmentform , gnpold , gnp , surfacearea , localname , continent , code2 , population , indepyear , region , headofstate , capital , name | city : district , id , population , name , countrycode | sqlite_sequence : seq , name | official_language : language , countrycode , percentage , isofficial | spoken_language : language , countrycode , percentage , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "countries": "country.Name", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "what is the number of #nations# that use #english# and #dutch# ?", + "db_id": "world_1", + "orig_query": "select count(*) from (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\")", + "schema_with_content": "nation : gnp (4397.0, 11345.0, 510.0), population (4380000, 7160400, 31471000), surfacearea (10990.0, 185180.0, 78866.0), gnpold (1392448.0, 6097.0, 17797.0), governmentform (\"Constitutional Monarchy (Emirate)\", \"Co-administrated\", \"Islamic Emirate\"), continent (\"Oceania\", \"South America\", \"South America\"), code2 (\"AQ\", \"YU\", \"NP\"), localname (\"Guin\u00c3\u00a9-Bissau\", \"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\", \"Uruguay\"), code (\"TON\", \"MCO\", \"GRD\"), capital (2710, 2514, 2689), indepyear (1970, 1958, 1804), name (\"Antarctica\", \"Ghana\", \"San Marino\"), region (\"Polynesia\", \"North America\", \"Southern Europe\"), lifeexpectancy (60.9, 68.4, 63.1), headofstate (\"Charles Taylor\", \"Hamad ibn Khalifa al-Thani\", \"Milan Kucan\") | state : gnp (4397.0, 11345.0, 510.0), population (4380000, 7160400, 31471000), surfacearea (10990.0, 185180.0, 78866.0), gnpold (1392448.0, 6097.0, 17797.0), governmentform (\"Constitutional Monarchy (Emirate)\", \"Co-administrated\", \"Islamic Emirate\"), continent (\"Oceania\", \"South America\", \"South America\"), code2 (\"AQ\", \"YU\", \"NP\"), localname (\"Guin\u00c3\u00a9-Bissau\", \"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\", \"Uruguay\"), code (\"TON\", \"MCO\", \"GRD\"), capital (2710, 2514, 2689), indepyear (1970, 1958, 1804), name (\"Antarctica\", \"Ghana\", \"San Marino\"), region (\"Polynesia\", \"North America\", \"Southern Europe\"), lifeexpectancy (60.9, 68.4, 63.1), headofstate (\"Charles Taylor\", \"Hamad ibn Khalifa al-Thani\", \"Milan Kucan\") | city : name (\"Doha\", \"New Orleans\", \"Diyarbakir\"), countrycode (\"COM\", \"MMR\", \"TTO\"), population (145133, 2345, 1271403), id (2421, 1299, 1709), district (\"Wielkopolskie\", \"Wallis\", \"Bushehr\") | sqlite_sequence : name (\"city\"), seq (4079) | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"BEN\", \"SPM\", \"SHN\"), language (\"Sinaberberi\", \"Italian\", \"Kannada\"), percentage (33.0, 63.1, 91.5)", + "schema_without_content": "nation : gnp , population , surfacearea , gnpold , governmentform \", \"Co-administrated\", \"Islamic Emirate\", continent , code2 , localname \", \"Uruguay\", code , capital , indepyear , name , region , lifeexpectancy , headofstate | state : gnp , population , surfacearea , gnpold , governmentform \", \"Co-administrated\", \"Islamic Emirate\", continent , code2 , localname \", \"Uruguay\", code , capital , indepyear , name , region , lifeexpectancy , headofstate | city : name , countrycode , population , id , district | sqlite_sequence : name , seq | countrylanguage : isofficial , countrycode , language , percentage", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "nations": "country.Name", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "what is the number of #nations# that use #english# and #dutch# ?", + "db_id": "world_1", + "orig_query": "select count(*) from (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\")", + "schema_with_content": "city : name (\"Craiova\", \"Kitakyushu\", \"Toulon\"), district (\"Kalmykia\", \"Bol\u00c3\u00advar\", \"La Rioja\"), id (882, 2276, 3360), population (97600, 231527, 120838), countrycode (\"IDN\", \"GBR\", \"FLK\") | country : localname (\"Jugoslavija\", \"\u00c2\u00b4Uman\", \"Argentina\"), indepyear (1968, 1981, 1917), gnp (776739.0, 10226.0, 1990.0), population (453000, 885000, 270000), code2 (\"MG\", \"MO\", \"CZ\"), headofstate (\"Petar Stojanov\", \"Shahabuddin Ahmad\", \"Blaise Compaor\u00c3\u00a9\"), region (\"Melanesia\", \"Polynesia\", \"Eastern Europe\"), governmentform (\"Parliamentary Coprincipality\", \"People'sRepublic\", \"Parlementary Monarchy\"), continent (\"Antarctica\", \"Africa\", \"North America\"), code (\"JAM\", \"SHN\", \"FRO\"), surfacearea (9251.0, 78.0, 242.0), name (\"Russian Federation\", \"Macao\", \"Poland\"), gnpold (1915.0, 243948.0, 45914.0), capital (587, 4067, 2452), lifeexpectancy (60.2, 77.1, 75.2) | official_language : isofficial (\"T\", \"F\"), percentage (9.7, 95.7, 52.6), countrycode (\"LSO\", \"ERI\", \"GUY\"), language (\"Creole French\", \"Cebuano\", \"Boa\") | spoken_language : isofficial (\"T\", \"F\"), percentage (9.7, 95.7, 52.6), countrycode (\"LSO\", \"ERI\", \"GUY\"), language (\"Creole French\", \"Cebuano\", \"Boa\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "city : name , district , id , population , countrycode | country : localname , indepyear , gnp , population , code2 , headofstate , region , governmentform , continent , code , surfacearea , name , gnpold , capital , lifeexpectancy | official_language : isofficial , percentage , countrycode , language | spoken_language : isofficial , percentage , countrycode , language | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "nations": "country.Name", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "what are the #names of nations# speak both #english# and #french# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\"", + "schema_with_content": "nation : name (\"Niue\", \"Tajikistan\", \"Niue\"), capital (1365, 3248, 3225), region (\"Eastern Europe\", \"Micronesia\", \"Southern and Central Asia\"), lifeexpectancy (59.8, 73.3, 64.1), continent (\"South America\", \"Europe\", \"Oceania\"), localname (\"Nepal\", \"Cameroun/Cameroon\", \"Saint Lucia\"), surfacearea (181.0, 923768.0, 14874.0), gnp (16321.0, 2328.0, 14194.0), gnpold (993.0, 1084.0, 58549.0), headofstate (\"Fernando de la R\u00c3\u00baa\", \"Abdiqassim Salad Hassan\", \"Valdas Adamkus\"), population (21000, 11201000, 14786000), indepyear (1910, 1946, 1965), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Constitutional Monarchy\", \"Socialistic State\"), code2 (\"SC\", \"FO\", \"PE\"), code (\"MWI\", \"PRY\", \"ZMB\") | countrylanguage : countrycode (\"PRY\", \"ABW\", \"CXR\"), language (\"Cakchiquel\", \"Khoekhoe\", \"Mixtec\"), isofficial (\"T\", \"F\"), percentage (76.7, 10.3, 95.0) | state : name (\"Niue\", \"Tajikistan\", \"Niue\"), capital (1365, 3248, 3225), region (\"Eastern Europe\", \"Micronesia\", \"Southern and Central Asia\"), lifeexpectancy (59.8, 73.3, 64.1), continent (\"South America\", \"Europe\", \"Oceania\"), localname (\"Nepal\", \"Cameroun/Cameroon\", \"Saint Lucia\"), surfacearea (181.0, 923768.0, 14874.0), gnp (16321.0, 2328.0, 14194.0), gnpold (993.0, 1084.0, 58549.0), headofstate (\"Fernando de la R\u00c3\u00baa\", \"Abdiqassim Salad Hassan\", \"Valdas Adamkus\"), population (21000, 11201000, 14786000), indepyear (1910, 1946, 1965), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Constitutional Monarchy\", \"Socialistic State\"), code2 (\"SC\", \"FO\", \"PE\"), code (\"MWI\", \"PRY\", \"ZMB\") | sqlite_sequence : name (\"city\"), seq (4079) | city : countrycode (\"CZE\", \"BEN\", \"TUV\"), name (\"San Francisco del Rinc\u00c3\u00b3n\", \"Namibe\", \"Bag\u00c3\u00a9\"), population (148006, 128651, 97855), id (2105, 12, 3046), district (\"Wales\", \"Macau\", \"Casablanca\")", + "schema_without_content": "nation : name , capital , region , lifeexpectancy , continent , localname , surfacearea , gnp , gnpold , headofstate , population , indepyear , governmentform , code2 , code | countrylanguage : countrycode , language , isofficial , percentage | state : name , capital , region , lifeexpectancy , continent , localname , surfacearea , gnp , gnpold , headofstate , population , indepyear , governmentform , code2 , code | sqlite_sequence : name , seq | city : countrycode , name , population , id , district", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language" + } + }, + { + "question": "what are the #names of nations# speak both #english# and #french# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\"", + "schema_with_content": "country : headofstate (\"Carlo Azeglio Ciampi\", \"Ali Abdallah Salih\", \"Qabus ibn Sa\u00c2\u00b4id\"), governmentform (\"Administrated by the UN\", \"Constitutional Monarchy, Federation\", \"Nonmetropolitan Territory of New Zealand\"), surfacearea (331689.0, 96.0, 587041.0), code (\"TUR\", \"SVN\", \"GUF\"), indepyear (1994, 1821, 1867), lifeexpectancy (72.3, 49.0, 68.9), continent (\"Africa\", \"Antarctica\", \"Africa\"), capital (3065, 549, 3791), name (\"Macao\", \"Norfolk Island\", \"Netherlands\"), code2 (\"NI\", \"NA\", \"VE\"), gnp (8255.0, 16321.0, 197.0), population (1158000, 7651000, 4807000), region (\"Northern Africa\", \"Western Europe\", \"Western Africa\"), localname (\"Schweiz/Suisse/Svizzera/Svizra\", \"Mauritius\", \"Polska\"), gnpold (392911.0, 2141.0, 6180.0) | city : id (2102, 2290, 2384), population (90507, 95052, 287151), countrycode (\"CAN\", \"ESH\", \"REU\"), district (\"Djibouti\", \"Tbilisi\", \"Nakhon Ratchasima\"), name (\"T\u00c5\u00a1aikovski\", \"Arusha\", \"Candelaria\") | spoken_language : language (\"Nuer\", \"Mbum\", \"Mpongwe\"), isofficial (\"T\", \"F\"), countrycode (\"MYS\", \"NER\", \"GIN\"), percentage (95.7, 87.9, 86.6) | sqlite_sequence : name (\"city\"), seq (4079) | official_language : language (\"Nuer\", \"Mbum\", \"Mpongwe\"), isofficial (\"T\", \"F\"), countrycode (\"MYS\", \"NER\", \"GIN\"), percentage (95.7, 87.9, 86.6)", + "schema_without_content": "country : headofstate , governmentform , surfacearea , code , indepyear , lifeexpectancy , continent , capital , name , code2 , gnp , population , region , localname , gnpold | city : id , population , countrycode , district , name | spoken_language : language , isofficial , countrycode , percentage | sqlite_sequence : name , seq | official_language : language , isofficial , countrycode , percentage", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language" + } + }, + { + "question": "give the #names of nations# that speak both #english# and #french# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\"", + "schema_with_content": "countrylanguage : countrycode (\"AZE\", \"BRB\", \"AZE\"), isofficial (\"T\", \"F\"), language (\"Gurma\", \"Nung\", \"Belorussian\"), percentage (7.1, 30.0, 4.6) | sqlite_sequence : name (\"city\"), seq (4079) | city : id (1673, 2439, 4058), countrycode (\"SUR\", \"VNM\", \"GUF\"), name (\"Stuttgart\", \"Abottabad\", \"Etawah\"), district (\"West Kasai\", \"Attika\", \"St. Catherine\"), population (235073, 100447, 281352) | nation : continent (\"North America\", \"Europe\", \"North America\"), localname (\"As-Sahrawiya\", \"Al-Urdunn\", \"T\u00c3\u00bcrkmenostan\"), code (\"VNM\", \"HUN\", \"KIR\"), surfacearea (185180.0, 923768.0, 26338.0), gnp (8255.0, 97.0, 3527.0), name (\"Mongolia\", \"Czech Republic\", \"Poland\"), indepyear (1841, 1945, 1066), headofstate (\"Vicente Fox Quesada\", \"Hamad ibn Isa al-Khalifa\", \"Bernard Dowiyogo\"), region (\"Australia and New Zealand\", \"Micronesia/Caribbean\", \"Australia and New Zealand\"), population (4807000, 3869000, 4699000), code2 (\"TK\", \"GQ\", \"PK\"), lifeexpectancy (77.0, 63.4, 71.4), gnpold (2287.0, 1084.0, 858.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"People'sRepublic\", \"Islamic Emirate\"), capital (553, 2726, 3172) | state : continent (\"North America\", \"Europe\", \"North America\"), localname (\"As-Sahrawiya\", \"Al-Urdunn\", \"T\u00c3\u00bcrkmenostan\"), code (\"VNM\", \"HUN\", \"KIR\"), surfacearea (185180.0, 923768.0, 26338.0), gnp (8255.0, 97.0, 3527.0), name (\"Mongolia\", \"Czech Republic\", \"Poland\"), indepyear (1841, 1945, 1066), headofstate (\"Vicente Fox Quesada\", \"Hamad ibn Isa al-Khalifa\", \"Bernard Dowiyogo\"), region (\"Australia and New Zealand\", \"Micronesia/Caribbean\", \"Australia and New Zealand\"), population (4807000, 3869000, 4699000), code2 (\"TK\", \"GQ\", \"PK\"), lifeexpectancy (77.0, 63.4, 71.4), gnpold (2287.0, 1084.0, 858.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"People'sRepublic\", \"Islamic Emirate\"), capital (553, 2726, 3172)", + "schema_without_content": "countrylanguage : countrycode , isofficial , language , percentage | sqlite_sequence : name , seq | city : id , countrycode , name , district , population | nation : continent , localname , code , surfacearea , gnp , name , indepyear , headofstate , region , population , code2 , lifeexpectancy , gnpold , governmentform , capital | state : continent , localname , code , surfacearea , gnp , name , indepyear , headofstate , region , population , code2 , lifeexpectancy , gnpold , governmentform , capital", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language" + } + }, + { + "question": "give the #names of nations# that speak both #english# and #french# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\"", + "schema_with_content": "official_language : countrycode (\"PRY\", \"SAU\", \"TUV\"), isofficial (\"T\", \"F\"), language (\"Icelandic\", \"Avarian\", \"Mende\"), percentage (22.4, 2.4, 5.0) | city : name (\"Wuzhou\", \"N\u00c3\u00aemes\", \"Machida\"), population (149080, 97855, 1398800), id (3430, 344, 2856), countrycode (\"IRL\", \"GRL\", \"TKM\"), district (\"Edo & Delta\", \"Alagoas\", \"Alsace\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : countrycode (\"PRY\", \"SAU\", \"TUV\"), isofficial (\"T\", \"F\"), language (\"Icelandic\", \"Avarian\", \"Mende\"), percentage (22.4, 2.4, 5.0) | country : code (\"GUY\", \"NCL\", \"MRT\"), code2 (\"CD\", \"CI\", \"IT\"), name (\"Martinique\", \"Philippines\", \"Turks and Caicos Islands\"), gnp (12178.0, 24375.0, 264478.0), population (27000, 12878000, 77000), region (\"Micronesia/Caribbean\", \"Nordic Countries\", \"Eastern Asia\"), headofstate (\"Mohammed Abdel Aziz\", \"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\", \"Alpha Oumar Konar\u00c3\u00a9\"), governmentform (\"People'sRepublic\", \"Occupied by Marocco\", \"Constitutional Monarchy, Federation\"), capital (766, 3306, 2912), lifeexpectancy (53.6, 42.5, 71.4), surfacearea (207600.0, 2586.0, 3287263.0), indepyear (1581, 1929, 1816), gnpold (2141.0, None, 129092.0), localname (\"Montserrat\", \"B\u00c3\u00a9nin\", \"Ertra\"), continent (\"North America\", \"Asia\", \"Europe\")", + "schema_without_content": "official_language : countrycode , isofficial , language , percentage | city : name , population , id , countrycode , district | sqlite_sequence : seq , name | spoken_language : countrycode , isofficial , language , percentage | country : code , code2 , name , gnp , population , region , headofstate , governmentform , capital , lifeexpectancy , surfacearea , indepyear , gnpold , localname , continent", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language" + } + }, + { + "question": "what are the #names of nations# where both #english# and #french# are #official languages# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\" and t2.isofficial = \"T\"", + "schema_with_content": "countrylanguage : percentage (90.7, 14.1, 16.5), language (\"Gorane\", \"Chinese\", \"Kannada\"), countrycode (\"CHL\", \"CXR\", \"VIR\"), isofficial (\"T\", \"F\") | city : id (2233, 3400, 2677), population (178683, 90400, 113608), name (\"Tarragona\", \"Patna\", \"Rzesz\u00c3\u00b3w\"), district (\"Nampo-si\", \"\u00c5\u00a0irak\", \"Campania\"), countrycode (\"MRT\", \"NRU\", \"BTN\") | state : region (\"Micronesia\", \"Southern and Central Asia\", \"Middle East\"), code (\"BWA\", \"GNB\", \"ERI\"), gnp (1424285.0, 195746.0, 6.0), code2 (\"KZ\", \"UZ\", \"YE\"), indepyear (1878, 1993, 1921), lifeexpectancy (50.1, 70.8, 51.6), continent (\"South America\", \"Antarctica\", \"Antarctica\"), gnpold (1915.0, 263451.0, 45914.0), surfacearea (726.0, 193.0, 117600.0), capital (2409, 3047, 3217), name (\"Cyprus\", \"Canada\", \"Samoa\"), governmentform (\"Monarchy (Sultanate)\", \"Administrated by the UN\", \"Socialistic State\"), headofstate (\"Tr\u00c3\u00a2n Duc Luong\", \"Bhumibol Adulyadej\", \"Frederick Chiluba\"), localname (\"Luxembourg/L\u00c3\u00abtzebuerg\", \"\u00e2\u0080\u0093\", \"Centrafrique/B\u00c3\u00aa-Afr\u00c3\u00aeka\"), population (3337000, 4473000, 8222000) | nation : region (\"Micronesia\", \"Southern and Central Asia\", \"Middle East\"), code (\"BWA\", \"GNB\", \"ERI\"), gnp (1424285.0, 195746.0, 6.0), code2 (\"KZ\", \"UZ\", \"YE\"), indepyear (1878, 1993, 1921), lifeexpectancy (50.1, 70.8, 51.6), continent (\"South America\", \"Antarctica\", \"Antarctica\"), gnpold (1915.0, 263451.0, 45914.0), surfacearea (726.0, 193.0, 117600.0), capital (2409, 3047, 3217), name (\"Cyprus\", \"Canada\", \"Samoa\"), governmentform (\"Monarchy (Sultanate)\", \"Administrated by the UN\", \"Socialistic State\"), headofstate (\"Tr\u00c3\u00a2n Duc Luong\", \"Bhumibol Adulyadej\", \"Frederick Chiluba\"), localname (\"Luxembourg/L\u00c3\u00abtzebuerg\", \"\u00e2\u0080\u0093\", \"Centrafrique/B\u00c3\u00aa-Afr\u00c3\u00aeka\"), population (3337000, 4473000, 8222000) | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "countrylanguage : percentage , language , countrycode , isofficial | city : id , population , name , district , countrycode | state : region , code , gnp , code2 , indepyear , lifeexpectancy , continent , gnpold , surfacearea , capital , name , governmentform \", \"Administrated by the UN\", \"Socialistic State\", headofstate , localname , population | nation : region , code , gnp , code2 , indepyear , lifeexpectancy , continent , gnpold , surfacearea , capital , name , governmentform \", \"Administrated by the UN\", \"Socialistic State\", headofstate , localname , population | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language", + "official languages": "countrylanguage.IsOfficial" + } + }, + { + "question": "what are the #names of nations# where both #english# and #french# are #official languages# ?", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\" and t2.isofficial = \"T\"", + "schema_with_content": "country : localname (\"Qazaqstan\", \"Norge\", \"S\u00c3\u00a9n\u00c3\u00a9gal/Sounougal\"), indepyear (1981, 1944, 1971), gnp (681.0, 19756.0, 6313.0), continent (\"Oceania\", \"North America\", \"North America\"), lifeexpectancy (68.4, 71.3, 75.8), surfacearea (475442.0, 28051.0, 29800.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"People'sRepublic\", \"Constitutional Monarchy\"), population (40377000, 417000, 1158000), capital (1532, 1380, 2728), name (\"Bhutan\", \"Cook Islands\", \"Pakistan\"), gnpold (23383.0, 17797.0, 5279.0), region (\"Eastern Europe\", \"South America\", \"Eastern Asia\"), code2 (\"BI\", \"NF\", \"BM\"), headofstate (\"Mswati III\", \"V\u00c3\u00a1clav Havel\", \"Vojislav Ko\u00c5\u00a1tunica\"), code (\"COK\", \"ISL\", \"MLI\") | official_language : language (\"Dorbet\", \"Papuan Languages\", \"Pitcairnese\"), isofficial (\"T\", \"F\"), percentage (69.9, 19.5, 3.9), countrycode (\"FSM\", \"TCD\", \"BLR\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : language (\"Dorbet\", \"Papuan Languages\", \"Pitcairnese\"), isofficial (\"T\", \"F\"), percentage (69.9, 19.5, 3.9), countrycode (\"FSM\", \"TCD\", \"BLR\") | city : name (\"Liupanshui\", \"Reno\", \"Huntington Beach\"), district (\"Abu Dhabi\", \"Inner Mongolia\", \"Pyongyang-si\"), population (154264, 1217359, 115965), countrycode (\"MAR\", \"MYT\", \"MUS\"), id (318, 1785, 3681)", + "schema_without_content": "country : localname , indepyear , gnp , continent , lifeexpectancy , surfacearea , governmentform , population , capital , name , gnpold , region , code2 , headofstate , code | official_language : language , isofficial , percentage , countrycode | sqlite_sequence : seq , name | spoken_language : language , isofficial , percentage , countrycode | city : name , district , population , countrycode , id", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of nations": "country.Name", + "English": "countrylanguage.Language", + "French": "countrylanguage.Language", + "official languages": "countrylanguage.IsOfficial" + } + }, + { + "question": "give the #names of countries with english# and #french as official languages# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\" and t2.isofficial = \"T\"", + "schema_with_content": "city : population (254000, 143072, 195629), id (1920, 1916, 2628), district (\"Kaolack\", \"Yanggang\", \"Alabama\"), name (\"al-Qamishliya\", \"Sirajganj\", \"Bonn\"), countrycode (\"CHL\", \"SAU\", \"MDV\") | nation : lifeexpectancy (81.6, 73.3, 73.6), continent (\"Europe\", \"Oceania\", \"Europe\"), gnp (982268.0, 598862.0, 3501.0), code2 (\"KR\", \"EE\", \"CF\"), governmentform (\"Independent Church State\", \"People'sRepublic\", \"Nonmetropolitan Territory of New Zealand\"), population (3972000, 7733000, 38653600), headofstate (\"Thomas Klestil\", \"Daniel arap Moi\", \"Chandrika Kumaratunga\"), region (\"Southern and Central Asia\", \"South America\", \"Southeast Asia\"), indepyear (-660, 1838, 1776), code (\"BDI\", \"KWT\", \"PAK\"), gnpold (542.0, 2711.0, 97884.0), capital (2807, 3332, 149), name (\"Botswana\", \"Peru\", \"Saint Vincent and the Grenadines\"), surfacearea (618.0, 347.0, 36.0), localname (\"K\u00c3\u00bdpros/Kibris\", \"Taehan Min\u00e2\u0080\u0099guk (Namhan)\", \"Mali\") | sqlite_sequence : seq (4079), name (\"city\") | state : lifeexpectancy (81.6, 73.3, 73.6), continent (\"Europe\", \"Oceania\", \"Europe\"), gnp (982268.0, 598862.0, 3501.0), code2 (\"KR\", \"EE\", \"CF\"), governmentform (\"Independent Church State\", \"People'sRepublic\", \"Nonmetropolitan Territory of New Zealand\"), population (3972000, 7733000, 38653600), headofstate (\"Thomas Klestil\", \"Daniel arap Moi\", \"Chandrika Kumaratunga\"), region (\"Southern and Central Asia\", \"South America\", \"Southeast Asia\"), indepyear (-660, 1838, 1776), code (\"BDI\", \"KWT\", \"PAK\"), gnpold (542.0, 2711.0, 97884.0), capital (2807, 3332, 149), name (\"Botswana\", \"Peru\", \"Saint Vincent and the Grenadines\"), surfacearea (618.0, 347.0, 36.0), localname (\"K\u00c3\u00bdpros/Kibris\", \"Taehan Min\u00e2\u0080\u0099guk (Namhan)\", \"Mali\") | countrylanguage : language (\"Bamileke-bamum\", \"Mayo-kebbi\", \"Bugi\"), isofficial (\"T\", \"F\"), countrycode (\"SWE\", \"NGA\", \"BOL\"), percentage (89.9, 11.8, 86.6)", + "schema_without_content": "city : population , id , district , name , countrycode | nation : lifeexpectancy , continent , gnp , code2 , governmentform , population , headofstate , region , indepyear , code , gnpold , capital , name , surfacearea , localname \", \"Mali\" | sqlite_sequence : seq , name | state : lifeexpectancy , continent , gnp , code2 , governmentform , population , headofstate , region , indepyear , code , gnpold , capital , name , surfacearea , localname \", \"Mali\" | countrylanguage : language , isofficial , countrycode , percentage", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of countries with English": "country.Name", + "French as official languages": "countrylanguage.Language" + } + }, + { + "question": "give the #names of countries with english# and #french as official languages# .", + "db_id": "world_1", + "orig_query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"French\" and t2.isofficial = \"T\"", + "schema_with_content": "official_language : isofficial (\"T\", \"F\"), percentage (81.2, 9.3, 86.6), countrycode (\"GUM\", \"AFG\", \"FLK\"), language (\"Meru\", \"Samoan-English\", \"Embera\") | country : gnp (2352.0, 69213.0, 13714.0), gnpold (45914.0, 22834.0, 32100.0), governmentform (\"Administrated by the UN\", \"Nonmetropolitan Territory of New Zealand\", \"Independent Church State\"), headofstate (None, \"Chandrika Kumaratunga\", \"Zayid bin Sultan al-Nahayan\"), name (\"Mauritius\", \"Central African Republic\", \"Liechtenstein\"), region (\"Western Europe\", \"Southern Europe\", \"Southern Europe\"), code (\"TWN\", \"TKM\", \"GAB\"), code2 (\"PT\", \"NI\", \"SE\"), continent (\"South America\", \"Africa\", \"Asia\"), lifeexpectancy (78.9, 48.8, 69.7), capital (1450, 2972, 2974), population (19000, 2424200, 286000), indepyear (1980, 1492, 1946), surfacearea (193.0, 131626.0, 801590.0), localname (\"Vi\u00c3\u00aat Nam\", \"Jamaica\", \"Nouvelle-Cal\u00c3\u00a9donie\") | sqlite_sequence : seq (4079), name (\"city\") | city : countrycode (\"GMB\", \"IRN\", \"MEX\"), id (4024, 2144, 108), name (\"Vientiane\", \"Tenali\", \"Harare\"), district (\"Hamgyong P\", \"Satu Mare\", \"Liguria\"), population (470781, 129553, 517000) | spoken_language : isofficial (\"T\", \"F\"), percentage (81.2, 9.3, 86.6), countrycode (\"GUM\", \"AFG\", \"FLK\"), language (\"Meru\", \"Samoan-English\", \"Embera\")", + "schema_without_content": "official_language : isofficial , percentage , countrycode , language | country : gnp , gnpold , governmentform , headofstate , name , region , code , code2 , continent , lifeexpectancy , capital , population , indepyear , surfacearea , localname | sqlite_sequence : seq , name | city : countrycode , id , name , district , population | spoken_language : isofficial , percentage , countrycode , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of countries with English": "country.Name", + "French as official languages": "countrylanguage.Language" + } + }, + { + "question": "what is the number of distinct #continents# where #chinese# is spoken?", + "db_id": "world_1", + "orig_query": "select count(distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Chinese\"", + "schema_with_content": "state : region (\"South America\", \"Polynesia\", \"Southern and Central Asia\"), indepyear (800, 1978, 1980), governmentform (\"Dependent Territory of Norway\", \"Co-administrated\", \"Nonmetropolitan Territory of The Netherlands\"), gnp (285.0, 15706.0, 3787042.0), gnpold (5670.0, 7474.0, 98577.0), surfacearea (260.0, 9251.0, 236.0), population (31147000, 11168000, 3101000), capital (3419, 2806, 3017), code2 (\"BN\", \"HT\", \"MA\"), lifeexpectancy (77.9, 60.8, 74.9), continent (\"Asia\", \"Oceania\", \"South America\"), name (\"Equatorial Guinea\", \"Antarctica\", \"Micronesia, Federated States of\"), localname (\"YeItyop\u00c2\u00b4iya\", \"Solomon Islands\", \"Bermuda\"), code (\"CHL\", \"BTN\", \"BGR\"), headofstate (\"Carlo Azeglio Ciampi\", \"Chandrika Kumaratunga\", \"Tarja Halonen\") | city : population (117865, 3612850, 785071), countrycode (\"UZB\", \"NLD\", \"HUN\"), district (\"Kano & Jigawa\", \"Pays de la Loire\", \"Louisiana\"), name (\"Sanandaj\", \"Reno\", \"New York\"), id (2295, 673, 81) | nation : region (\"South America\", \"Polynesia\", \"Southern and Central Asia\"), indepyear (800, 1978, 1980), governmentform (\"Dependent Territory of Norway\", \"Co-administrated\", \"Nonmetropolitan Territory of The Netherlands\"), gnp (285.0, 15706.0, 3787042.0), gnpold (5670.0, 7474.0, 98577.0), surfacearea (260.0, 9251.0, 236.0), population (31147000, 11168000, 3101000), capital (3419, 2806, 3017), code2 (\"BN\", \"HT\", \"MA\"), lifeexpectancy (77.9, 60.8, 74.9), continent (\"Asia\", \"Oceania\", \"South America\"), name (\"Equatorial Guinea\", \"Antarctica\", \"Micronesia, Federated States of\"), localname (\"YeItyop\u00c2\u00b4iya\", \"Solomon Islands\", \"Bermuda\"), code (\"CHL\", \"BTN\", \"BGR\"), headofstate (\"Carlo Azeglio Ciampi\", \"Chandrika Kumaratunga\", \"Tarja Halonen\") | countrylanguage : countrycode (\"FLK\", \"BDI\", \"COG\"), percentage (9.7, 65.3, 7.9), isofficial (\"T\", \"F\"), language (\"Tamil\", \"Nuer\", \"Spanish\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "state : region , indepyear , governmentform , gnp , gnpold , surfacearea , population , capital , code2 , lifeexpectancy , continent , name , localname , code , headofstate | city : population , countrycode , district , name , id | nation : region , indepyear , governmentform , gnp , gnpold , surfacearea , population , capital , code2 , lifeexpectancy , continent , name , localname , code , headofstate | countrylanguage : countrycode , percentage , isofficial , language | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continents": "country.Continent", + "Chinese": "countrylanguage.Language" + } + }, + { + "question": "what is the number of distinct #continents# where #chinese# is spoken?", + "db_id": "world_1", + "orig_query": "select count(distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Chinese\"", + "schema_with_content": "country : headofstate (\"Isayas Afewerki [Isaias Afwerki]\", \"Hamad ibn Isa al-Khalifa\", \"Askar Akajev\"), governmentform (\"US Territory\", \"Co-administrated\", \"US Territory\"), localname (\"Moldova\", \"Bosna i Hercegovina\", \"Bouvet\u00c3\u00b8ya\"), gnpold (1627.0, 4100.0, 2141.0), surfacearea (236.0, 47000.0, 238391.0), region (\"Southern Africa\", \"Eastern Asia\", \"Central America\"), continent (\"South America\", \"Antarctica\", \"North America\"), population (3154000, 8329000, 293000), name (\"Azerbaijan\", \"Greece\", \"Philippines\"), code2 (\"TM\", \"TV\", \"AU\"), lifeexpectancy (80.1, 73.7, 60.6), indepyear (1965, 1806, 1806), gnp (2891.0, 6648.0, 2731.0), code (\"MUS\", \"ZWE\", \"FLK\"), capital (1380, 1791, 2438) | city : population (139200, 300000, 216015), name (\"Shahrud\", \"al-Mahallat al-Kubra\", \"Hialeah\"), id (444, 3486, 3382), countrycode (\"BMU\", \"IDN\", \"COD\"), district (\"Lilongwe\", \"Midlands\", \"Rostov-na-Donu\") | spoken_language : percentage (86.2, 11.9, 0.1), countrycode (\"VGB\", \"MSR\", \"TUN\"), isofficial (\"T\", \"F\"), language (\"Saame\", \"Nung\", \"Lithuanian\") | official_language : percentage (86.2, 11.9, 0.1), countrycode (\"VGB\", \"MSR\", \"TUN\"), isofficial (\"T\", \"F\"), language (\"Saame\", \"Nung\", \"Lithuanian\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "country : headofstate , governmentform , localname , gnpold , surfacearea , region , continent , population , name , code2 , lifeexpectancy , indepyear , gnp , code , capital | city : population , name , id , countrycode , district | spoken_language : percentage , countrycode , isofficial , language | official_language : percentage , countrycode , isofficial , language | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "continents": "country.Continent", + "Chinese": "countrylanguage.Language" + } + }, + { + "question": "how many #continents# speak #chinese# ?", + "db_id": "world_1", + "orig_query": "select count(distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Chinese\"", + "schema_with_content": "countrylanguage : language (\"Mbum\", \"Mongolian\", \"Mordva\"), percentage (12.4, 19.6, 7.0), countrycode (\"GTM\", \"COD\", \"JOR\"), isofficial (\"T\", \"F\") | city : countrycode (\"VAT\", \"OMN\", \"REU\"), name (\"Glazov\", \"Pingtung\", \"Sarapul\"), id (3539, 2102, 2309), district (\"Logone Occidental\", \"Tutuila\", \"Kabol\"), population (728060, 2301, 152514) | sqlite_sequence : name (\"city\"), seq (4079) | nation : region (\"Western Europe\", \"Micronesia/Caribbean\", \"South America\"), surfacearea (1759540.0, 17364.0, 338145.0), code2 (\"PY\", \"CD\", \"SE\"), lifeexpectancy (45.3, 69.1, 71.4), name (\"Switzerland\", \"Cook Islands\", \"Heard Island and McDonald Islands\"), capital (549, 2401, 2726), gnp (630.0, 2731.0, 19770.0), code (\"MHL\", \"COG\", \"MAR\"), population (1439200, 18827000, 395000), continent (\"Oceania\", \"Africa\", \"Antarctica\"), localname (\"Prathet Thai\", \"Lietuva\", \"Magyarorsz\u00c3\u00a1g\"), gnpold (7474.0, 206025.0, 7388.0), governmentform (\"Constitutional Monarchy\", \"Federation\", \"Independent Church State\"), headofstate (\"Bhumibol Adulyadej\", \"Johannes Rau\", \"Ismail Omar Guelleh\"), indepyear (1847, 1974, 1964) | state : region (\"Western Europe\", \"Micronesia/Caribbean\", \"South America\"), surfacearea (1759540.0, 17364.0, 338145.0), code2 (\"PY\", \"CD\", \"SE\"), lifeexpectancy (45.3, 69.1, 71.4), name (\"Switzerland\", \"Cook Islands\", \"Heard Island and McDonald Islands\"), capital (549, 2401, 2726), gnp (630.0, 2731.0, 19770.0), code (\"MHL\", \"COG\", \"MAR\"), population (1439200, 18827000, 395000), continent (\"Oceania\", \"Africa\", \"Antarctica\"), localname (\"Prathet Thai\", \"Lietuva\", \"Magyarorsz\u00c3\u00a1g\"), gnpold (7474.0, 206025.0, 7388.0), governmentform (\"Constitutional Monarchy\", \"Federation\", \"Independent Church State\"), headofstate (\"Bhumibol Adulyadej\", \"Johannes Rau\", \"Ismail Omar Guelleh\"), indepyear (1847, 1974, 1964)", + "schema_without_content": "countrylanguage : language , percentage , countrycode , isofficial | city : countrycode , name , id , district , population | sqlite_sequence : name , seq | nation : region , surfacearea , code2 , lifeexpectancy , name , capital , gnp , code , population , continent , localname , gnpold , governmentform , headofstate , indepyear | state : region , surfacearea , code2 , lifeexpectancy , name , capital , gnp , code , population , continent , localname , gnpold , governmentform , headofstate , indepyear", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continents": "country.Continent", + "Chinese": "countrylanguage.Language" + } + }, + { + "question": "how many #continents# speak #chinese# ?", + "db_id": "world_1", + "orig_query": "select count(distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Chinese\"", + "schema_with_content": "country : localname (\"Samoa\", \"Colombia\", \"Sverige\"), lifeexpectancy (37.8, 42.5, 77.8), code (\"BEN\", \"YUG\", \"TUV\"), code2 (\"BW\", \"DJ\", \"VC\"), population (3520000, 1008000, 15211000), indepyear (1944, -1000, 1143), region (\"Polynesia\", \"Caribbean\", \"Middle East\"), gnpold (325.0, 1580.0, 206025.0), continent (\"Antarctica\", \"Oceania\", \"North America\"), governmentform (\"Overseas Department of France\", \"Dependent Territory of the US\", \"Special Administrative Region of China\"), headofstate (\"Hosni Mubarak\", \"Mathieu K\u00c3\u00a9r\u00c3\u00a9kou\", \"Boris Trajkovski\"), capital (2438, 2695, 2919), surfacearea (65301.0, 9363520.0, 83600.0), gnp (6964.0, 4988.0, 65707.0), name (\"Turkey\", \"Central African Republic\", \"Italy\") | spoken_language : percentage (97.9, 75.2, 49.1), language (\"Carolinian\", \"Yap\", \"Wolof\"), countrycode (\"SPM\", \"MRT\", \"IND\"), isofficial (\"T\", \"F\") | official_language : percentage (97.9, 75.2, 49.1), language (\"Carolinian\", \"Yap\", \"Wolof\"), countrycode (\"SPM\", \"MRT\", \"IND\"), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | city : population (247588, 93200, 483155), district (\"Wasit\", \"T\u00c5\u00a1et\u00c5\u00a1enia\", \"Lambayeque\"), id (2432, 3813, 1962), name (\"Memphis\", \"Trujillo\", \"M\u00c3\u00a1laga\"), countrycode (\"KEN\", \"BEL\", \"LBY\")", + "schema_without_content": "country : localname , lifeexpectancy , code , code2 , population , indepyear , region , gnpold , continent , governmentform , headofstate , capital , surfacearea , gnp , name | spoken_language : percentage , language , countrycode , isofficial | official_language : percentage , language , countrycode , isofficial | sqlite_sequence : seq , name | city : population , district , id , name , countrycode", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "continents": "country.Continent", + "Chinese": "countrylanguage.Language" + } + }, + { + "question": "what are the #regions# that use #english# or #dutch# ?", + "db_id": "world_1", + "orig_query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" or t2.language = \"Dutch\"", + "schema_with_content": "countrylanguage : percentage (17.3, 37.5, 88.9), isofficial (\"T\", \"F\"), countrycode (\"EST\", \"SOM\", \"DZA\"), language (\"Edo\", \"Nahua\", \"English\") | nation : name (\"Greece\", \"Indonesia\", \"Solomon Islands\"), code2 (\"CI\", \"TJ\", \"DJ\"), indepyear (1828, 843, 1973), headofstate (\"Abdoulaye Wade\", \"Elisabeth II\", \"Vladimir Putin\"), continent (\"Antarctica\", \"South America\", \"South America\"), localname (\"New Zealand/Aotearoa\", \"The Gambia\", \"Dhivehi Raajje/Maldives\"), governmentform (\"Parliamentary Coprincipality\", \"Dependent Territory of Norway\", \"Socialistic Republic\"), code (\"LBN\", \"IRQ\", \"VUT\"), population (21778000, 156483000, 5083000), region (\"Micronesia\", \"Antarctica\", \"Melanesia\"), capital (2831, 3492, 554), surfacearea (131626.0, 18274.0, 18.0), lifeexpectancy (62.2, 63.1, 63.2), gnpold (6887.0, 1627.0, 7988.0), gnp (6648.0, 20208.0, 9472.0) | city : population (437500, 215196, 117300), district (\"La Paz\", \"Jiangsu\", \"La Paz\"), name (\"Hidalgo\", \"Maragheh\", \"Norilsk\"), id (1501, 563, 2732), countrycode (\"TTO\", \"GRD\", \"QAT\") | state : name (\"Greece\", \"Indonesia\", \"Solomon Islands\"), code2 (\"CI\", \"TJ\", \"DJ\"), indepyear (1828, 843, 1973), headofstate (\"Abdoulaye Wade\", \"Elisabeth II\", \"Vladimir Putin\"), continent (\"Antarctica\", \"South America\", \"South America\"), localname (\"New Zealand/Aotearoa\", \"The Gambia\", \"Dhivehi Raajje/Maldives\"), governmentform (\"Parliamentary Coprincipality\", \"Dependent Territory of Norway\", \"Socialistic Republic\"), code (\"LBN\", \"IRQ\", \"VUT\"), population (21778000, 156483000, 5083000), region (\"Micronesia\", \"Antarctica\", \"Melanesia\"), capital (2831, 3492, 554), surfacearea (131626.0, 18274.0, 18.0), lifeexpectancy (62.2, 63.1, 63.2), gnpold (6887.0, 1627.0, 7988.0), gnp (6648.0, 20208.0, 9472.0) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "countrylanguage : percentage , isofficial , countrycode , language | nation : name , code2 , indepyear , headofstate , continent , localname , governmentform , code , population , region , capital , surfacearea , lifeexpectancy , gnpold , gnp | city : population , district , name , id , countrycode | state : name , code2 , indepyear , headofstate , continent , localname , governmentform , code , population , region , capital , surfacearea , lifeexpectancy , gnpold , gnp | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "regions": "country.Region", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "what are the #regions# that use #english# or #dutch# ?", + "db_id": "world_1", + "orig_query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" or t2.language = \"Dutch\"", + "schema_with_content": "country : gnpold (97884.0, 16153.0, 539.0), region (\"Central America\", \"Southern Africa\", \"Northern Africa\"), continent (\"Oceania\", \"Antarctica\", \"Europe\"), code2 (\"TK\", \"SN\", \"DZ\"), indepyear (1903, 1948, 1811), population (7430000, 126714000, 861000), name (\"American Samoa\", \"French Polynesia\", \"Fiji Islands\"), code (\"QAT\", \"MNG\", \"ETH\"), headofstate (\"Mathieu K\u00c3\u00a9r\u00c3\u00a9kou\", \"Qabus ibn Sa\u00c2\u00b4id\", \"Laurent Gbagbo\"), governmentform (\"People'sRepublic\", \"Monarchy (Emirate)\", \"Administrated by the UN\"), gnp (3512.0, 5951.0, 10162.0), capital (652, 2437, 2298), localname (\"Micronesia\", \"Soomaaliya\", \"Magyarorsz\u00c3\u00a1g\"), lifeexpectancy (71.3, 66.3, 69.2), surfacearea (241038.0, 143998.0, 488100.0) | city : id (1089, 1107, 3989), district (\"Ilocos\", \"Marche\", \"Virginia\"), population (92779, 135755, 89423), countrycode (\"PRI\", \"LBY\", \"CPV\"), name (\"Port Said\", \"Concordia\", \"Delft\") | official_language : percentage (32.3, 0.3, 17.9), language (\"Luchazi\", \"Chaga and Pare\", \"Bari\"), isofficial (\"T\", \"F\"), countrycode (\"POL\", \"PHL\", \"MEX\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : percentage (32.3, 0.3, 17.9), language (\"Luchazi\", \"Chaga and Pare\", \"Bari\"), isofficial (\"T\", \"F\"), countrycode (\"POL\", \"PHL\", \"MEX\")", + "schema_without_content": "country : gnpold , region , continent , code2 , indepyear , population , name , code , headofstate , governmentform \", \"Administrated by the UN\", gnp , capital , localname , lifeexpectancy , surfacearea | city : id , district , population , countrycode , name | official_language : percentage , language , isofficial , countrycode | sqlite_sequence : seq , name | spoken_language : percentage , language , isofficial , countrycode", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "regions": "country.Region", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language" + } + }, + { + "question": "which #regions# speak #dutch# or #english# ?", + "db_id": "world_1", + "orig_query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" or t2.language = \"Dutch\"", + "schema_with_content": "city : name (\"Sheikhupura\", \"Varginha\", \"Santaf\u00c3\u00a9 de Bogot\u00c3\u00a1\"), id (2046, 2704, 1806), district (\"Tianjin\", \"Tripoli\", \"Saskatchewan\"), countrycode (\"MNP\", \"SLB\", \"VCT\"), population (333470, 1140000, 476668) | countrylanguage : percentage (12.2, 21.2, 97.3), countrycode (\"VUT\", \"COG\", \"IRN\"), language (\"Arawakan\", \"Malay\", \"Gbaya\"), isofficial (\"T\", \"F\") | nation : headofstate (\"Abdelaziz Bouteflika\", \"Saddam Hussein al-Takriti\", \"Vladimir Voronin\"), code (\"GEO\", \"ANT\", \"JOR\"), gnpold (6722.0, 15076.0, None), localname (\"Yisra\u00e2\u0080\u0099el/Isra\u00e2\u0080\u0099il\", \"Latvija\", \"S\u00c3\u00a3o Tom\u00c3\u00a9 e Pr\u00c3\u00adncipe\"), code2 (\"QA\", \"SH\", \"GL\"), gnp (2425.0, 182.0, 612.0), governmentform (\"Special Administrative Region of China\", \"Socialistic Republic\", \"US Territory\"), capital (910, 584, 549), population (8222000, 6000, 2153000), region (\"Antarctica\", \"Polynesia\", \"Nordic Countries\"), indepyear (1903, 1963, 1948), lifeexpectancy (74.7, 75.8, 75.1), surfacearea (1240192.0, 4033.0, 309500.0), continent (\"Africa\", \"North America\", \"Antarctica\"), name (\"Christmas Island\", \"Antarctica\", \"Belize\") | state : headofstate (\"Abdelaziz Bouteflika\", \"Saddam Hussein al-Takriti\", \"Vladimir Voronin\"), code (\"GEO\", \"ANT\", \"JOR\"), gnpold (6722.0, 15076.0, None), localname (\"Yisra\u00e2\u0080\u0099el/Isra\u00e2\u0080\u0099il\", \"Latvija\", \"S\u00c3\u00a3o Tom\u00c3\u00a9 e Pr\u00c3\u00adncipe\"), code2 (\"QA\", \"SH\", \"GL\"), gnp (2425.0, 182.0, 612.0), governmentform (\"Special Administrative Region of China\", \"Socialistic Republic\", \"US Territory\"), capital (910, 584, 549), population (8222000, 6000, 2153000), region (\"Antarctica\", \"Polynesia\", \"Nordic Countries\"), indepyear (1903, 1963, 1948), lifeexpectancy (74.7, 75.8, 75.1), surfacearea (1240192.0, 4033.0, 309500.0), continent (\"Africa\", \"North America\", \"Antarctica\"), name (\"Christmas Island\", \"Antarctica\", \"Belize\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : name , id , district , countrycode , population | countrylanguage : percentage , countrycode , language , isofficial | nation : headofstate , code , gnpold , localname , code2 , gnp , governmentform , capital , population , region , indepyear , lifeexpectancy , surfacearea , continent , name | state : headofstate , code , gnpold , localname , code2 , gnp , governmentform , capital , population , region , indepyear , lifeexpectancy , surfacearea , continent , name | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "regions": "country.Region", + "Dutch": "countrylanguage.Language", + "English": "countrylanguage.Language" + } + }, + { + "question": "which #regions# speak #dutch# or #english# ?", + "db_id": "world_1", + "orig_query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" or t2.language = \"Dutch\"", + "schema_with_content": "city : district (\"Haryana\", \"Xinxiang\", \"Anambra & Enugu & Eb\"), id (3021, 1525, 1831), name (\"Giugliano in Campania\", \"Regina\", \"Matadi\"), population (152983, 219582, 2643581), countrycode (\"BRA\", \"TWN\", \"RWA\") | official_language : countrycode (\"MSR\", \"SLE\", \"TCA\"), language (\"Cebuano\", \"Lozi\", \"Maori\"), percentage (2.1, 2.9, 0.4), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | country : continent (\"Asia\", \"Antarctica\", \"Antarctica\"), name (\"Congo, The Democratic Republic of the\", \"Djibouti\", \"Saint Helena\"), headofstate (\"Mohammad Rafiq Tarar\", \"Charles Taylor\", \"Mary McAleese\"), localname (\"Slovensko\", \"T\u00e2\u0080\u0099ai-wan\", \"Argentina\"), lifeexpectancy (52.4, 69.5, 69.1), surfacearea (2724900.0, 2831.0, 549.0), region (\"Caribbean\", \"Western Europe\", \"Eastern Africa\"), capital (2331, 2298, 2331), code (\"SJM\", \"ISL\", \"CAN\"), population (57680000, 31147000, 94000), indepyear (-1000, 1923, 1953), gnpold (169264.0, 1312.0, 1580.0), gnp (5121.0, 116416.0, 351182.0), governmentform (\"Part of Denmark\", \"Dependent Territory of Norway\", \"Autonomous Area\"), code2 (\"QA\", \"AG\", \"IR\") | spoken_language : countrycode (\"MSR\", \"SLE\", \"TCA\"), language (\"Cebuano\", \"Lozi\", \"Maori\"), percentage (2.1, 2.9, 0.4), isofficial (\"T\", \"F\")", + "schema_without_content": "city : district , id , name , population , countrycode | official_language : countrycode , language , percentage , isofficial | sqlite_sequence : seq , name | country : continent , name , headofstate , localname , lifeexpectancy , surfacearea , region , capital , code , population , indepyear , gnpold , gnp , governmentform , code2 | spoken_language : countrycode , language , percentage , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "regions": "country.Region", + "Dutch": "countrylanguage.Language", + "English": "countrylanguage.Language" + } + }, + { + "question": "which #countries# have either #english# or #dutch# as an #official language# ?", + "db_id": "world_1", + "orig_query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and isofficial = \"T\" union select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\" and isofficial = \"T\"", + "schema_with_content": "state : governmentform (\"Monarchy (Emirate)\", \"Nonmetropolitan Territory of The Netherlands\", \"Dependent Territory of the US\"), surfacearea (241038.0, 13878.0, 16.0), localname (\"Nepal\", \"Slovensko\", \"Soomaaliya\"), gnpold (6097.0, 1746.0, 3922.0), name (\"Jamaica\", \"Uruguay\", \"Spain\"), gnp (3101.0, 256254.0, 195746.0), code (\"STP\", \"BDI\", \"THA\"), code2 (\"BD\", \"CY\", \"US\"), indepyear (1844, 1976, 1946), lifeexpectancy (52.3, 74.5, 72.3), population (10236000, 2670000, 68000), continent (\"Oceania\", \"Oceania\", \"Oceania\"), region (\"Nordic Countries\", \"Antarctica\", \"Central America\"), headofstate (\"Salahuddin Abdul Aziz Shah Alhaj\", \"Sam Nujoma\", \"Bharrat Jagdeo\"), capital (185, 3067, 915) | city : population (773700, 218071, 158954), id (227, 2229, 398), name (\"Focsani\", \"Ilh\u00c3\u00a9us\", \"Adana\"), district (\"Puerto Plata\", \"Oran\", \"Pernambuco\"), countrycode (\"VAT\", \"GUM\", \"GMB\") | sqlite_sequence : seq (4079), name (\"city\") | nation : governmentform (\"Monarchy (Emirate)\", \"Nonmetropolitan Territory of The Netherlands\", \"Dependent Territory of the US\"), surfacearea (241038.0, 13878.0, 16.0), localname (\"Nepal\", \"Slovensko\", \"Soomaaliya\"), gnpold (6097.0, 1746.0, 3922.0), name (\"Jamaica\", \"Uruguay\", \"Spain\"), gnp (3101.0, 256254.0, 195746.0), code (\"STP\", \"BDI\", \"THA\"), code2 (\"BD\", \"CY\", \"US\"), indepyear (1844, 1976, 1946), lifeexpectancy (52.3, 74.5, 72.3), population (10236000, 2670000, 68000), continent (\"Oceania\", \"Oceania\", \"Oceania\"), region (\"Nordic Countries\", \"Antarctica\", \"Central America\"), headofstate (\"Salahuddin Abdul Aziz Shah Alhaj\", \"Sam Nujoma\", \"Bharrat Jagdeo\"), capital (185, 3067, 915) | countrylanguage : countrycode (\"LBR\", \"KAZ\", \"GRC\"), percentage (16.4, 0.9, 74.1), isofficial (\"T\", \"F\"), language (\"Ane\", \"Shona\", \"Kanuri\")", + "schema_without_content": "state : governmentform \", \"Nonmetropolitan Territory of The Netherlands\", \"Dependent Territory of the US\", surfacearea , localname , gnpold , name , gnp , code , code2 , indepyear , lifeexpectancy , population , continent , region , headofstate , capital | city : population , id , name , district , countrycode | sqlite_sequence : seq , name | nation : governmentform \", \"Nonmetropolitan Territory of The Netherlands\", \"Dependent Territory of the US\", surfacearea , localname , gnpold , name , gnp , code , code2 , indepyear , lifeexpectancy , population , continent , region , headofstate , capital | countrylanguage : countrycode , percentage , isofficial , language", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "which #countries# have either #english# or #dutch# as an #official language# ?", + "db_id": "world_1", + "orig_query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and isofficial = \"T\" union select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"Dutch\" and isofficial = \"T\"", + "schema_with_content": "city : name (\"Palho\u00c3\u00a7a\", \"Seto\", \"Gainesville\"), district (\"Mangghystau\", \"Burgas\", \"Tortola\"), population (137810, 203413, 701927), id (492, 2646, 514), countrycode (\"CHN\", \"AZE\", \"LCA\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : language (\"Walaita\", \"Goajiro\", \"Berberi\"), isofficial (\"T\", \"F\"), percentage (6.3, 6.5, 14.1), countrycode (\"URY\", \"MDG\", \"MDA\") | official_language : language (\"Walaita\", \"Goajiro\", \"Berberi\"), isofficial (\"T\", \"F\"), percentage (6.3, 6.5, 14.1), countrycode (\"URY\", \"MDG\", \"MDA\") | country : gnpold (5867.0, 30373.0, 75617.0), code2 (\"PT\", \"GP\", \"QA\"), localname (\"Puerto Rico\", \"Iran\", \"Sierra Leone\"), surfacearea (112088.0, 726.0, 14874.0), region (\"Melanesia\", \"Antarctica\", \"South America\"), capital (2515, 1530, 4068), code (\"LBN\", \"ATF\", \"NIU\"), name (\"Norway\", \"Bulgaria\", \"Iran\"), indepyear (1769, 1861, 1970), population (5171300, 235000, 214000), governmentform (\"Monarchy (Emirate)\", \"Monarchy (Sultanate)\", \"Independent Church State\"), headofstate (\"Letsie III\", \"Mohammad Omar\", \"Fernando de la R\u00c3\u00baa\"), gnp (372.0, 258.0, 4768.0), continent (\"Antarctica\", \"Antarctica\", \"Oceania\"), lifeexpectancy (46.0, 73.8, 40.4)", + "schema_without_content": "city : name , district , population , id , countrycode | sqlite_sequence : seq , name | spoken_language : language , isofficial , percentage , countrycode | official_language : language , isofficial , percentage , countrycode | country : gnpold , code2 , localname , surfacearea , region , capital , code , name , indepyear , population , governmentform \", \"Monarchy \", \"Independent Church State\", headofstate , gnp , continent , lifeexpectancy", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "countries": "country", + "English": "countrylanguage.Language", + "Dutch": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "which #language# is the most popular on the #asian continent# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.continent = \"Asia\" group by t2.language order by count(*) desc limit 1", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | countrylanguage : percentage (15.0, 2.6, 21.6), countrycode (\"BHR\", \"UMI\", \"GUF\"), language (\"Malay-English\", \"Galecian\", \"Balochi\"), isofficial (\"T\", \"F\") | state : localname (\"F\u00c3\u00b8royar\", \"Colombia\", \"\u00e2\u0080\u0093\"), headofstate (\"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Rexhep Mejdani\", \"Andr\u00c3\u00a9s Pastrana Arango\"), lifeexpectancy (79.0, 75.5, 73.7), region (\"Eastern Africa\", \"Southern Africa\", \"Antarctica\"), code (\"BRA\", \"BEN\", \"GAB\"), surfacearea (694.0, 241038.0, 7741220.0), gnpold (1863.0, 16153.0, 6722.0), continent (\"Asia\", \"Africa\", \"North America\"), code2 (\"FM\", \"UZ\", \"KG\"), capital (1864, 1464, 2511), indepyear (None, None, 1983), gnp (120724.0, 20208.0, 776.0), governmentform (\"Territorial Collectivity of France\", \"Constitutional Monarchy, Federation\", \"Federal Republic\"), name (\"Yemen\", \"Pakistan\", \"Eritrea\"), population (2670000, 77000, 8861400) | city : countrycode (\"GRC\", \"MSR\", \"ARE\"), population (152090, 352311, 179956), name (\"Shantou\", \"Lerma\", \"Logro\u00c3\u00b1o\"), id (3919, 3696, 108), district (\"Irbid\", \"Chiang Mai\", \"Yamagata\") | nation : localname (\"F\u00c3\u00b8royar\", \"Colombia\", \"\u00e2\u0080\u0093\"), headofstate (\"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Rexhep Mejdani\", \"Andr\u00c3\u00a9s Pastrana Arango\"), lifeexpectancy (79.0, 75.5, 73.7), region (\"Eastern Africa\", \"Southern Africa\", \"Antarctica\"), code (\"BRA\", \"BEN\", \"GAB\"), surfacearea (694.0, 241038.0, 7741220.0), gnpold (1863.0, 16153.0, 6722.0), continent (\"Asia\", \"Africa\", \"North America\"), code2 (\"FM\", \"UZ\", \"KG\"), capital (1864, 1464, 2511), indepyear (None, None, 1983), gnp (120724.0, 20208.0, 776.0), governmentform (\"Territorial Collectivity of France\", \"Constitutional Monarchy, Federation\", \"Federal Republic\"), name (\"Yemen\", \"Pakistan\", \"Eritrea\"), population (2670000, 77000, 8861400)", + "schema_without_content": "sqlite_sequence : name , seq | countrylanguage : percentage , countrycode , language , isofficial | state : localname , headofstate , lifeexpectancy , region , code , surfacearea , gnpold , continent , code2 , capital , indepyear , gnp , governmentform , name , population | city : countrycode , population , name , id , district | nation : localname , headofstate , lifeexpectancy , region , code , surfacearea , gnpold , continent , code2 , capital , indepyear , gnp , governmentform , name , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Asian continent": "country.Continent" + } + }, + { + "question": "which #language# is the most popular on the #asian continent# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.continent = \"Asia\" group by t2.language order by count(*) desc limit 1", + "schema_with_content": "spoken_language : percentage (45.5, 93.0, 99.6), isofficial (\"T\", \"F\"), language (\"Cakchiquel\", \"Osseetti\", \"Karen\"), countrycode (\"SVK\", \"SGP\", \"PRY\") | city : id (2060, 317, 378), population (14542, 103653, 393030), name (\"T\u00c5\u00a1aikovski\", \"Krefeld\", \"Hartford\"), countrycode (\"MDV\", \"IDN\", \"ANT\"), district (\"Kyonggi\", \"Chollanam\", \"El\u00c3\u00a2zig\") | official_language : percentage (45.5, 93.0, 99.6), isofficial (\"T\", \"F\"), language (\"Cakchiquel\", \"Osseetti\", \"Karen\"), countrycode (\"SVK\", \"SGP\", \"PRY\") | sqlite_sequence : seq (4079), name (\"city\") | country : headofstate (\"Beatrix\", \"Paul Kagame\", \"Mohammad Rafiq Tarar\"), capital (2821, 126, 2821), gnpold (2141.0, 7388.0, 793.0), region (\"Central America\", \"Caribbean\", \"Western Europe\"), population (3154000, 1158000, 12878000), surfacearea (7741220.0, 47000.0, 6257.0), indepyear (1979, 1970, 836), governmentform (\"Dependent Territory of the US\", \"Part of Denmark\", \"Federal Republic\"), continent (\"Europe\", \"Antarctica\", \"Africa\"), code2 (\"CN\", \"RW\", \"WF\"), gnp (97.0, 8255.0, 435.0), lifeexpectancy (70.5, 57.8, 70.5), localname (\"\u00c2\u00b8esko\", \"S\u00c3\u00a9n\u00c3\u00a9gal/Sounougal\", \"Nederland\"), code (\"MKD\", \"GIN\", \"LUX\"), name (\"Ghana\", \"Azerbaijan\", \"Russian Federation\")", + "schema_without_content": "spoken_language : percentage , isofficial , language , countrycode | city : id , population , name , countrycode , district | official_language : percentage , isofficial , language , countrycode | sqlite_sequence : seq , name | country : headofstate , capital , gnpold , region , population , surfacearea , indepyear , governmentform , continent , code2 , gnp , lifeexpectancy , localname , code , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Asian continent": "country.Continent" + } + }, + { + "question": "what is the #language# that is used by the largest number of #asian nations# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.continent = \"Asia\" group by t2.language order by count(*) desc limit 1", + "schema_with_content": "state : region (\"Antarctica\", \"Western Europe\", \"South America\"), headofstate (\"Robert Kot\u00c5\u00a1arjan\", \"Shahabuddin Ahmad\", \"Kessai Note\"), gnp (249704.0, 102896.0, 5976.0), name (\"Cuba\", \"Palau\", \"Belarus\"), localname (\"Niger\", \"Suriya\", \"S\u00c3\u00a3o Tom\u00c3\u00a9 e Pr\u00c3\u00adncipe\"), capital (2432, 2805, 3248), code (\"BIH\", \"CCK\", \"SEN\"), code2 (\"SL\", \"BD\", \"LR\"), population (5433000, 8190900, 754700), surfacearea (751.0, 11000.0, 2505813.0), governmentform (\"Autonomous Area\", \"Islamic Emirate\", \"Nonmetropolitan Territory of New Zealand\"), indepyear (1992, 1278, 1066), lifeexpectancy (62.9, 66.4, 76.2), gnpold (2000.0, 7988.0, 73132.0), continent (\"Asia\", \"North America\", \"Oceania\") | nation : region (\"Antarctica\", \"Western Europe\", \"South America\"), headofstate (\"Robert Kot\u00c5\u00a1arjan\", \"Shahabuddin Ahmad\", \"Kessai Note\"), gnp (249704.0, 102896.0, 5976.0), name (\"Cuba\", \"Palau\", \"Belarus\"), localname (\"Niger\", \"Suriya\", \"S\u00c3\u00a3o Tom\u00c3\u00a9 e Pr\u00c3\u00adncipe\"), capital (2432, 2805, 3248), code (\"BIH\", \"CCK\", \"SEN\"), code2 (\"SL\", \"BD\", \"LR\"), population (5433000, 8190900, 754700), surfacearea (751.0, 11000.0, 2505813.0), governmentform (\"Autonomous Area\", \"Islamic Emirate\", \"Nonmetropolitan Territory of New Zealand\"), indepyear (1992, 1278, 1066), lifeexpectancy (62.9, 66.4, 76.2), gnpold (2000.0, 7988.0, 73132.0), continent (\"Asia\", \"North America\", \"Oceania\") | city : countrycode (\"YUG\", \"JOR\", \"RUS\"), id (809, 1372, 1944), population (350696, 123958, 127842), district (\"St George\", \"Rafah\", \"Risaralda\"), name (\"Titagarh\", \"Pingchen\", \"Taliao\") | countrylanguage : countrycode (\"VEN\", \"CAF\", \"ETH\"), percentage (65.3, 0.8, 65.0), isofficial (\"T\", \"F\"), language (\"Herero\", \"Czech\", \"Cuna\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "state : region , headofstate , gnp , name , localname , capital , code , code2 , population , surfacearea , governmentform , indepyear , lifeexpectancy , gnpold , continent | nation : region , headofstate , gnp , name , localname , capital , code , code2 , population , surfacearea , governmentform , indepyear , lifeexpectancy , gnpold , continent | city : countrycode , id , population , district , name | countrylanguage : countrycode , percentage , isofficial , language | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Asian nations": "country.Continent" + } + }, + { + "question": "what is the #language# that is used by the largest number of #asian nations# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.continent = \"Asia\" group by t2.language order by count(*) desc limit 1", + "schema_with_content": "city : countrycode (\"MDA\", \"KHM\", \"SUR\"), name (\"Fuyang\", \"Godoy Cruz\", \"Almaty\"), district (\"Texas\", \"Grad Zagreb\", \"West Flanderi\"), population (150112, 191615, 116256), id (2148, 2348, 1960) | spoken_language : language (\"Chibcha\", \"Turkmenian\", \"Oromo\"), percentage (100.0, 10.6, 22.9), isofficial (\"T\", \"F\"), countrycode (\"AND\", \"BHS\", \"ZMB\") | country : governmentform (\"Nonmetropolitan Territory of France\", \"Dependent Territory of the US\", \"Special Administrative Region of China\"), population (1987800, 395000, 235000), code (\"TON\", \"COK\", \"IDN\"), localname (\"Niger\", \"Cabo Verde\", \"Venezuela\"), code2 (\"SY\", \"NO\", \"BJ\"), continent (\"Africa\", \"Asia\", \"Antarctica\"), capital (1780, 65, 763), indepyear (1923, 1968, 1974), gnp (299.0, 6366.0, 199.0), lifeexpectancy (63.2, 81.1, 81.6), gnpold (4935.0, 153907.0, 373.0), headofstate (\"Mohammed Abdel Aziz\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\", \"Mohammed VI\"), region (\"Southern and Central Asia\", \"Polynesia\", \"Australia and New Zealand\"), surfacearea (83859.0, 151.0, 9572900.0), name (\"Peru\", \"Hungary\", \"Mayotte\") | official_language : language (\"Chibcha\", \"Turkmenian\", \"Oromo\"), percentage (100.0, 10.6, 22.9), isofficial (\"T\", \"F\"), countrycode (\"AND\", \"BHS\", \"ZMB\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : countrycode , name , district , population , id | spoken_language : language , percentage , isofficial , countrycode | country : governmentform , population , code , localname , code2 , continent , capital , indepyear , gnp , lifeexpectancy , gnpold , headofstate , region , surfacearea , name | official_language : language , percentage , isofficial , countrycode | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "Asian nations": "country.Continent" + } + }, + { + "question": "which #languages# are #spoken by only one country in republic governments# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.governmentform = \"Republic\" group by t2.language having count(*) = 1", + "schema_with_content": "nation : localname (\"Belize\", \"F\u00c3\u00b8royar\", \"Luxembourg/L\u00c3\u00abtzebuerg\"), code (\"KIR\", \"GIB\", \"SAU\"), gnpold (2383.0, 2383.0, 21300.0), name (\"Hong Kong\", \"Mauritius\", \"Israel\"), population (2124000, 435700, 1008000), headofstate (\"Alpha Oumar Konar\u00c3\u00a9\", \"Jigme Singye Wangchuk\", \"Henri\"), capital (2695, 201, 33), continent (\"Asia\", \"Asia\", \"Antarctica\"), surfacearea (21056.0, 912050.0, 64589.0), gnp (2841.0, 6353.0, 5493.0), governmentform (\"Special Administrative Region of China\", \"Autonomous Area\", \"Socialistic State\"), lifeexpectancy (48.0, 81.1, 76.4), region (\"British Islands\", \"Eastern Europe\", \"Nordic Countries\"), code2 (\"KZ\", \"DJ\", \"EH\"), indepyear (1776, 1977, 1844) | countrylanguage : percentage (92.5, 99.6, 81.2), countrycode (\"ARM\", \"GIN\", \"DJI\"), language (\"Banda\", \"Akan\", \"Hassaniya\"), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079) | state : localname (\"Belize\", \"F\u00c3\u00b8royar\", \"Luxembourg/L\u00c3\u00abtzebuerg\"), code (\"KIR\", \"GIB\", \"SAU\"), gnpold (2383.0, 2383.0, 21300.0), name (\"Hong Kong\", \"Mauritius\", \"Israel\"), population (2124000, 435700, 1008000), headofstate (\"Alpha Oumar Konar\u00c3\u00a9\", \"Jigme Singye Wangchuk\", \"Henri\"), capital (2695, 201, 33), continent (\"Asia\", \"Asia\", \"Antarctica\"), surfacearea (21056.0, 912050.0, 64589.0), gnp (2841.0, 6353.0, 5493.0), governmentform (\"Special Administrative Region of China\", \"Autonomous Area\", \"Socialistic State\"), lifeexpectancy (48.0, 81.1, 76.4), region (\"British Islands\", \"Eastern Europe\", \"Nordic Countries\"), code2 (\"KZ\", \"DJ\", \"EH\"), indepyear (1776, 1977, 1844) | city : name (\"Xingtai\", \"San Salvador de Jujuy\", \"Edirne\"), population (558680, 1133576, 98208), district (\"Seoul\", \"Daugavpils\", \"al-Gharbiya\"), id (2711, 3856, 3857), countrycode (\"RWA\", \"BMU\", \"PHL\")", + "schema_without_content": "nation : localname , code , gnpold , name , population , headofstate , capital , continent , surfacearea , gnp , governmentform , lifeexpectancy , region , code2 , indepyear | countrylanguage : percentage , countrycode , language , isofficial | sqlite_sequence : name , seq | state : localname , code , gnpold , name , population , headofstate , capital , continent , surfacearea , gnp , governmentform , lifeexpectancy , region , code2 , indepyear | city : name , population , district , id , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "spoken by only one country in republic governments": "countrylanguage.CountryCode" + } + }, + { + "question": "which #languages# are #spoken by only one country in republic governments# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.governmentform = \"Republic\" group by t2.language having count(*) = 1", + "schema_with_content": "city : district (\"Jizn\u00c3\u00ad Morava\", \"Grand Turk\", \"Montserrado\"), countrycode (\"NRU\", \"IRL\", \"MWI\"), id (3748, 3138, 521), name (\"Urmia\", \"Boston\", \"Ashoknagar-Kalyangarh\"), population (128000, 111700, 222000) | sqlite_sequence : name (\"city\"), seq (4079) | spoken_language : countrycode (\"MNG\", \"DMA\", \"PSE\"), percentage (18.1, 52.6, 78.8), isofficial (\"T\", \"F\"), language (\"Guaran\u00c3\u00ad\", \"Bemba\", \"Hui\") | country : name (\"France\", \"French Guiana\", \"Yugoslavia\"), lifeexpectancy (75.1, 73.0, 77.8), capital (3492, 2881, 3349), region (\"Southern and Central Asia\", \"Southern and Central Asia\", \"Eastern Africa\"), gnpold (1863.0, 1056.0, 573.0), population (861000, 3850000, 21607000), headofstate (\"Hip\u00c3\u00b3lito Mej\u00c3\u00ada Dom\u00c3\u00adnguez\", \"Gyanendra Bir Bikram\", \"Lansana Cont\u00c3\u00a9\"), indepyear (1946, 1983, 1847), code2 (\"KW\", \"KP\", \"KZ\"), localname (\"Sri Lanka/Ilankai\", \"S\u00c3\u00a9n\u00c3\u00a9gal/Sounougal\", \"Marshall Islands/Majol\"), gnp (1630.0, 40.7, 2731.0), continent (\"North America\", \"Oceania\", \"Africa\"), governmentform (\"Federal Republic\", \"Occupied by Marocco\", \"Federation\"), code (\"FIN\", \"MLT\", \"BLZ\"), surfacearea (447400.0, 347.0, 118484.0) | official_language : countrycode (\"MNG\", \"DMA\", \"PSE\"), percentage (18.1, 52.6, 78.8), isofficial (\"T\", \"F\"), language (\"Guaran\u00c3\u00ad\", \"Bemba\", \"Hui\")", + "schema_without_content": "city : district , countrycode , id , name , population | sqlite_sequence : name , seq | spoken_language : countrycode , percentage , isofficial , language | country : name , lifeexpectancy , capital , region , gnpold , population , headofstate , indepyear , code2 , localname , gnp , continent , governmentform , code , surfacearea | official_language : countrycode , percentage , isofficial , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "spoken by only one country in republic governments": "countrylanguage.CountryCode" + } + }, + { + "question": "what #languages# are only used by a #single country with a republic government# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.governmentform = \"Republic\" group by t2.language having count(*) = 1", + "schema_with_content": "countrylanguage : countrycode (\"REU\", \"MKD\", \"KWT\"), percentage (92.0, 60.4, 4.4), language (\"Ibo\", \"Luimbe-nganguela\", \"Kongo\"), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079) | state : code2 (\"TV\", \"KZ\", \"TT\"), lifeexpectancy (75.1, 40.4, 76.2), gnp (96.0, 65984.0, 7526.0), population (15211000, 4473000, 146934000), continent (\"Asia\", \"Asia\", \"North America\"), surfacearea (800.0, 86600.0, 9970610.0), region (\"North America\", \"Western Africa\", \"Nordic Countries\"), capital (63, 3332, 2508), name (\"Virgin Islands, British\", \"Nigeria\", \"Guatemala\"), indepyear (1984, -660, 885), localname (\"Canada\", \"Singapore/Singapura/Xinjiapo/Singapur\", \"Naoero/Nauru\"), gnpold (6097.0, 97884.0, 706.0), governmentform (\"Independent Church State\", \"Monarchy (Sultanate)\", \"Dependent Territory of the UK\"), code (\"BLR\", \"SDN\", \"SJM\"), headofstate (\"Valentin Paniagua Corazao\", \"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Jabir al-Ahmad al-Jabir al-Sabah\") | city : population (196086, 119526, 515555), name (\"Saint-Denis\", \"Luzhou\", \"Gent\"), district (\"Zytomyr\", \"Mogiljov\", \"Kurgan\"), id (3387, 2198, 80), countrycode (\"COG\", \"ROM\", \"SVK\") | nation : code2 (\"TV\", \"KZ\", \"TT\"), lifeexpectancy (75.1, 40.4, 76.2), gnp (96.0, 65984.0, 7526.0), population (15211000, 4473000, 146934000), continent (\"Asia\", \"Asia\", \"North America\"), surfacearea (800.0, 86600.0, 9970610.0), region (\"North America\", \"Western Africa\", \"Nordic Countries\"), capital (63, 3332, 2508), name (\"Virgin Islands, British\", \"Nigeria\", \"Guatemala\"), indepyear (1984, -660, 885), localname (\"Canada\", \"Singapore/Singapura/Xinjiapo/Singapur\", \"Naoero/Nauru\"), gnpold (6097.0, 97884.0, 706.0), governmentform (\"Independent Church State\", \"Monarchy (Sultanate)\", \"Dependent Territory of the UK\"), code (\"BLR\", \"SDN\", \"SJM\"), headofstate (\"Valentin Paniagua Corazao\", \"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Jabir al-Ahmad al-Jabir al-Sabah\")", + "schema_without_content": "countrylanguage : countrycode , percentage , language , isofficial | sqlite_sequence : name , seq | state : code2 , lifeexpectancy , gnp , population , continent , surfacearea , region , capital , name , indepyear , localname , gnpold , governmentform \", \"Dependent Territory of the UK\", code , headofstate | city : population , name , district , id , countrycode | nation : code2 , lifeexpectancy , gnp , population , continent , surfacearea , region , capital , name , indepyear , localname , gnpold , governmentform \", \"Dependent Territory of the UK\", code , headofstate", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "single country with a republic government": "country.Code" + } + }, + { + "question": "what #languages# are only used by a #single country with a republic government# ?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.governmentform = \"Republic\" group by t2.language having count(*) = 1", + "schema_with_content": "spoken_language : isofficial (\"T\", \"F\"), language (\"Puyi\", \"French\", \"Yap\"), countrycode (\"MAR\", \"KEN\", \"AUS\"), percentage (13.7, 50.7, 77.1) | sqlite_sequence : name (\"city\"), seq (4079) | country : localname (\"Zhongquo\", \"\u00e2\u0080\u0093\", \"Guyana\"), governmentform (\"Dependent Territory of the US\", \"Dependent Territory of the UK\", \"Constitutional Monarchy\"), headofstate (\"Hamad ibn Isa al-Khalifa\", \"Hamad ibn Isa al-Khalifa\", \"Omar Hassan Ahmad al-Bashir\"), surfacearea (12.0, 28051.0, 242900.0), code2 (\"TR\", \"KY\", \"NL\"), capital (3339, 3423, 2446), gnpold (2141.0, 189122.0, 263451.0), continent (\"Oceania\", \"Africa\", \"North America\"), population (279000, 12646000, 7734000), region (\"Central Africa\", \"Central Africa\", \"Central America\"), name (\"East Timor\", \"Ecuador\", \"Monaco\"), indepyear (1929, 1976, 1965), lifeexpectancy (72.4, 63.1, 73.2), gnp (105.0, 100.0, 116729.0), code (\"RWA\", \"CHL\", \"NZL\") | city : name (\"Pudukkottai\", \"Bokaro Steel City\", \"Santiago de Compostela\"), id (1515, 628, 1580), population (124682, 306341, 116671), district (\"Tokat\", \"Federaatio\", \"Managua\"), countrycode (\"PRK\", \"GAB\", \"TJK\") | official_language : isofficial (\"T\", \"F\"), language (\"Puyi\", \"French\", \"Yap\"), countrycode (\"MAR\", \"KEN\", \"AUS\"), percentage (13.7, 50.7, 77.1)", + "schema_without_content": "spoken_language : isofficial , language , countrycode , percentage | sqlite_sequence : name , seq | country : localname , governmentform , headofstate , surfacearea , code2 , capital , gnpold , continent , population , region , name , indepyear , lifeexpectancy , gnp , code | city : name , id , population , district , countrycode | official_language : isofficial , language , countrycode , percentage", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "languages": "countrylanguage.Language", + "single country with a republic government": "country.Code" + } + }, + { + "question": "find the #city with the largest population# that uses #english# .", + "db_id": "world_1", + "orig_query": "select t1.name, t1.population from city as t1 join countrylanguage as t2 on t1.countrycode = t2.countrycode where t2.language = \"English\" order by t1.population desc limit 1", + "schema_with_content": "country : indepyear (1907, 1844, 1822), lifeexpectancy (64.1, 46.7, 53.1), surfacearea (181035.0, 1240192.0, 1285216.0), region (\"Western Africa\", \"South America\", \"Melanesia\"), continent (\"South America\", \"Antarctica\", \"Asia\"), headofstate (\"Vaira Vike-Freiberga\", \"Vicente Fox Quesada\", \"Andr\u00c3\u00a9s Pastrana Arango\"), gnpold (781.0, 6722.0, 19769.0), localname (\"Venezuela\", \"Falkland Islands\", \"Lesotho\"), code (\"THA\", \"BMU\", \"CYP\"), code2 (\"LY\", \"GP\", \"NP\"), governmentform (\"Monarchy (Emirate)\", \"Constitutional Monarchy, Federation\", \"Independent Church State\"), gnp (903.0, 776.0, 1536.0), capital (539, 2256, 584), population (817000, 3850000, 0), name (\"Uzbekistan\", \"Northern Mariana Islands\", \"Bouvet Island\") | town : district (\"Hmelnytskyi\", \"Munster\", \"Oaxaca\"), countrycode (\"COK\", \"HUN\", \"MOZ\"), population (386855, 382853, 461000), id (3369, 921, 789), name (\"San Felipe\", \"Morioka\", \"Kielce\") | sqlite_sequence : name (\"city\"), seq (4079) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Tigre\", \"Gusii\", \"Bicol\"), percentage (95.1, 9.0, 18.1), countrycode (\"COL\", \"IRN\", \"PRK\") | metropolis : district (\"Hmelnytskyi\", \"Munster\", \"Oaxaca\"), countrycode (\"COK\", \"HUN\", \"MOZ\"), population (386855, 382853, 461000), id (3369, 921, 789), name (\"San Felipe\", \"Morioka\", \"Kielce\")", + "schema_without_content": "country : indepyear , lifeexpectancy , surfacearea , region , continent , headofstate , gnpold , localname , code , code2 , governmentform \", \"Constitutional Monarchy, Federation\", \"Independent Church State\", gnp , capital , population , name | town : district , countrycode , population , id , name | sqlite_sequence : name , seq | countrylanguage : isofficial , language , percentage , countrycode | metropolis : district , countrycode , population , id , name", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "city with the largest population": "city.Population", + "English": "countrylanguage.Language" + } + }, + { + "question": "find the #city with the largest population# that uses #english# .", + "db_id": "world_1", + "orig_query": "select t1.name, t1.population from city as t1 join countrylanguage as t2 on t1.countrycode = t2.countrycode where t2.language = \"English\" order by t1.population desc limit 1", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | spoken_language : countrycode (\"CPV\", \"SLE\", \"FIN\"), language (\"Comorian-Swahili\", \"Songhai-zerma\", \"Bajan\"), isofficial (\"T\", \"F\"), percentage (41.9, 26.9, 57.5) | country : surfacearea (21041.0, 193.0, 774815.0), gnpold (373.0, 246.0, 30373.0), governmentform (\"Socialistic Republic\", \"Dependent Territory of the US\", \"Nonmetropolitan Territory of New Zealand\"), indepyear (1908, 843, 1953), name (\"Sierra Leone\", \"Norway\", \"Belize\"), continent (\"Antarctica\", \"South America\", \"North America\"), code2 (\"YE\", \"GW\", \"VU\"), localname (\"France\", \"kaNgwane\", \"Zambia\"), region (\"Central Africa\", \"Southern Africa\", \"Caribbean\"), capital (3538, 2484, 2409), code (\"MUS\", \"ITA\", \"CAN\"), gnp (435.0, 264478.0, 105954.0), population (3972000, 11234000, 16125000), lifeexpectancy (73.7, 59.5, 45.2), headofstate (\"Ante Jelavic\", \"Vojislav Ko\u00c5\u00a1tunica\", \"Ismail Omar Guelleh\") | city : population (100821, 167183, 155332), name (\"Uruguaiana\", \"Sekondi-Takoradi\", \"Denver\"), district (\"Volgograd\", \"Wien\", \"Chuuk\"), countrycode (\"CAF\", \"PCN\", \"NAM\"), id (2993, 2350, 1488) | official_language : countrycode (\"CPV\", \"SLE\", \"FIN\"), language (\"Comorian-Swahili\", \"Songhai-zerma\", \"Bajan\"), isofficial (\"T\", \"F\"), percentage (41.9, 26.9, 57.5)", + "schema_without_content": "sqlite_sequence : name , seq | spoken_language : countrycode , language , isofficial , percentage | country : surfacearea , gnpold , governmentform , indepyear , name , continent , code2 , localname , region , capital , code , gnp , population , lifeexpectancy , headofstate | city : population , name , district , countrycode , id | official_language : countrycode , language , isofficial , percentage", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "city with the largest population": "city.Population", + "English": "countrylanguage.Language" + } + }, + { + "question": "what is the #most populace city that speaks english# ?", + "db_id": "world_1", + "orig_query": "select t1.name, t1.population from city as t1 join countrylanguage as t2 on t1.countrycode = t2.countrycode where t2.language = \"English\" order by t1.population desc limit 1", + "schema_with_content": "countrylanguage : language (\"Tadzhik\", \"Zhuang\", \"Kru\"), countrycode (\"URY\", \"GRC\", \"SWE\"), isofficial (\"T\", \"F\"), percentage (8.0, 0.2, 26.9) | country : code2 (\"MU\", \"NU\", \"SN\"), indepyear (1991, 1984, 1946), population (59623400, 4699000, 77000), capital (192, 187, 2710), name (\"Bermuda\", \"India\", \"Angola\"), headofstate (\"Islam Karimov\", \"Teburoro Tito\", \"Rainier III\"), gnp (20208.0, 63.2, 4397.0), gnpold (6722.0, 1056.0, 5729.0), region (\"Northern Africa\", \"Central America\", \"Eastern Asia\"), localname (\"Bosna i Hercegovina\", \"Centrafrique/B\u00c3\u00aa-Afr\u00c3\u00aeka\", \"Rossija\"), code (\"SMR\", \"HRV\", \"GRC\"), lifeexpectancy (44.0, 75.1, 67.2), continent (\"Europe\", \"Africa\", \"Oceania\"), surfacearea (2381741.0, 4000.0, 102173.0), governmentform (\"Part of Denmark\", \"Constitutional Monarchy (Emirate)\", \"Monarchy\") | town : population (108600, 259537, 173618), district (\"Lampung\", \"Penza\", \"Jaroslavl\"), countrycode (\"SPM\", \"COM\", \"ABW\"), id (781, 630, 69), name (\"Battambang\", \"Shangrao\", \"Piracicaba\") | sqlite_sequence : seq (4079), name (\"city\") | metropolis : population (108600, 259537, 173618), district (\"Lampung\", \"Penza\", \"Jaroslavl\"), countrycode (\"SPM\", \"COM\", \"ABW\"), id (781, 630, 69), name (\"Battambang\", \"Shangrao\", \"Piracicaba\")", + "schema_without_content": "countrylanguage : language , countrycode , isofficial , percentage | country : code2 , indepyear , population , capital , name , headofstate , gnp , gnpold , region , localname , code , lifeexpectancy , continent , surfacearea , governmentform \", \"Monarchy\" | town : population , district , countrycode , id , name | sqlite_sequence : seq , name | metropolis : population , district , countrycode , id , name", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "most populace city that speaks English": "city.Population" + } + }, + { + "question": "what is the #most populace city that speaks english# ?", + "db_id": "world_1", + "orig_query": "select t1.name, t1.population from city as t1 join countrylanguage as t2 on t1.countrycode = t2.countrycode where t2.language = \"English\" order by t1.population desc limit 1", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | city : name (\"Sabadell\", \"Montr\u00c3\u00a9al\", \"Kaesong\"), district (\"Viangchan\", \"Yerevan\", \"Th\u00c3\u00bcringen\"), id (1753, 3235, 696), population (171056, 131011, 92700), countrycode (\"LUX\", \"TCD\", \"SYR\") | spoken_language : percentage (6.4, 52.0, 76.8), language (\"Serbo-Croatian\", \"Joruba\", \"Mende\"), countrycode (\"DJI\", \"NCL\", \"MDG\"), isofficial (\"T\", \"F\") | country : code (\"BHR\", \"BWA\", \"IOT\"), region (\"Caribbean\", \"Northern Africa\", \"Nordic Countries\"), lifeexpectancy (37.5, 77.9, 69.5), headofstate (\"George W. Bush\", \"Mohammad Rafiq Tarar\", \"Zayid bin Sultan al-Nahayan\"), governmentform (\"Special Administrative Region of China\", \"Autonomous Area\", \"Overseas Department of France\"), continent (\"North America\", \"Africa\", \"Antarctica\"), gnpold (6097.0, 625626.0, 804108.0), population (214000, 20000, 68000), gnp (2841.0, 20208.0, 54669.0), capital (3580, 3064, 938), code2 (\"ZM\", \"KH\", \"AN\"), surfacearea (199900.0, 51197.0, 314.0), indepyear (1990, 1941, -1523), name (\"South Africa\", \"Georgia\", \"Norfolk Island\"), localname (\"Wallis-et-Futuna\", \"San Marino\", \"Pakistan\") | official_language : percentage (6.4, 52.0, 76.8), language (\"Serbo-Croatian\", \"Joruba\", \"Mende\"), countrycode (\"DJI\", \"NCL\", \"MDG\"), isofficial (\"T\", \"F\")", + "schema_without_content": "sqlite_sequence : name , seq | city : name , district , id , population , countrycode | spoken_language : percentage , language , countrycode , isofficial | country : code , region , lifeexpectancy , headofstate , governmentform , continent , gnpold , population , gnp , capital , code2 , surfacearea , indepyear , name , localname | official_language : percentage , language , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "most populace city that speaks English": "city.Population" + } + }, + { + "question": "find the #name# , #population# and e #xpected life length of asian country with the largest area?# ", + "db_id": "world_1", + "orig_query": "select name, population, lifeexpectancy from country where continent = \"Asia\" order by surfacearea desc limit 1", + "schema_with_content": "state : continent (\"Africa\", \"Oceania\", \"Europe\"), localname (\"Cayman Islands\", \"Cocos (Keeling) Islands\", \"To\u00c3\u00a7ikiston\"), population (93000, 99000, 103000), lifeexpectancy (51.1, 68.7, 44.0), governmentform (\"Territorial Collectivity of France\", \"Nonmetropolitan Territory of France\", \"Territorial Collectivity of France\"), code (\"THA\", \"BIH\", \"GMB\"), code2 (\"BM\", \"KM\", \"SD\"), indepyear (1499, 1956, 1961), capital (2695, 1792, 2882), headofstate (\"Miguel \u00c3\u0081ngel Rodr\u00c3\u00adguez Echeverr\u00c3\u00ada\", \"Bashar al-Assad\", \"Gyanendra Bir Bikram\"), gnpold (2500.0, 917719.0, 2500.0), surfacearea (373.0, 28896.0, 447400.0), region (\"Middle East\", \"British Islands\", \"Eastern Africa\"), name (\"New Zealand\", \"Saudi Arabia\", \"Iraq\"), gnp (120724.0, 212.0, 182.0) | nation : continent (\"Africa\", \"Oceania\", \"Europe\"), localname (\"Cayman Islands\", \"Cocos (Keeling) Islands\", \"To\u00c3\u00a7ikiston\"), population (93000, 99000, 103000), lifeexpectancy (51.1, 68.7, 44.0), governmentform (\"Territorial Collectivity of France\", \"Nonmetropolitan Territory of France\", \"Territorial Collectivity of France\"), code (\"THA\", \"BIH\", \"GMB\"), code2 (\"BM\", \"KM\", \"SD\"), indepyear (1499, 1956, 1961), capital (2695, 1792, 2882), headofstate (\"Miguel \u00c3\u0081ngel Rodr\u00c3\u00adguez Echeverr\u00c3\u00ada\", \"Bashar al-Assad\", \"Gyanendra Bir Bikram\"), gnpold (2500.0, 917719.0, 2500.0), surfacearea (373.0, 28896.0, 447400.0), region (\"Middle East\", \"British Islands\", \"Eastern Africa\"), name (\"New Zealand\", \"Saudi Arabia\", \"Iraq\"), gnp (120724.0, 212.0, 182.0) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Luhya\", \"Mende\", \"Creole English\"), percentage (75.5, 69.9, 29.7), countrycode (\"CZE\", \"AND\", \"MDG\") | sqlite_sequence : seq (4079), name (\"city\") | city : id (205, 2376, 3139), countrycode (\"PRT\", \"ISL\", \"DJI\"), population (563153, 291187, 178471), district (\"Taza-Al Hoceima-Taou\", \"Coquimbo\", \"Chongqing\"), name (\"Wuppertal\", \"Pasto\", \"Shymkent\")", + "schema_without_content": "state : continent , localname Islands\", \"To\u00c3\u00a7ikiston\", population , lifeexpectancy , governmentform , code , code2 , indepyear , capital , headofstate , gnpold , surfacearea , region , name , gnp | nation : continent , localname Islands\", \"To\u00c3\u00a7ikiston\", population , lifeexpectancy , governmentform , code , code2 , indepyear , capital , headofstate , gnpold , surfacearea , region , name , gnp | countrylanguage : isofficial , language , percentage , countrycode | sqlite_sequence : seq , name | city : id , countrycode , population , district , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "country.Name", + "population": "country.Population", + "xpected life length of asian country with the largest area?": "country.Continent", + "expected life length": "country.LifeExpectancy" + } + }, + { + "question": "what are the #name# , #population# , and #life expectancy# of the largest as #ian country by land?# ", + "db_id": "world_1", + "orig_query": "select name, population, lifeexpectancy from country where continent = \"Asia\" order by surfacearea desc limit 1", + "schema_with_content": "city : population (281800, 107078, 110550), id (1290, 3480, 272), district (\"Baja California Sur\", \"Distrito Central\", \"Nord-Ouest\"), countrycode (\"IND\", \"VAT\", \"GTM\"), name (\"D\u00c3\u00bcsseldorf\", \"Evansville\", \"Las Palmas de Gran Canaria\") | countrylanguage : countrycode (\"BTN\", \"ARM\", \"SOM\"), isofficial (\"T\", \"F\"), percentage (98.3, 0.4, 7.1), language (\"Yalunka\", \"Amhara\", \"Guaran\u00c3\u00ad\") | nation : population (30080000, 25662000, 8190900), capital (1380, 2514, 3169), continent (\"North America\", \"Oceania\", \"Oceania\"), headofstate (\"Eduard \u00c5\u00a0evardnadze\", \"Jigme Singye Wangchuk\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\"), gnpold (1312.0, 1084.0, 52037.0), code2 (\"GL\", \"GW\", \"GS\"), gnp (64140.0, 1449.0, 1706.0), indepyear (1908, 1847, 1917), code (\"SEN\", \"MRT\", \"ARG\"), surfacearea (26.0, 406752.0, 91982.0), lifeexpectancy (62.2, 76.1, 78.1), localname (\"Honduras\", \"Mo\u00c3\u00a7ambique\", \"Bharat/India\"), name (\"Switzerland\", \"Kuwait\", \"French Southern territories\"), region (\"North America\", \"Micronesia\", \"Southern Europe\"), governmentform (\"Socialistic State\", \"Constitutional Monarchy, Federation\", \"Federal Republic\") | sqlite_sequence : seq (4079), name (\"city\") | state : population (30080000, 25662000, 8190900), capital (1380, 2514, 3169), continent (\"North America\", \"Oceania\", \"Oceania\"), headofstate (\"Eduard \u00c5\u00a0evardnadze\", \"Jigme Singye Wangchuk\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\"), gnpold (1312.0, 1084.0, 52037.0), code2 (\"GL\", \"GW\", \"GS\"), gnp (64140.0, 1449.0, 1706.0), indepyear (1908, 1847, 1917), code (\"SEN\", \"MRT\", \"ARG\"), surfacearea (26.0, 406752.0, 91982.0), lifeexpectancy (62.2, 76.1, 78.1), localname (\"Honduras\", \"Mo\u00c3\u00a7ambique\", \"Bharat/India\"), name (\"Switzerland\", \"Kuwait\", \"French Southern territories\"), region (\"North America\", \"Micronesia\", \"Southern Europe\"), governmentform (\"Socialistic State\", \"Constitutional Monarchy, Federation\", \"Federal Republic\")", + "schema_without_content": "city : population , id , district , countrycode , name | countrylanguage : countrycode , isofficial , percentage , language | nation : population , capital , continent , headofstate , gnpold , code2 , gnp , indepyear , code , surfacearea , lifeexpectancy , localname , name , region , governmentform | sqlite_sequence : seq , name | state : population , capital , continent , headofstate , gnpold , code2 , gnp , indepyear , code , surfacearea , lifeexpectancy , localname , name , region , governmentform", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "country.Name", + "population": "country.Population", + "life expectancy": "country.LifeExpectancy", + "ian country by land?": "country.SurfaceArea", + "Asian country": "country.Continent" + } + }, + { + "question": "what is #average life expectancy in the countries# where #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\")", + "schema_with_content": "state : region (\"Australia and New Zealand\", \"Nordic Countries\", \"Eastern Asia\"), name (\"Pakistan\", \"Sweden\", \"Laos\"), population (4380000, 10043200, 11669000), surfacearea (344.0, 196722.0, 1904569.0), code (\"MAC\", \"IOT\", \"PLW\"), code2 (\"CA\", \"HR\", \"AM\"), lifeexpectancy (59.5, 49.8, 55.0), localname (\"R\u00c3\u00a9union\", \"Falkland Islands\", \"Cuba\"), continent (\"Asia\", \"South America\", \"North America\"), headofstate (\"Azali Assoumani\", \"Gyanendra Bir Bikram\", \"George W. Bush\"), capital (2884, 3016, 552), gnp (5121.0, 818.0, 2352.0), gnpold (8246.0, 220.0, 2186.0), indepyear (1957, 1984, 1878), governmentform (\"Autonomous Area\", \"Part of Denmark\", \"Federation\") | nation : region (\"Australia and New Zealand\", \"Nordic Countries\", \"Eastern Asia\"), name (\"Pakistan\", \"Sweden\", \"Laos\"), population (4380000, 10043200, 11669000), surfacearea (344.0, 196722.0, 1904569.0), code (\"MAC\", \"IOT\", \"PLW\"), code2 (\"CA\", \"HR\", \"AM\"), lifeexpectancy (59.5, 49.8, 55.0), localname (\"R\u00c3\u00a9union\", \"Falkland Islands\", \"Cuba\"), continent (\"Asia\", \"South America\", \"North America\"), headofstate (\"Azali Assoumani\", \"Gyanendra Bir Bikram\", \"George W. Bush\"), capital (2884, 3016, 552), gnp (5121.0, 818.0, 2352.0), gnpold (8246.0, 220.0, 2186.0), indepyear (1957, 1984, 1878), governmentform (\"Autonomous Area\", \"Part of Denmark\", \"Federation\") | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : countrycode (\"MNG\", \"JPN\", \"ARG\"), language (\"Ukrainian\", \"Bulgariana\", \"Ambo\"), isofficial (\"T\", \"F\"), percentage (39.4, 96.4, 26.9) | city : district (\"Saint-Pierre\", \"Mangghystau\", \"Volgograd\"), population (1372800, 117162, 110034), countrycode (\"CUB\", \"HTI\", \"KIR\"), id (1334, 3058, 2782), name (\"Santa Marta\", \"Mbeya\", \"Larisa\")", + "schema_without_content": "state : region , name , population , surfacearea , code , code2 , lifeexpectancy , localname , continent , headofstate , capital , gnp , gnpold , indepyear , governmentform | nation : region , name , population , surfacearea , code , code2 , lifeexpectancy , localname , continent , headofstate , capital , gnp , gnpold , indepyear , governmentform | sqlite_sequence : seq , name | countrylanguage : countrycode , language , isofficial , percentage | city : district , population , countrycode , id , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average life expectancy in the countries": "country.LifeExpectancy", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "what is #average life expectancy in the countries# where #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\")", + "schema_with_content": "official_language : isofficial (\"T\", \"F\"), percentage (7.2, 97.5, 31.8), countrycode (\"GRC\", \"ISR\", \"CHL\"), language (\"Mandyako\", \"Italian\", \"Orija\") | country : lifeexpectancy (79.5, 37.8, 76.2), headofstate (\"Chandrika Kumaratunga\", None, \"Tarja Halonen\"), name (\"Nepal\", \"Bolivia\", \"Ecuador\"), continent (\"Oceania\", \"North America\", \"Europe\"), gnp (10226.0, 16321.0, 283.0), code2 (\"AW\", \"EH\", \"NG\"), localname (\"Puerto Rico\", \"\u00e2\u0080\u0093\", \"Botswana\"), governmentform (\"Constitutional Monarchy\", \"US Territory\", \"Dependent Territory of Norway\"), gnpold (8920.0, 18862.0, 16153.0), surfacearea (11000.0, 796095.0, 342000.0), region (\"Southeast Asia\", \"Micronesia/Caribbean\", \"South America\"), indepyear (885, 1963, 1978), population (4807000, 11234000, 190000), capital (174, 2821, 3539), code (\"LAO\", \"POL\", \"TTO\") | city : id (2572, 1314, 2724), countrycode (\"PRT\", \"HND\", \"TGO\"), population (129300, 227881, 618477), district (\"Dubai\", \"Borsod-Aba\u00c3\u00baj-Zempl\u00c3\u00a9n\", \"Bishkek shaary\"), name (\"Gilbert\", \"Mirzapur-cum-Vindhyachal\", \"Guant\u00c3\u00a1namo\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : isofficial (\"T\", \"F\"), percentage (7.2, 97.5, 31.8), countrycode (\"GRC\", \"ISR\", \"CHL\"), language (\"Mandyako\", \"Italian\", \"Orija\")", + "schema_without_content": "official_language : isofficial , percentage , countrycode , language | country : lifeexpectancy , headofstate , name , continent , gnp , code2 , localname , governmentform , gnpold , surfacearea , region , indepyear , population , capital , code | city : id , countrycode , population , district , name | sqlite_sequence : seq , name | spoken_language : isofficial , percentage , countrycode , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "average life expectancy in the countries": "country.LifeExpectancy", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "give the #mean life expectancy of countries# in which #english# is not the #official language# .", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\")", + "schema_with_content": "state : capital (1800, 1780, 3067), gnpold (2201.0, 1145372.0, 52037.0), headofstate (\"Jos\u00c3\u00a9 Alexandre Gusm\u00c3\u00a3o\", \"Emomali Rahmonov\", \"Arnoldo Alem\u00c3\u00a1n Lacayo\"), governmentform (\"Dependent Territory of Norway\", \"Overseas Department of France\", \"Parliamentary Coprincipality\"), gnp (414972.0, 256254.0, 20026.0), region (\"Eastern Asia\", \"Southern Africa\", \"Baltic Countries\"), population (21778000, 50456000, 21607000), code2 (\"GF\", \"SJ\", \"MT\"), continent (\"Europe\", \"South America\", \"Oceania\"), lifeexpectancy (70.9, 66.4, 78.0), localname (\"Djibouti/Jibuti\", \"The Turks and Caicos Islands\", \"United States Minor Outlying Islands\"), code (\"CMR\", \"USA\", \"NOR\"), name (\"Qatar\", \"Germany\", \"Vietnam\"), indepyear (1581, 1499, 1962), surfacearea (117600.0, 12189.0, 1285216.0) | city : district (\"Northern Cape\", \"Kastilia-La Mancha\", \"Mwanza\"), population (113910, 220129, 217900), name (\"Caruaru\", \"Jena\", \"Cambridge\"), countrycode (\"PCN\", \"AZE\", \"BHR\"), id (277, 3521, 2046) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : countrycode (\"AZE\", \"MWI\", \"PAN\"), isofficial (\"T\", \"F\"), language (\"Rundi\", \"Buryat\", \"Zhuang\"), percentage (3.8, 77.2, 16.8) | nation : capital (1800, 1780, 3067), gnpold (2201.0, 1145372.0, 52037.0), headofstate (\"Jos\u00c3\u00a9 Alexandre Gusm\u00c3\u00a3o\", \"Emomali Rahmonov\", \"Arnoldo Alem\u00c3\u00a1n Lacayo\"), governmentform (\"Dependent Territory of Norway\", \"Overseas Department of France\", \"Parliamentary Coprincipality\"), gnp (414972.0, 256254.0, 20026.0), region (\"Eastern Asia\", \"Southern Africa\", \"Baltic Countries\"), population (21778000, 50456000, 21607000), code2 (\"GF\", \"SJ\", \"MT\"), continent (\"Europe\", \"South America\", \"Oceania\"), lifeexpectancy (70.9, 66.4, 78.0), localname (\"Djibouti/Jibuti\", \"The Turks and Caicos Islands\", \"United States Minor Outlying Islands\"), code (\"CMR\", \"USA\", \"NOR\"), name (\"Qatar\", \"Germany\", \"Vietnam\"), indepyear (1581, 1499, 1962), surfacearea (117600.0, 12189.0, 1285216.0)", + "schema_without_content": "state : capital , gnpold , headofstate , governmentform , gnp , region , population , code2 , continent , lifeexpectancy , localname , code , name , indepyear , surfacearea | city : district , population , name , countrycode , id | sqlite_sequence : seq , name | countrylanguage : countrycode , isofficial , language , percentage | nation : capital , gnpold , headofstate , governmentform , gnp , region , population , code2 , continent , lifeexpectancy , localname , code , name , indepyear , surfacearea", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "mean life expectancy of countries": "country.LifeExpectancy", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "give the #mean life expectancy of countries# in which #english# is not the #official language# .", + "db_id": "world_1", + "orig_query": "select avg(lifeexpectancy) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\" and t2.isofficial = \"T\")", + "schema_with_content": "country : continent (\"South America\", \"Europe\", \"North America\"), governmentform (\"Overseas Department of France\", \"US Territory\", \"Independent Church State\"), code2 (\"MQ\", \"AR\", \"QA\"), code (\"BEL\", \"ASM\", \"EST\"), population (10545700, 4629000, 37032000), localname (\"Indonesia\", \"Trinidad and Tobago\", \"France\"), region (\"Micronesia\", \"Australia and New Zealand\", \"Micronesia/Caribbean\"), headofstate (\"Kuniwo Nakamura\", \"Yoweri Museveni\", \"Natsagiin Bagabandi\"), lifeexpectancy (51.6, 63.3, 77.9), gnp (6.0, 818.0, 1043.0), indepyear (1821, 1908, 1912), name (\"Guatemala\", \"Burkina Faso\", \"Turks and Caicos Islands\"), gnpold (1081.0, 173610.0, 8110900.0), surfacearea (587041.0, 241038.0, 71740.0), capital (2928, 1859, 2438) | sqlite_sequence : seq (4079), name (\"city\") | city : id (781, 521, 122), district (\"Chisinau\", \"Maradi\", \"Zonguldak\"), countrycode (\"REU\", \"BRB\", \"SDN\"), population (115965, 298500, 1874409), name (\"Kallithea\", \"Shambajinagar (Aurangabad)\", \"Borisov\") | official_language : countrycode (\"USA\", \"CHL\", \"COM\"), isofficial (\"T\", \"F\"), language (\"Mari\", \"Malenasian Languages\", \"Boa\"), percentage (10.9, 15.2, 82.2) | spoken_language : countrycode (\"USA\", \"CHL\", \"COM\"), isofficial (\"T\", \"F\"), language (\"Mari\", \"Malenasian Languages\", \"Boa\"), percentage (10.9, 15.2, 82.2)", + "schema_without_content": "country : continent , governmentform , code2 , code , population , localname , region , headofstate , lifeexpectancy , gnp , indepyear , name , gnpold , surfacearea , capital | sqlite_sequence : seq , name | city : id , district , countrycode , population , name \", \"Borisov\" | official_language : countrycode , isofficial , language , percentage | spoken_language : countrycode , isofficial , language , percentage", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "mean life expectancy of countries": "country.LifeExpectancy", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "what is the #total number of people# living in the #nations# that do not use #english# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\")", + "schema_with_content": "nation : capital (2697, 1791, 3063), governmentform (\"Parlementary Monarchy\", \"Dependent Territory of the US\", \"Dependent Territory of the US\"), indepyear (1861, 1974, 1804), continent (\"Africa\", \"North America\", \"Europe\"), gnp (212.0, 6871.0, 1424285.0), region (\"Micronesia\", \"British Islands\", \"Northern Africa\"), surfacearea (78.0, 12189.0, 30355.0), code2 (\"CY\", \"TZ\", \"BN\"), code (\"NCL\", \"ZAF\", \"IDN\"), headofstate (\"Abdoulaye Wade\", \"Adolf Ogi\", \"Benjamin William Mkapa\"), lifeexpectancy (60.6, 50.2, 59.8), name (\"Togo\", \"Togo\", \"Liechtenstein\"), population (57680000, 3698500, 15085000), localname (\"Nederlandse Antillen\", \"Aruba\", \"Tonga\"), gnpold (4100.0, 539.0, 2287.0) | state : capital (2697, 1791, 3063), governmentform (\"Parlementary Monarchy\", \"Dependent Territory of the US\", \"Dependent Territory of the US\"), indepyear (1861, 1974, 1804), continent (\"Africa\", \"North America\", \"Europe\"), gnp (212.0, 6871.0, 1424285.0), region (\"Micronesia\", \"British Islands\", \"Northern Africa\"), surfacearea (78.0, 12189.0, 30355.0), code2 (\"CY\", \"TZ\", \"BN\"), code (\"NCL\", \"ZAF\", \"IDN\"), headofstate (\"Abdoulaye Wade\", \"Adolf Ogi\", \"Benjamin William Mkapa\"), lifeexpectancy (60.6, 50.2, 59.8), name (\"Togo\", \"Togo\", \"Liechtenstein\"), population (57680000, 3698500, 15085000), localname (\"Nederlandse Antillen\", \"Aruba\", \"Tonga\"), gnpold (4100.0, 539.0, 2287.0) | countrylanguage : countrycode (\"BFA\", \"ARM\", \"CPV\"), language (\"Italian\", \"Nama\", \"Indian Languages\"), percentage (46.4, 6.5, 97.9), isofficial (\"T\", \"F\") | city : countrycode (\"PER\", \"CYP\", \"VGB\"), id (3518, 3753, 1506), name (\"Brasov\", \"Shizuoka\", \"Pematang Siantar\"), district (\"Djibouti\", \"South Australia\", \"Kitaa\"), population (89143, 95219, 837588) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "nation : capital , governmentform , indepyear , continent , gnp , region , surfacearea , code2 , code , headofstate , lifeexpectancy , name , population , localname , gnpold | state : capital , governmentform , indepyear , continent , gnp , region , surfacearea , code2 , code , headofstate , lifeexpectancy , name , population , localname , gnpold | countrylanguage : countrycode , language , percentage , isofficial | city : countrycode , id , name , district , population | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "total number of people": "country.Population", + "nations": "country", + "English": "countrylanguage.Language" + } + }, + { + "question": "what is the #total number of people# living in the #nations# that do not use #english# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\")", + "schema_with_content": "country : localname (\"Pilipinas\", \"Jugoslavija\", \"Gibraltar\"), continent (\"Europe\", \"Asia\", \"Europe\"), indepyear (1962, -1523, 1841), capital (3536, 594, 2882), headofstate (\"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Isayas Afewerki [Isaias Afwerki]\", \"Mswati III\"), gnp (2036.0, 6353.0, 13714.0), lifeexpectancy (78.6, 54.9, 65.3), region (\"Antarctica\", \"Eastern Asia\", \"Eastern Asia\"), gnpold (4192638.0, 11203.0, 22834.0), governmentform (\"Independent Church State\", \"Monarchy\", \"Monarchy\"), code (\"TZA\", \"MLI\", \"BMU\"), code2 (\"CO\", \"GR\", \"IO\"), population (66591000, 50, 8495000), name (\"Norway\", \"Holy See (Vatican City State)\", \"Yugoslavia\"), surfacearea (323250.0, 71740.0, 1.5) | spoken_language : isofficial (\"T\", \"F\"), countrycode (\"PAN\", \"GEO\", \"TWN\"), percentage (97.7, 37.2, 21.7), language (\"Tuvalu\", \"Balochi\", \"Rundi\") | city : name (\"Masjed-e-Soleyman\", \"Aden\", \"Ambattur\"), id (3810, 2554, 2326), population (89667, 448607, 151862), countrycode (\"ZMB\", \"BEN\", \"UGA\"), district (\"Taipei\", \"Cear\u00c3\u00a1\", \"Herson\") | sqlite_sequence : seq (4079), name (\"city\") | official_language : isofficial (\"T\", \"F\"), countrycode (\"PAN\", \"GEO\", \"TWN\"), percentage (97.7, 37.2, 21.7), language (\"Tuvalu\", \"Balochi\", \"Rundi\")", + "schema_without_content": "country : localname , continent , indepyear , capital , headofstate , gnp , lifeexpectancy , region , gnpold , governmentform , code , code2 , population , name \", \"Yugoslavia\", surfacearea | spoken_language : isofficial , countrycode , percentage , language | city : name , id , population , countrycode , district | sqlite_sequence : seq , name | official_language : isofficial , countrycode , percentage , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "total number of people": "country.Population", + "nations": "country", + "English": "countrylanguage.Language" + } + }, + { + "question": "how many #people# live in #countries# that do not #speak english# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\")", + "schema_with_content": "city : name (\"Kendari\", \"Taguig\", \"Asan\"), id (1673, 2221, 2212), countrycode (\"MRT\", \"KGZ\", \"IDN\"), population (90289, 127427, 500000), district (\"T\u00c5\u00a1eljabinsk\", \"Falc\u00c3\u00b3n\", \"Copperbelt\") | nation : headofstate (\"Nursultan Nazarbajev\", \"Khamtay Siphandone\", \"Laurent Gbagbo\"), lifeexpectancy (70.5, 53.2, 45.2), governmentform (\"Socialistic State\", \"Constitutional Monarchy\", \"US Territory\"), indepyear (1980, 1946, 1822), gnp (13714.0, 998.0, 49982.0), continent (\"North America\", \"Asia\", \"Antarctica\"), gnpold (2141.0, 75617.0, 58623.0), localname (\"Mayotte\", \"Puerto Rico\", \"kaNgwane\"), population (21000, 66591000, 33517000), code2 (\"CZ\", \"KW\", \"SD\"), capital (766, 3047, 62), surfacearea (25713.0, 462840.0, 193.0), region (\"British Islands\", \"British Islands\", \"Southern and Central Asia\"), code (\"BDI\", \"CHL\", \"MCO\"), name (\"Mauritania\", \"Falkland Islands\", \"Estonia\") | countrylanguage : language (\"Zande\", \"Joruba\", \"Diola\"), countrycode (\"KIR\", \"LCA\", \"MNG\"), percentage (84.8, 27.7, 3.8), isofficial (\"T\", \"F\") | state : headofstate (\"Nursultan Nazarbajev\", \"Khamtay Siphandone\", \"Laurent Gbagbo\"), lifeexpectancy (70.5, 53.2, 45.2), governmentform (\"Socialistic State\", \"Constitutional Monarchy\", \"US Territory\"), indepyear (1980, 1946, 1822), gnp (13714.0, 998.0, 49982.0), continent (\"North America\", \"Asia\", \"Antarctica\"), gnpold (2141.0, 75617.0, 58623.0), localname (\"Mayotte\", \"Puerto Rico\", \"kaNgwane\"), population (21000, 66591000, 33517000), code2 (\"CZ\", \"KW\", \"SD\"), capital (766, 3047, 62), surfacearea (25713.0, 462840.0, 193.0), region (\"British Islands\", \"British Islands\", \"Southern and Central Asia\"), code (\"BDI\", \"CHL\", \"MCO\"), name (\"Mauritania\", \"Falkland Islands\", \"Estonia\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : name , id , countrycode , population , district | nation : headofstate , lifeexpectancy , governmentform , indepyear , gnp , continent , gnpold , localname , population , code2 , capital , surfacearea , region , code , name | countrylanguage : language , countrycode , percentage , isofficial | state : headofstate , lifeexpectancy , governmentform , indepyear , gnp , continent , gnpold , localname , population , code2 , capital , surfacearea , region , code , name | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "people": "country.Population", + "countries": "country", + "speak English": "countrylanguage.Language" + } + }, + { + "question": "how many #people# live in #countries# that do not #speak english# ?", + "db_id": "world_1", + "orig_query": "select sum(population) from country where name not in (select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"English\")", + "schema_with_content": "official_language : percentage (97.2, 6.3, 92.1), isofficial (\"T\", \"F\"), language (\"Venda\", \"Mandarin Chinese\", \"[South]Mande\"), countrycode (\"MDG\", \"MOZ\", \"YEM\") | country : indepyear (1966, 836, 836), surfacearea (7741220.0, 342000.0, 56538.0), code2 (\"KW\", \"HK\", \"MM\"), gnp (3527.0, 598862.0, 3101.0), continent (\"Asia\", \"Asia\", \"Asia\"), gnpold (8700.0, 743.0, 2527.0), lifeexpectancy (63.1, 57.4, 64.0), governmentform (\"Monarchy (Sultanate)\", \"Territorial Collectivity of France\", \"Part of Denmark\"), population (94000, 1987800, 94000), code (\"FLK\", \"LBY\", \"NCL\"), capital (2453, 3536, 34), region (\"Southeast Asia\", \"Micronesia/Caribbean\", \"Eastern Asia\"), headofstate (\"Beatrix\", \"Abdelaziz Bouteflika\", \"Guido de Marco\"), name (\"Palau\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\", \"El Salvador\"), localname (\"Al-Yaman\", \"Venezuela\", \"Tuvalu\") | city : id (3284, 396, 2840), name (\"Villeurbanne\", \"Zapopan\", \"Patiala\"), countrycode (\"KNA\", \"GEO\", \"VUT\"), district (\"Cort\u00c3\u00a9s\", \"Saga\", \"Samsun\"), population (218812, 339194, 17100) | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : percentage (97.2, 6.3, 92.1), isofficial (\"T\", \"F\"), language (\"Venda\", \"Mandarin Chinese\", \"[South]Mande\"), countrycode (\"MDG\", \"MOZ\", \"YEM\")", + "schema_without_content": "official_language : percentage , isofficial , language , countrycode | country : indepyear , surfacearea , code2 , gnp , continent , gnpold , lifeexpectancy , governmentform \", \"Territorial Collectivity of France\", \"Part of Denmark\", population , code , capital , region , headofstate , name , localname | city : id , name , countrycode , district , population | sqlite_sequence : seq , name | spoken_language : percentage , isofficial , language , countrycode", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "people": "country.Population", + "countries": "country", + "speak English": "countrylanguage.Language" + } + }, + { + "question": "what is the #official language# spoken in the #country# whose #head of state# is beatrix?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"Beatrix\" and t2.isofficial = \"T\"", + "schema_with_content": "countrylanguage : countrycode (\"PER\", \"COL\", \"GMB\"), isofficial (\"T\", \"F\"), percentage (12.3, 72.1, 90.6), language (\"Romanian\", \"Mortlock\", \"Banda\") | sqlite_sequence : seq (4079), name (\"city\") | state : capital (554, 204, 4074), code (\"PHL\", \"TKL\", \"CZE\"), lifeexpectancy (67.5, 73.0, 74.1), continent (\"Asia\", \"Asia\", \"North America\"), gnpold (15519.0, 220.0, 4100.0), localname (\"As-Sudan\", \"Malawi\", \"Fiji Islands\"), code2 (\"GD\", \"SY\", \"KI\"), surfacearea (637657.0, 143998.0, 551500.0), name (\"Luxembourg\", \"Malawi\", \"East Timor\"), gnp (598862.0, 116416.0, 14194.0), indepyear (1968, -1000, None), population (817000, 68470000, 10545700), headofstate (\"Gyanendra Bir Bikram\", \"Kostis Stefanopoulos\", \"Ahmed Tejan Kabbah\"), governmentform (\"Monarchy (Emirate)\", \"People'sRepublic\", \"US Territory\"), region (\"Eastern Africa\", \"Baltic Countries\", \"Western Africa\") | nation : capital (554, 204, 4074), code (\"PHL\", \"TKL\", \"CZE\"), lifeexpectancy (67.5, 73.0, 74.1), continent (\"Asia\", \"Asia\", \"North America\"), gnpold (15519.0, 220.0, 4100.0), localname (\"As-Sudan\", \"Malawi\", \"Fiji Islands\"), code2 (\"GD\", \"SY\", \"KI\"), surfacearea (637657.0, 143998.0, 551500.0), name (\"Luxembourg\", \"Malawi\", \"East Timor\"), gnp (598862.0, 116416.0, 14194.0), indepyear (1968, -1000, None), population (817000, 68470000, 10545700), headofstate (\"Gyanendra Bir Bikram\", \"Kostis Stefanopoulos\", \"Ahmed Tejan Kabbah\"), governmentform (\"Monarchy (Emirate)\", \"People'sRepublic\", \"US Territory\"), region (\"Eastern Africa\", \"Baltic Countries\", \"Western Africa\") | city : id (2714, 990, 1771), population (136554, 95521, 150168), district (\"Oklahoma\", \"Aleppo\", \"Oriental\"), countrycode (\"NCL\", \"DOM\", \"KEN\"), name (\"Little Rock\", \"Rubtsovsk\", \"Southend-on-Sea\")", + "schema_without_content": "countrylanguage : countrycode , isofficial , percentage , language | sqlite_sequence : seq , name | state : capital , code , lifeexpectancy , continent , gnpold , localname , code2 , surfacearea , name , gnp , indepyear , population , headofstate , governmentform \", \"People'sRepublic\", \"US Territory\", region | nation : capital , code , lifeexpectancy , continent , gnpold , localname , code2 , surfacearea , name , gnp , indepyear , population , headofstate , governmentform \", \"People'sRepublic\", \"US Territory\", region | city : id , population , district , countrycode , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "official language": "countrylanguage.Language", + "country": "country", + "head of state": "country.HeadOfState", + "is official": "countrylanguage.IsOfficial" + } + }, + { + "question": "what is the #official language# spoken in the #country# whose #head of state# is beatrix?", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"Beatrix\" and t2.isofficial = \"T\"", + "schema_with_content": "official_language : countrycode (\"GAB\", \"ISR\", \"ARG\"), percentage (0.4, 65.3, 4.2), isofficial (\"T\", \"F\"), language (\"Luchazi\", \"Temne\", \"Gusii\") | country : governmentform (\"US Territory\", \"Socialistic Republic\", \"Emirate Federation\"), code (\"ARG\", \"SMR\", \"TJK\"), gnpold (2500.0, 64960.0, 373.0), capital (549, 3017, 2453), code2 (\"KP\", \"GP\", \"AW\"), headofstate (\"Bernard Dowiyogo\", \"Ali Abdallah Salih\", \"Isayas Afewerki [Isaias Afwerki]\"), lifeexpectancy (76.1, 59.5, 77.8), region (\"Polynesia\", \"Western Europe\", \"Eastern Europe\"), name (\"Antigua and Barbuda\", \"Austria\", \"Gibraltar\"), surfacearea (300000.0, 726.0, 12.0), gnp (32852.0, 5749.0, 20594.0), localname (\"Bolivia\", \"Singapore/Singapura/Xinjiapo/Singapur\", \"B\u00c3\u00a9nin\"), indepyear (1946, 885, 1901), population (2542000, 146934000, 1000), continent (\"Oceania\", \"South America\", \"Africa\") | city : population (179572, 188713, 121030), name (\"Sanliurfa\", \"Gurue\", \"Raichur\"), id (3297, 3957, 337), countrycode (\"RWA\", \"NLD\", \"LKA\"), district (\"Mandalay\", \"Lodzkie\", \"Guayas\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : countrycode (\"GAB\", \"ISR\", \"ARG\"), percentage (0.4, 65.3, 4.2), isofficial (\"T\", \"F\"), language (\"Luchazi\", \"Temne\", \"Gusii\")", + "schema_without_content": "official_language : countrycode , percentage , isofficial , language | country : governmentform , code , gnpold , capital , code2 , headofstate , lifeexpectancy , region , name , surfacearea , gnp , localname , indepyear , population , continent | city : population , name , id , countrycode , district | sqlite_sequence : seq , name | spoken_language : countrycode , percentage , isofficial , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "official language": "countrylanguage.Language", + "country": "country", + "head of state": "country.HeadOfState", + "is official": "countrylanguage.IsOfficial" + } + }, + { + "question": "what is the #official language# used in the #country the name of whose head of state# is beatrix.", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"Beatrix\" and t2.isofficial = \"T\"", + "schema_with_content": "state : gnpold (32100.0, 97884.0, 9555.0), population (10097000, 25662000, 33517000), name (\"Dominica\", \"Malaysia\", \"Gabon\"), headofstate (\"Arthur N. R. Robinson\", \"Mswati III\", \"Olusegun Obasanjo\"), region (\"Southern Europe\", \"South America\", \"Southern and Central Asia\"), code2 (\"ET\", \"KE\", \"AN\"), surfacearea (1958201.0, 323250.0, 71740.0), governmentform (\"Constitutional Monarchy\", \"Nonmetropolitan Territory of New Zealand\", \"Autonomous Area\"), gnp (137635.0, 2012.0, 8571.0), indepyear (1953, 1769, 1964), localname (\"Rom\u00c3\u00a2nia\", \"Dominica\", \"\u00c3\u008dsland\"), code (\"BEN\", \"HND\", \"VEN\"), lifeexpectancy (70.8, 78.7, 83.5), capital (2690, 2805, 2447), continent (\"Antarctica\", \"South America\", \"Europe\") | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : countrycode (\"SYR\", \"THA\", \"NRU\"), language (\"Balante\", \"Songhai\", \"Samoan\"), percentage (20.3, 2.8, 82.2), isofficial (\"T\", \"F\") | city : id (46, 3811, 483), population (146105, 159344, 798430), district (\"Mah\u00c3\u00a9\", \"Maysan\", \"Co\u00c3\u00admbra\"), name (\"Neuss\", \"Mar del Plata\", \"Banda Aceh\"), countrycode (\"LTU\", \"MLI\", \"SLV\") | nation : gnpold (32100.0, 97884.0, 9555.0), population (10097000, 25662000, 33517000), name (\"Dominica\", \"Malaysia\", \"Gabon\"), headofstate (\"Arthur N. R. Robinson\", \"Mswati III\", \"Olusegun Obasanjo\"), region (\"Southern Europe\", \"South America\", \"Southern and Central Asia\"), code2 (\"ET\", \"KE\", \"AN\"), surfacearea (1958201.0, 323250.0, 71740.0), governmentform (\"Constitutional Monarchy\", \"Nonmetropolitan Territory of New Zealand\", \"Autonomous Area\"), gnp (137635.0, 2012.0, 8571.0), indepyear (1953, 1769, 1964), localname (\"Rom\u00c3\u00a2nia\", \"Dominica\", \"\u00c3\u008dsland\"), code (\"BEN\", \"HND\", \"VEN\"), lifeexpectancy (70.8, 78.7, 83.5), capital (2690, 2805, 2447), continent (\"Antarctica\", \"South America\", \"Europe\")", + "schema_without_content": "state : gnpold , population , name , headofstate , region , code2 , surfacearea , governmentform , gnp , indepyear , localname , code , lifeexpectancy , capital , continent | sqlite_sequence : seq , name | countrylanguage : countrycode , language , percentage , isofficial | city : id , population , district , name , countrycode | nation : gnpold , population , name , headofstate , region , code2 , surfacearea , governmentform , gnp , indepyear , localname , code , lifeexpectancy , capital , continent", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "official language": "countrylanguage.Language", + "country the name of whose head of state": "country.HeadOfState" + } + }, + { + "question": "what is the #official language# used in the #country the name of whose head of state# is beatrix.", + "db_id": "world_1", + "orig_query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"Beatrix\" and t2.isofficial = \"T\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : countrycode (\"AIA\", \"CIV\", \"CMR\"), population (364972, 497464, 145143), name (\"Zagazig\", \"Engels\", \"Bouak\u00c3\u00a9\"), district (\"Qazvin\", \"Krasnojarsk\", \"Tartumaa\"), id (1212, 264, 1644) | country : continent (\"South America\", \"North America\", \"Oceania\"), governmentform (\"Constitutional Monarchy\", \"Monarchy (Emirate)\", \"Monarchy (Sultanate)\"), lifeexpectancy (56.5, 48.8, 63.7), population (1439200, 1622000, 0), localname (\"Namibia\", \"Venezuela\", \"Tunis/Tunisie\"), surfacearea (1399.0, 6.0, 33851.0), code (\"NZL\", \"ATG\", \"SPM\"), name (\"Northern Mariana Islands\", \"Norway\", \"France\"), headofstate (\"Valdas Adamkus\", \"Jigme Singye Wangchuk\", \"Albert II\"), capital (653, 4068, 62), gnp (2841.0, 4401.0, 37966.0), indepyear (1581, -1000, 1867), region (\"Eastern Asia\", \"Southern and Central Asia\", \"Western Africa\"), gnpold (993.0, 6884.0, 1400.0), code2 (\"KN\", \"LC\", \"MA\") | spoken_language : percentage (4.2, 22.4, 88.6), isofficial (\"T\", \"F\"), countrycode (\"POL\", \"BOL\", \"DJI\"), language (\"Udmur\", \"Papuan Languages\", \"Nama\") | official_language : percentage (4.2, 22.4, 88.6), isofficial (\"T\", \"F\"), countrycode (\"POL\", \"BOL\", \"DJI\"), language (\"Udmur\", \"Papuan Languages\", \"Nama\")", + "schema_without_content": "sqlite_sequence : seq , name | city : countrycode , population , name , district , id | country : continent , governmentform \", \"Monarchy \", lifeexpectancy , population , localname , surfacearea , code , name , headofstate , capital , gnp , indepyear , region , gnpold , code2 | spoken_language : percentage , isofficial , countrycode , language | official_language : percentage , isofficial , countrycode , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "official language": "countrylanguage.Language", + "country the name of whose head of state": "country.HeadOfState" + } + }, + { + "question": "what is the total number of #unique official# languages spoken in the #countries# that are #founded before 1930# ?", + "db_id": "world_1", + "orig_query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"T\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : code (\"MMR\", \"THA\", \"AZE\"), name (\"Netherlands Antilles\", \"Yemen\", \"Christmas Island\"), headofstate (\"Laurent Gbagbo\", \"Mohammed VI\", \"Bharrat Jagdeo\"), surfacearea (147181.0, 27834.0, 2149690.0), gnp (6353.0, 226492.0, 212.0), population (99000, 5433000, 65000), lifeexpectancy (62.9, 71.1, 54.8), localname (\"Sierra Leone\", \"Antigua and Barbuda\", \"United States Minor Outlying Islands\"), indepyear (1918, 1922, 1918), region (\"Western Africa\", \"Southern Africa\", \"Southern Europe\"), governmentform (\"Part of Denmark\", \"Autonomous Area\", \"Parliamentary Coprincipality\"), code2 (\"SN\", \"BM\", \"MN\"), capital (2440, 919, 921), continent (\"Asia\", \"North America\", \"Africa\"), gnpold (160151.0, 3545.0, 97884.0) | nation : code (\"MMR\", \"THA\", \"AZE\"), name (\"Netherlands Antilles\", \"Yemen\", \"Christmas Island\"), headofstate (\"Laurent Gbagbo\", \"Mohammed VI\", \"Bharrat Jagdeo\"), surfacearea (147181.0, 27834.0, 2149690.0), gnp (6353.0, 226492.0, 212.0), population (99000, 5433000, 65000), lifeexpectancy (62.9, 71.1, 54.8), localname (\"Sierra Leone\", \"Antigua and Barbuda\", \"United States Minor Outlying Islands\"), indepyear (1918, 1922, 1918), region (\"Western Africa\", \"Southern Africa\", \"Southern Europe\"), governmentform (\"Part of Denmark\", \"Autonomous Area\", \"Parliamentary Coprincipality\"), code2 (\"SN\", \"BM\", \"MN\"), capital (2440, 919, 921), continent (\"Asia\", \"North America\", \"Africa\"), gnpold (160151.0, 3545.0, 97884.0) | city : countrycode (\"AZE\", \"FLK\", \"AGO\"), district (\"Hamgyong P\", \"Andijon\", \"T\u00c3\u00a1chira\"), population (179956, 245772, 110000), id (2217, 115, 3202), name (\"Chincha Alta\", \"Shijiazhuang\", \"Badajoz\") | countrylanguage : percentage (72.6, 60.3, 14.1), language (\"Dhivehi\", \"Slovak\", \"Circassian\"), countrycode (\"CHE\", \"NZL\", \"PYF\"), isofficial (\"T\", \"F\")", + "schema_without_content": "sqlite_sequence : seq , name | state : code , name , headofstate , surfacearea , gnp , population , lifeexpectancy , localname , indepyear , region , governmentform , code2 , capital , continent , gnpold | nation : code , name , headofstate , surfacearea , gnp , population , lifeexpectancy , localname , indepyear , region , governmentform , code2 , capital , continent , gnpold | city : countrycode , district , population , id , name | countrylanguage : percentage , language , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "unique official": "countrylanguage.IsOfficial", + "countries": "country", + "founded before 1930": "country.IndepYear", + "unique official languages": "countrylanguage.Language" + } + }, + { + "question": "what is the total number of #unique official# languages spoken in the #countries# that are #founded before 1930# ?", + "db_id": "world_1", + "orig_query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"T\"", + "schema_with_content": "spoken_language : language (\"Sranantonga\", \"Zulu\", \"Beja\"), countrycode (\"UZB\", \"BOL\", \"LTU\"), isofficial (\"T\", \"F\"), percentage (92.1, 13.3, 97.2) | sqlite_sequence : seq (4079), name (\"city\") | official_language : language (\"Sranantonga\", \"Zulu\", \"Beja\"), countrycode (\"UZB\", \"BOL\", \"LTU\"), isofficial (\"T\", \"F\"), percentage (92.1, 13.3, 97.2) | country : indepyear (1971, 1980, 1776), name (\"Guinea\", \"Hong Kong\", \"R\u00c3\u00a9union\"), continent (\"Antarctica\", \"North America\", \"South America\"), code2 (\"BA\", \"HM\", \"MY\"), governmentform (\"Monarchy\", \"Federation\", \"Territorial Collectivity of France\"), surfacearea (41526.0, 23200.0, 120538.0), region (\"Central Africa\", \"Southern Africa\", \"Nordic Countries\"), population (11201000, 3200, 578000), localname (\"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\", \"Iran\", \"Australia\"), capital (594, 583, 3212), lifeexpectancy (68.7, 71.8, 79.6), headofstate (\"Miguel \u00c3\u0081ngel Rodr\u00c3\u00adguez Echeverr\u00c3\u00ada\", \"Bharrat Jagdeo\", \"Ricardo Lagos Escobar\"), gnpold (263451.0, 1400.0, 1312.0), code (\"SOM\", \"DJI\", \"PRY\"), gnp (210721.0, 870.0, 3563.0) | city : id (1771, 3289, 1288), district (\"North Carolina\", \"Para\u00c3\u00adba\", \"T\u00c5\u00a1uvassia\"), countrycode (\"MYS\", \"DEU\", \"HTI\"), name (\"Henzada (Hinthada)\", \"Zama\", \"Frankfurt am Main\"), population (173746, 286848, 384000)", + "schema_without_content": "spoken_language : language , countrycode , isofficial , percentage | sqlite_sequence : seq , name | official_language : language , countrycode , isofficial , percentage | country : indepyear , name , continent , code2 , governmentform , surfacearea , region , population , localname , capital , lifeexpectancy , headofstate , gnpold , code , gnp | city : id , district , countrycode , name \", \"Zama\", \"Frankfurt am Main\", population", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "unique official": "countrylanguage.IsOfficial", + "countries": "country", + "founded before 1930": "country.IndepYear", + "unique official languages": "countrylanguage.Language" + } + }, + { + "question": "for the #countries founded before 1930# , what is the total n #umber of distinct official# languages?", + "db_id": "world_1", + "orig_query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"T\"", + "schema_with_content": "countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"NGA\", \"COD\", \"BGR\"), language (\"Kpelle\", \"Zande\", \"Joruba\"), percentage (2.1, 22.9, 23.2) | city : countrycode (\"PCN\", \"COK\", \"DOM\"), name (\"Urdaneta\", \"Dezful\", \"Jabalpur\"), population (276093, 221329, 1096829), district (\"Nizni Novgorod\", \"Jersey\", \"Tolima\"), id (2165, 4006, 88) | state : surfacearea (200.0, 323250.0, 196722.0), lifeexpectancy (76.9, 72.3, 70.0), name (\"Chile\", \"Sao Tome and Principe\", \"North Korea\"), headofstate (\"Carl XVI Gustaf\", \"Shahabuddin Ahmad\", \"Hamad ibn Khalifa al-Thani\"), indepyear (None, 1970, 1981), gnpold (2201.0, 743.0, 18898.0), capital (3306, 2690, 2331), population (23115000, 114000, 7734000), code2 (\"MS\", \"QA\", \"DE\"), governmentform (\"Emirate Federation\", \"Administrated by the UN\", \"Commonwealth of the US\"), gnp (9217.0, 447114.0, 17000.0), localname (\"Qatar\", \"The Gambia\", \"Botswana\"), continent (\"Oceania\", \"Asia\", \"Asia\"), code (\"NGA\", \"TMP\", \"MYT\"), region (\"Australia and New Zealand\", \"Western Europe\", \"Northern Africa\") | sqlite_sequence : name (\"city\"), seq (4079) | nation : surfacearea (200.0, 323250.0, 196722.0), lifeexpectancy (76.9, 72.3, 70.0), name (\"Chile\", \"Sao Tome and Principe\", \"North Korea\"), headofstate (\"Carl XVI Gustaf\", \"Shahabuddin Ahmad\", \"Hamad ibn Khalifa al-Thani\"), indepyear (None, 1970, 1981), gnpold (2201.0, 743.0, 18898.0), capital (3306, 2690, 2331), population (23115000, 114000, 7734000), code2 (\"MS\", \"QA\", \"DE\"), governmentform (\"Emirate Federation\", \"Administrated by the UN\", \"Commonwealth of the US\"), gnp (9217.0, 447114.0, 17000.0), localname (\"Qatar\", \"The Gambia\", \"Botswana\"), continent (\"Oceania\", \"Asia\", \"Asia\"), code (\"NGA\", \"TMP\", \"MYT\"), region (\"Australia and New Zealand\", \"Western Europe\", \"Northern Africa\")", + "schema_without_content": "countrylanguage : isofficial , countrycode , language , percentage | city : countrycode , name , population , district , id | state : surfacearea , lifeexpectancy , name , headofstate , indepyear , gnpold , capital , population , code2 , governmentform , gnp , localname , continent , code , region | sqlite_sequence : name , seq | nation : surfacearea , lifeexpectancy , name , headofstate , indepyear , gnpold , capital , population , code2 , governmentform , gnp , localname , continent , code , region", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries founded before 1930": "country.IndepYear", + "umber of distinct official": "countrylanguage.IsOfficial", + "number of distinct official languages": "countrylanguage.Language" + } + }, + { + "question": "for the #countries founded before 1930# , what is the total n #umber of distinct official# languages?", + "db_id": "world_1", + "orig_query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"T\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : name (\"Bantam\", \"Taiyuan\", \"Mushin\"), countrycode (\"LIE\", \"ITA\", \"KAZ\"), district (\"Tianjin\", \"Osijek-Baranja\", \"Carabobo\"), population (153317, 114256, 127490), id (2315, 943, 1587) | official_language : countrycode (\"ESP\", \"COM\", \"CCK\"), language (\"Mahor\u00c3\u00a9\", \"Gbaya\", \"Akan\"), percentage (11.8, 96.4, 1.2), isofficial (\"T\", \"F\") | country : code (\"SYR\", \"MAC\", \"LAO\"), governmentform (\"Special Administrative Region of China\", \"Parliamentary Coprincipality\", \"Monarchy (Sultanate)\"), lifeexpectancy (51.6, 78.3, 79.8), capital (1109, 129, 3358), name (\"Cambodia\", \"United Arab Emirates\", \"Venezuela\"), indepyear (1901, 1841, 1492), localname (\"Niue\", \"The Bahamas\", \"Nederlandse Antillen\"), gnpold (542.0, 31966.0, 8670.0), headofstate (\"Ferenc M\u00c3\u00a1dl\", \"Mohammed Abdel Aziz\", \"Jiang Zemin\"), code2 (\"EC\", \"BG\", \"ET\"), population (4629000, 11385000, 9169000), surfacearea (110994.0, 2831.0, 10400.0), region (\"Middle East\", \"British Islands\", \"Baltic Countries\"), gnp (116729.0, 256254.0, 11345.0), continent (\"South America\", \"Africa\", \"Europe\") | spoken_language : countrycode (\"ESP\", \"COM\", \"CCK\"), language (\"Mahor\u00c3\u00a9\", \"Gbaya\", \"Akan\"), percentage (11.8, 96.4, 1.2), isofficial (\"T\", \"F\")", + "schema_without_content": "sqlite_sequence : seq , name | city : name , countrycode , district , population , id | official_language : countrycode , language , percentage , isofficial | country : code , governmentform \", lifeexpectancy , capital , name , indepyear , localname , gnpold , headofstate , code2 , population , surfacearea , region , gnp , continent | spoken_language : countrycode , language , percentage , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "countries founded before 1930": "country.IndepYear", + "umber of distinct official": "countrylanguage.IsOfficial", + "number of distinct official languages": "countrylanguage.Language" + } + }, + { + "question": "what are the #countries# that have greater #surface area# than any country in #europe# ?", + "db_id": "world_1", + "orig_query": "select name from country where surfacearea > (select min(surfacearea) from country where continent = \"Europe\")", + "schema_with_content": "countrylanguage : countrycode (\"FIN\", \"LSO\", \"GHA\"), language (\"Miao\", \"Mari\", \"Turkmenian\"), isofficial (\"T\", \"F\"), percentage (12.9, 21.2, 19.0) | nation : population (59225700, 40377000, 1972000), continent (\"Africa\", \"Oceania\", \"Europe\"), lifeexpectancy (56.6, 68.7, 42.9), region (\"Australia and New Zealand\", \"North America\", \"Southern Europe\"), code (\"BRN\", \"TGO\", \"LUX\"), surfacearea (618.0, 359.0, 1104300.0), capital (194, 3770, 3503), gnpold (40562.0, 1767.0, 3384.0), governmentform (\"Dependent Territory of the US\", \"US Territory\", \"Territorial Collectivity of France\"), localname (\"Anguilla\", \"Cabo Verde\", \"Belarus\"), name (\"Senegal\", \"Palau\", \"Cayman Islands\"), gnp (3750.0, 64140.0, 174099.0), code2 (\"CG\", \"AE\", \"GR\"), indepyear (1932, 1906, 1907), headofstate (\"Hamad ibn Isa al-Khalifa\", \"Saparmurad Nijazov\", \"Islam Karimov\") | city : district (\"Kyonggi\", \"Vojvodina\", \"Misrata\"), countrycode (\"ITA\", \"TGO\", \"MMR\"), name (\"Bala\u00c5\u00a1iha\", \"Jos\", \"Oita\"), population (132701, 156317, 118858), id (2307, 1786, 443) | sqlite_sequence : seq (4079), name (\"city\") | state : population (59225700, 40377000, 1972000), continent (\"Africa\", \"Oceania\", \"Europe\"), lifeexpectancy (56.6, 68.7, 42.9), region (\"Australia and New Zealand\", \"North America\", \"Southern Europe\"), code (\"BRN\", \"TGO\", \"LUX\"), surfacearea (618.0, 359.0, 1104300.0), capital (194, 3770, 3503), gnpold (40562.0, 1767.0, 3384.0), governmentform (\"Dependent Territory of the US\", \"US Territory\", \"Territorial Collectivity of France\"), localname (\"Anguilla\", \"Cabo Verde\", \"Belarus\"), name (\"Senegal\", \"Palau\", \"Cayman Islands\"), gnp (3750.0, 64140.0, 174099.0), code2 (\"CG\", \"AE\", \"GR\"), indepyear (1932, 1906, 1907), headofstate (\"Hamad ibn Isa al-Khalifa\", \"Saparmurad Nijazov\", \"Islam Karimov\")", + "schema_without_content": "countrylanguage : countrycode , language , isofficial , percentage | nation : population , continent , lifeexpectancy , region , code , surfacearea , capital , gnpold , governmentform , localname , name , gnp , code2 , indepyear , headofstate | city : district , countrycode , name , population , id | sqlite_sequence : seq , name | state : population , continent , lifeexpectancy , region , code , surfacearea , capital , gnpold , governmentform , localname , name , gnp , code2 , indepyear , headofstate", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country.Name", + "surface area": "country.SurfaceArea", + "Europe": "country.Continent" + } + }, + { + "question": "which #countries# have greater #area# than that of any #country in europe# ?", + "db_id": "world_1", + "orig_query": "select name from country where surfacearea > (select min(surfacearea) from country where continent = \"Europe\")", + "schema_with_content": "city : district (\"Hakassia\", \"Central\", \"Hhohho\"), name (\"Barrackpur\", \"Maunath Bhanjan\", \"Dinajpur\"), countrycode (\"ANT\", \"WSM\", \"AZE\"), population (193238, 109755, 180150), id (2015, 4024, 1083) | countrylanguage : language (\"Maranao\", \"Teso\", \"Chewa\"), isofficial (\"T\", \"F\"), countrycode (\"LBN\", \"LBY\", \"IRQ\"), percentage (3.8, 78.1, 67.2) | nation : code (\"CPV\", \"FLK\", \"TTO\"), capital (4074, 587, 179), gnpold (135636.0, 4100.0, 5940.0), gnp (982268.0, 61289.0, 116416.0), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Constitutional Monarchy, Federation\", \"Autonomous Area\"), headofstate (\"Moshe Katzav\", \"Tarja Halonen\", \"Jos\u00c3\u00a9 Eduardo dos Santos\"), population (146934000, 1000, 6782000), surfacearea (1246700.0, 36.0, 2510.0), localname (\"Pakistan\", \"Montserrat\", \"Mo\u00c3\u00a7ambique\"), lifeexpectancy (69.5, 55.8, 63.1), continent (\"Asia\", \"Africa\", \"South America\"), code2 (\"KH\", \"BA\", \"NO\"), indepyear (1499, 1776, 1811), region (\"Southern Europe\", \"Southern Europe\", \"Western Africa\"), name (\"Latvia\", \"Algeria\", \"Hong Kong\") | sqlite_sequence : name (\"city\"), seq (4079) | state : code (\"CPV\", \"FLK\", \"TTO\"), capital (4074, 587, 179), gnpold (135636.0, 4100.0, 5940.0), gnp (982268.0, 61289.0, 116416.0), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Constitutional Monarchy, Federation\", \"Autonomous Area\"), headofstate (\"Moshe Katzav\", \"Tarja Halonen\", \"Jos\u00c3\u00a9 Eduardo dos Santos\"), population (146934000, 1000, 6782000), surfacearea (1246700.0, 36.0, 2510.0), localname (\"Pakistan\", \"Montserrat\", \"Mo\u00c3\u00a7ambique\"), lifeexpectancy (69.5, 55.8, 63.1), continent (\"Asia\", \"Africa\", \"South America\"), code2 (\"KH\", \"BA\", \"NO\"), indepyear (1499, 1776, 1811), region (\"Southern Europe\", \"Southern Europe\", \"Western Africa\"), name (\"Latvia\", \"Algeria\", \"Hong Kong\")", + "schema_without_content": "city : district , name , countrycode , population , id | countrylanguage : language , isofficial , countrycode , percentage | nation : code , capital , gnpold , gnp , governmentform , headofstate , population , surfacearea , localname , lifeexpectancy , continent , code2 , indepyear , region , name | sqlite_sequence : name , seq | state : code , capital , gnpold , gnp , governmentform , headofstate , population , surfacearea , localname , lifeexpectancy , continent , code2 , indepyear , region , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country", + "area": "country.SurfaceArea", + "country in Europe": "country.Continent" + } + }, + { + "question": "what are the #african countries# that have a #population# less than any #country in asia# ?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Africa\" and population < (select max(population) from country where continent = \"Asia\")", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : indepyear (1968, 1960, 1975), localname (\"Liberia\", \"R\u00c3\u00a9union\", \"Suriya\"), code2 (\"IL\", \"KM\", \"SN\"), gnpold (10285.0, 64926.0, 2500.0), surfacearea (53.0, 331689.0, 9572900.0), population (22256000, 3520000, 638000), name (\"Guadeloupe\", \"Indonesia\", \"Philippines\"), capital (3217, 2507, 3209), region (\"Nordic Countries\", \"Eastern Africa\", \"Central America\"), gnp (19008.0, 372.0, 320749.0), code (\"GRC\", \"VCT\", \"ARG\"), governmentform (\"Federation\", \"Part of Denmark\", \"Co-administrated\"), lifeexpectancy (49.8, 68.5, 74.8), continent (\"North America\", \"North America\", \"Europe\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Teburoro Tito\", \"Carlo Azeglio Ciampi\") | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"MYS\", \"GRD\", \"NER\"), percentage (45.4, 60.4, 13.0), language (\"Pilipino\", \"Carolinian\", \"Masana\") | city : countrycode (\"NIU\", \"CHN\", \"PRY\"), name (\"al-Kut\", \"Beira\", \"Obihiro\"), district (\"al-Sharqiya\", \"Dnjestria\", \"Adygea\"), id (3526, 265, 610), population (91777, 409100, 102384) | nation : indepyear (1968, 1960, 1975), localname (\"Liberia\", \"R\u00c3\u00a9union\", \"Suriya\"), code2 (\"IL\", \"KM\", \"SN\"), gnpold (10285.0, 64926.0, 2500.0), surfacearea (53.0, 331689.0, 9572900.0), population (22256000, 3520000, 638000), name (\"Guadeloupe\", \"Indonesia\", \"Philippines\"), capital (3217, 2507, 3209), region (\"Nordic Countries\", \"Eastern Africa\", \"Central America\"), gnp (19008.0, 372.0, 320749.0), code (\"GRC\", \"VCT\", \"ARG\"), governmentform (\"Federation\", \"Part of Denmark\", \"Co-administrated\"), lifeexpectancy (49.8, 68.5, 74.8), continent (\"North America\", \"North America\", \"Europe\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Teburoro Tito\", \"Carlo Azeglio Ciampi\")", + "schema_without_content": "sqlite_sequence : seq , name | state : indepyear , localname , code2 , gnpold , surfacearea , population , name , capital , region , gnp , code , governmentform , lifeexpectancy , continent , headofstate | countrylanguage : isofficial , countrycode , percentage , language | city : countrycode , name , district , id , population | nation : indepyear , localname , code2 , gnpold , surfacearea , population , name , capital , region , gnp , code , governmentform , lifeexpectancy , continent , headofstate", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "African countries": "country.Name", + "population": "country.Population", + "country in Asia": "country.Continent" + } + }, + { + "question": "which #african countries# have a smaller #population# than that of any #country in asia# ?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Africa\" and population < (select min(population) from country where continent = \"Asia\")", + "schema_with_content": "city : id (1443, 2869, 424), population (370190, 816321, 6789479), district (\"\u00c3\u0085rhus\", \"Khomas\", \"Anhalt Sachsen\"), name (\"Weno\", \"Angra dos Reis\", \"Kelang\"), countrycode (\"YEM\", \"FIN\", \"CPV\") | sqlite_sequence : name (\"city\"), seq (4079) | state : capital (34, 185, 3065), name (\"Estonia\", \"Turks and Caicos Islands\", \"Taiwan\"), code2 (\"GU\", \"BY\", \"MT\"), lifeexpectancy (59.8, 70.8, 46.0), population (15942000, 5171300, 293000), continent (\"Oceania\", \"South America\", \"Antarctica\"), governmentform (\"Nonmetropolitan Territory of France\", \"Territory of Australia\", \"Territorial Collectivity of France\"), gnp (97.0, 116416.0, 650.0), gnpold (4935.0, 9555.0, 4935.0), localname (\"Guinea Ecuatorial\", \"Ha\u00c3\u00afti/Dayti\", \"kaNgwane\"), region (\"Antarctica\", \"Western Europe\", \"Micronesia\"), code (\"HRV\", \"BOL\", \"DEU\"), indepyear (1867, 1951, 1976), headofstate (\"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Qabus ibn Sa\u00c2\u00b4id\", \"George W. Bush\"), surfacearea (331689.0, 3287263.0, 18575.0) | nation : capital (34, 185, 3065), name (\"Estonia\", \"Turks and Caicos Islands\", \"Taiwan\"), code2 (\"GU\", \"BY\", \"MT\"), lifeexpectancy (59.8, 70.8, 46.0), population (15942000, 5171300, 293000), continent (\"Oceania\", \"South America\", \"Antarctica\"), governmentform (\"Nonmetropolitan Territory of France\", \"Territory of Australia\", \"Territorial Collectivity of France\"), gnp (97.0, 116416.0, 650.0), gnpold (4935.0, 9555.0, 4935.0), localname (\"Guinea Ecuatorial\", \"Ha\u00c3\u00afti/Dayti\", \"kaNgwane\"), region (\"Antarctica\", \"Western Europe\", \"Micronesia\"), code (\"HRV\", \"BOL\", \"DEU\"), indepyear (1867, 1951, 1976), headofstate (\"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Qabus ibn Sa\u00c2\u00b4id\", \"George W. Bush\"), surfacearea (331689.0, 3287263.0, 18575.0) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Sinaberberi\", \"Mano\", \"Mari\"), percentage (11.5, 51.3, 8.6), countrycode (\"HUN\", \"TUV\", \"LKA\")", + "schema_without_content": "city : id , population , district , name , countrycode | sqlite_sequence : name , seq | state : capital , name , code2 , lifeexpectancy , population , continent , governmentform , gnp , gnpold , localname , region , code , indepyear , headofstate , surfacearea | nation : capital , name , code2 , lifeexpectancy , population , continent , governmentform , gnp , gnpold , localname , region , code , indepyear , headofstate , surfacearea | countrylanguage : isofficial , language , percentage , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "African countries": "country.Name", + "population": "country.Population", + "country in Asia": "country.Continent" + } + }, + { + "question": "which #asian countries# have a #population# that is larger than any country in #africa# ?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Asia\" and population > (select max(population) from country where continent = \"Africa\")", + "schema_with_content": "countrylanguage : percentage (92.0, 87.0, 86.8), language (\"Watyi\", \"Akan\", \"Ngala and Bangi\"), isofficial (\"T\", \"F\"), countrycode (\"BHS\", \"USA\", \"SPM\") | state : governmentform (\"Socialistic State\", \"Dependent Territory of the UK\", \"Parliamentary Coprincipality\"), population (8091800, 114000, 8190900), surfacearea (342000.0, 446550.0, 751.0), name (\"New Caledonia\", \"Solomon Islands\", \"Russian Federation\"), region (\"Western Europe\", \"Micronesia\", \"Middle East\"), code (\"DZA\", \"HND\", \"RUS\"), localname (\"Belgi\u00c3\u00ab/Belgique\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\", \"Dhivehi Raajje/Maldives\"), gnpold (539.0, 793.0, 5279.0), capital (2726, 3263, 2256), continent (\"South America\", \"Europe\", \"Oceania\"), headofstate (\"Shahabuddin Ahmad\", \"Cassam Uteem\", \"Arthur N. R. Robinson\"), gnp (36124.0, 6064.0, 351182.0), lifeexpectancy (None, 72.8, 78.7), indepyear (1932, 1977, 1951), code2 (\"GR\", \"PT\", \"LI\") | nation : governmentform (\"Socialistic State\", \"Dependent Territory of the UK\", \"Parliamentary Coprincipality\"), population (8091800, 114000, 8190900), surfacearea (342000.0, 446550.0, 751.0), name (\"New Caledonia\", \"Solomon Islands\", \"Russian Federation\"), region (\"Western Europe\", \"Micronesia\", \"Middle East\"), code (\"DZA\", \"HND\", \"RUS\"), localname (\"Belgi\u00c3\u00ab/Belgique\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\", \"Dhivehi Raajje/Maldives\"), gnpold (539.0, 793.0, 5279.0), capital (2726, 3263, 2256), continent (\"South America\", \"Europe\", \"Oceania\"), headofstate (\"Shahabuddin Ahmad\", \"Cassam Uteem\", \"Arthur N. R. Robinson\"), gnp (36124.0, 6064.0, 351182.0), lifeexpectancy (None, 72.8, 78.7), indepyear (1932, 1977, 1951), code2 (\"GR\", \"PT\", \"LI\") | sqlite_sequence : seq (4079), name (\"city\") | city : id (2308, 2459, 981), district (\"Adygea\", \"Distrito Federal\", \"Shanghai\"), population (196000, 157358, 94322), countrycode (\"AZE\", \"SJM\", \"ANT\"), name (\"Augsburg\", \"Bakersfield\", \"El Jadida\")", + "schema_without_content": "countrylanguage : percentage , language , isofficial , countrycode | state : governmentform , population , surfacearea , name , region , code , localname , gnpold , capital , continent , headofstate , gnp , lifeexpectancy , indepyear , code2 | nation : governmentform , population , surfacearea , name , region , code , localname , gnpold , capital , continent , headofstate , gnp , lifeexpectancy , indepyear , code2 | sqlite_sequence : seq , name | city : id , district , population , countrycode , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "Asian countries": "country.Name", + "population": "country.Population", + "Africa": "country.Continent" + } + }, + { + "question": "what are the #asian countries# which have a #population# larger than that of any #country in africa# ?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Asia\" and population > (select min(population) from country where continent = \"Africa\")", + "schema_with_content": "city : id (2418, 1965, 1624), population (251348, 154891, 115532), district (\"Saint-Denis\", \"Kano & Jigawa\", \"Orjol\"), name (\"Qinzhou\", \"S\u00c3\u00a3o Jos\u00c3\u00a9\", \"Los Angeles\"), countrycode (\"SPM\", \"STP\", \"SAU\") | nation : governmentform (\"Socialistic Republic\", \"Constitutional Monarchy, Federation\", \"People'sRepublic\"), indepyear (1861, 1964, 1918), localname (\"Muritaniya/Mauritanie\", \"Zimbabwe\", \"Tonga\"), surfacearea (99434.0, 25713.0, 36125.0), lifeexpectancy (77.6, 63.7, 78.4), population (6217000, 6188000, 15211000), gnpold (3338.0, 401461.0, 3922.0), code (\"PAN\", \"TGO\", \"SOM\"), continent (\"Asia\", \"North America\", \"Europe\"), name (\"Tunisia\", \"Senegal\", \"Cook Islands\"), region (\"Antarctica\", \"Micronesia/Caribbean\", \"Antarctica\"), headofstate (\"Frederick Chiluba\", \"Kocheril Raman Narayanan\", \"Arnoldo Alem\u00c3\u00a1n Lacayo\"), gnp (105954.0, 4127.0, 1263.0), code2 (\"TT\", \"SY\", \"AD\"), capital (926, 3064, 1464) | state : governmentform (\"Socialistic Republic\", \"Constitutional Monarchy, Federation\", \"People'sRepublic\"), indepyear (1861, 1964, 1918), localname (\"Muritaniya/Mauritanie\", \"Zimbabwe\", \"Tonga\"), surfacearea (99434.0, 25713.0, 36125.0), lifeexpectancy (77.6, 63.7, 78.4), population (6217000, 6188000, 15211000), gnpold (3338.0, 401461.0, 3922.0), code (\"PAN\", \"TGO\", \"SOM\"), continent (\"Asia\", \"North America\", \"Europe\"), name (\"Tunisia\", \"Senegal\", \"Cook Islands\"), region (\"Antarctica\", \"Micronesia/Caribbean\", \"Antarctica\"), headofstate (\"Frederick Chiluba\", \"Kocheril Raman Narayanan\", \"Arnoldo Alem\u00c3\u00a1n Lacayo\"), gnp (105954.0, 4127.0, 1263.0), code2 (\"TT\", \"SY\", \"AD\"), capital (926, 3064, 1464) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : language (\"Nyakusa\", \"Min\", \"Punu-sira-nzebi\"), percentage (18.6, 9.4, 8.2), isofficial (\"T\", \"F\"), countrycode (\"VUT\", \"DZA\", \"ASM\")", + "schema_without_content": "city : id , population , district , name , countrycode | nation : governmentform , indepyear , localname , surfacearea , lifeexpectancy , population , gnpold , code , continent , name , region , headofstate , gnp , code2 , capital | state : governmentform , indepyear , localname , surfacearea , lifeexpectancy , population , gnpold , code , continent , name , region , headofstate , gnp , code2 , capital | sqlite_sequence : seq , name | countrylanguage : language , percentage , isofficial , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "Asian countries": "country.Continent", + "population": "country.Population", + "country in Africa": "country.Continent" + } + }, + { + "question": "what are the #country codes for countries# that do not #speak english# ?", + "db_id": "world_1", + "orig_query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | country : name (\"Greece\", \"Netherlands Antilles\", \"Anguilla\"), continent (\"Asia\", \"Antarctica\", \"South America\"), code2 (\"TP\", \"IN\", \"TZ\"), gnpold (19967.0, 5729.0, 1863.0), surfacearea (2040.0, 193.0, 4033.0), population (7734000, 3615000, 3869000), region (\"British Islands\", \"Southern Europe\", \"Western Africa\"), lifeexpectancy (50.1, 75.5, 72.7), capital (905, 187, 921), governmentform (\"Socialistic State\", \"Federation\", \"Constitutional Monarchy (Emirate)\"), localname (\"Xianggang/Hong Kong\", \"South Georgia and the South Sandwich Islands\", \"Dominica\"), indepyear (1991, 1921, 1977), headofstate (\"Bakili Muluzi\", \"Adolf Ogi\", \"Francisco Guillermo Flores P\u00c3\u00a9rez\"), gnp (299.0, 16321.0, 19756.0), code (\"IOT\", \"GUF\", \"LSO\") | city : population (94934, 165243, 270874), countrycode (\"QAT\", \"THA\", \"MOZ\"), id (3371, 2668, 1627), district (\"Atl\u00c3\u00a1ntico\", \"South Australia\", \"B\u00c3\u00a1cs-Kiskun\"), name (\"General Escobedo\", \"Tilburg\", \"Tanjung Pinang\") | spoken_language : isofficial (\"T\", \"F\"), countrycode (\"URY\", \"NCL\", \"MKD\"), percentage (72.1, 62.2, 18.1), language (\"Soninke\", \"Gur\", \"Swazi\") | official_language : isofficial (\"T\", \"F\"), countrycode (\"URY\", \"NCL\", \"MKD\"), percentage (72.1, 62.2, 18.1), language (\"Soninke\", \"Gur\", \"Swazi\")", + "schema_without_content": "sqlite_sequence : seq , name | country : name , continent , code2 , gnpold , surfacearea , population , region , lifeexpectancy , capital , governmentform \", localname , indepyear , headofstate , gnp , code | city : population , countrycode , id , district , name | spoken_language : isofficial , countrycode , percentage , language | official_language : isofficial , countrycode , percentage , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country codes for countries": "countrylanguage.CountryCode", + "speak English": "countrylanguage.Language" + } + }, + { + "question": "return the #country codes for countries# that do not speak #english# .", + "db_id": "world_1", + "orig_query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "country : population (817000, 22256000, 10925000), region (\"North America\", \"Melanesia\", \"Eastern Europe\"), surfacearea (580367.0, 266000.0, 13120000.0), localname (\"Mo\u00c3\u00a7ambique\", \"Timor Timur\", \"Eesti\"), capital (1532, 2253, 910), indepyear (1956, 1964, 1944), gnp (776739.0, 16904.0, 776.0), code2 (\"NE\", \"BG\", \"UA\"), governmentform (\"Nonmetropolitan Territory of France\", \"Emirate Federation\", \"Emirate Federation\"), gnpold (1915.0, 4361.0, 220.0), name (\"Rwanda\", \"Heard Island and McDonald Islands\", \"Wallis and Futuna\"), code (\"LUX\", \"VGB\", \"DNK\"), continent (\"North America\", \"Asia\", \"Asia\"), headofstate (\"Akihito\", \"Bakili Muluzi\", \"Hosni Mubarak\"), lifeexpectancy (64.0, 60.0, 69.1) | spoken_language : language (\"Arabic\", \"Kirundi\", \"Faroese\"), percentage (49.1, 7.6, 50.4), isofficial (\"T\", \"F\"), countrycode (\"TUR\", \"KWT\", \"MDV\") | official_language : language (\"Arabic\", \"Kirundi\", \"Faroese\"), percentage (49.1, 7.6, 50.4), isofficial (\"T\", \"F\"), countrycode (\"TUR\", \"KWT\", \"MDV\") | city : name (\"Hama\", \"Kwangju\", \"Boksburg\"), countrycode (\"EST\", \"SOM\", \"WSM\"), population (487222, 636104, 191356), district (\"Denizli\", \"Hualien\", \"Harkova\"), id (2125, 2805, 140) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "country : population , region , surfacearea , localname , capital , indepyear , gnp , code2 , governmentform , gnpold , name , code , continent , headofstate , lifeexpectancy | spoken_language : language , percentage , isofficial , countrycode | official_language : language , percentage , isofficial , countrycode | city : name , countrycode , population , district , id | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country codes for countries": "countrylanguage.CountryCode", + "English": "countrylanguage.Language" + } + }, + { + "question": "what are the #country codes# of countries where people use #languages# other than english?", + "db_id": "world_1", + "orig_query": "select distinct countrycode from countrylanguage where language != \"English\"", + "schema_with_content": "spoken_language : percentage (89.7, 3.3, 65.6), isofficial (\"T\", \"F\"), language (\"Songhai\", \"Hadareb\", \"Kosrean\"), countrycode (\"PRK\", \"GRC\", \"GMB\") | country : code2 (\"VE\", \"VG\", \"PK\"), capital (2831, 764, 3539), headofstate (\"Maumoon Abdul Gayoom\", \"Abdullah II\", \"Mswati III\"), gnp (3787042.0, 141.0, 828.0), code (\"BRB\", \"ESP\", \"CMR\"), population (5074000, 154000, 17000), name (\"Vietnam\", \"Suriname\", \"Italy\"), indepyear (1769, 1811, 1975), lifeexpectancy (50.2, 76.4, 49.0), localname (\"Sakartvelo\", \"El Salvador\", \"K\u00c3\u00bdpros/Kibris\"), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Dependent Territory of the US\", \"Dependent Territory of the UK\"), region (\"Eastern Asia\", \"Micronesia\", \"Western Africa\"), continent (\"South America\", \"Oceania\", \"North America\"), surfacearea (21041.0, 21041.0, 373.0), gnpold (173610.0, 2527.0, 2023.0) | official_language : percentage (89.7, 3.3, 65.6), isofficial (\"T\", \"F\"), language (\"Songhai\", \"Hadareb\", \"Kosrean\"), countrycode (\"PRK\", \"GRC\", \"GMB\") | city : name (\"Nanking [Nanjing]\", \"Kamensk-Uralski\", \"Surigao\"), district (\"La Paz\", \"Schaan\", \"Krasnojarsk\"), countrycode (\"CYP\", \"SLE\", \"SVN\"), population (123883, 91084, 252270), id (879, 3245, 3845) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "spoken_language : percentage , isofficial , language , countrycode | country : code2 , capital , headofstate , gnp , code , population , name , indepyear , lifeexpectancy , localname , governmentform , region , continent , surfacearea , gnpold | official_language : percentage , isofficial , language , countrycode | city : name , district , countrycode , population , id | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country codes": "countrylanguage.CountryCode", + "languages": "countrylanguage.Language" + } + }, + { + "question": "give the #country codes# for countries in which people speak langauges that are not english.", + "db_id": "world_1", + "orig_query": "select distinct countrycode from countrylanguage where language != \"English\"", + "schema_with_content": "spoken_language : countrycode (\"HTI\", \"RWA\", \"LBY\"), language (\"Aizo\", \"Fukien\", \"Mordva\"), percentage (98.9, 94.1, 42.0), isofficial (\"T\", \"F\") | official_language : countrycode (\"HTI\", \"RWA\", \"LBY\"), language (\"Aizo\", \"Fukien\", \"Mordva\"), percentage (98.9, 94.1, 42.0), isofficial (\"T\", \"F\") | country : localname (\"Suriname\", \"Shqip\u00c3\u00abria\", \"kaNgwane\"), capital (2432, 2409, 1864), surfacearea (102.0, 36125.0, 357022.0), lifeexpectancy (53.2, 73.6, 73.8), name (\"Switzerland\", \"Sierra Leone\", \"Austria\"), gnpold (58623.0, 15129.0, 430572.0), code (\"ETH\", \"HTI\", \"STP\"), population (50, 1972000, 1295000), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Chandrika Kumaratunga\", \"\"), governmentform (\"Constitutional Monarchy\", \"Nonmetropolitan Territory of New Zealand\", \"Commonwealth of the US\"), region (\"Eastern Europe\", \"Southern Europe\", \"Central Africa\"), gnp (20208.0, 96.0, 2036.0), continent (\"Antarctica\", \"Europe\", \"Antarctica\"), indepyear (1903, 1776, -1523), code2 (\"IE\", \"CZ\", \"GT\") | city : population (95900, 1129400, 303346), name (\"Basirhat\", \"Maroua\", \"Hazaribag\"), countrycode (\"KNA\", \"KOR\", \"SWZ\"), id (505, 3097, 2030), district (\"Rio Grande do Norte\", \"Wallis\", \"Pyongyang-si\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "spoken_language : countrycode , language , percentage , isofficial | official_language : countrycode , language , percentage , isofficial | country : localname , capital , surfacearea , lifeexpectancy , name , gnpold , code , population , headofstate , governmentform , region , gnp , continent , indepyear , code2 | city : population , name , countrycode , id , district | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country codes": "countrylanguage.CountryCode", + "languages": "countrylanguage.Language" + } + }, + { + "question": "what are the #codes of the countries# that do not speak #english# and whose #government forms# are not #republic# ?", + "db_id": "world_1", + "orig_query": "select code from country where governmentform != \"Republic\" except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "city : district (\"Ogun\", \"Orjol\", \"La Habana\"), name (\"Atlanta\", \"Iquique\", \"Fairfield\"), population (218500, 398695, 123285), id (2725, 59, 3439), countrycode (\"LVA\", \"MLI\", \"MKD\") | state : gnpold (9555.0, 12460.0, 15129.0), region (\"Eastern Africa\", \"Eastern Europe\", \"Micronesia\"), capital (3169, 1889, 2821), governmentform (\"Federation\", \"Commonwealth of the US\", \"Administrated by the UN\"), headofstate (\"Emomali Rahmonov\", \"Haji Hassan al-Bolkiah\", \"Gustavo Noboa Bejarano\"), code2 (\"KR\", \"ID\", \"LA\"), indepyear (1492, 1912, 1978), gnp (435.0, 17121.0, 1990.0), localname (\"Norfolk Island\", \"Bermuda\", \"Taehan Min\u00e2\u0080\u0099guk (Namhan)\"), name (\"South Africa\", \"Lithuania\", \"Cayman Islands\"), lifeexpectancy (79.6, 74.5, 67.8), surfacearea (637657.0, 359.0, 200.0), code (\"ATA\", \"GAB\", \"VGB\"), continent (\"North America\", \"Oceania\", \"Antarctica\"), population (2542000, 59623400, 1439200) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : isofficial (\"T\", \"F\"), language (\"Aimar\u00c3\u00a1\", \"Ngoni\", \"Tadzhik\"), countrycode (\"VUT\", \"SVK\", \"GNQ\"), percentage (87.6, 4.2, 11.0) | nation : gnpold (9555.0, 12460.0, 15129.0), region (\"Eastern Africa\", \"Eastern Europe\", \"Micronesia\"), capital (3169, 1889, 2821), governmentform (\"Federation\", \"Commonwealth of the US\", \"Administrated by the UN\"), headofstate (\"Emomali Rahmonov\", \"Haji Hassan al-Bolkiah\", \"Gustavo Noboa Bejarano\"), code2 (\"KR\", \"ID\", \"LA\"), indepyear (1492, 1912, 1978), gnp (435.0, 17121.0, 1990.0), localname (\"Norfolk Island\", \"Bermuda\", \"Taehan Min\u00e2\u0080\u0099guk (Namhan)\"), name (\"South Africa\", \"Lithuania\", \"Cayman Islands\"), lifeexpectancy (79.6, 74.5, 67.8), surfacearea (637657.0, 359.0, 200.0), code (\"ATA\", \"GAB\", \"VGB\"), continent (\"North America\", \"Oceania\", \"Antarctica\"), population (2542000, 59623400, 1439200)", + "schema_without_content": "city : district , name , population , id , countrycode | state : gnpold , region , capital , governmentform , headofstate , code2 , indepyear , gnp , localname \", name , lifeexpectancy , surfacearea , code , continent , population | sqlite_sequence : seq , name | countrylanguage : isofficial , language , countrycode , percentage | nation : gnpold , region , capital , governmentform , headofstate , code2 , indepyear , gnp , localname \", name , lifeexpectancy , surfacearea , code , continent , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "codes of the countries": "country.Code", + "English": "countrylanguage.Language", + "government forms": "country.GovernmentForm", + "Republic": "country.GovernmentForm", + "CountryCode": "countrylanguage.CountryCode" + } + }, + { + "question": "what are the #codes of the countries# that do not speak #english# and whose #government forms# are not #republic# ?", + "db_id": "world_1", + "orig_query": "select code from country where governmentform != \"Republic\" except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "official_language : percentage (19.7, 23.8, 59.2), language (\"Icelandic\", \"Bilin\", \"Ami\"), countrycode (\"CAN\", \"VAT\", \"ESP\"), isofficial (\"T\", \"F\") | country : gnp (0.0, 1694.0, 8005.0), code2 (\"MN\", \"GH\", \"AI\"), headofstate (\"Joseph Kabila\", \"Vladimir Putin\", \"Abdoulaye Wade\"), capital (916, 201, 766), continent (\"North America\", \"Africa\", \"Europe\"), indepyear (1066, 1906, 1499), governmentform (\"Independent Church State\", \"Constitutional Monarchy\", \"Constitutional Monarchy, Federation\"), name (\"Taiwan\", \"Comoros\", \"Yemen\"), population (50, 3282000, 30080000), lifeexpectancy (78.3, 55.8, 71.5), localname (\"Suriname\", \"Botswana\", \"United States Minor Outlying Islands\"), region (\"Western Europe\", \"Southern Africa\", \"British Islands\"), code (\"MEX\", \"GUM\", \"BRA\"), gnpold (2500.0, 616.0, 17797.0), surfacearea (13878.0, 41284.0, 347.0) | spoken_language : percentage (19.7, 23.8, 59.2), language (\"Icelandic\", \"Bilin\", \"Ami\"), countrycode (\"CAN\", \"VAT\", \"ESP\"), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | city : countrycode (\"BGD\", \"TUN\", \"MLI\"), id (2690, 3109, 1732), population (136446, 980000, 402338), name (\"Barrancabermeja\", \"Berlin\", \"Brescia\"), district (\"Piura\", \"Conakry\", \"Minnesota\")", + "schema_without_content": "official_language : percentage , language , countrycode , isofficial | country : gnp , code2 , headofstate , capital , continent , indepyear , governmentform , name , population , lifeexpectancy , localname , region , code , gnpold , surfacearea | spoken_language : percentage , language , countrycode , isofficial | sqlite_sequence : seq , name | city : countrycode , id , population , name , district", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "codes of the countries": "country.Code", + "English": "countrylanguage.Language", + "government forms": "country.GovernmentForm", + "Republic": "country.GovernmentForm", + "CountryCode": "countrylanguage.CountryCode" + } + }, + { + "question": "return the #codes of countries# that do not #speak english# and do not have republics for #governments# .", + "db_id": "world_1", + "orig_query": "select code from country where governmentform != \"Republic\" except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : isofficial (\"T\", \"F\"), language (\"Busansi\", \"Kirundi\", \"Bengali\"), countrycode (\"FRA\", \"GUY\", \"VNM\"), percentage (8.5, 72.1, 1.6) | city : district (\"Chaharmahal va Bakht\", \"Maryland\", \"Baskimaa\"), countrycode (\"MCO\", \"BHR\", \"PSE\"), id (727, 1194, 3514), population (115766, 94591, 13154), name (\"Tec\u00c3\u00a1mac\", \"Dewas\", \"Coquimbo\") | state : continent (\"Antarctica\", \"South America\", \"Europe\"), gnp (1263.0, 9217.0, 1988.0), governmentform (\"Overseas Department of France\", \"Autonomous Area\", \"Federation\"), lifeexpectancy (51.6, 45.6, 64.5), localname (\"United States Minor Outlying Islands\", \"Saint Lucia\", \"France\"), capital (3791, 1780, 3332), gnpold (75617.0, 146171.0, 6097.0), code (\"BIH\", \"PHL\", \"ISL\"), code2 (\"KR\", \"NU\", \"HM\"), region (\"South America\", \"Western Europe\", \"Antarctica\"), surfacearea (1.5, 59.0, 331689.0), name (\"Estonia\", \"Norway\", \"Brunei\"), indepyear (1921, 1905, 1979), headofstate (\"Elisabeth II\", \"Emomali Rahmonov\", \"Johannes Paavali II\"), population (11000, 15942000, 15085000) | nation : continent (\"Antarctica\", \"South America\", \"Europe\"), gnp (1263.0, 9217.0, 1988.0), governmentform (\"Overseas Department of France\", \"Autonomous Area\", \"Federation\"), lifeexpectancy (51.6, 45.6, 64.5), localname (\"United States Minor Outlying Islands\", \"Saint Lucia\", \"France\"), capital (3791, 1780, 3332), gnpold (75617.0, 146171.0, 6097.0), code (\"BIH\", \"PHL\", \"ISL\"), code2 (\"KR\", \"NU\", \"HM\"), region (\"South America\", \"Western Europe\", \"Antarctica\"), surfacearea (1.5, 59.0, 331689.0), name (\"Estonia\", \"Norway\", \"Brunei\"), indepyear (1921, 1905, 1979), headofstate (\"Elisabeth II\", \"Emomali Rahmonov\", \"Johannes Paavali II\"), population (11000, 15942000, 15085000)", + "schema_without_content": "sqlite_sequence : seq , name | countrylanguage : isofficial , language , countrycode , percentage | city : district , countrycode , id , population , name | state : continent , gnp , governmentform , lifeexpectancy , localname , capital , gnpold , code , code2 , region , surfacearea , name , indepyear , headofstate , population | nation : continent , gnp , governmentform , lifeexpectancy , localname , capital , gnpold , code , code2 , region , surfacearea , name , indepyear , headofstate , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "codes of countries": "country.Code", + "speak English": "countrylanguage.Language", + "governments": "country.GovernmentForm" + } + }, + { + "question": "return the #codes of countries# that do not #speak english# and do not have republics for #governments# .", + "db_id": "world_1", + "orig_query": "select code from country where governmentform != \"Republic\" except select countrycode from countrylanguage where language = \"English\"", + "schema_with_content": "spoken_language : countrycode (\"VIR\", \"HUN\", \"JAM\"), percentage (18.4, 8.5, 40.8), language (\"Naudemba\", \"Ngbaka\", \"Otom\u00c3\u00ad\"), isofficial (\"T\", \"F\") | official_language : countrycode (\"VIR\", \"HUN\", \"JAM\"), percentage (18.4, 8.5, 40.8), language (\"Naudemba\", \"Ngbaka\", \"Otom\u00c3\u00ad\"), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | city : name (\"Mersin (I\u00c3\u00a7el)\", \"\u00c3\u0096rebro\", \"Binangonan\"), district (\"Bursa\", \"Lilongwe\", \"Qom\"), countrycode (\"JOR\", \"TWN\", \"SDN\"), population (105265, 279280, 96100), id (3323, 2412, 2449) | country : population (180000, 7734000, 6485000), surfacearea (267668.0, 2040.0, 28748.0), name (\"Thailand\", \"Myanmar\", \"Chile\"), capital (2452, 3419, 34), localname (\"Slovenija\", \"Qazaqstan\", \"M\u00c3\u00a9xico\"), headofstate (\"Natsagiin Bagabandi\", \"Johannes Paavali II\", \"Jigme Singye Wangchuk\"), continent (\"North America\", \"Oceania\", \"Africa\"), code (\"TCD\", \"TTO\", \"TKL\"), gnp (6.0, 351182.0, 13714.0), lifeexpectancy (71.0, 78.7, 68.0), code2 (\"PR\", \"BV\", \"BA\"), indepyear (1878, 1966, 1970), gnpold (1392448.0, 15091.0, 8110900.0), governmentform (\"Monarchy\", \"Constitutional Monarchy\", \"Socialistic Republic\"), region (\"North America\", \"North America\", \"British Islands\")", + "schema_without_content": "spoken_language : countrycode , percentage , language , isofficial | official_language : countrycode , percentage , language , isofficial | sqlite_sequence : seq , name | city : name \", \"\u00c3\u0096rebro\", \"Binangonan\", district , countrycode , population , id | country : population , surfacearea , name , capital , localname , headofstate , continent , code , gnp , lifeexpectancy , code2 , indepyear , gnpold , governmentform , region", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "codes of countries": "country.Code", + "speak English": "countrylanguage.Language", + "governments": "country.GovernmentForm" + } + }, + { + "question": "which #cities# are in #european countries# where #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "town : countrycode (\"BLZ\", \"ALB\", \"SLB\"), district (\"Mamoutzou\", \"Hualien\", \"Georgia\"), name (\"Koblenz\", \"Swindon\", \"Las Pi\u00c3\u00b1as\"), id (1368, 2916, 889), population (250121, 324400, 273578) | metropolis : countrycode (\"BLZ\", \"ALB\", \"SLB\"), district (\"Mamoutzou\", \"Hualien\", \"Georgia\"), name (\"Koblenz\", \"Swindon\", \"Las Pi\u00c3\u00b1as\"), id (1368, 2916, 889), population (250121, 324400, 273578) | country : localname (\"Zimbabwe\", \"Puerto Rico\", \"Kalaallit Nunaat/Gr\u00c3\u00b8nland\"), gnp (3563.0, 182.0, 3512.0), governmentform (\"Federal Republic\", \"Administrated by the UN\", \"Socialistic State\"), indepyear (1976, 1492, 1964), capital (537, 2446, 587), region (\"Western Africa\", \"Australia and New Zealand\", \"British Islands\"), surfacearea (726.0, 13120000.0, 676578.0), population (9586000, 10925000, 754700), code2 (\"SK\", \"FR\", \"AI\"), gnpold (933.0, 5729.0, 8700.0), name (\"French Guiana\", \"Pakistan\", \"Nauru\"), continent (\"South America\", \"South America\", \"South America\"), code (\"LBR\", \"AGO\", \"FRO\"), headofstate (\"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Salahuddin Abdul Aziz Shah Alhaj\", \"\"), lifeexpectancy (64.0, 74.1, 74.9) | sqlite_sequence : seq (4079), name (\"city\") | countrylanguage : percentage (11.4, 0.1, 37.5), language (\"Guaym\u00c3\u00ad\", \"Czech\", \"Busansi\"), countrycode (\"LBY\", \"GHA\", \"LUX\"), isofficial (\"T\", \"F\")", + "schema_without_content": "town : countrycode , district , name , id , population | metropolis : countrycode , district , name , id , population | country : localname , gnp , governmentform , indepyear , capital , region , surfacearea , population , code2 , gnpold , name , continent , code , headofstate , lifeexpectancy | sqlite_sequence : seq , name | countrylanguage : percentage , language , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "cities": "city.Name", + "European countries": "country.Continent", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "which #cities# are in #european countries# where #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "state : continent (\"Antarctica\", \"Africa\", \"Antarctica\"), name (\"Turkey\", \"Fiji Islands\", \"Bolivia\"), indepyear (1810, 1143, 1816), gnp (371362.0, 84982.0, 4251.0), governmentform (\"Autonomous Area\", \"Constitutional Monarchy\", \"Nonmetropolitan Territory of New Zealand\"), code (\"NPL\", \"WLF\", \"MYT\"), lifeexpectancy (51.6, 70.8, 37.5), code2 (\"DE\", \"SJ\", \"CH\"), gnpold (392911.0, 1580.0, 15076.0), localname (\"Burkina Faso\", \"Bangladesh\", \"Lao\"), headofstate (\"Alfonso Portillo Cabrera\", \"Andr\u00c3\u00a9s Pastrana Arango\", \"Taufa'ahau Tupou IV\"), population (40377000, 1158000, 2000), region (\"Eastern Asia\", \"Antarctica\", \"Northern Africa\"), capital (3198, 1792, 1786), surfacearea (78866.0, 1399.0, 1025520.0) | nation : continent (\"Antarctica\", \"Africa\", \"Antarctica\"), name (\"Turkey\", \"Fiji Islands\", \"Bolivia\"), indepyear (1810, 1143, 1816), gnp (371362.0, 84982.0, 4251.0), governmentform (\"Autonomous Area\", \"Constitutional Monarchy\", \"Nonmetropolitan Territory of New Zealand\"), code (\"NPL\", \"WLF\", \"MYT\"), lifeexpectancy (51.6, 70.8, 37.5), code2 (\"DE\", \"SJ\", \"CH\"), gnpold (392911.0, 1580.0, 15076.0), localname (\"Burkina Faso\", \"Bangladesh\", \"Lao\"), headofstate (\"Alfonso Portillo Cabrera\", \"Andr\u00c3\u00a9s Pastrana Arango\", \"Taufa'ahau Tupou IV\"), population (40377000, 1158000, 2000), region (\"Eastern Asia\", \"Antarctica\", \"Northern Africa\"), capital (3198, 1792, 1786), surfacearea (78866.0, 1399.0, 1025520.0) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Romansh\", \"Kurdish\", \"Lango\"), countrycode (\"GIN\", \"BDI\", \"AFG\"), percentage (88.6, 21.7, 97.3) | sqlite_sequence : seq (4079), name (\"city\") | city : district (\"St. Andrew\", \"Sousse\", \"Saksi\"), name (\"Zumpango\", \"Hermosillo\", \"Chongqing\"), population (2168000, 76293, 148110), id (3849, 1416, 247), countrycode (\"IRN\", \"CAN\", \"LBY\")", + "schema_without_content": "state : continent , name , indepyear , gnp , governmentform , code , lifeexpectancy , code2 , gnpold , localname , headofstate , population , region , capital , surfacearea | nation : continent , name , indepyear , gnp , governmentform , code , lifeexpectancy , code2 , gnpold , localname , headofstate , population , region , capital , surfacearea | countrylanguage : isofficial , language , countrycode , percentage | sqlite_sequence : seq , name | city : district , name , population , id , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "cities": "city.Name", + "European countries": "country.Continent", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "which #cities# are in #european countries# where #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "city : countrycode (\"ASM\", \"BLR\", \"SUR\"), district (\"Haute-Za\u00c3\u00afre\", \"Fakaofo\", \"Picardie\"), id (2557, 2861, 2826), population (100821, 381800, 93961), name (\"Wad Madani\", \"Perm\", \"Liangcheng\") | country : governmentform (\"Monarchy\", \"Nonmetropolitan Territory of The Netherlands\", \"Emirate Federation\"), localname (\"Anguilla\", \"Suriya\", \"Cuba\"), lifeexpectancy (60.9, 42.5, 73.1), gnpold (4192638.0, 9555.0, 17797.0), population (2153000, 22455500, 24318000), continent (\"Africa\", \"Asia\", \"Africa\"), surfacearea (622.0, 86600.0, 388.0), indepyear (1980, 1971, 1821), region (\"Eastern Africa\", \"North America\", \"Micronesia\"), code2 (\"YU\", \"CK\", \"BN\"), gnp (84982.0, 1424285.0, 16904.0), code (\"IRN\", \"LSO\", \"VNM\"), capital (553, 126, 3426), name (\"Virgin Islands, British\", \"Saint Lucia\", \"Ukraine\"), headofstate (\"Ali Mohammad Khatami-Ardakani\", \"Ali Abdallah Salih\", \"Benjamin William Mkapa\") | official_language : percentage (34.8, 95.0, 11.3), countrycode (\"SYC\", \"ARE\", \"VNM\"), language (\"Guaran\u00c3\u00ad\", \"Ronga\", \"Chinese\"), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | spoken_language : percentage (34.8, 95.0, 11.3), countrycode (\"SYC\", \"ARE\", \"VNM\"), language (\"Guaran\u00c3\u00ad\", \"Ronga\", \"Chinese\"), isofficial (\"T\", \"F\")", + "schema_without_content": "city : countrycode , district , id , population , name | country : governmentform , localname , lifeexpectancy , gnpold , population , continent , surfacearea , indepyear , region , code2 , gnp , code , capital , name , headofstate | official_language : percentage , countrycode , language , isofficial | sqlite_sequence : seq , name | spoken_language : percentage , countrycode , language , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "cities": "city.Name", + "European countries": "country.Continent", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "what are the #names of cities in europe# for which #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "country : population (3615000, 3520000, 5496000), code2 (\"NO\", \"HU\", \"PW\"), lifeexpectancy (79.0, 68.7, 78.9), indepyear (1977, 1946, 1769), continent (\"Antarctica\", \"South America\", \"Asia\"), gnpold (189122.0, 1915.0, 373.0), localname (\"Nigeria\", \"Papua New Guinea/Papua Niugini\", \"Ukrajina\"), surfacearea (65610.0, 90000.0, 2149690.0), name (\"Cook Islands\", \"Cameroon\", \"Netherlands\"), capital (3169, 4067, 35), headofstate (\"Thomas Klestil\", \"Bakili Muluzi\", \"Pierre Buyoya\"), code (\"BOL\", \"TZA\", \"MCO\"), region (\"Middle East\", \"Micronesia\", \"Eastern Europe\"), gnp (11345.0, 5121.0, 903.0), governmentform (\"Co-administrated\", \"Co-administrated\", \"Territory of Australia\") | sqlite_sequence : name (\"city\"), seq (4079) | countrylanguage : language (\"Belorussian\", \"Kirgiz\", \"Czech\"), countrycode (\"CXR\", \"PNG\", \"MCO\"), isofficial (\"T\", \"F\"), percentage (41.6, 79.8, 3.6) | town : district (\"Heilongjiang\", \"Nagasaki\", \"Battambang\"), name (\"Ife\", \"Lerdo\", \"Beawar\"), population (379310, 768082, 304000), countrycode (\"LBY\", \"BWA\", \"LUX\"), id (2348, 1927, 454) | metropolis : district (\"Heilongjiang\", \"Nagasaki\", \"Battambang\"), name (\"Ife\", \"Lerdo\", \"Beawar\"), population (379310, 768082, 304000), countrycode (\"LBY\", \"BWA\", \"LUX\"), id (2348, 1927, 454)", + "schema_without_content": "country : population , code2 , lifeexpectancy , indepyear , continent , gnpold , localname , surfacearea , name , capital , headofstate , code , region , gnp , governmentform | sqlite_sequence : name , seq | countrylanguage : language , countrycode , isofficial , percentage | town : district , name , population , countrycode , id | metropolis : district , name , population , countrycode , id", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of cities in Europe": "city.Name", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "what are the #names of cities in europe# for which #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : id (1076, 1117, 2631), name (\"Mart\u00c3\u00adnez de la Torre\", \"Oaxaca de Ju\u00c3\u00a1rez\", \"G\u00c3\u00bctersloh\"), population (254477, 208797, 115698), countrycode (\"MDG\", \"COK\", \"SLB\"), district (\"Sanliurfa\", \"Osrednjeslovenska\", \"Pusan\") | countrylanguage : language (\"Gurma\", \"Friuli\", \"Brahui\"), percentage (21.2, 5.2, 20.9), countrycode (\"VEN\", \"AND\", \"TGO\"), isofficial (\"T\", \"F\") | state : region (\"Southern Europe\", \"Micronesia\", \"Southern Africa\"), localname (\"Al-\u00c2\u00b4Iraq\", \"Saint Kitts and Nevis\", \"British Indian Ocean Territory\"), population (3282000, 5398700, 38000), code2 (\"VN\", \"BT\", \"KE\"), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", \"Socialistic Republic\"), gnp (256.0, 102896.0, 102896.0), continent (\"Europe\", \"Asia\", \"Europe\"), name (\"Russian Federation\", \"China\", \"Sierra Leone\"), gnpold (169264.0, 1186.0, 7051.0), indepyear (1847, 1923, 1957), capital (584, 608, 1365), surfacearea (41284.0, 185180.0, 26.0), headofstate (\"Mary McAleese\", \"Hosni Mubarak\", \"Harald V\"), code (\"KAZ\", \"BIH\", \"AZE\"), lifeexpectancy (74.1, 52.3, 66.4) | nation : region (\"Southern Europe\", \"Micronesia\", \"Southern Africa\"), localname (\"Al-\u00c2\u00b4Iraq\", \"Saint Kitts and Nevis\", \"British Indian Ocean Territory\"), population (3282000, 5398700, 38000), code2 (\"VN\", \"BT\", \"KE\"), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", \"Socialistic Republic\"), gnp (256.0, 102896.0, 102896.0), continent (\"Europe\", \"Asia\", \"Europe\"), name (\"Russian Federation\", \"China\", \"Sierra Leone\"), gnpold (169264.0, 1186.0, 7051.0), indepyear (1847, 1923, 1957), capital (584, 608, 1365), surfacearea (41284.0, 185180.0, 26.0), headofstate (\"Mary McAleese\", \"Hosni Mubarak\", \"Harald V\"), code (\"KAZ\", \"BIH\", \"AZE\"), lifeexpectancy (74.1, 52.3, 66.4)", + "schema_without_content": "sqlite_sequence : seq , name | city : id , name , population , countrycode , district | countrylanguage : language , percentage , countrycode , isofficial | state : region , localname , population , code2 , governmentform , gnp , continent , name , gnpold , indepyear , capital , surfacearea , headofstate , code , lifeexpectancy | nation : region , localname , population , code2 , governmentform , gnp , continent , name , gnpold , indepyear , capital , surfacearea , headofstate , code , lifeexpectancy", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of cities in Europe": "city.Name", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "what are the #names of cities in europe# for which #english# is not the #official language# ?", + "db_id": "world_1", + "orig_query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'Europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 'T' and t4.language = 'English')", + "schema_with_content": "official_language : countrycode (\"DOM\", \"OMN\", \"UMI\"), isofficial (\"T\", \"F\"), language (\"Northsotho\", \"Italian\", \"Nyika\"), percentage (78.8, 0.1, 93.6) | country : gnp (2133367.0, 1208.0, 36124.0), headofstate (\"Zine al-Abidine Ben Ali\", \"Mswati III\", \"Kumba Ial\u00c3\u00a1\"), lifeexpectancy (70.3, 50.8, 72.7), localname (\"Hajastan\", \"Bangladesh\", \"Norge\"), gnpold (75780.0, 2023.0, 32100.0), indepyear (1902, 1962, 1806), region (\"South America\", \"Southern Africa\", \"Southern Europe\"), governmentform (\"Autonomous Area\", \"Dependent Territory of the US\", \"US Territory\"), population (34000, 29490000, 8222000), code2 (\"SC\", \"SJ\", \"GR\"), surfacearea (551500.0, 199.0, 2381741.0), continent (\"Europe\", \"Oceania\", \"Africa\"), name (\"Nigeria\", \"Bermuda\", \"Kenya\"), capital (191, 3423, 2446), code (\"VGB\", \"COL\", \"AND\") | spoken_language : countrycode (\"DOM\", \"OMN\", \"UMI\"), isofficial (\"T\", \"F\"), language (\"Northsotho\", \"Italian\", \"Nyika\"), percentage (78.8, 0.1, 93.6) | city : countrycode (\"MDA\", \"ERI\", \"ARE\"), id (2352, 3330, 2015), population (100545, 113494, 169841), name (\"Iloilo\", \"Netanya\", \"Reggio nell\u00c2\u00b4 Emilia\"), district (\"Imereti\", \"Hwanghae P\", \"Centre\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "official_language : countrycode , isofficial , language , percentage | country : gnp , headofstate , lifeexpectancy , localname , gnpold , indepyear , region , governmentform , population , code2 , surfacearea , continent , name , capital , code | spoken_language : countrycode , isofficial , language , percentage | city : countrycode , id , population , name , district | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of cities in Europe": "city.Name", + "English": "countrylanguage.Language", + "official language": "countrylanguage.IsOfficial" + } + }, + { + "question": "return the different #names of cities# that are in #asia# and for which #chinese is the official language# .", + "db_id": "world_1", + "orig_query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 'T' and t2.language = 'Chinese' and t1.continent = \"Asia\"", + "schema_with_content": "town : id (3178, 2001, 3571), countrycode (\"PRK\", \"TON\", \"FIN\"), district (\"Mangghystau\", \"Lubuskie\", \"Horad Minsk\"), name (\"Petr\u00c3\u00b3polis\", \"Grand Prairie\", \"Chaohu\"), population (105114, 595, 170034) | metropolis : id (3178, 2001, 3571), countrycode (\"PRK\", \"TON\", \"FIN\"), district (\"Mangghystau\", \"Lubuskie\", \"Horad Minsk\"), name (\"Petr\u00c3\u00b3polis\", \"Grand Prairie\", \"Chaohu\"), population (105114, 595, 170034) | sqlite_sequence : seq (4079), name (\"city\") | country : code (\"REU\", \"ZMB\", \"SVN\"), capital (2253, 584, 901), governmentform (\"US Territory\", \"Part of Denmark\", \"Territory of Australia\"), gnpold (1084.0, 542.0, 706.0), headofstate (\"Gnassingb\u00c3\u00a9 Eyad\u00c3\u00a9ma\", \"Hip\u00c3\u00b3lito Mej\u00c3\u00ada Dom\u00c3\u00adnguez\", \"Petar Stojanov\"), population (15000, 417000, 279000), continent (\"Europe\", \"South America\", \"Oceania\"), region (\"Eastern Asia\", \"Southern Europe\", \"Nordic Countries\"), lifeexpectancy (76.8, 78.6, 69.9), code2 (\"ZW\", \"MU\", \"FM\"), surfacearea (694.0, 283561.0, 1221037.0), gnp (199.0, 19008.0, 151697.0), name (\"South Africa\", \"Brazil\", \"American Samoa\"), localname (\"T\u00c3\u00bcrkiye\", \"The Cook Islands\", \"Al-Yaman\"), indepyear (1905, 1847, 1499) | countrylanguage : language (\"Norwegian\", \"Samoan-English\", \"Bura\"), countrycode (\"NOR\", \"SYR\", \"TMP\"), percentage (97.7, 41.9, 3.8), isofficial (\"T\", \"F\")", + "schema_without_content": "town : id , countrycode , district , name , population | metropolis : id , countrycode , district , name , population | sqlite_sequence : seq , name | country : code , capital , governmentform , gnpold , headofstate , population , continent , region , lifeexpectancy , code2 , surfacearea , gnp , name , localname , indepyear | countrylanguage : language , countrycode , percentage , isofficial", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of cities": "city.Name", + "Asia": "country.Continent", + "Chinese is the official language": "countrylanguage.Language" + } + }, + { + "question": "return the different #names of cities# that are in #asia# and for which #chinese is the official language# .", + "db_id": "world_1", + "orig_query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 'T' and t2.language = 'Chinese' and t1.continent = \"Asia\"", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : name (\"Micronesia, Federated States of\", \"Samoa\", \"Zimbabwe\"), surfacearea (83600.0, 1246700.0, 264.0), region (\"Western Africa\", \"Baltic Countries\", \"Eastern Europe\"), population (15000, 24039000, 23115000), lifeexpectancy (81.6, 79.8, 51.1), code (\"PNG\", \"PHL\", \"AIA\"), continent (\"South America\", \"Africa\", \"North America\"), governmentform (\"Dependent Territory of the US\", \"Federation\", \"Nonmetropolitan Territory of France\"), gnp (2108.0, 249704.0, 8287.0), indepyear (1867, 1960, 1948), capital (2696, 716, 3499), code2 (\"ZA\", \"MO\", \"RE\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Jorge Samp\u00c3\u00a3io\", \"Rainier III\"), localname (\"Nihon/Nippon\", \"Deutschland\", \"Christmas Island\"), gnpold (227757.0, 2500.0, 52037.0) | countrylanguage : isofficial (\"T\", \"F\"), language (\"Lezgian\", \"Saame\", \"Czech and Moravian\"), countrycode (\"LVA\", \"GMB\", \"LUX\"), percentage (3.6, 88.6, 92.1) | nation : name (\"Micronesia, Federated States of\", \"Samoa\", \"Zimbabwe\"), surfacearea (83600.0, 1246700.0, 264.0), region (\"Western Africa\", \"Baltic Countries\", \"Eastern Europe\"), population (15000, 24039000, 23115000), lifeexpectancy (81.6, 79.8, 51.1), code (\"PNG\", \"PHL\", \"AIA\"), continent (\"South America\", \"Africa\", \"North America\"), governmentform (\"Dependent Territory of the US\", \"Federation\", \"Nonmetropolitan Territory of France\"), gnp (2108.0, 249704.0, 8287.0), indepyear (1867, 1960, 1948), capital (2696, 716, 3499), code2 (\"ZA\", \"MO\", \"RE\"), headofstate (\"Jos\u00c3\u00a9 Eduardo dos Santos\", \"Jorge Samp\u00c3\u00a3io\", \"Rainier III\"), localname (\"Nihon/Nippon\", \"Deutschland\", \"Christmas Island\"), gnpold (227757.0, 2500.0, 52037.0) | city : name (\"Sibiu\", \"Wuhai\", \"Tucheng\"), id (1819, 931, 3783), district (\"Lviv\", \"Centre\", \"Tigray\"), population (386236, 110379, 342264), countrycode (\"GNB\", \"HUN\", \"SOM\")", + "schema_without_content": "sqlite_sequence : seq , name | state : name , surfacearea , region , population , lifeexpectancy , code , continent , governmentform , gnp , indepyear , capital , code2 , headofstate , localname , gnpold | countrylanguage : isofficial , language , countrycode , percentage | nation : name , surfacearea , region , population , lifeexpectancy , code , continent , governmentform , gnp , indepyear , capital , code2 , headofstate , localname , gnpold | city : name , id , district , population , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of cities": "city.Name", + "Asia": "country.Continent", + "Chinese is the official language": "countrylanguage.Language" + } + }, + { + "question": "return the different #names of cities# that are in #asia# and for which #chinese is the official language# .", + "db_id": "world_1", + "orig_query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 'T' and t2.language = 'Chinese' and t1.continent = \"Asia\"", + "schema_with_content": "country : population (6276000, 38653600, 417000), gnp (63.2, 12178.0, 3101.0), headofstate (\"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\", \"Ismail Omar Guelleh\", \"Kostis Stefanopoulos\"), localname (\"Le Gabon\", \"Sakartvelo\", \"Niue\"), surfacearea (49012.0, 752618.0, 18575.0), region (\"Southeast Asia\", \"Micronesia/Caribbean\", \"Southern and Central Asia\"), governmentform (\"Federal Republic\", \"Dependent Territory of Norway\", \"Independent Church State\"), name (\"Sweden\", \"Jamaica\", \"Honduras\"), capital (554, 2885, 3067), lifeexpectancy (73.6, 64.1, 37.2), indepyear (1978, 1905, 885), code2 (\"BH\", \"KH\", \"BG\"), continent (\"Europe\", \"North America\", \"Antarctica\"), gnpold (539.0, 1081.0, 8670.0), code (\"CUB\", \"TJK\", \"PER\") | spoken_language : language (\"Papiamento\", \"Kissi\", \"Bamileke-bamum\"), countrycode (\"CUB\", \"HKG\", \"AGO\"), percentage (19.6, 5.3, 37.2), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\") | official_language : language (\"Papiamento\", \"Kissi\", \"Bamileke-bamum\"), countrycode (\"CUB\", \"HKG\", \"AGO\"), percentage (19.6, 5.3, 37.2), isofficial (\"T\", \"F\") | city : id (160, 1229, 3508), countrycode (\"MLT\", \"GRC\", \"TMP\"), district (\"Amhara\", \"Central Visayas\", \"Kalmykia\"), population (143409, 183261, 94058), name (\"Southampton\", \"Parma\", \"Rohtak\")", + "schema_without_content": "country : population , gnp , headofstate , localname , surfacearea , region , governmentform , name , capital , lifeexpectancy , indepyear , code2 , continent , gnpold , code | spoken_language : language , countrycode , percentage , isofficial | sqlite_sequence : seq , name | official_language : language , countrycode , percentage , isofficial | city : id , countrycode , district , population , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of cities": "city.Name", + "Asia": "country.Continent", + "Chinese is the official language": "countrylanguage.Language" + } + }, + { + "question": "what are the #name# , #independence year# , and su #rface area of the country with the smallest population?# ", + "db_id": "world_1", + "orig_query": "select name, surfacearea, indepyear from country order by population limit 1", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : name (\"Austria\", \"Georgia\", \"Haiti\"), localname (\"Bosna i Hercegovina\", \"Niger\", \"Ireland/\u00c3\u0089ire\"), gnp (776.0, 27037.0, 5121.0), lifeexpectancy (60.2, 79.8, 79.4), code (\"HRV\", \"CPV\", \"NCL\"), gnpold (2527.0, 1296830.0, 325.0), code2 (\"AW\", \"MW\", \"HM\"), surfacearea (207600.0, 267668.0, 88946.0), region (\"Australia and New Zealand\", \"Western Europe\", \"Polynesia\"), capital (1792, 2514, 2914), headofstate (\"Teburoro Tito\", \"Jigme Singye Wangchuk\", \"Milan Kucan\"), governmentform (\"Dependent Territory of Norway\", \"Dependent Territory of Norway\", \"Islamic Emirate\"), continent (\"North America\", \"Asia\", \"Antarctica\"), population (57680000, 11000, 5496000), indepyear (1994, 1929, 1919) | countrylanguage : language (\"Ronga\", \"Lozi\", \"Chibcha\"), isofficial (\"T\", \"F\"), percentage (10.8, 59.7, 13.1), countrycode (\"CHN\", \"STP\", \"AIA\") | nation : name (\"Austria\", \"Georgia\", \"Haiti\"), localname (\"Bosna i Hercegovina\", \"Niger\", \"Ireland/\u00c3\u0089ire\"), gnp (776.0, 27037.0, 5121.0), lifeexpectancy (60.2, 79.8, 79.4), code (\"HRV\", \"CPV\", \"NCL\"), gnpold (2527.0, 1296830.0, 325.0), code2 (\"AW\", \"MW\", \"HM\"), surfacearea (207600.0, 267668.0, 88946.0), region (\"Australia and New Zealand\", \"Western Europe\", \"Polynesia\"), capital (1792, 2514, 2914), headofstate (\"Teburoro Tito\", \"Jigme Singye Wangchuk\", \"Milan Kucan\"), governmentform (\"Dependent Territory of Norway\", \"Dependent Territory of Norway\", \"Islamic Emirate\"), continent (\"North America\", \"Asia\", \"Antarctica\"), population (57680000, 11000, 5496000), indepyear (1994, 1929, 1919) | city : population (3361500, 720755, 199753), name (\"Thimphu\", \"Santaf\u00c3\u00a9 de Bogot\u00c3\u00a1\", \"Tuticorin\"), id (79, 2159, 1255), district (\"Mardin\", \"Ismailia\", \"Sucre\"), countrycode (\"KWT\", \"DNK\", \"SGP\")", + "schema_without_content": "sqlite_sequence : seq , name | state : name , localname , gnp , lifeexpectancy , code , gnpold , code2 , surfacearea , region , capital , headofstate , governmentform , continent , population , indepyear | countrylanguage : language , isofficial , percentage , countrycode | nation : name , localname , gnp , lifeexpectancy , code , gnpold , code2 , surfacearea , region , capital , headofstate , governmentform , continent , population , indepyear | city : population , name , id , district , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "country.Name", + "independence year": "country.IndepYear", + "rface area of the country with the smallest population?": "country.Population", + "surface area": "country.SurfaceArea" + } + }, + { + "question": "give the #name# , #year of independence# , and su #rface area of the country t# hat has the lowest #population# .", + "db_id": "world_1", + "orig_query": "select name, surfacearea, indepyear from country order by population limit 1", + "schema_with_content": "state : gnp (65707.0, 60.0, 8510700.0), localname (\"Ertra\", \"Virgin Islands of the United States\", \"Norfolk Island\"), gnpold (5924.0, 263451.0, 706.0), region (\"Antarctica\", \"Baltic Countries\", \"Polynesia\"), surfacearea (388.0, 449964.0, 266000.0), continent (\"Oceania\", \"Europe\", \"South America\"), indepyear (1976, 1492, 1973), code (\"AUT\", \"SLE\", \"MWI\"), capital (916, 3014, 2814), name (\"Philippines\", \"Botswana\", \"Chile\"), lifeexpectancy (53.6, 72.8, 45.6), headofstate (\"Zine al-Abidine Ben Ali\", \"\u00c5\u00a0tipe Mesic\", \"Hamad ibn Isa al-Khalifa\"), code2 (\"MV\", \"SJ\", \"NC\"), governmentform (\"US Territory\", \"Emirate Federation\", \"Special Administrative Region of China\"), population (10236000, 17000, 15942000) | countrylanguage : percentage (10.3, 47.4, 12.4), isofficial (\"T\", \"F\"), language (\"Ngbaka\", \"Macedonian\", \"German\"), countrycode (\"PCN\", \"MTQ\", \"SGP\") | sqlite_sequence : seq (4079), name (\"city\") | city : countrycode (\"BLZ\", \"BLR\", \"COK\"), district (\"Bender (T\u00c3\u00aeghina)\", \"Ondo & Ekiti\", \"al-Zarqa\"), id (3844, 2478, 1765), name (\"Munger (Monghyr)\", \"Jamestown\", \"Midnapore (Medinipur)\"), population (379310, 643360, 231978) | nation : gnp (65707.0, 60.0, 8510700.0), localname (\"Ertra\", \"Virgin Islands of the United States\", \"Norfolk Island\"), gnpold (5924.0, 263451.0, 706.0), region (\"Antarctica\", \"Baltic Countries\", \"Polynesia\"), surfacearea (388.0, 449964.0, 266000.0), continent (\"Oceania\", \"Europe\", \"South America\"), indepyear (1976, 1492, 1973), code (\"AUT\", \"SLE\", \"MWI\"), capital (916, 3014, 2814), name (\"Philippines\", \"Botswana\", \"Chile\"), lifeexpectancy (53.6, 72.8, 45.6), headofstate (\"Zine al-Abidine Ben Ali\", \"\u00c5\u00a0tipe Mesic\", \"Hamad ibn Isa al-Khalifa\"), code2 (\"MV\", \"SJ\", \"NC\"), governmentform (\"US Territory\", \"Emirate Federation\", \"Special Administrative Region of China\"), population (10236000, 17000, 15942000)", + "schema_without_content": "state : gnp , localname , gnpold , region , surfacearea , continent , indepyear , code , capital , name , lifeexpectancy , headofstate , code2 , governmentform , population | countrylanguage : percentage , isofficial , language , countrycode | sqlite_sequence : seq , name | city : countrycode , district \", \"Ondo & Ekiti\", \"al-Zarqa\", id , name \", \"Jamestown\", \"Midnapore \", population | nation : gnp , localname , gnpold , region , surfacearea , continent , indepyear , code , capital , name , lifeexpectancy , headofstate , code2 , governmentform , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "country.Name", + "year of independence": "country.IndepYear", + "rface area of the country t": "country", + "population": "country.Population", + "surface area": "country.SurfaceArea" + } + }, + { + "question": "what are the #population# , #name# and l #eader of the country# with the largest #area# ?", + "db_id": "world_1", + "orig_query": "select name, population, headofstate from country order by surfacearea desc limit 1", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : population (134222, 194973, 141954), id (3157, 2472, 1967), name (\"Campo Grande\", \"Frankfurt am Main\", \"Pontianak\"), district (\"Cauca\", \"Kerman\", \"Yamoussoukro\"), countrycode (\"HRV\", \"HTI\", \"KOR\") | nation : indepyear (1979, 1983, 1966), continent (\"Africa\", \"Europe\", \"North America\"), gnpold (7474.0, 3371.0, 1296830.0), gnp (1054.0, 82710.0, 6.0), population (78000, 428000, 3200), code2 (\"PG\", \"SJ\", \"AO\"), region (\"Caribbean\", \"North America\", \"Melanesia\"), surfacearea (65301.0, 1648195.0, 1958201.0), governmentform (\"Constitutional Monarchy, Federation\", \"Parlementary Monarchy\", \"Occupied by Marocco\"), lifeexpectancy (62.5, 80.1, 50.5), capital (766, 3064, 3236), name (\"Vanuatu\", \"Chad\", \"Italy\"), localname (\"Ukrajina\", \"Botswana\", \"Ecuador\"), code (\"BOL\", \"LCA\", \"MNP\"), headofstate (\"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Andr\u00c3\u00a9s Pastrana Arango\", \"Hamad ibn Isa al-Khalifa\") | state : indepyear (1979, 1983, 1966), continent (\"Africa\", \"Europe\", \"North America\"), gnpold (7474.0, 3371.0, 1296830.0), gnp (1054.0, 82710.0, 6.0), population (78000, 428000, 3200), code2 (\"PG\", \"SJ\", \"AO\"), region (\"Caribbean\", \"North America\", \"Melanesia\"), surfacearea (65301.0, 1648195.0, 1958201.0), governmentform (\"Constitutional Monarchy, Federation\", \"Parlementary Monarchy\", \"Occupied by Marocco\"), lifeexpectancy (62.5, 80.1, 50.5), capital (766, 3064, 3236), name (\"Vanuatu\", \"Chad\", \"Italy\"), localname (\"Ukrajina\", \"Botswana\", \"Ecuador\"), code (\"BOL\", \"LCA\", \"MNP\"), headofstate (\"Ange-F\u00c3\u00a9lix Patass\u00c3\u00a9\", \"Andr\u00c3\u00a9s Pastrana Arango\", \"Hamad ibn Isa al-Khalifa\") | countrylanguage : percentage (50.4, 65.0, 8.7), language (\"Lezgian\", \"Lezgian\", \"Ngala and Bangi\"), countrycode (\"MDA\", \"ABW\", \"LKA\"), isofficial (\"T\", \"F\")", + "schema_without_content": "sqlite_sequence : seq , name | city : population , id , name , district , countrycode | nation : indepyear , continent , gnpold , gnp , population , code2 , region , surfacearea , governmentform , lifeexpectancy , capital , name , localname , code , headofstate | state : indepyear , continent , gnpold , gnp , population , code2 , region , surfacearea , governmentform , lifeexpectancy , capital , name , localname , code , headofstate | countrylanguage : percentage , language , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "population": "country.Population", + "name": "country.Name", + "eader of the country": "country", + "area": "country.SurfaceArea", + "leader": "country.HeadOfState" + } + }, + { + "question": "give the #name# , #population# , and he #ad of state for the country t# hat has the #largest area# .", + "db_id": "world_1", + "orig_query": "select name, population, headofstate from country order by surfacearea desc limit 1", + "schema_with_content": "state : lifeexpectancy (50.5, 37.5, 54.9), headofstate (\"Ion Iliescu\", \"Islam Karimov\", \"Salahuddin Abdul Aziz Shah Alhaj\"), indepyear (1947, 1838, 1919), governmentform (\"Commonwealth of the US\", \"Constitutional Monarchy, Federation\", \"Constitutional Monarchy\"), continent (\"Oceania\", \"Asia\", \"South America\"), surfacearea (676578.0, 118484.0, 135.0), code2 (\"GY\", \"GL\", \"RE\"), gnpold (8670.0, 401461.0, 75780.0), localname (\"Soomaaliya\", \"To\u00c3\u00a7ikiston\", \"Belau/Palau\"), capital (2482, 3499, 3332), region (\"Caribbean\", \"North America\", \"Micronesia/Caribbean\"), gnp (8255.0, 55017.0, 1061.0), population (4473000, 168000, 3520000), code (\"BIH\", \"PNG\", \"NGA\"), name (\"Pitcairn\", \"Namibia\", \"Saint Lucia\") | city : name (\"Lauro de Freitas\", \"Bah\u00c3\u00ada Blanca\", \"Chongjin\"), countrycode (\"COM\", \"ZMB\", \"ETH\"), id (3358, 2004, 306), population (130577, 154125, 144280), district (\"Diourbel\", \"Khartum\", \"Yamaguchi\") | countrylanguage : isofficial (\"T\", \"F\"), countrycode (\"AFG\", \"GRC\", \"ERI\"), percentage (0.5, 1.9, 86.3), language (\"Arabic-French\", \"Hehet\", \"Tamashek\") | nation : lifeexpectancy (50.5, 37.5, 54.9), headofstate (\"Ion Iliescu\", \"Islam Karimov\", \"Salahuddin Abdul Aziz Shah Alhaj\"), indepyear (1947, 1838, 1919), governmentform (\"Commonwealth of the US\", \"Constitutional Monarchy, Federation\", \"Constitutional Monarchy\"), continent (\"Oceania\", \"Asia\", \"South America\"), surfacearea (676578.0, 118484.0, 135.0), code2 (\"GY\", \"GL\", \"RE\"), gnpold (8670.0, 401461.0, 75780.0), localname (\"Soomaaliya\", \"To\u00c3\u00a7ikiston\", \"Belau/Palau\"), capital (2482, 3499, 3332), region (\"Caribbean\", \"North America\", \"Micronesia/Caribbean\"), gnp (8255.0, 55017.0, 1061.0), population (4473000, 168000, 3520000), code (\"BIH\", \"PNG\", \"NGA\"), name (\"Pitcairn\", \"Namibia\", \"Saint Lucia\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "state : lifeexpectancy , headofstate , indepyear , governmentform , continent , surfacearea , code2 , gnpold , localname , capital , region , gnp , population , code , name | city : name , countrycode , id , population , district | countrylanguage : isofficial , countrycode , percentage , language | nation : lifeexpectancy , headofstate , indepyear , governmentform , continent , surfacearea , code2 , gnpold , localname , capital , region , gnp , population , code , name | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "country.Name", + "population": "country.Population", + "ad of state for the country t": "country", + "largest area": "country.SurfaceArea", + "head of state": "country.HeadOfState" + } + }, + { + "question": "return the #country# name and the numbers of #languages# spoken for each country that speaks at least 3 languages.", + "db_id": "world_1", + "orig_query": "select count(t2.language), t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2", + "schema_with_content": "state : headofstate (\"Leo A. Falcam\", \"Thabo Mbeki\", \"Omar Hassan Ahmad al-Bashir\"), name (\"Chile\", \"Greenland\", \"Suriname\"), governmentform (\"Monarchy (Emirate)\", \"Occupied by Marocco\", \"People'sRepublic\"), gnp (571.0, 96.0, 199.0), localname (\"The Turks and Caicos Islands\", \"Polska\", \"Botswana\"), code2 (\"EE\", \"HN\", \"RW\"), continent (\"South America\", \"Africa\", \"North America\"), code (\"IRQ\", \"LKA\", \"ASM\"), lifeexpectancy (60.0, 60.2, 48.8), gnpold (706.0, 442989.0, 18862.0), indepyear (1828, 1966, 1922), population (75967000, 65000, 147000), surfacearea (455.0, 1267000.0, 86600.0), capital (2697, 927, 2438), region (\"Northern Africa\", \"Australia and New Zealand\", \"Southeast Asia\") | countrylanguage : language (\"Dong\", \"Yao\", \"Romanian\"), countrycode (\"AUS\", \"CMR\", \"SWE\"), isofficial (\"T\", \"F\"), percentage (19.2, 86.6, 82.2) | city : population (408007, 107163, 208426), id (3010, 1339, 3917), name (\"Settat\", \"Puqi\", \"Kaiserslautern\"), countrycode (\"SJM\", \"LCA\", \"BEN\"), district (\"Sergipe\", \"Monagas\", \"Primorje-Gorski Kota\") | sqlite_sequence : name (\"city\"), seq (4079) | nation : headofstate (\"Leo A. Falcam\", \"Thabo Mbeki\", \"Omar Hassan Ahmad al-Bashir\"), name (\"Chile\", \"Greenland\", \"Suriname\"), governmentform (\"Monarchy (Emirate)\", \"Occupied by Marocco\", \"People'sRepublic\"), gnp (571.0, 96.0, 199.0), localname (\"The Turks and Caicos Islands\", \"Polska\", \"Botswana\"), code2 (\"EE\", \"HN\", \"RW\"), continent (\"South America\", \"Africa\", \"North America\"), code (\"IRQ\", \"LKA\", \"ASM\"), lifeexpectancy (60.0, 60.2, 48.8), gnpold (706.0, 442989.0, 18862.0), indepyear (1828, 1966, 1922), population (75967000, 65000, 147000), surfacearea (455.0, 1267000.0, 86600.0), capital (2697, 927, 2438), region (\"Northern Africa\", \"Australia and New Zealand\", \"Southeast Asia\")", + "schema_without_content": "state : headofstate , name , governmentform \", \"Occupied by Marocco\", \"People'sRepublic\", gnp , localname , code2 , continent , code , lifeexpectancy , gnpold , indepyear , population , surfacearea , capital , region | countrylanguage : language , countrycode , isofficial , percentage | city : population , id , name , countrycode , district | sqlite_sequence : name , seq | nation : headofstate , name , governmentform \", \"Occupied by Marocco\", \"People'sRepublic\", gnp , localname , code2 , continent , code , lifeexpectancy , gnpold , indepyear , population , surfacearea , capital , region", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "country": "country", + "languages": "countrylanguage", + "country name": "country.Name", + "languages spoken": "countrylanguage.Language" + } + }, + { + "question": "return the #country# name and the numbers of #languages# spoken for each country that speaks at least 3 languages.", + "db_id": "world_1", + "orig_query": "select count(t2.language), t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2", + "schema_with_content": "spoken_language : isofficial (\"T\", \"F\"), language (\"Berberi\", \"Nung\", \"Bajad\"), countrycode (\"NZL\", \"GRL\", \"CYP\"), percentage (23.3, 30.0, 90.0) | sqlite_sequence : name (\"city\"), seq (4079) | official_language : isofficial (\"T\", \"F\"), language (\"Berberi\", \"Nung\", \"Bajad\"), countrycode (\"NZL\", \"GRL\", \"CYP\"), percentage (23.3, 30.0, 90.0) | city : district (\"Szabolcs-Szatm\u00c3\u00a1r-Ber\", \"Tamil Nadu\", \"Cayenne\"), countrycode (\"CMR\", \"UZB\", \"CZE\"), id (2995, 2206, 383), population (133424, 392830, 40000), name (\"Cuddalore\", \"Araras\", \"al-Zawiya\") | country : lifeexpectancy (67.9, 71.3, 53.6), code2 (\"KE\", \"ET\", \"NR\"), localname (\"Saint Kitts and Nevis\", \"Cayman Islands\", \"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\"), continent (\"Oceania\", \"Antarctica\", \"Asia\"), population (1305000, 1277558000, 156483000), headofstate (\"Aleksander Kwasniewski\", \"Arthur N. R. Robinson\", \"Ant\u00c3\u00b3nio Mascarenhas Monteiro\"), indepyear (1947, 1908, 1980), gnpold (2190.0, 8246.0, 2559.0), gnp (1208.0, 4401.0, 283.0), governmentform (\"Monarchy (Sultanate)\", \"Nonmetropolitan Territory of New Zealand\", \"Monarchy (Sultanate)\"), surfacearea (447400.0, 112622.0, 163265.0), capital (3538, 3493, 2462), code (\"CYP\", \"PNG\", \"TKL\"), region (\"Eastern Africa\", \"Melanesia\", \"Central Africa\"), name (\"Zambia\", \"Antigua and Barbuda\", \"United States\")", + "schema_without_content": "spoken_language : isofficial , language , countrycode , percentage | sqlite_sequence : name , seq | official_language : isofficial , language , countrycode , percentage | city : district , countrycode , id , population , name | country : lifeexpectancy , code2 , localname , continent , population , headofstate , indepyear , gnpold , gnp , governmentform \", \"Nonmetropolitan Territory of New Zealand\", \"Monarchy \", surfacearea , capital , code , region , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country": "country", + "languages": "countrylanguage", + "country name": "country.Name", + "languages spoken": "countrylanguage.Language" + } + }, + { + "question": "what are the #names of countries# that speak more than 2 #languages# , as well as how many languages they speak?", + "db_id": "world_1", + "orig_query": "select count(t2.language), t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2", + "schema_with_content": "nation : surfacearea (108889.0, 28051.0, 1958201.0), lifeexpectancy (68.5, 45.3, 37.6), headofstate (\"Jacques Chirac\", \"Vladimir Putin\", \"Vaira Vike-Freiberga\"), governmentform (\"Nonmetropolitan Territory of France\", \"Dependent Territory of the US\", \"Constitutional Monarchy (Emirate)\"), capital (204, 915, 3337), code (\"SPM\", \"HKG\", \"JAM\"), continent (\"Asia\", \"Europe\", \"Antarctica\"), localname (\"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\", \"Dominica\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\"), region (\"Southern Europe\", \"Middle East\", \"Northern Africa\"), gnpold (7388.0, 10169.0, 19967.0), indepyear (1961, 1963, 1901), gnp (285.0, 5121.0, 65107.0), code2 (\"BE\", \"LC\", \"MZ\"), population (8495000, 270000, 3698500), name (\"United Kingdom\", \"Martinique\", \"Angola\") | city : population (538918, 132971, 148059), id (172, 3085, 3391), name (\"S\u00c3\u00a3o Louren\u00c3\u00a7o da Mata\", \"Ikerre\", \"Zaria\"), district (\"Jubbada Hoose\", \"National Capital Dis\", \"St. Andrew\"), countrycode (\"CYP\", \"ESP\", \"MAR\") | state : surfacearea (108889.0, 28051.0, 1958201.0), lifeexpectancy (68.5, 45.3, 37.6), headofstate (\"Jacques Chirac\", \"Vladimir Putin\", \"Vaira Vike-Freiberga\"), governmentform (\"Nonmetropolitan Territory of France\", \"Dependent Territory of the US\", \"Constitutional Monarchy (Emirate)\"), capital (204, 915, 3337), code (\"SPM\", \"HKG\", \"JAM\"), continent (\"Asia\", \"Europe\", \"Antarctica\"), localname (\"Choson Minjujuui In\u00c2\u00b4min Konghwaguk (Bukhan)\", \"Dominica\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\"), region (\"Southern Europe\", \"Middle East\", \"Northern Africa\"), gnpold (7388.0, 10169.0, 19967.0), indepyear (1961, 1963, 1901), gnp (285.0, 5121.0, 65107.0), code2 (\"BE\", \"LC\", \"MZ\"), population (8495000, 270000, 3698500), name (\"United Kingdom\", \"Martinique\", \"Angola\") | countrylanguage : countrycode (\"SHN\", \"LVA\", \"PRI\"), language (\"Sranantonga\", \"Mam\", \"Ukrainian\"), percentage (97.2, 48.1, 81.6), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "nation : surfacearea , lifeexpectancy , headofstate , governmentform \", capital , code , continent , localname \", \"Dominica\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\", region , gnpold , indepyear , gnp , code2 , population , name | city : population , id , name , district , countrycode | state : surfacearea , lifeexpectancy , headofstate , governmentform \", capital , code , continent , localname \", \"Dominica\", \"C\u00c3\u00b4te d\u00e2\u0080\u0099Ivoire\", region , gnpold , indepyear , gnp , code2 , population , name | countrylanguage : countrycode , language , percentage , isofficial | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of countries": "country.Name", + "languages": "countrylanguage.Language" + } + }, + { + "question": "what are the #names of countries# that speak more than 2 #languages# , as well as how many languages they speak?", + "db_id": "world_1", + "orig_query": "select count(t2.language), t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2", + "schema_with_content": "country : capital (2484, 537, 928), code (\"THA\", \"SVN\", \"GTM\"), population (66591000, 21000, 3154000), lifeexpectancy (60.0, 73.1, 75.7), headofstate (\"Sam Nujoma\", \"Natsagiin Bagabandi\", \"Petar Stojanov\"), indepyear (1821, 1953, 1958), continent (\"Antarctica\", \"Europe\", \"Europe\"), gnpold (15091.0, 7388.0, 18202.0), code2 (\"MW\", \"CD\", \"PM\"), name (\"Guinea-Bissau\", \"Belarus\", \"Belarus\"), governmentform (\"Autonomous Area\", \"Occupied by Marocco\", \"Parlementary Monarchy\"), gnp (3787042.0, 14194.0, 100.0), region (\"Antarctica\", \"Western Europe\", \"Micronesia\"), surfacearea (2831.0, 309500.0, 26.0), localname (\"Anguilla\", \"British Virgin Islands\", \"Micronesia\") | city : name (\"Jessentuki\", \"Kuala Lumpur\", \"Samarinda\"), countrycode (\"SGP\", \"HND\", \"MLT\"), district (\"Giza\", \"Khanh Hoa\", \"An Giang\"), population (209442, 318758, 94861), id (3011, 3872, 291) | spoken_language : countrycode (\"GAB\", \"SGP\", \"BLR\"), language (\"Mordva\", \"Mongo\", \"Hiligaynon\"), percentage (59.2, 16.1, 6.2), isofficial (\"T\", \"F\") | official_language : countrycode (\"GAB\", \"SGP\", \"BLR\"), language (\"Mordva\", \"Mongo\", \"Hiligaynon\"), percentage (59.2, 16.1, 6.2), isofficial (\"T\", \"F\") | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "country : capital , code , population , lifeexpectancy , headofstate , indepyear , continent , gnpold , code2 , name , governmentform , gnp , region , surfacearea , localname | city : name , countrycode , district , population , id | spoken_language : countrycode , language , percentage , isofficial | official_language : countrycode , language , percentage , isofficial | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "names of countries": "country.Name", + "languages": "countrylanguage.Language" + } + }, + { + "question": "find the #number of cities in each district# whose #population# is greater than the average #population of cities# ?", + "db_id": "world_1", + "orig_query": "select count(*), district from city where population > (select avg(population) from city) group by district", + "schema_with_content": "country : population (15000, 20000, 68000), gnpold (4192638.0, 1296830.0, 170.0), code2 (\"AE\", \"VE\", \"KH\"), capital (3209, 185, 2884), localname (\"Sierra Leone\", \"Cayman Islands\", \"K\u00c3\u00a2mpuch\u00c3\u00a9a\"), headofstate (\"Isayas Afewerki [Isaias Afwerki]\", \"Heyd\u00c3\u00a4r \u00c3\u0084liyev\", \"Bharrat Jagdeo\"), region (\"Southern Africa\", \"Micronesia/Caribbean\", \"Northern Africa\"), name (\"Barbados\", \"Antarctica\", \"Swaziland\"), indepyear (1957, -1000, 1901), surfacearea (1566500.0, 301316.0, 83600.0), gnp (182.0, 21929.0, 180375.0), code (\"IRQ\", \"TUR\", \"BVT\"), continent (\"Africa\", \"Oceania\", \"North America\"), lifeexpectancy (63.2, 78.9, 48.0), governmentform (\"Occupied by Marocco\", \"Part of Denmark\", \"Constitutional Monarchy, Federation\") | countrylanguage : language (\"Mam\", \"Masai\", \"Shambala\"), percentage (31.0, 10.8, 93.0), countrycode (\"DZA\", \"EST\", \"TKL\"), isofficial (\"T\", \"F\") | town : countrycode (\"REU\", \"JAM\", \"KOR\"), district (\"Miranda\", \"Ninawa\", \"Kairouan\"), name (\"Yao\", \"Uman\", \"Olongapo\"), population (158625, 301504, 101936), id (1088, 2035, 302) | metropolis : countrycode (\"REU\", \"JAM\", \"KOR\"), district (\"Miranda\", \"Ninawa\", \"Kairouan\"), name (\"Yao\", \"Uman\", \"Olongapo\"), population (158625, 301504, 101936), id (1088, 2035, 302) | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "country : population , gnpold , code2 , capital , localname , headofstate , region , name , indepyear , surfacearea , gnp , code , continent , lifeexpectancy , governmentform | countrylanguage : language , percentage , countrycode , isofficial | town : countrycode , district , name , population , id | metropolis : countrycode , district , name , population , id | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "number of cities in each district": "city.ID", + "population": "city.Population", + "population of cities": "city.Population" + } + }, + { + "question": "how many #cities in each district# have a #population# that is above the average population across all cities?", + "db_id": "world_1", + "orig_query": "select count(*), district from city where population > (select avg(population) from city) group by district", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | country : localname (\"Norfolk Island\", \"Belarus\", \"Slovensko\"), headofstate (\"Milan Kucan\", \"\u00c5\u00a0tipe Mesic\", \"Jorge Batlle Ib\u00c3\u00a1\u00c3\u00b1ez\"), population (217000, 16223000, 270000), continent (\"Europe\", \"Asia\", \"Africa\"), governmentform (\"Islamic Republic\", \"Nonmetropolitan Territory of The Netherlands\", \"Monarchy (Sultanate)\"), code (\"REU\", \"BFA\", \"ISR\"), gnpold (8700.0, 206025.0, 933.0), surfacearea (2040.0, 1075.0, 17364.0), capital (608, 1532, 2453), indepyear (1993, 1922, 843), code2 (\"TJ\", \"IL\", \"SY\"), lifeexpectancy (45.2, 60.9, 77.4), region (\"Central America\", \"North America\", \"Micronesia\"), gnp (1043.0, 2012.0, 1043.0), name (\"Kenya\", \"Guam\", \"Netherlands Antilles\") | town : district (\"V\u00c3\u00a2lcea\", \"P\u00c3\u00a4ij\u00c3\u00a4t-H\u00c3\u00a4me\", \"Dunedin\"), name (\"Nakhon Pathom\", \"Legnica\", \"Shubra al-Khayma\"), population (138000, 205504, 265450), id (1382, 1334, 1486), countrycode (\"NER\", \"VGB\", \"BTN\") | metropolis : district (\"V\u00c3\u00a2lcea\", \"P\u00c3\u00a4ij\u00c3\u00a4t-H\u00c3\u00a4me\", \"Dunedin\"), name (\"Nakhon Pathom\", \"Legnica\", \"Shubra al-Khayma\"), population (138000, 205504, 265450), id (1382, 1334, 1486), countrycode (\"NER\", \"VGB\", \"BTN\") | countrylanguage : countrycode (\"BLZ\", \"REU\", \"AIA\"), isofficial (\"T\", \"F\"), language (\"Albaniana\", \"Luimbe-nganguela\", \"Sardinian\"), percentage (86.0, 40.8, 7.1)", + "schema_without_content": "sqlite_sequence : seq , name | country : localname , headofstate , population , continent , governmentform \", code , gnpold , surfacearea , capital , indepyear , code2 , lifeexpectancy , region , gnp , name | town : district , name , population , id , countrycode | metropolis : district , name , population , id , countrycode | countrylanguage : countrycode , isofficial , language , percentage", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "cities in each district": "city.District", + "population": "city.Population", + "cities": "city" + } + }, + { + "question": "find the #government form# name and #total population for each government form# whose #average life expectancy# is longer than 72.", + "db_id": "world_1", + "orig_query": "select sum(population), governmentform from country group by governmentform having avg(lifeexpectancy) > 72", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | city : name (\"Jessore\", \"L\u00c3\u00bcbeck\", \"Oth\u00c3\u00b3n P. Blanco (Chetumal)\"), district (\"Arecibo\", \"Cayenne\", \"Idlib\"), countrycode (\"PLW\", \"SMR\", \"LBN\"), id (3728, 867, 2820), population (950043, 128079, 141700) | nation : code (\"PNG\", \"MKD\", \"MUS\"), capital (1450, 938, 3017), indepyear (1976, 1769, 800), headofstate (\"Muammar al-Qadhafi\", \"Hosni Mubarak\", \"Taufa'ahau Tupou IV\"), governmentform (\"Co-administrated\", \"Parlementary Monarchy\", \"Federal Republic\"), region (\"Middle East\", \"Central Africa\", \"Eastern Africa\"), gnp (320.0, 4988.0, 211860.0), continent (\"South America\", \"South America\", \"Antarctica\"), lifeexpectancy (80.7, 49.8, 68.0), code2 (\"BV\", \"SC\", \"VN\"), name (\"Anguilla\", \"Finland\", \"Turkmenistan\"), gnpold (58623.0, 1296830.0, 3545.0), surfacearea (373.0, 274000.0, 1075.0), localname (\"kaNgwane\", \"Jamaica\", \"K\u00c3\u00bdpros/Kibris\"), population (77000, 699000, 5605000) | countrylanguage : percentage (16.8, 7.0, 96.0), countrycode (\"MTQ\", \"MDV\", \"GNQ\"), language (\"Punjabi\", \"Arabic\", \"Gurage\"), isofficial (\"T\", \"F\") | state : code (\"PNG\", \"MKD\", \"MUS\"), capital (1450, 938, 3017), indepyear (1976, 1769, 800), headofstate (\"Muammar al-Qadhafi\", \"Hosni Mubarak\", \"Taufa'ahau Tupou IV\"), governmentform (\"Co-administrated\", \"Parlementary Monarchy\", \"Federal Republic\"), region (\"Middle East\", \"Central Africa\", \"Eastern Africa\"), gnp (320.0, 4988.0, 211860.0), continent (\"South America\", \"South America\", \"Antarctica\"), lifeexpectancy (80.7, 49.8, 68.0), code2 (\"BV\", \"SC\", \"VN\"), name (\"Anguilla\", \"Finland\", \"Turkmenistan\"), gnpold (58623.0, 1296830.0, 3545.0), surfacearea (373.0, 274000.0, 1075.0), localname (\"kaNgwane\", \"Jamaica\", \"K\u00c3\u00bdpros/Kibris\"), population (77000, 699000, 5605000)", + "schema_without_content": "sqlite_sequence : seq , name | city : name \", district , countrycode , id , population | nation : code , capital , indepyear , headofstate , governmentform , region , gnp , continent , lifeexpectancy , code2 , name , gnpold , surfacearea , localname , population | countrylanguage : percentage , countrycode , language , isofficial | state : code , capital , indepyear , headofstate , governmentform , region , gnp , continent , lifeexpectancy , code2 , name , gnpold , surfacearea , localname , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "government form": "country.GovernmentForm", + "total population for each government form": "country.Population", + "average life expectancy": "country.LifeExpectancy" + } + }, + { + "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_id": "world_1", + "orig_query": "select sum(population), governmentform from country group by governmentform having avg(lifeexpectancy) > 72", + "schema_with_content": "sqlite_sequence : seq (4079), name (\"city\") | state : governmentform (\"Parlementary Monarchy\", \"Socialistic Republic\", \"Federation\"), code (\"ATA\", \"BRB\", \"KOR\"), localname (\"Kyrgyzstan\", \"British Indian Ocean Territory\", \"Amerika Samoa\"), continent (\"Asia\", \"Asia\", \"Africa\"), region (\"Eastern Asia\", \"Polynesia\", \"Southern and Central Asia\"), name (\"Finland\", \"R\u00c3\u00a9union\", \"New Zealand\"), gnp (256254.0, 64140.0, 44806.0), indepyear (843, 1953, 1992), surfacearea (18.0, 70273.0, 130000.0), gnpold (32100.0, 75617.0, 18862.0), headofstate (\"Aljaksandr Luka\u00c5\u00a1enka\", \"Mswati III\", \"Andr\u00c3\u00a9s Pastrana Arango\"), lifeexpectancy (50.8, 78.7, 48.0), capital (3171, 1532, 905), code2 (\"MC\", \"TH\", \"CK\"), population (190000, 8329000, 30080000) | countrylanguage : language (\"Sardinian\", \"Busansi\", \"Nyaneka-nkhumbi\"), percentage (99.1, 6.9, 93.0), isofficial (\"T\", \"F\"), countrycode (\"LKA\", \"DOM\", \"SVK\") | city : countrycode (\"ZAF\", \"ISL\", \"MYS\"), id (3738, 3100, 1174), district (\"al-Anbar\", \"Maseru\", \"Bissau\"), population (153823, 136842, 91000), name (\"New York\", \"Pu\u00c5\u00a1kin\", \"Bijsk\") | nation : governmentform (\"Parlementary Monarchy\", \"Socialistic Republic\", \"Federation\"), code (\"ATA\", \"BRB\", \"KOR\"), localname (\"Kyrgyzstan\", \"British Indian Ocean Territory\", \"Amerika Samoa\"), continent (\"Asia\", \"Asia\", \"Africa\"), region (\"Eastern Asia\", \"Polynesia\", \"Southern and Central Asia\"), name (\"Finland\", \"R\u00c3\u00a9union\", \"New Zealand\"), gnp (256254.0, 64140.0, 44806.0), indepyear (843, 1953, 1992), surfacearea (18.0, 70273.0, 130000.0), gnpold (32100.0, 75617.0, 18862.0), headofstate (\"Aljaksandr Luka\u00c5\u00a1enka\", \"Mswati III\", \"Andr\u00c3\u00a9s Pastrana Arango\"), lifeexpectancy (50.8, 78.7, 48.0), capital (3171, 1532, 905), code2 (\"MC\", \"TH\", \"CK\"), population (190000, 8329000, 30080000)", + "schema_without_content": "sqlite_sequence : seq , name | state : governmentform , code , localname , continent , region , name , gnp , indepyear , surfacearea , gnpold , headofstate , lifeexpectancy , capital , code2 , population | countrylanguage : language , percentage , isofficial , countrycode | city : countrycode , id , district , population , name | nation : governmentform , code , localname , continent , region , name , gnp , indepyear , surfacearea , gnpold , headofstate , lifeexpectancy , capital , code2 , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "government forms": "country.GovernmentForm", + "total population of each for government forms": "country.Population", + "average life expectancy": "country.LifeExpectancy" + } + }, + { + "question": "find the #average life expectancy# and #total population for each continent# where the average life expectancy is shorter than 72?", + "db_id": "world_1", + "orig_query": "select sum(population), avg(lifeexpectancy), continent from country group by continent having avg(lifeexpectancy) < 72", + "schema_with_content": "city : id (2428, 3120, 2747), name (\"Trento\", \"Santiago de Compostela\", \"Venezia\"), district (\"Mekn\u00c3\u00a8s-Tafilalet\", \"Uppsala l\u00c3\u00a4n\", \"Peking\"), population (177989, 997000, 282197), countrycode (\"ESP\", \"ITA\", \"LSO\") | countrylanguage : language (\"Tamashek\", \"Soninke\", \"Kiribati\"), countrycode (\"AND\", \"GLP\", \"DOM\"), percentage (16.6, 95.8, 65.0), isofficial (\"T\", \"F\") | state : continent (\"Oceania\", \"Europe\", \"Oceania\"), gnp (510.0, 935.0, 3787042.0), capital (None, 1464, 1532), localname (\"Sverige\", \"El Salvador\", \"Rwanda/Urwanda\"), code2 (\"ST\", \"AL\", \"YT\"), indepyear (843, 1776, 1953), surfacearea (442.0, 242900.0, 91982.0), lifeexpectancy (62.9, 73.0, 50.8), code (\"BLR\", \"SVN\", \"VEN\"), name (\"Kyrgyzstan\", \"Grenada\", \"Mali\"), region (\"North America\", \"Nordic Countries\", \"Eastern Asia\"), headofstate (\"Abdoulaye Wade\", \"Mary McAleese\", \"Johannes Rau\"), population (43000, 4459000, 94000), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Republic\", \"Nonmetropolitan Territory of New Zealand\"), gnpold (160151.0, 243.0, 2000.0) | sqlite_sequence : name (\"city\"), seq (4079) | nation : continent (\"Oceania\", \"Europe\", \"Oceania\"), gnp (510.0, 935.0, 3787042.0), capital (None, 1464, 1532), localname (\"Sverige\", \"El Salvador\", \"Rwanda/Urwanda\"), code2 (\"ST\", \"AL\", \"YT\"), indepyear (843, 1776, 1953), surfacearea (442.0, 242900.0, 91982.0), lifeexpectancy (62.9, 73.0, 50.8), code (\"BLR\", \"SVN\", \"VEN\"), name (\"Kyrgyzstan\", \"Grenada\", \"Mali\"), region (\"North America\", \"Nordic Countries\", \"Eastern Asia\"), headofstate (\"Abdoulaye Wade\", \"Mary McAleese\", \"Johannes Rau\"), population (43000, 4459000, 94000), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Republic\", \"Nonmetropolitan Territory of New Zealand\"), gnpold (160151.0, 243.0, 2000.0)", + "schema_without_content": "city : id , name , district , population , countrycode | countrylanguage : language , countrycode , percentage , isofficial | state : continent , gnp , capital , localname , code2 , indepyear , surfacearea , lifeexpectancy , code , name , region , headofstate , population , governmentform , gnpold | sqlite_sequence : name , seq | nation : continent , gnp , capital , localname , code2 , indepyear , surfacearea , lifeexpectancy , code , name , region , headofstate , population , governmentform , gnpold", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "average life expectancy": "country.LifeExpectancy", + "total population for each continent": "country.Population" + } + }, + { + "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_id": "world_1", + "orig_query": "select sum(population), avg(lifeexpectancy), continent from country group by continent having avg(lifeexpectancy) < 72", + "schema_with_content": "sqlite_sequence : name (\"city\"), seq (4079) | nation : surfacearea (33851.0, 33851.0, 1138914.0), code2 (\"GD\", \"BN\", \"LY\"), localname (\"San Marino\", \"\u00e2\u0080\u0093\", \"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\"), capital (3048, 2482, 3425), name (\"Solomon Islands\", \"Austria\", \"Puerto Rico\"), code (\"SDN\", \"SLE\", \"SVN\"), lifeexpectancy (42.5, 60.8, 64.5), headofstate (\"Valentin Paniagua Corazao\", \"Carlos Roberto Flores Facuss\u00c3\u00a9\", \"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\"), governmentform (\"US Territory\", \"Constitutional Monarchy\", \"Occupied by Marocco\"), continent (\"Africa\", \"Asia\", \"South America\"), region (\"Southern and Central Asia\", \"Western Africa\", \"Southern Africa\"), gnp (32852.0, 4401.0, 226492.0), indepyear (1908, 1917, 1947), population (9997600, 9997600, 103000), gnpold (4361.0, 7474.0, 442544.0) | state : surfacearea (33851.0, 33851.0, 1138914.0), code2 (\"GD\", \"BN\", \"LY\"), localname (\"San Marino\", \"\u00e2\u0080\u0093\", \"R\u00c3\u00a9publique D\u00c3\u00a9mocratique du Congo\"), capital (3048, 2482, 3425), name (\"Solomon Islands\", \"Austria\", \"Puerto Rico\"), code (\"SDN\", \"SLE\", \"SVN\"), lifeexpectancy (42.5, 60.8, 64.5), headofstate (\"Valentin Paniagua Corazao\", \"Carlos Roberto Flores Facuss\u00c3\u00a9\", \"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\"), governmentform (\"US Territory\", \"Constitutional Monarchy\", \"Occupied by Marocco\"), continent (\"Africa\", \"Asia\", \"South America\"), region (\"Southern and Central Asia\", \"Western Africa\", \"Southern Africa\"), gnp (32852.0, 4401.0, 226492.0), indepyear (1908, 1917, 1947), population (9997600, 9997600, 103000), gnpold (4361.0, 7474.0, 442544.0) | countrylanguage : language (\"Chokwe\", \"Tukulor\", \"Tibetan\"), percentage (10.3, 95.9, 81.7), countrycode (\"GIB\", \"MWI\", \"CHE\"), isofficial (\"T\", \"F\") | city : name (\"Denpasar\", \"Pescara\", \"Jersey City\"), id (417, 3252, 3957), population (4265200, 164092, 91000), countrycode (\"MTQ\", \"ESP\", \"CAN\"), district (\"Malatya\", \"Montserrado\", \"Schleswig-Holstein\")", + "schema_without_content": "sqlite_sequence : name , seq | nation : surfacearea , code2 , localname , capital , name , code , lifeexpectancy , headofstate , governmentform , continent , region , gnp , indepyear , population , gnpold | state : surfacearea , code2 , localname , capital , name , code , lifeexpectancy , headofstate , governmentform , continent , region , gnp , indepyear , population , gnpold | countrylanguage : language , percentage , countrycode , isofficial | city : name , id , population , countrycode , district", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "continents": "country.Continent", + "average life expectancy": "country.LifeExpectancy", + "total population": "country.Population" + } + }, + { + "question": "what are the #names# and #areas of countries# with the top 5 largest area?", + "db_id": "world_1", + "orig_query": "select name, surfacearea from country order by surfacearea desc limit 5", + "schema_with_content": "nation : name (\"Montserrat\", \"Burkina Faso\", \"American Samoa\"), population (21000, 10043200, 217000), lifeexpectancy (66.4, 45.2, 79.0), code2 (\"NE\", \"GH\", \"SV\"), headofstate (\"Henri\", \"Ali Mohammad Khatami-Ardakani\", \"Ronald Venetiaan\"), continent (\"Europe\", \"North America\", \"South America\"), region (\"Southern and Central Asia\", \"Central America\", \"Micronesia\"), indepyear (1973, 1962, 1984), capital (3492, 2441, 2331), surfacearea (236.0, 618.0, 1958201.0), gnp (102896.0, 82710.0, 11500.0), governmentform (\"Autonomous Area\", \"Commonwealth of the US\", \"Administrated by the UN\"), code (\"GMB\", \"SEN\", \"TUV\"), gnpold (3384.0, 88434.0, 173610.0), localname (\"Al-Urdunn\", \"Xianggang/Hong Kong\", \"Espa\u00c3\u00b1a\") | city : countrycode (\"AIA\", \"BFA\", \"MHL\"), population (90642, 199636, 1378087), district (\"I\u00c3\u00a7el\", \"Lagos\", \"Bujumbura\"), name (\"Pingchen\", \"Himeji\", \"Yanji\"), id (2036, 3243, 1557) | state : name (\"Montserrat\", \"Burkina Faso\", \"American Samoa\"), population (21000, 10043200, 217000), lifeexpectancy (66.4, 45.2, 79.0), code2 (\"NE\", \"GH\", \"SV\"), headofstate (\"Henri\", \"Ali Mohammad Khatami-Ardakani\", \"Ronald Venetiaan\"), continent (\"Europe\", \"North America\", \"South America\"), region (\"Southern and Central Asia\", \"Central America\", \"Micronesia\"), indepyear (1973, 1962, 1984), capital (3492, 2441, 2331), surfacearea (236.0, 618.0, 1958201.0), gnp (102896.0, 82710.0, 11500.0), governmentform (\"Autonomous Area\", \"Commonwealth of the US\", \"Administrated by the UN\"), code (\"GMB\", \"SEN\", \"TUV\"), gnpold (3384.0, 88434.0, 173610.0), localname (\"Al-Urdunn\", \"Xianggang/Hong Kong\", \"Espa\u00c3\u00b1a\") | countrylanguage : countrycode (\"ISR\", \"UMI\", \"ARM\"), percentage (32.9, 14.2, 15.2), language (\"Bilin\", \"Slovene\", \"Mandjia\"), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "nation : name , population , lifeexpectancy , code2 , headofstate , continent , region , indepyear , capital , surfacearea , gnp , governmentform , code , gnpold , localname | city : countrycode , population , district , name , id | state : name , population , lifeexpectancy , code2 , headofstate , continent , region , indepyear , capital , surfacearea , gnp , governmentform , code , gnpold , localname | countrylanguage : countrycode , percentage , language , isofficial | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "country.Name", + "areas of countries": "country.SurfaceArea" + } + }, + { + "question": "return the #names# and #surface areas# of the 5 largest #countries# .", + "db_id": "world_1", + "orig_query": "select name, surfacearea from country order by surfacearea desc limit 5", + "schema_with_content": "countrylanguage : countrycode (\"MOZ\", \"PNG\", \"NFK\"), isofficial (\"T\", \"F\"), language (\"Bajan\", \"Batakki\", \"Shan\"), percentage (86.0, 12.5, 5.5) | city : population (353046, 111258, 813900), district (\"Pennsylvania\", \"Yamalin Nenetsia\", \"Kvemo Kartli\"), name (\"Cam Ranh\", \"Tanshui\", \"San Juan Bautista Tuxtepec\"), id (2964, 3683, 3570), countrycode (\"SLE\", \"SOM\", \"PAK\") | state : name (\"Central African Republic\", \"Saint Kitts and Nevis\", \"Paraguay\"), gnpold (542.0, 157.0, 1863.0), localname (\"Soomaaliya\", \"Deutschland\", \"Al-Maghrib\"), capital (2890, 3499, 2972), governmentform (\"Dependent Territory of Norway\", \"Monarchy (Emirate)\", \"Constitutional Monarchy\"), indepyear (1946, 1929, 1810), code2 (\"NA\", \"BY\", \"LS\"), surfacearea (7780.0, 130000.0, 22696.0), region (\"Micronesia\", \"Southeast Asia\", \"Nordic Countries\"), headofstate (\"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Rudolf Schuster\", \"Natsagiin Bagabandi\"), code (\"BEN\", \"KWT\", \"MSR\"), lifeexpectancy (70.3, 59.5, 72.7), gnp (6648.0, 82710.0, 256254.0), population (2943000, 3972000, 2500), continent (\"South America\", \"Antarctica\", \"South America\") | sqlite_sequence : seq (4079), name (\"city\") | nation : name (\"Central African Republic\", \"Saint Kitts and Nevis\", \"Paraguay\"), gnpold (542.0, 157.0, 1863.0), localname (\"Soomaaliya\", \"Deutschland\", \"Al-Maghrib\"), capital (2890, 3499, 2972), governmentform (\"Dependent Territory of Norway\", \"Monarchy (Emirate)\", \"Constitutional Monarchy\"), indepyear (1946, 1929, 1810), code2 (\"NA\", \"BY\", \"LS\"), surfacearea (7780.0, 130000.0, 22696.0), region (\"Micronesia\", \"Southeast Asia\", \"Nordic Countries\"), headofstate (\"Ant\u00c3\u00b3nio Mascarenhas Monteiro\", \"Rudolf Schuster\", \"Natsagiin Bagabandi\"), code (\"BEN\", \"KWT\", \"MSR\"), lifeexpectancy (70.3, 59.5, 72.7), gnp (6648.0, 82710.0, 256254.0), population (2943000, 3972000, 2500), continent (\"South America\", \"Antarctica\", \"South America\")", + "schema_without_content": "countrylanguage : countrycode , isofficial , language , percentage | city : population , district , name , id , countrycode | state : name , gnpold , localname , capital , governmentform \", \"Constitutional Monarchy\", indepyear , code2 , surfacearea , region , headofstate , code , lifeexpectancy , gnp , population , continent | sqlite_sequence : seq , name | nation : name , gnpold , localname , capital , governmentform \", \"Constitutional Monarchy\", indepyear , code2 , surfacearea , region , headofstate , code , lifeexpectancy , gnp , population , continent", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "country.Name", + "surface areas": "country.SurfaceArea", + "countries": "country" + } + }, + { + "question": "what are #names of countries# with the top 3 largest #population# ?", + "db_id": "world_1", + "orig_query": "select name from country order by population desc limit 3", + "schema_with_content": "countrylanguage : percentage (87.7, 5.5, 45.4), language (\"Bislama\", \"Zulu\", \"Crioulo\"), isofficial (\"T\", \"F\"), countrycode (\"BDI\", \"DJI\", \"CPV\") | sqlite_sequence : name (\"city\"), seq (4079) | city : population (90286, 267279, 5346), countrycode (\"VUT\", \"NGA\", \"ZWE\"), district (\"Biserta\", \"Cizah\", \"Las Tunas\"), name (\"Dar es Salaam\", \"Arvada\", \"Shiyan\"), id (2058, 3813, 3717) | nation : continent (\"Europe\", \"Antarctica\", \"Europe\"), code (\"HKG\", \"MNG\", \"PRI\"), gnp (19008.0, 1990.0, 1054.0), region (\"Polynesia\", \"Eastern Europe\", \"Eastern Africa\"), capital (2726, 3539, 3018), lifeexpectancy (77.7, 49.2, 71.1), localname (\"Jugoslavija\", \"Cayman Islands\", \"Madagasikara/Madagascar\"), population (5330000, 212107000, 10925000), name (\"Israel\", \"Algeria\", \"Cape Verde\"), gnpold (755.0, 5940.0, 584.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", \"Constitutional Monarchy (Emirate)\"), code2 (\"VI\", \"TP\", \"CV\"), surfacearea (49.0, 7780.0, 9363520.0), indepyear (1810, 1822, 1980), headofstate (\"Omar Hassan Ahmad al-Bashir\", \"Teburoro Tito\", \"Teburoro Tito\") | state : continent (\"Europe\", \"Antarctica\", \"Europe\"), code (\"HKG\", \"MNG\", \"PRI\"), gnp (19008.0, 1990.0, 1054.0), region (\"Polynesia\", \"Eastern Europe\", \"Eastern Africa\"), capital (2726, 3539, 3018), lifeexpectancy (77.7, 49.2, 71.1), localname (\"Jugoslavija\", \"Cayman Islands\", \"Madagasikara/Madagascar\"), population (5330000, 212107000, 10925000), name (\"Israel\", \"Algeria\", \"Cape Verde\"), gnpold (755.0, 5940.0, 584.0), governmentform (\"Nonmetropolitan Territory of The Netherlands\", \"Territory of Australia\", \"Constitutional Monarchy (Emirate)\"), code2 (\"VI\", \"TP\", \"CV\"), surfacearea (49.0, 7780.0, 9363520.0), indepyear (1810, 1822, 1980), headofstate (\"Omar Hassan Ahmad al-Bashir\", \"Teburoro Tito\", \"Teburoro Tito\")", + "schema_without_content": "countrylanguage : percentage , language , isofficial , countrycode | sqlite_sequence : name , seq | city : population , countrycode , district , name , id | nation : continent , code , gnp , region , capital , lifeexpectancy , localname , population , name , gnpold , governmentform \", code2 , surfacearea , indepyear , headofstate | state : continent , code , gnp , region , capital , lifeexpectancy , localname , population , name , gnpold , governmentform \", code2 , surfacearea , indepyear , headofstate", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of countries": "country.Name", + "population": "country.Population" + } + }, + { + "question": "return the #names# of the 3 most #populated countries# .", + "db_id": "world_1", + "orig_query": "select name from country order by population desc limit 3", + "schema_with_content": "nation : population (6217000, 1000, 129155000), surfacearea (774815.0, 652090.0, 12.0), localname (\"Al-Urdunn\", \"Zhongquo\", \"Chile\"), indepyear (1984, 1867, 1907), governmentform (\"Administrated by the UN\", \"Islamic Emirate\", \"Emirate Federation\"), code2 (\"AW\", \"BB\", \"GD\"), headofstate (\"Ahmet Necdet Sezer\", \"Ferenc M\u00c3\u00a1dl\", \"Jiang Zemin\"), name (\"Costa Rica\", \"India\", \"Samoa\"), code (\"LCA\", \"IND\", \"ATF\"), continent (\"Africa\", \"Europe\", \"Asia\"), capital (3212, 2295, 3813), lifeexpectancy (65.3, 57.8, 39.3), gnpold (98577.0, 146171.0, 102133.0), region (\"Central Africa\", \"Central America\", \"Antarctica\"), gnp (84982.0, 27037.0, 334.0) | state : population (6217000, 1000, 129155000), surfacearea (774815.0, 652090.0, 12.0), localname (\"Al-Urdunn\", \"Zhongquo\", \"Chile\"), indepyear (1984, 1867, 1907), governmentform (\"Administrated by the UN\", \"Islamic Emirate\", \"Emirate Federation\"), code2 (\"AW\", \"BB\", \"GD\"), headofstate (\"Ahmet Necdet Sezer\", \"Ferenc M\u00c3\u00a1dl\", \"Jiang Zemin\"), name (\"Costa Rica\", \"India\", \"Samoa\"), code (\"LCA\", \"IND\", \"ATF\"), continent (\"Africa\", \"Europe\", \"Asia\"), capital (3212, 2295, 3813), lifeexpectancy (65.3, 57.8, 39.3), gnpold (98577.0, 146171.0, 102133.0), region (\"Central Africa\", \"Central America\", \"Antarctica\"), gnp (84982.0, 27037.0, 334.0) | city : id (3684, 109, 2872), countrycode (\"HUN\", \"BHS\", \"JOR\"), name (\"Kars\", \"Lafayette\", \"Ho Chi Minh City\"), population (140173, 461877, 197408), district (\"Mandalay\", \"Tyva\", \"al-Najaf\") | countrylanguage : isofficial (\"T\", \"F\"), language (\"Southsotho\", \"Pampango\", \"Silesiana\"), countrycode (\"AUS\", \"KHM\", \"EST\"), percentage (16.4, 14.8, 16.4) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "nation : population , surfacearea , localname , indepyear , governmentform , code2 , headofstate , name , code , continent , capital , lifeexpectancy , gnpold , region , gnp | state : population , surfacearea , localname , indepyear , governmentform , code2 , headofstate , name , code , continent , capital , lifeexpectancy , gnpold , region , gnp | city : id , countrycode , name , population , district | countrylanguage : isofficial , language , countrycode , percentage | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "country.Name", + "populated countries": "country" + } + }, + { + "question": "what are the #names of the nations# with the 3 lowest #populations# ?", + "db_id": "world_1", + "orig_query": "select name from country order by population asc limit 3", + "schema_with_content": "countrylanguage : language (\"Yucatec\", \"Ane\", \"Nyanja\"), countrycode (\"ESP\", \"MAR\", \"PNG\"), isofficial (\"T\", \"F\"), percentage (48.2, 8.9, 1.4) | nation : name (\"Saint Pierre and Miquelon\", \"Virgin Islands, British\", \"French Polynesia\"), gnp (982268.0, 536.0, 1813.0), localname (\"Al-Urdunn\", \"San Marino\", \"Eesti\"), population (34000, 1439200, 38000), capital (55, 2831, 194), region (\"Eastern Europe\", \"Eastern Europe\", \"Eastern Africa\"), code (\"RWA\", \"VCT\", \"REU\"), governmentform (\"Constitutional Monarchy, Federation\", \"Parliamentary Coprincipality\", \"Special Administrative Region of China\"), headofstate (\"Bharrat Jagdeo\", \"Vojislav Ko\u00c5\u00a1tunica\", \"Haji Hassan al-Bolkiah\"), lifeexpectancy (57.8, 48.0, 73.7), gnpold (15091.0, 7984.0, 58623.0), indepyear (1979, 1977, 1923), code2 (\"WS\", \"MN\", \"UY\"), continent (\"Asia\", \"Europe\", \"South America\"), surfacearea (151.0, 236800.0, 587041.0) | state : name (\"Saint Pierre and Miquelon\", \"Virgin Islands, British\", \"French Polynesia\"), gnp (982268.0, 536.0, 1813.0), localname (\"Al-Urdunn\", \"San Marino\", \"Eesti\"), population (34000, 1439200, 38000), capital (55, 2831, 194), region (\"Eastern Europe\", \"Eastern Europe\", \"Eastern Africa\"), code (\"RWA\", \"VCT\", \"REU\"), governmentform (\"Constitutional Monarchy, Federation\", \"Parliamentary Coprincipality\", \"Special Administrative Region of China\"), headofstate (\"Bharrat Jagdeo\", \"Vojislav Ko\u00c5\u00a1tunica\", \"Haji Hassan al-Bolkiah\"), lifeexpectancy (57.8, 48.0, 73.7), gnpold (15091.0, 7984.0, 58623.0), indepyear (1979, 1977, 1923), code2 (\"WS\", \"MN\", \"UY\"), continent (\"Asia\", \"Europe\", \"South America\"), surfacearea (151.0, 236800.0, 587041.0) | sqlite_sequence : seq (4079), name (\"city\") | city : name (\"Dehra Dun\", \"Saqqez\", \"Dera Ismail Khan\"), id (1631, 2885, 1503), district (\"Hhohho\", \"Baluchistan\", \"Klaipeda\"), population (146400, 885300, 125621), countrycode (\"GEO\", \"PCN\", \"NAM\")", + "schema_without_content": "countrylanguage : language , countrycode , isofficial , percentage | nation : name , gnp , localname , population , capital , region , code , governmentform , headofstate , lifeexpectancy , gnpold , indepyear , code2 , continent , surfacearea | state : name , gnp , localname , population , capital , region , code , governmentform , headofstate , lifeexpectancy , gnpold , indepyear , code2 , continent , surfacearea | sqlite_sequence : seq , name | city : name , id , district , population , countrycode", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the nations": "country.Name", + "populations": "country.Population" + } + }, + { + "question": "return the #names# of the 3 #countries# with the fewest #people# .", + "db_id": "world_1", + "orig_query": "select name from country order by population asc limit 3", + "schema_with_content": "state : capital (2890, 2698, 917), gnp (65707.0, 44806.0, 145895.0), code2 (\"TC\", \"CL\", \"KM\"), continent (\"Antarctica\", \"Oceania\", \"Antarctica\"), gnpold (15519.0, 34843.0, 19769.0), name (\"Gabon\", \"Taiwan\", \"Guatemala\"), population (57680000, 617000, 307000), code (\"KHM\", \"CHL\", \"IRL\"), lifeexpectancy (72.7, 76.1, 73.6), indepyear (1919, 1984, 1971), region (\"Nordic Countries\", \"Southern Europe\", \"Southeast Asia\"), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Islamic Emirate\", \"Constitutional Monarchy\"), surfacearea (300000.0, 459.0, 300000.0), localname (\"Vi\u00c3\u00aat Nam\", \"Aruba\", \"Myanma Pye\"), headofstate (\"Mathieu K\u00c3\u00a9r\u00c3\u00a9kou\", \"Muammar al-Qadhafi\", \"Lansana Cont\u00c3\u00a9\") | nation : capital (2890, 2698, 917), gnp (65707.0, 44806.0, 145895.0), code2 (\"TC\", \"CL\", \"KM\"), continent (\"Antarctica\", \"Oceania\", \"Antarctica\"), gnpold (15519.0, 34843.0, 19769.0), name (\"Gabon\", \"Taiwan\", \"Guatemala\"), population (57680000, 617000, 307000), code (\"KHM\", \"CHL\", \"IRL\"), lifeexpectancy (72.7, 76.1, 73.6), indepyear (1919, 1984, 1971), region (\"Nordic Countries\", \"Southern Europe\", \"Southeast Asia\"), governmentform (\"Nonmetropolitan Territory of New Zealand\", \"Islamic Emirate\", \"Constitutional Monarchy\"), surfacearea (300000.0, 459.0, 300000.0), localname (\"Vi\u00c3\u00aat Nam\", \"Aruba\", \"Myanma Pye\"), headofstate (\"Mathieu K\u00c3\u00a9r\u00c3\u00a9kou\", \"Muammar al-Qadhafi\", \"Lansana Cont\u00c3\u00a9\") | countrylanguage : countrycode (\"SDN\", \"PRK\", \"LAO\"), percentage (87.5, 0.0, 9.3), language (\"Polynesian Languages\", \"Muong\", \"Kpelle\"), isofficial (\"T\", \"F\") | city : name (\"Alexandria\", \"Santa Rosa\", \"Peoria\"), id (3168, 906, 1657), district (\"Vaduz\", \"Qaraghandy\", \"Sanaa\"), countrycode (\"TTO\", \"CMR\", \"MDV\"), population (126670, 179800, 96813) | sqlite_sequence : seq (4079), name (\"city\")", + "schema_without_content": "state : capital , gnp , code2 , continent , gnpold , name , population , code , lifeexpectancy , indepyear , region , governmentform , surfacearea , localname , headofstate | nation : capital , gnp , code2 , continent , gnpold , name , population , code , lifeexpectancy , indepyear , region , governmentform , surfacearea , localname , headofstate | countrylanguage : countrycode , percentage , language , isofficial | city : name , id , district , countrycode , population | sqlite_sequence : seq , name", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "country.Name", + "countries": "country", + "people": "country.Population" + } + }, + { + "question": "how many #countries# are in #asia# ?", + "db_id": "world_1", + "orig_query": "select count(*) from country where continent = \"Asia\"", + "schema_with_content": "city : district (\"al-Bahr al-Ahmar\", \"B\u00c3\u00adob\u00c3\u00ado\", \"Murcia\"), id (1662, 1922, 3018), name (\"Huixquilucan\", \"Xianyang\", \"General Mariano Alvarez\"), population (425579, 122735, 224887), countrycode (\"ITA\", \"GNB\", \"HTI\") | nation : gnp (1687.0, 2352.0, 8005.0), surfacearea (207600.0, 26338.0, 238533.0), code (\"IOT\", \"MNP\", \"MUS\"), localname (\"The Turks and Caicos Islands\", \"Rep\u00c3\u00bablica Dominicana\", \"Chile\"), continent (\"North America\", \"Oceania\", \"Oceania\"), region (\"Eastern Africa\", \"Southern and Central Asia\", \"Central Africa\"), name (\"Kazakstan\", \"Aruba\", \"Guyana\"), code2 (\"MS\", \"AG\", \"MP\"), gnpold (5867.0, 96318.0, 6180.0), lifeexpectancy (73.8, 75.6, 79.8), indepyear (1841, 1822, 1941), headofstate (\"Ismail Omar Guelleh\", \"Carl XVI Gustaf\", \"Abdullah II\"), capital (553, 3493, 2484), governmentform (\"Republic\", \"Overseas Department of France\", \"Emirate Federation\"), population (18827000, 99000, 3337000) | countrylanguage : isofficial (\"T\", \"F\"), percentage (66.7, 92.0, 49.1), countrycode (\"ANT\", \"GEO\", \"LSO\"), language (\"Garo\", \"Ngala and Bangi\", \"Tongan\") | sqlite_sequence : name (\"city\"), seq (4079) | state : gnp (1687.0, 2352.0, 8005.0), surfacearea (207600.0, 26338.0, 238533.0), code (\"IOT\", \"MNP\", \"MUS\"), localname (\"The Turks and Caicos Islands\", \"Rep\u00c3\u00bablica Dominicana\", \"Chile\"), continent (\"North America\", \"Oceania\", \"Oceania\"), region (\"Eastern Africa\", \"Southern and Central Asia\", \"Central Africa\"), name (\"Kazakstan\", \"Aruba\", \"Guyana\"), code2 (\"MS\", \"AG\", \"MP\"), gnpold (5867.0, 96318.0, 6180.0), lifeexpectancy (73.8, 75.6, 79.8), indepyear (1841, 1822, 1941), headofstate (\"Ismail Omar Guelleh\", \"Carl XVI Gustaf\", \"Abdullah II\"), capital (553, 3493, 2484), governmentform (\"Republic\", \"Overseas Department of France\", \"Emirate Federation\"), population (18827000, 99000, 3337000)", + "schema_without_content": "city : district , id , name , population , countrycode | nation : gnp , surfacearea , code , localname , continent , region , name , code2 , gnpold , lifeexpectancy , indepyear , headofstate , capital , governmentform , population | countrylanguage : isofficial , percentage , countrycode , language | sqlite_sequence : name , seq | state : gnp , surfacearea , code , localname , continent , region , name , code2 , gnpold , lifeexpectancy , indepyear , headofstate , capital , governmentform , population", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "countries": "country", + "Asia": "country.Continent" + } + }, + { + "question": "count the #number of countries in asia# .", + "db_id": "world_1", + "orig_query": "select count(*) from country where continent = \"Asia\"", + "schema_with_content": "countrylanguage : percentage (41.9, 8.9, 22.4), isofficial (\"T\", \"F\"), countrycode (\"BOL\", \"JOR\", \"MWI\"), language (\"Nama\", \"Chilluk\", \"Shona\") | sqlite_sequence : name (\"city\"), seq (4079) | nation : population (11168000, 6097000, 1277558000), indepyear (1955, 1951, 836), region (\"Western Africa\", \"British Islands\", \"Micronesia/Caribbean\"), localname (\"Zimbabwe\", \"Pitcairn\", \"B\u00c3\u00a9nin\"), continent (\"Europe\", \"North America\", \"Asia\"), gnpold (4697.0, 8110900.0, 34843.0), code (\"FSM\", \"PCN\", \"NIC\"), name (\"French Guiana\", \"Netherlands\", \"British Indian Ocean Territory\"), lifeexpectancy (78.4, 46.2, 75.7), surfacearea (11000.0, 6257.0, 459.0), code2 (\"QA\", \"GD\", \"UZ\"), governmentform (\"Islamic Republic\", \"Nonmetropolitan Territory of New Zealand\", \"Constitutional Monarchy (Emirate)\"), gnp (998.0, 226492.0, 15706.0), headofstate (\"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\", \"Fahd ibn Abdul-Aziz al-Sa\u00c2\u00b4ud\", \"John Kufuor\"), capital (922, 653, 2697) | city : population (119741, 173685, 12433), id (3156, 212, 3701), countrycode (\"TON\", \"MKD\", \"AUT\"), district (\"Panevezys\", \"Warminsko-Mazurskie\", \"Saskatchewan\"), name (\"Seversk\", \"Sibiu\", \"Bally\") | state : population (11168000, 6097000, 1277558000), indepyear (1955, 1951, 836), region (\"Western Africa\", \"British Islands\", \"Micronesia/Caribbean\"), localname (\"Zimbabwe\", \"Pitcairn\", \"B\u00c3\u00a9nin\"), continent (\"Europe\", \"North America\", \"Asia\"), gnpold (4697.0, 8110900.0, 34843.0), code (\"FSM\", \"PCN\", \"NIC\"), name (\"French Guiana\", \"Netherlands\", \"British Indian Ocean Territory\"), lifeexpectancy (78.4, 46.2, 75.7), surfacearea (11000.0, 6257.0, 459.0), code2 (\"QA\", \"GD\", \"UZ\"), governmentform (\"Islamic Republic\", \"Nonmetropolitan Territory of New Zealand\", \"Constitutional Monarchy (Emirate)\"), gnp (998.0, 226492.0, 15706.0), headofstate (\"Hugo B\u00c3\u00a1nzer Su\u00c3\u00a1rez\", \"Fahd ibn Abdul-Aziz al-Sa\u00c2\u00b4ud\", \"John Kufuor\"), capital (922, 653, 2697)", + "schema_without_content": "countrylanguage : percentage , isofficial , countrycode , language | sqlite_sequence : name , seq | nation : population , indepyear , region , localname , continent , gnpold , code , name , lifeexpectancy , surfacearea , code2 , governmentform \", gnp , headofstate , capital | city : population , id , countrycode , district , name | state : population , indepyear , region , localname , continent , gnpold , code , name , lifeexpectancy , surfacearea , code2 , governmentform \", gnp , headofstate , capital", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "number of countries in Asia": "country.Code" + } + }, + { + "question": "what are the #names# of the countries that are in the #continent# of europe and have a #population# of 80000?", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Europe\" and population = \"80000\"", + "schema_with_content": "state : region (\"Central Africa\", \"Baltic Countries\", \"Eastern Asia\"), capital (3248, 2754, 204), code2 (\"MM\", \"MU\", \"BZ\"), indepyear (1921, 1917, 1776), governmentform (\"Occupied by Marocco\", \"Islamic Emirate\", \"US Territory\"), headofstate (\"Valentin Paniagua Corazao\", \"Omar Hassan Ahmad al-Bashir\", \"Bhumibol Adulyadej\"), name (\"Benin\", \"Congo\", \"Madagascar\"), localname (\"The Cook Islands\", \"kaNgwane\", \"Madagasikara/Madagascar\"), code (\"SMR\", \"PRI\", \"STP\"), lifeexpectancy (72.8, 39.3, 68.5), continent (\"Asia\", \"Asia\", \"Asia\"), population (4478500, 18886000, 43000), gnp (6232.0, 211860.0, 37966.0), gnpold (584.0, 2453.0, 45914.0), surfacearea (36.0, 48511.0, 2166090.0) | sqlite_sequence : name (\"city\"), seq (4079) | nation : region (\"Central Africa\", \"Baltic Countries\", \"Eastern Asia\"), capital (3248, 2754, 204), code2 (\"MM\", \"MU\", \"BZ\"), indepyear (1921, 1917, 1776), governmentform (\"Occupied by Marocco\", \"Islamic Emirate\", \"US Territory\"), headofstate (\"Valentin Paniagua Corazao\", \"Omar Hassan Ahmad al-Bashir\", \"Bhumibol Adulyadej\"), name (\"Benin\", \"Congo\", \"Madagascar\"), localname (\"The Cook Islands\", \"kaNgwane\", \"Madagasikara/Madagascar\"), code (\"SMR\", \"PRI\", \"STP\"), lifeexpectancy (72.8, 39.3, 68.5), continent (\"Asia\", \"Asia\", \"Asia\"), population (4478500, 18886000, 43000), gnp (6232.0, 211860.0, 37966.0), gnpold (584.0, 2453.0, 45914.0), surfacearea (36.0, 48511.0, 2166090.0) | city : id (2910, 498, 3117), district (\"Estuaire\", \"Binh Thuan\", \"Thua Thien-Hue\"), name (\"Jekaterinburg\", \"Ribeir\u00c3\u00a3o Pires\", \"Coatzacoalcos\"), countrycode (\"SYC\", \"TWN\", \"TKL\"), population (98965, 118488, 182012) | countrylanguage : percentage (12.2, 20.0, 49.1), language (\"Chin\", \"Tho\", \"Gur\"), countrycode (\"REU\", \"SMR\", \"ETH\"), isofficial (\"T\", \"F\")", + "schema_without_content": "state : region , capital , code2 , indepyear , governmentform , headofstate , name , localname , code , lifeexpectancy , continent , population , gnp , gnpold , surfacearea | sqlite_sequence : name , seq | nation : region , capital , code2 , indepyear , governmentform , headofstate , name , localname , code , lifeexpectancy , continent , population , gnp , gnpold , surfacearea | city : id , district , name , countrycode , population | countrylanguage : percentage , language , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names": "country.Name", + "continent": "country.Continent", + "population": "country.Population" + } + }, + { + "question": "give the #names of countries# that are in #europe# and have a #population# equal to 80000.", + "db_id": "world_1", + "orig_query": "select name from country where continent = \"Europe\" and population = \"80000\"", + "schema_with_content": "city : id (1247, 1189, 1155), district (\"Gy\u00c3\u00b6r-Moson-Sopron\", \"Durango\", \"Qandahar\"), countrycode (\"MEX\", \"SGP\", \"BLR\"), name (\"Semey\", \"Aragua\u00c3\u00adna\", \"Jiaonan\"), population (217664, 371601, 310277) | sqlite_sequence : name (\"city\"), seq (4079) | nation : gnpold (1312.0, 781.0, 4697.0), governmentform (\"Administrated by the UN\", \"Special Administrative Region of China\", \"Nonmetropolitan Territory of France\"), code2 (\"BD\", \"SN\", \"MT\"), code (\"SVK\", \"BLZ\", \"ZWE\"), surfacearea (36188.0, 16.0, 117600.0), region (\"Central America\", \"Central Africa\", \"Melanesia\"), population (3698500, 1305000, 2500), localname (\"United States Minor Outlying Islands\", \"Iran\", \"Timor Timur\"), capital (3065, 3336, 2253), name (\"Syria\", \"Bulgaria\", \"Vietnam\"), indepyear (1878, 885, 1990), continent (\"Oceania\", \"Oceania\", \"Africa\"), lifeexpectancy (70.0, 77.7, 54.8), gnp (6353.0, 1687.0, 10226.0), headofstate (\"Kim Dae-jung\", \"Bernard Dowiyogo\", \"Emomali Rahmonov\") | state : gnpold (1312.0, 781.0, 4697.0), governmentform (\"Administrated by the UN\", \"Special Administrative Region of China\", \"Nonmetropolitan Territory of France\"), code2 (\"BD\", \"SN\", \"MT\"), code (\"SVK\", \"BLZ\", \"ZWE\"), surfacearea (36188.0, 16.0, 117600.0), region (\"Central America\", \"Central Africa\", \"Melanesia\"), population (3698500, 1305000, 2500), localname (\"United States Minor Outlying Islands\", \"Iran\", \"Timor Timur\"), capital (3065, 3336, 2253), name (\"Syria\", \"Bulgaria\", \"Vietnam\"), indepyear (1878, 885, 1990), continent (\"Oceania\", \"Oceania\", \"Africa\"), lifeexpectancy (70.0, 77.7, 54.8), gnp (6353.0, 1687.0, 10226.0), headofstate (\"Kim Dae-jung\", \"Bernard Dowiyogo\", \"Emomali Rahmonov\") | countrylanguage : percentage (2.5, 7.2, 8.3), countrycode (\"AUS\", \"SDN\", \"MKD\"), isofficial (\"T\", \"F\"), language (\"Malenasian Languages\", \"Kono-vai\", \"Hadareb\")", + "schema_without_content": "city : id , district , countrycode , name , population | sqlite_sequence : name , seq | nation : gnpold , governmentform , code2 , code , surfacearea , region , population , localname , capital , name , indepyear , continent , lifeexpectancy , gnp , headofstate | state : gnpold , governmentform , code2 , code , surfacearea , region , population , localname , capital , name , indepyear , continent , lifeexpectancy , gnp , headofstate | countrylanguage : percentage , countrycode , isofficial , language", + "extra_map": null, + "extra_table_map": { + "country": [ + "nation", + "state" + ] + }, + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "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" + ] + }, + "column_linking_gt": { + "names of countries": "country.Name", + "Europe": "country.Continent", + "population": "country.Population" + } + }, + { + "question": "what are the #cities# whose #population# is between 160000 and 900000?", + "db_id": "world_1", + "orig_query": "select name from city where population between 160000 and 900000", + "schema_with_content": "countrylanguage : isofficial (\"T\", \"F\"), language (\"Tibetan\", \"Burmese\", \"Slovak\"), countrycode (\"KNA\", \"JOR\", \"FJI\"), percentage (6.3, 21.4, 15.2) | country : indepyear (1278, 1962, 800), gnpold (2201.0, 1767.0, 2102826.0), code (\"JAM\", \"STP\", \"NZL\"), population (57680000, 10239000, 71000), continent (\"South America\", \"South America\", \"Antarctica\"), lifeexpectancy (44.0, 60.6, 67.8), name (\"Chile\", \"Congo, The Democratic Republic of the\", \"Macao\"), gnp (3101.0, 96.0, 5951.0), headofstate (\"Juan Carlos I\", \"Ismail Omar Guelleh\", \"Hamad ibn Khalifa al-Thani\"), region (\"Southeast Asia\", \"Melanesia\", \"Polynesia\"), code2 (\"KG\", \"AU\", \"SC\"), surfacearea (796095.0, 49.0, 2040.0), localname (\"Libiya\", \"Eesti\", \"Christmas Island\"), governmentform (\"Commonwealth of the US\", \"Dependent Territory of Norway\", \"Constitutional Monarchy\"), capital (3425, 1791, 2484) | metropolis : name (\"Kobe\", \"Guarulhos\", \"Jinan\"), id (2395, 1664, 2068), district (\"Pavlodar\", \"Mississippi\", \"Nonthaburi\"), population (2624000, 264563, 154400), countrycode (\"HUN\", \"GEO\", \"SEN\") | town : name (\"Kobe\", \"Guarulhos\", \"Jinan\"), id (2395, 1664, 2068), district (\"Pavlodar\", \"Mississippi\", \"Nonthaburi\"), population (2624000, 264563, 154400), countrycode (\"HUN\", \"GEO\", \"SEN\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "countrylanguage : isofficial , language , countrycode , percentage | country : indepyear , gnpold , code , population , continent , lifeexpectancy , name , gnp , headofstate , region , code2 , surfacearea , localname , governmentform , capital | metropolis : name , id , district , population , countrycode | town : name , id , district , population , countrycode | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "city": [ + "town", + "metropolis" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "cities": "city", + "population": "city.Population" + } + }, + { + "question": "which #language# is spoken by the largest number of #countries# ?", + "db_id": "world_1", + "orig_query": "select language from countrylanguage group by language order by count(*) desc limit 1", + "schema_with_content": "spoken_language : language (\"Eskimo Languages\", \"Bulgariana\", \"Southsotho\"), percentage (72.1, 3.0, 12.5), countrycode (\"SEN\", \"SWE\", \"MLI\"), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079) | country : continent (\"Asia\", \"Africa\", \"North America\"), headofstate (\"Mireya Elisa Moscoso Rodr\u00c3\u00adguez\", \"Juan Carlos I\", \"Fernando Henrique Cardoso\"), region (\"Caribbean\", \"Antarctica\", \"Western Africa\"), localname (\"Norfolk Island\", \"Al-Bahrayn\", \"Per\u00c3\u00ba/Piruw\"), code (\"ROM\", \"CXR\", \"AND\"), name (\"Poland\", \"Guam\", \"Antarctica\"), lifeexpectancy (74.8, 66.0, 50.8), code2 (\"GU\", \"BT\", \"SI\"), gnp (6366.0, 935.0, 21929.0), gnpold (4542.0, 4542.0, 442989.0), indepyear (1948, 1806, 1990), governmentform (\"Federation\", \"Dependent Territory of Norway\", \"Monarchy (Emirate)\"), capital (192, 2974, 926), population (2000, 25000, 57680000), surfacearea (9363520.0, 163265.0, 2780400.0) | city : id (1990, 2224, 3972), name (\"Kamensk-Uralski\", \"Cairo\", \"Dijon\"), population (103556, 216015, 229130), countrycode (\"MTQ\", \"PAN\", \"SWZ\"), district (\"Par\u00c3\u00a1\", \"Szabolcs-Szatm\u00c3\u00a1r-Ber\", \"Sylhet\") | official_language : language (\"Eskimo Languages\", \"Bulgariana\", \"Southsotho\"), percentage (72.1, 3.0, 12.5), countrycode (\"SEN\", \"SWE\", \"MLI\"), isofficial (\"T\", \"F\")", + "schema_without_content": "spoken_language : language , percentage , countrycode , isofficial | sqlite_sequence : name , seq | country : continent , headofstate , region , localname , code , name , lifeexpectancy , code2 , gnp , gnpold , indepyear , governmentform \", capital , population , surfacearea | city : id , name , population , countrycode , district | official_language : language , percentage , countrycode , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "countries": "country" + } + }, + { + "question": "give the #language# that is spoken in the most countries.", + "db_id": "world_1", + "orig_query": "select language from countrylanguage group by language order by count(*) desc limit 1", + "schema_with_content": "city : id (2012, 2788, 3170), countrycode (\"BEN\", \"BFA\", \"ETH\"), population (145000, 179976, 149965), district (\"Kyongsangnam\", \"Carabobo\", \"Frederiksberg\"), name (\"Soyapango\", \"Ghaziabad\", \"North Las Vegas\") | official_language : percentage (2.4, 5.1, 7.7), language (\"Kavango\", \"Zenaga\", \"Silesiana\"), countrycode (\"NER\", \"MAR\", \"KAZ\"), isofficial (\"T\", \"F\") | country : code (\"YEM\", \"LIE\", \"SLV\"), code2 (\"NU\", \"LV\", \"MD\"), capital (192, 1523, 3492), indepyear (1976, 1944, 1947), region (\"Western Europe\", \"Southern Africa\", \"Polynesia\"), lifeexpectancy (79.5, 67.8, 75.8), surfacearea (549.0, 10990.0, 91982.0), gnp (116416.0, 536.0, 48267.0), headofstate (\"Salahuddin Abdul Aziz Shah Alhaj\", \"Albert II\", \"Yasser (Yasir) Arafat\"), name (\"East Timor\", \"Vietnam\", \"Christmas Island\"), localname (\"Ukrajina\", \"Burundi/Uburundi\", \"Filastin\"), governmentform (\"Commonwealth of the US\", \"Autonomous Area\", \"Socialistic State\"), population (456000, 65000, 19680000), continent (\"Antarctica\", \"South America\", \"North America\"), gnpold (3107.0, 5729.0, 88434.0) | spoken_language : percentage (2.4, 5.1, 7.7), language (\"Kavango\", \"Zenaga\", \"Silesiana\"), countrycode (\"NER\", \"MAR\", \"KAZ\"), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : id , countrycode , population , district , name | official_language : percentage , language , countrycode , isofficial | country : code , code2 , capital , indepyear , region , lifeexpectancy , surfacearea , gnp , headofstate Arafat\", name , localname , governmentform , population , continent , gnpold | spoken_language : percentage , language , countrycode , isofficial | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language" + } + }, + { + "question": "what is the #language# spoken by the largest #percentage# of people in each #country# ?", + "db_id": "world_1", + "orig_query": "select language, countrycode, max(percentage) from countrylanguage group by countrycode", + "schema_with_content": "official_language : countrycode (\"PRY\", \"REU\", \"COK\"), language (\"Nama\", \"Bassa\", \"Yi\"), percentage (8.7, 45.5, 67.7), isofficial (\"T\", \"F\") | city : id (2957, 3163, 3426), name (\"Elizabeth\", \"Las Pi\u00c3\u00b1as\", \"Santa Luzia\"), countrycode (\"TJK\", \"IRN\", \"SMR\"), district (\"Zachodnio-Pomorskie\", \"Munster\", \"Primorje\"), population (339917, 325000, 3361700) | sqlite_sequence : seq (4079), name (\"city\") | country : governmentform (\"Dependent Territory of the UK\", \"Socialistic Republic\", \"Islamic Republic\"), localname (\"Polska\", \"Antigua and Barbuda\", \"Guinea Ecuatorial\"), headofstate (\"Joseph Kabila\", \"Vojislav Ko\u00c5\u00a1tunica\", \"\u00c3\u0093lafur Ragnar Gr\u00c3\u00admsson\"), capital (905, 917, 1889), surfacearea (8547403.0, 622984.0, 112088.0), lifeexpectancy (50.8, 41.3, 63.4), continent (\"Africa\", \"Antarctica\", \"Antarctica\"), gnpold (7388.0, 1186.0, 1312.0), code (\"DEU\", \"ETH\", \"NFK\"), gnp (249704.0, 1694.0, 414972.0), name (\"Suriname\", \"Ecuador\", \"Cameroon\"), code2 (\"PY\", \"CR\", \"DE\"), population (24170000, 3850000, 11669000), indepyear (1974, 1993, -1000), region (\"Central America\", \"Polynesia\", \"Micronesia\") | spoken_language : countrycode (\"PRY\", \"REU\", \"COK\"), language (\"Nama\", \"Bassa\", \"Yi\"), percentage (8.7, 45.5, 67.7), isofficial (\"T\", \"F\")", + "schema_without_content": "official_language : countrycode , language , percentage , isofficial | city : id , name , countrycode , district , population | sqlite_sequence : seq , name | country : governmentform , localname , headofstate , capital , surfacearea , lifeexpectancy , continent , gnpold , code , gnp , name , code2 , population , indepyear , region | spoken_language : countrycode , language , percentage , isofficial", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "language": "countrylanguage.Language", + "percentage": "countrylanguage.Percentage", + "country": "countrylanguage.CountryCode" + } + }, + { + "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_id": "world_1", + "orig_query": "select language, countrycode, max(percentage) from countrylanguage group by countrycode", + "schema_with_content": "country : code2 (\"GA\", \"CM\", \"PN\"), capital (2460, 2409, 3065), governmentform (\"Overseas Department of France\", \"Dependent Territory of the US\", \"Territorial Collectivity of France\"), surfacearea (91982.0, 45227.0, 110861.0), indepyear (1822, 1968, 1912), headofstate (\"Jos\u00c3\u00a9 Alexandre Gusm\u00c3\u00a3o\", \"Rexhep Mejdani\", \"Vicente Fox Quesada\"), localname (\"Rossija\", \"Luxembourg/L\u00c3\u00abtzebuerg\", \"Marshall Islands/Majol\"), region (\"Central Africa\", \"Southern and Central Asia\", \"Eastern Asia\"), gnp (10692.0, 7137.0, 283.0), continent (\"Asia\", \"Africa\", \"Oceania\"), population (8495000, 638000, 38000), code (\"TUN\", \"MWI\", \"ANT\"), lifeexpectancy (76.2, 67.9, 66.2), gnpold (532031.0, 243.0, 2102826.0), name (\"Heard Island and McDonald Islands\", \"Kenya\", \"French Guiana\") | spoken_language : language (\"Hindi\", \"Lithuanian\", \"Brahui\"), countrycode (\"BRB\", \"PAN\", \"VGB\"), percentage (29.6, 7.7, 1.4), isofficial (\"T\", \"F\") | city : district (\"Kaesong-si\", \"al-Hasaka\", \"Callao\"), population (102710, 284846, 97712), id (145, 1228, 999), name (\"M\u00c3\u00b6nchengladbach\", \"Tiefa\", \"Yatsushiro\"), countrycode (\"COL\", \"CRI\", \"LBR\") | official_language : language (\"Hindi\", \"Lithuanian\", \"Brahui\"), countrycode (\"BRB\", \"PAN\", \"VGB\"), percentage (29.6, 7.7, 1.4), isofficial (\"T\", \"F\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "country : code2 , capital , governmentform , surfacearea , indepyear , headofstate , localname , region , gnp , continent , population , code , lifeexpectancy , gnpold , name | spoken_language : language , countrycode , percentage , isofficial | city : district , population , id , name , countrycode | official_language : language , countrycode , percentage , isofficial | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "country codes": "countrylanguage.CountryCode", + "languages": "countrylanguage.Language", + "percentage": "countrylanguage.Percentage" + } + }, + { + "question": "what is the #total number of countries# where #spanish# is spoken by the #largest percentage of people# ?", + "db_id": "world_1", + "orig_query": "select count(*), max(percentage) from countrylanguage where language = \"Spanish\" group by countrycode", + "schema_with_content": "spoken_language : isofficial (\"T\", \"F\"), countrycode (\"SJM\", \"ZMB\", \"BWA\"), percentage (82.2, 16.9, 9.5), language (\"Gur\", \"Gaeli\", \"Ibo\") | city : population (1517550, 118553, 105114), district (\"al-Tamim\", \"Severn\u00c3\u00ad Cechy\", \"Chiang Mai\"), id (3595, 3989, 4039), countrycode (\"COG\", \"BOL\", \"ISL\"), name (\"Nawabshah\", \"Longyan\", \"Szczecin\") | official_language : isofficial (\"T\", \"F\"), countrycode (\"SJM\", \"ZMB\", \"BWA\"), percentage (82.2, 16.9, 9.5), language (\"Gur\", \"Gaeli\", \"Ibo\") | sqlite_sequence : name (\"city\"), seq (4079) | country : gnpold (2000.0, 6328.0, 7967.0), code (\"HTI\", \"GUF\", \"VAT\"), name (\"Taiwan\", \"Benin\", \"Honduras\"), indepyear (1821, 1932, 1828), lifeexpectancy (62.9, 61.1, 76.8), localname (\"T\u00e2\u0080\u0099ai-wan\", \"\u00e2\u0080\u0093\", \"Ecuador\"), continent (\"South America\", \"Oceania\", \"South America\"), surfacearea (549.0, 1759540.0, 357022.0), code2 (\"AU\", \"RU\", \"CX\"), region (\"Southern and Central Asia\", \"Australia and New Zealand\", \"Southern and Central Asia\"), population (20212000, 279000, 4968000), governmentform (\"Socialistic Republic\", \"Parliamentary Coprincipality\", \"Monarchy\"), headofstate (\"Hugo Ch\u00c3\u00a1vez Fr\u00c3\u00adas\", \"Omar Bongo\", \"Harald V\"), capital (3250, 910, 608), gnp (650.0, 11500.0, 1197.0)", + "schema_without_content": "spoken_language : isofficial , countrycode , percentage , language | city : population , district , id , countrycode , name | official_language : isofficial , countrycode , percentage , language | sqlite_sequence : name , seq | country : gnpold , code , name , indepyear , lifeexpectancy , localname , continent , surfacearea , code2 , region , population , governmentform , headofstate , capital , gnp", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "total number of countries": "countrylanguage.CountryCode", + "Spanish": "countrylanguage.Language", + "largest percentage of people": "countrylanguage.Percentage" + } + }, + { + "question": "count the #number of countries# for which #spanish# is the predominantly spoken language.", + "db_id": "world_1", + "orig_query": "select count(*), max(percentage) from countrylanguage where language = \"Spanish\" group by countrycode", + "schema_with_content": "country : surfacearea (316.0, 9363520.0, 236.0), capital (2734, 1522, 929), name (\"South Korea\", \"Russian Federation\", \"Cambodia\"), localname (\"Naoero/Nauru\", \"Guyane fran\u00c3\u00a7aise\", \"The Cook Islands\"), region (\"Southern and Central Asia\", \"Central Africa\", \"Australia and New Zealand\"), code2 (\"PF\", \"KE\", \"MW\"), indepyear (1922, 1910, 1994), governmentform (\"Independent Church State\", \"Administrated by the UN\", \"Monarchy (Emirate)\"), gnpold (1161.0, 206025.0, 243948.0), gnp (828.0, 536.0, 37966.0), continent (\"Antarctica\", \"Africa\", \"Asia\"), headofstate (\"Harald V\", \"Beatrix\", \"Miguel Trovoada\"), lifeexpectancy (76.5, 74.1, 59.5), code (\"BRN\", \"CXR\", \"HND\"), population (40377000, 45611000, 699000) | city : population (1062771, 231978, 2559424), id (1918, 476, 828), countrycode (\"BEL\", \"EGY\", \"NGA\"), name (\"Antipolo\", \"Aden\", \"Guarapuava\"), district (\"Islamabad\", \"Chagang\", \"Gumma\") | spoken_language : countrycode (\"NPL\", \"MTQ\", \"SMR\"), isofficial (\"T\", \"F\"), percentage (19.5, 63.6, 89.5), language (\"Mbete\", \"Yao\", \"Zande\") | sqlite_sequence : seq (4079), name (\"city\") | official_language : countrycode (\"NPL\", \"MTQ\", \"SMR\"), isofficial (\"T\", \"F\"), percentage (19.5, 63.6, 89.5), language (\"Mbete\", \"Yao\", \"Zande\")", + "schema_without_content": "country : surfacearea , capital , name , localname , region , code2 , indepyear , governmentform \", gnpold , gnp , continent , headofstate , lifeexpectancy , code , population | city : population , id , countrycode , name , district | spoken_language : countrycode , isofficial , percentage , language | sqlite_sequence : seq , name | official_language : countrycode , isofficial , percentage , language", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "number of countries": "countrylanguage.CountryCode", + "Spanish": "countrylanguage.Language" + } + }, + { + "question": "what are the #codes of countries# where #spanish# is spoken by the largest #percentage of people# ?", + "db_id": "world_1", + "orig_query": "select countrycode, max(percentage) from countrylanguage where language = \"Spanish\" group by countrycode", + "schema_with_content": "city : countrycode (\"CRI\", \"GMB\", \"VGB\"), name (\"Plovdiv\", \"al-Fashir\", \"Molodet\u00c5\u00a1no\"), id (253, 1476, 658), district (\"Kars\", \"Dakhlet Nou\u00c3\u00a2dhibou\", \"Woqooyi Galbeed\"), population (114826, 188200, 1236000) | country : region (\"Western Europe\", \"Melanesia\", \"Caribbean\"), population (1008000, 2662000, 98881000), localname (\"Saint Vincent and the Grenadines\", \"Belarus\", \"Tokelau\"), capital (3063, 1792, 921), name (\"China\", \"Croatia\", \"Grenada\"), governmentform (\"Nonmetropolitan Territory of France\", \"Nonmetropolitan Territory of France\", \"Overseas Department of France\"), gnpold (2190.0, 2102826.0, 15129.0), headofstate (\"Jorge Samp\u00c3\u00a3io\", \"Leo A. Falcam\", \"Moshe Katzav\"), indepyear (1912, 1984, 1918), code2 (\"KZ\", \"QA\", \"GD\"), gnp (6.0, 174099.0, 998.0), code (\"PYF\", \"UZB\", \"THA\"), lifeexpectancy (64.5, 44.0, 63.1), continent (\"North America\", \"Antarctica\", \"Antarctica\"), surfacearea (446550.0, 12173.0, 1075.0) | official_language : percentage (75.2, 32.6, 5.3), countrycode (\"BWA\", \"GEO\", \"LBR\"), isofficial (\"T\", \"F\"), language (\"Nyamwesi\", \"Sotho\", \"Akan\") | spoken_language : percentage (75.2, 32.6, 5.3), countrycode (\"BWA\", \"GEO\", \"LBR\"), isofficial (\"T\", \"F\"), language (\"Nyamwesi\", \"Sotho\", \"Akan\") | sqlite_sequence : name (\"city\"), seq (4079)", + "schema_without_content": "city : countrycode , name , id , district , population | country : region , population , localname , capital , name , governmentform , gnpold , headofstate , indepyear , code2 , gnp , code , lifeexpectancy , continent , surfacearea | official_language : percentage , countrycode , isofficial , language | spoken_language : percentage , countrycode , isofficial , language | sqlite_sequence : name , seq", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "codes of countries": "countrylanguage.CountryCode", + "Spanish": "countrylanguage.Language", + "percentage of people": "countrylanguage.Percentage" + } + }, + { + "question": "return the #codes of countries# for which #spanish# is the predominantly spoken language.", + "db_id": "world_1", + "orig_query": "select countrycode, max(percentage) from countrylanguage where language = \"Spanish\" group by countrycode", + "schema_with_content": "official_language : isofficial (\"T\", \"F\"), percentage (9.7, 40.1, 31.8), countrycode (\"CHN\", \"BWA\", \"BDI\"), language (\"Romanian\", \"Ovimbundu\", \"Southern Slavic Languages\") | country : gnpold (88434.0, 171028.0, 1084.0), region (\"Southern Europe\", \"North America\", \"Australia and New Zealand\"), surfacearea (33851.0, 238533.0, 102.0), localname (\"Al-Kuwayt\", \"Antigua and Barbuda\", \"Centrafrique/B\u00c3\u00aa-Afr\u00c3\u00aeka\"), code (\"TCD\", \"MHL\", \"USA\"), population (395000, 444000, 1439200), capital (2928, 3172, 3016), headofstate (\"Tarja Halonen\", \"Fahd ibn Abdul-Aziz al-Sa\u00c2\u00b4ud\", \"Mohammed VI\"), continent (\"Antarctica\", \"Oceania\", \"Asia\"), governmentform (\"Nonmetropolitan Territory of France\", \"Federal Republic\", \"People'sRepublic\"), name (\"Western Sahara\", \"Colombia\", \"Poland\"), gnp (318.0, 211860.0, 210721.0), indepyear (1971, 1923, 1828), lifeexpectancy (None, 79.6, 66.0), code2 (\"DK\", \"BF\", \"FO\") | spoken_language : isofficial (\"T\", \"F\"), percentage (9.7, 40.1, 31.8), countrycode (\"CHN\", \"BWA\", \"BDI\"), language (\"Romanian\", \"Ovimbundu\", \"Southern Slavic Languages\") | sqlite_sequence : seq (4079), name (\"city\") | city : district (\"\", \"National Capital Dis\", \"Flevoland\"), countrycode (\"WSM\", \"COD\", \"TZA\"), id (1903, 2251, 3086), name (\"Taganrog\", \"Palikir\", \"Gorakhpur\"), population (129688, 101355, 146866)", + "schema_without_content": "official_language : isofficial , percentage , countrycode , language | country : gnpold , region , surfacearea , localname , code , population , capital , headofstate , continent , governmentform , name , gnp , indepyear , lifeexpectancy , code2 | spoken_language : isofficial , percentage , countrycode , language | sqlite_sequence : seq , name | city : district , countrycode , id , name , population", + "extra_map": null, + "extra_table_map": { + "countrylanguage": [ + "official_language", + "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" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "column_linking_gt": { + "codes of countries": "countrylanguage.CountryCode", + "Spanish": "countrylanguage.Language" + } + }, + { + "question": "list the #names of conductors# in ascending order of #age# .", + "db_id": "orchestra", + "orig_query": "select name from conductor order by age asc", + "schema_with_content": "performance : share (\"22.7%\", \"34.0%\", \"22.7%\"), weekly_rank (\"11\", \"TBC\", \"15\"), official_ratings_(millions) (9.28, 11.45, 6.73), type (\"Semi-final 1\", \"Auditions 2\", \"Auditions 4\"), performance_id (3, 6, 4), orchestra_id (8, 11, 4), date (\"2007\", \"13 June\", \"13 June\") | director : conductor_id (5, 11, 1), year_of_work (6, 16, 6), nationality (\"USA\", \"UK\", \"France\"), age (40, 63, 49), name (\"Pierre Boulez\", \"Charles Dutoit\", \"Paul Jorgensen\") | orchestra : record_company (\"Decca Records\", \"Koch Records / Naxos Records\", \"Koch Records / Naxos Records\"), conductor_id (2, 10, 6), orchestra (\"Columbia Symphony Orchestra\", \"Chicago Symphony Orchestra\", \"Detroit Symphony Orchestra\"), orchestra_id (6, 9, 10), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2009.0, 2003.0, 2007.0) | show : show_id (3, 1, 2), if_first_show (\"Glebe Park\", \"Glebe Park\", \"Hampden Park\"), performance_id (3, 3, 1), result (\"T\", \"F\"), attendance (1026.0, 1925.0, 1925.0) | maestro : conductor_id (5, 11, 1), year_of_work (6, 16, 6), nationality (\"USA\", \"UK\", \"France\"), age (40, 63, 49), name (\"Pierre Boulez\", \"Charles Dutoit\", \"Paul Jorgensen\")", + "schema_without_content": "performance : share , weekly_rank , official_ratings_ , type , performance_id , orchestra_id , date | director : conductor_id , year_of_work , nationality , age , name | orchestra : record_company , conductor_id , orchestra , orchestra_id , major_record_format , year_of_founded | show : show_id , if_first_show , performance_id , result , attendance | maestro : conductor_id , year_of_work , nationality , age , name", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "age": "conductor.Age" + } + }, + { + "question": "what are the #names of conductors# , ordered by #age# ?", + "db_id": "orchestra", + "orig_query": "select name from conductor order by age asc", + "schema_with_content": "performance : orchestra_id (4, 3, 1), weekly_rank (\"9\", \"TBC\", \"13\"), date (\"13 June\", \"15 June\", \"10 June\"), performance_id (11, 1, 2), official_ratings_(millions) (11.58, 6.73, 5.2), type (\"Semi-final 3\", \"Auditions 5\", \"Semi-final 1\"), share (\"38.1%\", \"34%\", \"34%\") | maestro : age (63, 40, 40), nationality (\"USA\", \"UK\", \"France\"), conductor_id (1, 2, 12), name (\"Pierre Boulez\", \"Valeri Gergiev\", \"Paul Jorgensen\"), year_of_work (6, 21, 21) | orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (3, 2, 8), orchestra_id (8, 8, 10), orchestra (\"Royal Concertgebouw Orchestra\", \"Seattle Symphony Orchestra\", \"Royal Danish Orchestra\"), record_company (\"Columbia Masterworks\", \"EMI\", \"EMI\"), year_of_founded (2008.0, 2008.0, 2009.0) | show : performance_id (4, 2, 2), result (\"T\", \"F\"), attendance (695.0, 1925.0, 695.0), show_id (3, 1, 1), if_first_show (\"Fir Park\", \"Glebe Park\", \"Glebe Park\") | director : age (63, 40, 40), nationality (\"USA\", \"UK\", \"France\"), conductor_id (1, 2, 12), name (\"Pierre Boulez\", \"Valeri Gergiev\", \"Paul Jorgensen\"), year_of_work (6, 21, 21)", + "schema_without_content": "performance : orchestra_id , weekly_rank , date , performance_id , official_ratings_ , type , share | maestro : age , nationality , conductor_id , name , year_of_work | orchestra : major_record_format , conductor_id , orchestra_id , orchestra , record_company , year_of_founded | show : performance_id , result , attendance , show_id , if_first_show | director : age , nationality , conductor_id , name , year_of_work", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "age": "conductor.Age" + } + }, + { + "question": "what are the #names of conductors# whose #nationalities# are not \"usa\"?", + "db_id": "orchestra", + "orig_query": "select name from conductor where nationality != 'USA'", + "schema_with_content": "maestro : conductor_id (5, 6, 10), name (\"Colin Davis\", \"Antal Brown\", \"Igor Stravinsky\"), age (49, 40, 47), nationality (\"USA\", \"UK\", \"France\"), year_of_work (6, 6, 21) | performance : orchestra_id (9, 3, 5), share (\"34.0%\", \"43.7%\", \"44.7%\"), weekly_rank (\"15\", \"13\", \"1\"), performance_id (4, 6, 6), date (\"9 June\", \"10 June\", \"9 June\"), official_ratings_(millions) (9.29, 9.28, 7.51), type (\"Auditions 2\", \"Semi-final 3\", \"Live final\") | show : performance_id (3, 5, 4), attendance (1026.0, 1925.0, 2431.0), show_id (1, 1, 5), result (\"T\", \"F\"), if_first_show (\"Fir Park\", \"St. Mirren Park\", \"Glebe Park\") | orchestra : record_company (\"Koch Records / Naxos Records\", \"Deutsche Grammophon\", \"Kultur\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (11, 9, 6), orchestra_id (2, 12, 5), orchestra (\"Seattle Symphony Orchestra\", \"Royal Concertgebouw Orchestra\", \"Seattle Symphony Orchestra\"), year_of_founded (2003.0, 2004.0, 2007.0) | director : conductor_id (5, 6, 10), name (\"Colin Davis\", \"Antal Brown\", \"Igor Stravinsky\"), age (49, 40, 47), nationality (\"USA\", \"UK\", \"France\"), year_of_work (6, 6, 21)", + "schema_without_content": "maestro : conductor_id , name , age , nationality , year_of_work | performance : orchestra_id , share , weekly_rank , performance_id , date , official_ratings_ , type | show : performance_id , attendance , show_id , result , if_first_show | orchestra : record_company , major_record_format , conductor_id , orchestra_id , orchestra , year_of_founded | director : conductor_id , name , age , nationality , year_of_work", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "nationalities": "conductor.Nationality" + } + }, + { + "question": "return the #names of conductors# that do not have the #nationality# \"usa\".", + "db_id": "orchestra", + "orig_query": "select name from conductor where nationality != 'USA'", + "schema_with_content": "orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2004.0, 2006.0, 2009.0), orchestra (\"Royal Danish Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\"), orchestra_id (6, 7, 8), conductor_id (7, 12, 5), record_company (\"Columbia Masterworks\", \"Deutsche Grammophon\", \"Delos Records\") | show : attendance (695.0, 695.0, 695.0), if_first_show (\"St. Mirren Park\", \"Fir Park\", \"Glebe Park\"), show_id (2, 1, 5), result (\"T\", \"F\"), performance_id (2, 5, 4) | maestro : year_of_work (6, 21, 12), nationality (\"USA\", \"UK\", \"France\"), conductor_id (9, 11, 6), age (49, 49, 40), name (\"Michael Tilson Thomas\", \"Igor Stravinsky\", \"Valeri Gergiev\") | director : year_of_work (6, 21, 12), nationality (\"USA\", \"UK\", \"France\"), conductor_id (9, 11, 6), age (49, 49, 40), name (\"Michael Tilson Thomas\", \"Igor Stravinsky\", \"Valeri Gergiev\") | performance : orchestra_id (11, 11, 7), official_ratings_(millions) (8.36, 9.29, 6.73), weekly_rank (\"7\", \"13\", \"15\"), performance_id (5, 8, 2), date (\"14 June\", \"13 June\", \"12 June\"), type (\"Auditions 2\", \"Live final\", \"Live final results\"), share (\"29.2%\", \"38.1%\", \"29.3%\")", + "schema_without_content": "orchestra : major_record_format , year_of_founded , orchestra , orchestra_id , conductor_id , record_company | show : attendance , if_first_show , show_id , result , performance_id | maestro : year_of_work , nationality , conductor_id , age , name | director : year_of_work , nationality , conductor_id , age , name | performance : orchestra_id , official_ratings_ , weekly_rank , performance_id , date , type , share", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "nationality": "conductor.Nationality" + } + }, + { + "question": "what are the #record companies of orchestras# in descending order of #years in which they were founded# ?", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra order by year_of_founded desc", + "schema_with_content": "show : result (\"T\", \"F\"), show_id (1, 4, 1), if_first_show (\"Hampden Park\", \"Glebe Park\", \"Fir Park\"), attendance (1925.0, 1925.0, 1026.0), performance_id (1, 1, 2) | ensemble : record_company (\"Kultur\", \"EMI\", \"Koch Records / Naxos Records\"), orchestra_id (2, 12, 6), conductor_id (5, 4, 10), orchestra (\"Kirov Orchestra\", \"Chicago Symphony Orchestra\", \"Philharmonia Orchestra\"), year_of_founded (2008.0, 2007.0, 2009.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | performance : date (\"10 June\", \"17 June\", \"9 June\"), type (\"Auditions 3\", \"Live final results\", \"Live final results\"), share (\"29.2%\", \"22.7%\", \"28.0%\"), orchestra_id (5, 4, 6), weekly_rank (\"15\", \"11\", \"15\"), official_ratings_(millions) (6.73, 7.28, 7.28), performance_id (6, 1, 5) | symphony : record_company (\"Kultur\", \"EMI\", \"Koch Records / Naxos Records\"), orchestra_id (2, 12, 6), conductor_id (5, 4, 10), orchestra (\"Kirov Orchestra\", \"Chicago Symphony Orchestra\", \"Philharmonia Orchestra\"), year_of_founded (2008.0, 2007.0, 2009.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | conductor : name (\"Seiji Ozawa\", \"Seiji Ozawa\", \"Colin Davis\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (4, 9, 7), age (43, 40, 43), year_of_work (21, 6, 12)", + "schema_without_content": "show : result , show_id , if_first_show , attendance , performance_id | ensemble : record_company , orchestra_id , conductor_id , orchestra , year_of_founded , major_record_format | performance : date , type , share , orchestra_id , weekly_rank , official_ratings_ , performance_id | symphony : record_company , orchestra_id , conductor_id , orchestra , year_of_founded , major_record_format | conductor : name , nationality , conductor_id , age , year_of_work", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record companies of orchestras": "orchestra.Record_Company", + "years in which they were founded": "orchestra.Year_of_Founded" + } + }, + { + "question": "return the #record companies of orchestras# , sorted descending by the #years in which they were founded# .", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra order by year_of_founded desc", + "schema_with_content": "show : attendance (1026.0, 1026.0, 1026.0), result (\"T\", \"F\"), performance_id (5, 5, 4), show_id (5, 3, 2), if_first_show (\"Fir Park\", \"St. Mirren Park\", \"St. Mirren Park\") | symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (6, 1, 1), record_company (\"Decca Records\", \"EMI\", \"Kultur\"), orchestra_id (2, 12, 7), year_of_founded (2006.0, 2009.0, 2009.0), orchestra (\"San Francisco Symphony Orchestra\", \"London Symphony Orchestra\", \"Orchestre de Paris\") | conductor : conductor_id (6, 10, 12), age (63, 50, 47), name (\"Pierre Boulez\", \"Valeri Gergiev\", \"Charles Dutoit\"), year_of_work (16, 21, 6), nationality (\"USA\", \"UK\", \"France\") | performance : share (\"34.0%\", \"22.7%\", \"38.1%\"), type (\"Semi-final 1\", \"Semi-final 1\", \"Live final\"), performance_id (7, 10, 6), date (\"14 June\", \"11 June\", \"10 June\"), weekly_rank (\"11\", \"7\", \"8\"), official_ratings_(millions) (7.51, 11.45, 8.36), orchestra_id (3, 7, 5) | ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (6, 1, 1), record_company (\"Decca Records\", \"EMI\", \"Kultur\"), orchestra_id (2, 12, 7), year_of_founded (2006.0, 2009.0, 2009.0), orchestra (\"San Francisco Symphony Orchestra\", \"London Symphony Orchestra\", \"Orchestre de Paris\")", + "schema_without_content": "show : attendance , result , performance_id , show_id , if_first_show | symphony : major_record_format , conductor_id , record_company , orchestra_id , year_of_founded , orchestra | conductor : conductor_id , age , name , year_of_work , nationality | performance : share , type , performance_id , date , weekly_rank , official_ratings_ , orchestra_id | ensemble : major_record_format , conductor_id , record_company , orchestra_id , year_of_founded , orchestra", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record companies of orchestras": "orchestra.Record_Company", + "years in which they were founded": "orchestra.Year_of_Founded" + } + }, + { + "question": "what are the #maximum and minimum share of performances# whose #type# is not \"live final\".", + "db_id": "orchestra", + "orig_query": "select max(share), min(share) from performance where type != \"Live final\"", + "schema_with_content": "show : result (\"T\", \"F\"), show_id (5, 5, 3), attendance (2431.0, 1925.0, 695.0), if_first_show (\"St. Mirren Park\", \"Fir Park\", \"Fir Park\"), performance_id (2, 1, 3) | concert : official_ratings_(millions) (7.39, 6.73, 7.39), date (\"9 June\", \"11 June\", \"16 June\"), weekly_rank (\"1\", \"15\", \"12\"), orchestra_id (9, 10, 6), share (\"22.7%\", \"43.7%\", \"29.2%\"), type (\"Auditions 1\", \"Semi-final 1\", \"Auditions 4\"), performance_id (7, 3, 11) | recital : official_ratings_(millions) (7.39, 6.73, 7.39), date (\"9 June\", \"11 June\", \"16 June\"), weekly_rank (\"1\", \"15\", \"12\"), orchestra_id (9, 10, 6), share (\"22.7%\", \"43.7%\", \"29.2%\"), type (\"Auditions 1\", \"Semi-final 1\", \"Auditions 4\"), performance_id (7, 3, 11) | conductor : nationality (\"USA\", \"UK\", \"France\"), conductor_id (5, 6, 12), name (\"Paul Jorgensen\", \"Igor Stravinsky\", \"Charles Dutoit\"), age (49, 49, 47), year_of_work (6, 10, 20) | orchestra : record_company (\"Mercury Records\", \"Kultur\", \"Koch Records / Naxos Records\"), year_of_founded (2003.0, 2004.0, 2003.0), conductor_id (7, 1, 1), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (5, 3, 3), orchestra (\"Kirov Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Danish Orchestra\")", + "schema_without_content": "show : result , show_id , attendance , if_first_show , performance_id | concert : official_ratings_ , date , weekly_rank , orchestra_id , share , type , performance_id | recital : official_ratings_ , date , weekly_rank , orchestra_id , share , type , performance_id | conductor : nationality , conductor_id , name , age , year_of_work | orchestra : record_company , year_of_founded , conductor_id , major_record_format , orchestra_id , orchestra", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "maximum and minimum share of performances": "performance.Share", + "type": "performance.Type" + } + }, + { + "question": "return the #maximum and minimum shares for performances# that do not have the #type# \"live final\".", + "db_id": "orchestra", + "orig_query": "select max(share), min(share) from performance where type != \"Live final\"", + "schema_with_content": "conductor : year_of_work (11, 11, 16), nationality (\"USA\", \"UK\", \"France\"), age (50, 41, 40), name (\"Robert Craft\", \"Antal Dor\u00c3\u00a1ti\", \"Colin Davis\"), conductor_id (10, 1, 10) | concert : orchestra_id (11, 10, 11), performance_id (10, 2, 5), date (\"17 June\", \"15 June\", \"10 June\"), weekly_rank (\"11\", \"8\", \"TBC\"), official_ratings_(millions) (5.2, 7.51, 9.29), type (\"Auditions 4\", \"Auditions 4\", \"Auditions 2\"), share (\"34.0%\", \"29.2%\", \"22.7%\") | orchestra : record_company (\"Philips\", \"RCA\", \"Columbia Masterworks\"), conductor_id (2, 9, 4), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (6, 1, 4), orchestra (\"Philharmonia Orchestra\", \"San Francisco Symphony Orchestra\", \"Orchestre de Paris\"), year_of_founded (2009.0, 2007.0, 2009.0) | recital : orchestra_id (11, 10, 11), performance_id (10, 2, 5), date (\"17 June\", \"15 June\", \"10 June\"), weekly_rank (\"11\", \"8\", \"TBC\"), official_ratings_(millions) (5.2, 7.51, 9.29), type (\"Auditions 4\", \"Auditions 4\", \"Auditions 2\"), share (\"34.0%\", \"29.2%\", \"22.7%\") | show : result (\"T\", \"F\"), show_id (5, 2, 3), performance_id (4, 5, 1), attendance (695.0, 695.0, 1925.0), if_first_show (\"Glebe Park\", \"Glebe Park\", \"Glebe Park\")", + "schema_without_content": "conductor : year_of_work , nationality , age , name , conductor_id | concert : orchestra_id , performance_id , date , weekly_rank , official_ratings_ , type , share | orchestra : record_company , conductor_id , major_record_format , orchestra_id , orchestra , year_of_founded | recital : orchestra_id , performance_id , date , weekly_rank , official_ratings_ , type , share | show : result , show_id , performance_id , attendance , if_first_show", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "maximum and minimum shares for performances": "performance.Share", + "type": "performance.Type" + } + }, + { + "question": "list #names of conductors# in descending order of #years of work# .", + "db_id": "orchestra", + "orig_query": "select name from conductor order by year_of_work desc", + "schema_with_content": "show : if_first_show (\"Fir Park\", \"Hampden Park\", \"Hampden Park\"), result (\"T\", \"F\"), performance_id (1, 2, 1), attendance (1925.0, 1925.0, 555.0), show_id (2, 4, 5) | director : nationality (\"USA\", \"UK\", \"France\"), year_of_work (21, 20, 20), conductor_id (10, 6, 9), age (47, 41, 50), name (\"Gerard Schwarz\", \"Colin Davis\", \"Michael Tilson Thomas\") | performance : weekly_rank (\"TBC\", \"TBC\", \"TBC\"), type (\"Auditions 5\", \"Semi-final 1\", \"Semi-final 3\"), share (\"29.4%\", \"29.2%\", \"22.7%\"), performance_id (1, 9, 5), date (\"15 June\", \"9 June\", \"16 June\"), orchestra_id (8, 3, 9), official_ratings_(millions) (7.39, 7.28, 8.36) | orchestra : record_company (\"Kultur\", \"Deutsche Grammophon\", \"Deutsche Grammophon\"), orchestra (\"Chicago Symphony Orchestra\", \"San Francisco Symphony Orchestra\", \"Chicago Symphony Orchestra\"), year_of_founded (2003.0, 2006.0, 2003.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (11, 1, 4), conductor_id (7, 12, 5) | maestro : nationality (\"USA\", \"UK\", \"France\"), year_of_work (21, 20, 20), conductor_id (10, 6, 9), age (47, 41, 50), name (\"Gerard Schwarz\", \"Colin Davis\", \"Michael Tilson Thomas\")", + "schema_without_content": "show : if_first_show , result , performance_id , attendance , show_id | director : nationality , year_of_work , conductor_id , age , name | performance : weekly_rank , type , share , performance_id , date , orchestra_id , official_ratings_ | orchestra : record_company , orchestra , year_of_founded , major_record_format , orchestra_id , conductor_id | maestro : nationality , year_of_work , conductor_id , age , name", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "years of work": "conductor.Year_of_Work" + } + }, + { + "question": "what are the #names of conductors# , sorted descending by the number of #years they have worked# ?", + "db_id": "orchestra", + "orig_query": "select name from conductor order by year_of_work desc", + "schema_with_content": "orchestra : record_company (\"Koch Records / Naxos Records\", \"EMI\", \"Philips\"), year_of_founded (2009.0, 2007.0, 2008.0), conductor_id (11, 10, 4), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (6, 7, 12), orchestra (\"Chicago Symphony Orchestra\", \"Seattle Symphony Orchestra\", \"Philharmonia Orchestra\") | director : age (47, 63, 63), year_of_work (10, 20, 12), name (\"Paul Jorgensen\", \"Colin Davis\", \"Robert Craft\"), conductor_id (1, 1, 12), nationality (\"USA\", \"UK\", \"France\") | show : show_id (4, 1, 1), performance_id (5, 4, 1), attendance (555.0, 2431.0, 2431.0), if_first_show (\"Glebe Park\", \"Fir Park\", \"Hampden Park\"), result (\"T\", \"F\") | performance : type (\"Auditions 1\", \"Semi-final 3\", \"Auditions 5\"), orchestra_id (6, 1, 9), weekly_rank (\"15\", \"1\", \"1\"), official_ratings_(millions) (5.2, 6.73, 7.28), date (\"13 June\", \"9 June\", \"17 June\"), performance_id (6, 6, 7), share (\"44.7%\", \"44.7%\", \"43.7%\") | maestro : age (47, 63, 63), year_of_work (10, 20, 12), name (\"Paul Jorgensen\", \"Colin Davis\", \"Robert Craft\"), conductor_id (1, 1, 12), nationality (\"USA\", \"UK\", \"France\")", + "schema_without_content": "orchestra : record_company , year_of_founded , conductor_id , major_record_format , orchestra_id , orchestra | director : age , year_of_work , name , conductor_id , nationality | show : show_id , performance_id , attendance , if_first_show , result | performance : type , orchestra_id , weekly_rank , official_ratings_ , date , performance_id , share | maestro : age , year_of_work , name , conductor_id , nationality", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "years they have worked": "conductor.Year_of_Work" + } + }, + { + "question": "list the #name of the conductor# with the most #years of work# .", + "db_id": "orchestra", + "orig_query": "select name from conductor order by year_of_work desc limit 1", + "schema_with_content": "show : performance_id (3, 1, 1), result (\"T\", \"F\"), attendance (2431.0, 2431.0, 2431.0), show_id (1, 2, 2), if_first_show (\"Hampden Park\", \"Glebe Park\", \"Hampden Park\") | orchestra : conductor_id (2, 4, 11), orchestra_id (11, 8, 2), orchestra (\"Royal Danish Orchestra\", \"London Symphony Orchestra\", \"Royal Concertgebouw Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Delos Records\", \"Koch Records / Naxos Records\", \"Kultur\"), year_of_founded (2008.0, 2004.0, 2004.0) | director : name (\"Gerard Schwarz\", \"Antal Dor\u00c3\u00a1ti\", \"Charles Dutoit\"), year_of_work (11, 16, 16), nationality (\"USA\", \"UK\", \"France\"), age (47, 50, 43), conductor_id (3, 4, 9) | maestro : name (\"Gerard Schwarz\", \"Antal Dor\u00c3\u00a1ti\", \"Charles Dutoit\"), year_of_work (11, 16, 16), nationality (\"USA\", \"UK\", \"France\"), age (47, 50, 43), conductor_id (3, 4, 9) | performance : date (\"2007\", \"13 June\", \"10 June\"), orchestra_id (4, 6, 11), share (\"43.7%\", \"38.1%\", \"22.7%\"), weekly_rank (\"13\", \"2\", \"9\"), official_ratings_(millions) (11.45, 9.28, 9.29), type (\"Semi-final 2\", \"Auditions 2\", \"Semi-final 1\"), performance_id (7, 10, 1)", + "schema_without_content": "show : performance_id , result , attendance , show_id , if_first_show | orchestra : conductor_id , orchestra_id , orchestra , major_record_format , record_company , year_of_founded | director : name , year_of_work , nationality , age , conductor_id | maestro : name , year_of_work , nationality , age , conductor_id | performance : date , orchestra_id , share , weekly_rank , official_ratings_ , type , performance_id", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "years of work": "conductor.Year_of_Work" + } + }, + { + "question": "what is the #name of the conductor# who has #worked the greatest number of years# ?", + "db_id": "orchestra", + "orig_query": "select name from conductor order by year_of_work desc limit 1", + "schema_with_content": "orchestra : orchestra (\"Philharmonia Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\"), year_of_founded (2007.0, 2009.0, 2004.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (12, 2, 7), record_company (\"Philips Classics Records\", \"Philips\", \"Mercury Records\"), conductor_id (3, 1, 8) | performance : official_ratings_(millions) (9.29, 8.36, 7.28), weekly_rank (\"7\", \"13\", \"8\"), type (\"Auditions 1\", \"Auditions 1\", \"Auditions 3\"), performance_id (10, 3, 8), orchestra_id (9, 11, 9), share (\"44.7%\", \"44.7%\", \"28.0%\"), date (\"16 June\", \"15 June\", \"10 June\") | maestro : age (40, 63, 43), name (\"Seiji Ozawa\", \"Antal Brown\", \"Colin Davis\"), year_of_work (12, 11, 21), nationality (\"USA\", \"UK\", \"France\"), conductor_id (7, 4, 10) | show : result (\"T\", \"F\"), show_id (4, 4, 3), attendance (2431.0, 1925.0, 695.0), performance_id (3, 1, 3), if_first_show (\"Hampden Park\", \"Fir Park\", \"Glebe Park\") | director : age (40, 63, 43), name (\"Seiji Ozawa\", \"Antal Brown\", \"Colin Davis\"), year_of_work (12, 11, 21), nationality (\"USA\", \"UK\", \"France\"), conductor_id (7, 4, 10)", + "schema_without_content": "orchestra : orchestra , year_of_founded , major_record_format , orchestra_id , record_company , conductor_id | performance : official_ratings_ , weekly_rank , type , performance_id , orchestra_id , share , date | maestro : age , name , year_of_work , nationality , conductor_id | show : result , show_id , attendance , performance_id , if_first_show | director : age , name , year_of_work , nationality , conductor_id", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "worked the greatest number of years": "conductor.Year_of_Work" + } + }, + { + "question": "show the #names of conductors# and the #orchestras# they have conducted.", + "db_id": "orchestra", + "orig_query": "select t1.name, t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id", + "schema_with_content": "orchestra : conductor_id (6, 9, 5), orchestra (\"Kirov Orchestra\", \"Montreal Symphony Orchestra\", \"Royal Concertgebouw Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Columbia Masterworks\", \"Delos Records\", \"Columbia Masterworks\"), year_of_founded (2008.0, 2006.0, 2006.0), orchestra_id (5, 8, 9) | performance : date (\"14 June\", \"16 June\", \"17 June\"), orchestra_id (5, 9, 7), type (\"Auditions 2\", \"Semi-final 1\", \"Live final\"), weekly_rank (\"7\", \"1\", \"11\"), share (\"34%\", \"22.7%\", \"34.0%\"), performance_id (4, 11, 1), official_ratings_(millions) (7.51, 11.58, 11.45) | show : performance_id (4, 2, 2), show_id (2, 1, 2), attendance (1026.0, 695.0, 1026.0), if_first_show (\"Glebe Park\", \"Hampden Park\", \"St. Mirren Park\"), result (\"T\", \"F\") | director : year_of_work (21, 12, 11), age (63, 49, 40), conductor_id (5, 12, 5), nationality (\"USA\", \"UK\", \"France\"), name (\"Colin Davis\", \"Valeri Gergiev\", \"Paul Jorgensen\") | maestro : year_of_work (21, 12, 11), age (63, 49, 40), conductor_id (5, 12, 5), nationality (\"USA\", \"UK\", \"France\"), name (\"Colin Davis\", \"Valeri Gergiev\", \"Paul Jorgensen\")", + "schema_without_content": "orchestra : conductor_id , orchestra , major_record_format , record_company , year_of_founded , orchestra_id | performance : date , orchestra_id , type , weekly_rank , share , performance_id , official_ratings_ | show : performance_id , show_id , attendance , if_first_show , result | director : year_of_work , age , conductor_id , nationality , name | maestro : year_of_work , age , conductor_id , nationality , name", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra.Orchestra" + } + }, + { + "question": "show the #names of conductors# and the #orchestras# they have conducted.", + "db_id": "orchestra", + "orig_query": "select t1.name, t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id", + "schema_with_content": "symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2008.0, 2009.0, 2004.0), orchestra_id (1, 7, 10), record_company (\"Philips\", \"Deutsche Grammophon\", \"Deutsche Grammophon\"), orchestra (\"Orchestre de Paris\", \"Montreal Symphony Orchestra\", \"Kirov Orchestra\"), conductor_id (6, 11, 10) | conductor : age (49, 42, 49), year_of_work (11, 10, 12), name (\"Igor Stravinsky\", \"Valeri Gergiev\", \"Michael Tilson Thomas\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (11, 3, 10) | show : attendance (695.0, 1925.0, 1026.0), show_id (4, 5, 4), performance_id (3, 2, 2), if_first_show (\"Hampden Park\", \"Fir Park\", \"Hampden Park\"), result (\"T\", \"F\") | performance : orchestra_id (7, 5, 8), weekly_rank (\"11\", \"11\", \"1\"), date (\"15 June\", \"15 June\", \"12 June\"), share (\"29.4%\", \"22.7%\", \"29.4%\"), official_ratings_(millions) (8.36, 11.58, 6.73), performance_id (2, 1, 6), type (\"Auditions 3\", \"Series average\", \"Auditions 1\") | ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2008.0, 2009.0, 2004.0), orchestra_id (1, 7, 10), record_company (\"Philips\", \"Deutsche Grammophon\", \"Deutsche Grammophon\"), orchestra (\"Orchestre de Paris\", \"Montreal Symphony Orchestra\", \"Kirov Orchestra\"), conductor_id (6, 11, 10)", + "schema_without_content": "symphony : major_record_format , year_of_founded , orchestra_id , record_company , orchestra , conductor_id | conductor : age , year_of_work , name , nationality , conductor_id | show : attendance , show_id , performance_id , if_first_show , result | performance : orchestra_id , weekly_rank , date , share , official_ratings_ , performance_id , type | ensemble : major_record_format , year_of_founded , orchestra_id , record_company , orchestra , conductor_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra.Orchestra" + } + }, + { + "question": "what are the #names of conductors# as well as the corresonding #orchestras# that they have conducted?", + "db_id": "orchestra", + "orig_query": "select t1.name, t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id", + "schema_with_content": "show : if_first_show (\"Fir Park\", \"Fir Park\", \"Fir Park\"), performance_id (3, 1, 5), attendance (555.0, 1026.0, 1026.0), result (\"T\", \"F\"), show_id (5, 2, 3) | maestro : name (\"Igor Stravinsky\", \"Colin Davis\", \"Seiji Ozawa\"), age (50, 63, 43), conductor_id (1, 10, 8), nationality (\"USA\", \"UK\", \"France\"), year_of_work (21, 12, 12) | orchestra : orchestra (\"Columbia Symphony Orchestra\", \"Orchestre de Paris\", \"Royal Danish Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (3, 9, 9), record_company (\"Philips\", \"Kultur\", \"Philips Classics Records\"), conductor_id (9, 8, 2), year_of_founded (2004.0, 2006.0, 2002.0) | director : name (\"Igor Stravinsky\", \"Colin Davis\", \"Seiji Ozawa\"), age (50, 63, 43), conductor_id (1, 10, 8), nationality (\"USA\", \"UK\", \"France\"), year_of_work (21, 12, 12) | performance : orchestra_id (11, 8, 7), weekly_rank (\"13\", \"7\", \"13\"), performance_id (8, 5, 1), date (\"12 June\", \"15 June\", \"12 June\"), official_ratings_(millions) (6.73, 6.73, 7.28), share (\"40.9%\", \"40.9%\", \"38.1%\"), type (\"Semi-final 3\", \"Semi-final 3\", \"Auditions 3\")", + "schema_without_content": "show : if_first_show , performance_id , attendance , result , show_id | maestro : name , age , conductor_id , nationality , year_of_work | orchestra : orchestra , major_record_format , orchestra_id , record_company , conductor_id , year_of_founded | director : name , age , conductor_id , nationality , year_of_work | performance : orchestra_id , weekly_rank , performance_id , date , official_ratings_ , share , type", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra.Orchestra" + } + }, + { + "question": "what are the #names of conductors# as well as the corresonding #orchestras# that they have conducted?", + "db_id": "orchestra", + "orig_query": "select t1.name, t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id", + "schema_with_content": "conductor : year_of_work (16, 12, 12), name (\"Pierre Boulez\", \"Pierre Boulez\", \"Gerard Schwarz\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (4, 2, 4), age (63, 42, 49) | performance : share (\"38.1%\", \"44.7%\", \"43.7%\"), official_ratings_(millions) (11.58, 11.45, 6.73), orchestra_id (4, 2, 3), weekly_rank (\"15\", \"2\", \"12\"), performance_id (10, 7, 1), type (\"Semi-final 1\", \"Auditions 3\", \"Semi-final 3\"), date (\"13 June\", \"12 June\", \"14 June\") | symphony : conductor_id (2, 8, 4), record_company (\"Deutsche Grammophon\", \"Philips\", \"Mercury Records\"), orchestra (\"Seattle Symphony Orchestra\", \"Detroit Symphony Orchestra\", \"Chicago Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2003.0, 2009.0, 2008.0), orchestra_id (1, 10, 10) | ensemble : conductor_id (2, 8, 4), record_company (\"Deutsche Grammophon\", \"Philips\", \"Mercury Records\"), orchestra (\"Seattle Symphony Orchestra\", \"Detroit Symphony Orchestra\", \"Chicago Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2003.0, 2009.0, 2008.0), orchestra_id (1, 10, 10) | show : performance_id (5, 2, 3), attendance (1026.0, 1026.0, 555.0), show_id (4, 5, 4), if_first_show (\"St. Mirren Park\", \"Fir Park\", \"Glebe Park\"), result (\"T\", \"F\")", + "schema_without_content": "conductor : year_of_work , name , nationality , conductor_id , age | performance : share , official_ratings_ , orchestra_id , weekly_rank , performance_id , type , date | symphony : conductor_id , record_company , orchestra , major_record_format , year_of_founded , orchestra_id | ensemble : conductor_id , record_company , orchestra , major_record_format , year_of_founded , orchestra_id | show : performance_id , attendance , show_id , if_first_show , result", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra.Orchestra" + } + }, + { + "question": "show the #names of conductors# that have conducted more than one #orchestras# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1", + "schema_with_content": "orchestra : conductor_id (1, 1, 2), record_company (\"Kultur\", \"Columbia Masterworks\", \"Koch Records / Naxos Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"London Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"Seattle Symphony Orchestra\"), orchestra_id (7, 12, 2), year_of_founded (2002.0, 2009.0, 2008.0) | maestro : year_of_work (20, 6, 10), name (\"Valeri Gergiev\", \"Colin Davis\", \"Valeri Gergiev\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (7, 3, 7), age (41, 63, 49) | performance : type (\"Auditions 3\", \"Auditions 2\", \"Live final results\"), date (\"13 June\", \"9 June\", \"13 June\"), orchestra_id (4, 9, 1), official_ratings_(millions) (8.36, 9.29, 7.39), performance_id (8, 5, 8), weekly_rank (\"11\", \"TBC\", \"11\"), share (\"29.2%\", \"38.1%\", \"29.4%\") | show : show_id (2, 1, 5), result (\"T\", \"F\"), if_first_show (\"St. Mirren Park\", \"St. Mirren Park\", \"Hampden Park\"), performance_id (2, 3, 4), attendance (1026.0, 2431.0, 1925.0) | director : year_of_work (20, 6, 10), name (\"Valeri Gergiev\", \"Colin Davis\", \"Valeri Gergiev\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (7, 3, 7), age (41, 63, 49)", + "schema_without_content": "orchestra : conductor_id , record_company , major_record_format , orchestra , orchestra_id , year_of_founded | maestro : year_of_work , name , nationality , conductor_id , age | performance : type , date , orchestra_id , official_ratings_ , performance_id , weekly_rank , share | show : show_id , result , if_first_show , performance_id , attendance | director : year_of_work , name , nationality , conductor_id , age", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "show the #names of conductors# that have conducted more than one #orchestras# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1", + "schema_with_content": "show : performance_id (3, 2, 2), attendance (1026.0, 695.0, 695.0), if_first_show (\"St. Mirren Park\", \"St. Mirren Park\", \"Glebe Park\"), result (\"T\", \"F\"), show_id (3, 2, 1) | ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Kirov Orchestra\", \"Philharmonia Orchestra\", \"Montreal Symphony Orchestra\"), conductor_id (12, 5, 7), record_company (\"Koch Records / Naxos Records\", \"Philips Classics Records\", \"Decca Records\"), year_of_founded (2004.0, 2008.0, 2008.0), orchestra_id (6, 2, 1) | symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Kirov Orchestra\", \"Philharmonia Orchestra\", \"Montreal Symphony Orchestra\"), conductor_id (12, 5, 7), record_company (\"Koch Records / Naxos Records\", \"Philips Classics Records\", \"Decca Records\"), year_of_founded (2004.0, 2008.0, 2008.0), orchestra_id (6, 2, 1) | performance : date (\"10 June\", \"12 June\", \"17 June\"), official_ratings_(millions) (8.38, 11.45, 8.36), type (\"Live final\", \"Live final results\", \"Live final\"), share (\"28.0%\", \"29.4%\", \"28.0%\"), orchestra_id (2, 7, 7), performance_id (4, 4, 6), weekly_rank (\"9\", \"7\", \"12\") | conductor : nationality (\"USA\", \"UK\", \"France\"), year_of_work (6, 21, 10), name (\"Colin Davis\", \"Gerard Schwarz\", \"Michael Tilson Thomas\"), age (41, 43, 63), conductor_id (1, 4, 10)", + "schema_without_content": "show : performance_id , attendance , if_first_show , result , show_id | ensemble : major_record_format , orchestra , conductor_id , record_company , year_of_founded , orchestra_id | symphony : major_record_format , orchestra , conductor_id , record_company , year_of_founded , orchestra_id | performance : date , official_ratings_ , type , share , orchestra_id , performance_id , weekly_rank | conductor : nationality , year_of_work , name , age , conductor_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "what are the #names of conductors# who have conducted at more than one #orchestra# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1", + "schema_with_content": "maestro : conductor_id (9, 7, 1), age (63, 40, 50), name (\"Paul Jorgensen\", \"Robert Craft\", \"Michael Tilson Thomas\"), nationality (\"USA\", \"UK\", \"France\"), year_of_work (11, 21, 6) | orchestra : record_company (\"EMI\", \"Delos Records\", \"RCA\"), conductor_id (12, 9, 2), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (6, 1, 4), year_of_founded (2004.0, 2008.0, 2008.0), orchestra (\"Royal Danish Orchestra\", \"Royal Danish Orchestra\", \"Orchestre de Paris\") | performance : share (\"38.1%\", \"44.7%\", \"29.3%\"), date (\"11 June\", \"9 June\", \"9 June\"), type (\"Semi-final 3\", \"Live final results\", \"Auditions 1\"), weekly_rank (\"15\", \"9\", \"9\"), official_ratings_(millions) (8.36, 11.45, 6.73), orchestra_id (6, 1, 6), performance_id (4, 11, 4) | show : result (\"T\", \"F\"), performance_id (5, 1, 1), if_first_show (\"Fir Park\", \"Fir Park\", \"Hampden Park\"), attendance (1925.0, 1026.0, 1026.0), show_id (5, 3, 5) | director : conductor_id (9, 7, 1), age (63, 40, 50), name (\"Paul Jorgensen\", \"Robert Craft\", \"Michael Tilson Thomas\"), nationality (\"USA\", \"UK\", \"France\"), year_of_work (11, 21, 6)", + "schema_without_content": "maestro : conductor_id , age , name , nationality , year_of_work | orchestra : record_company , conductor_id , major_record_format , orchestra_id , year_of_founded , orchestra | performance : share , date , type , weekly_rank , official_ratings_ , orchestra_id , performance_id | show : result , performance_id , if_first_show , attendance , show_id | director : conductor_id , age , name , nationality , year_of_work", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestra": "orchestra" + } + }, + { + "question": "what are the #names of conductors# who have conducted at more than one #orchestra# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1", + "schema_with_content": "performance : weekly_rank (\"8\", \"1\", \"TBC\"), official_ratings_(millions) (9.28, 5.2, 8.38), type (\"Auditions 1\", \"Series average\", \"Auditions 4\"), performance_id (9, 2, 10), orchestra_id (11, 11, 1), date (\"16 June\", \"10 June\", \"11 June\"), share (\"29.4%\", \"34%\", \"22.7%\") | ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2007.0, 2003.0, 2007.0), orchestra (\"Royal Danish Orchestra\", \"San Francisco Symphony Orchestra\", \"Royal Danish Orchestra\"), conductor_id (2, 4, 12), orchestra_id (10, 7, 3), record_company (\"Columbia Masterworks\", \"EMI\", \"RCA\") | show : attendance (1925.0, 2431.0, 1925.0), result (\"T\", \"F\"), if_first_show (\"Fir Park\", \"Hampden Park\", \"St. Mirren Park\"), performance_id (2, 5, 1), show_id (5, 4, 3) | conductor : year_of_work (6, 11, 6), nationality (\"USA\", \"UK\", \"France\"), age (40, 63, 50), name (\"Antal Dor\u00c3\u00a1ti\", \"Valeri Gergiev\", \"Seiji Ozawa\"), conductor_id (11, 6, 9) | symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), year_of_founded (2007.0, 2003.0, 2007.0), orchestra (\"Royal Danish Orchestra\", \"San Francisco Symphony Orchestra\", \"Royal Danish Orchestra\"), conductor_id (2, 4, 12), orchestra_id (10, 7, 3), record_company (\"Columbia Masterworks\", \"EMI\", \"RCA\")", + "schema_without_content": "performance : weekly_rank , official_ratings_ , type , performance_id , orchestra_id , date , share | ensemble : major_record_format , year_of_founded , orchestra , conductor_id , orchestra_id , record_company | show : attendance , result , if_first_show , performance_id , show_id | conductor : year_of_work , nationality , age , name , conductor_id | symphony : major_record_format , year_of_founded , orchestra , conductor_id , orchestra_id , record_company", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestra": "orchestra" + } + }, + { + "question": "show the #name of the conductor# that has conducted the most number of #orchestras# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1", + "schema_with_content": "maestro : age (43, 49, 41), conductor_id (8, 7, 8), year_of_work (20, 10, 16), nationality (\"USA\", \"UK\", \"France\"), name (\"Colin Davis\", \"Pierre Boulez\", \"Antal Dor\u00c3\u00a1ti\") | orchestra : conductor_id (6, 4, 3), year_of_founded (2006.0, 2009.0, 2008.0), orchestra (\"Orchestre de Paris\", \"San Francisco Symphony Orchestra\", \"Montreal Symphony Orchestra\"), orchestra_id (11, 2, 2), record_company (\"Kultur\", \"Columbia Masterworks\", \"Philips\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | show : attendance (555.0, 555.0, 555.0), show_id (3, 3, 3), if_first_show (\"St. Mirren Park\", \"Hampden Park\", \"St. Mirren Park\"), performance_id (3, 2, 1), result (\"T\", \"F\") | director : age (43, 49, 41), conductor_id (8, 7, 8), year_of_work (20, 10, 16), nationality (\"USA\", \"UK\", \"France\"), name (\"Colin Davis\", \"Pierre Boulez\", \"Antal Dor\u00c3\u00a1ti\") | performance : weekly_rank (\"7\", \"15\", \"12\"), orchestra_id (8, 6, 9), official_ratings_(millions) (6.73, 11.58, 8.38), date (\"17 June\", \"14 June\", \"12 June\"), performance_id (2, 4, 9), type (\"Auditions 5\", \"Series average\", \"Series average\"), share (\"34.0%\", \"34.0%\", \"40.9%\")", + "schema_without_content": "maestro : age , conductor_id , year_of_work , nationality , name | orchestra : conductor_id , year_of_founded , orchestra , orchestra_id , record_company , major_record_format | show : attendance , show_id , if_first_show , performance_id , result | director : age , conductor_id , year_of_work , nationality , name | performance : weekly_rank , orchestra_id , official_ratings_ , date , performance_id , type , share", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "show the #name of the conductor# that has conducted the most number of #orchestras# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1", + "schema_with_content": "ensemble : conductor_id (3, 1, 10), orchestra_id (10, 6, 5), record_company (\"EMI\", \"EMI\", \"Deutsche Grammophon\"), year_of_founded (2003.0, 2008.0, 2008.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Orchestre de Paris\", \"Detroit Symphony Orchestra\", \"Royal Danish Orchestra\") | performance : performance_id (2, 6, 3), share (\"22.7%\", \"29.3%\", \"44.7%\"), type (\"Series average\", \"Auditions 3\", \"Live final results\"), orchestra_id (5, 9, 7), weekly_rank (\"1\", \"8\", \"2\"), date (\"14 June\", \"16 June\", \"9 June\"), official_ratings_(millions) (8.38, 11.45, 11.58) | conductor : nationality (\"USA\", \"UK\", \"France\"), name (\"Seiji Ozawa\", \"Colin Davis\", \"Igor Stravinsky\"), age (41, 43, 43), conductor_id (9, 11, 9), year_of_work (20, 21, 12) | symphony : conductor_id (3, 1, 10), orchestra_id (10, 6, 5), record_company (\"EMI\", \"EMI\", \"Deutsche Grammophon\"), year_of_founded (2003.0, 2008.0, 2008.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Orchestre de Paris\", \"Detroit Symphony Orchestra\", \"Royal Danish Orchestra\") | show : show_id (5, 1, 2), result (\"T\", \"F\"), attendance (555.0, 695.0, 1925.0), performance_id (5, 4, 2), if_first_show (\"Glebe Park\", \"St. Mirren Park\", \"Fir Park\")", + "schema_without_content": "ensemble : conductor_id , orchestra_id , record_company , year_of_founded , major_record_format , orchestra | performance : performance_id , share , type , orchestra_id , weekly_rank , date , official_ratings_ | conductor : nationality , name , age , conductor_id , year_of_work | symphony : conductor_id , orchestra_id , record_company , year_of_founded , major_record_format , orchestra | show : show_id , result , attendance , performance_id , if_first_show", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "what is the #name of the conductor# who has conducted the most #orchestras# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1", + "schema_with_content": "director : conductor_id (12, 5, 6), name (\"Pierre Boulez\", \"Robert Craft\", \"Valeri Gergiev\"), year_of_work (16, 6, 16), nationality (\"USA\", \"UK\", \"France\"), age (50, 50, 50) | orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"San Francisco Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"San Francisco Symphony Orchestra\"), year_of_founded (2007.0, 2003.0, 2007.0), conductor_id (7, 5, 3), orchestra_id (10, 3, 1), record_company (\"Deutsche Grammophon\", \"Koch Records / Naxos Records\", \"Mercury Records\") | performance : weekly_rank (\"TBC\", \"13\", \"15\"), type (\"Semi-final 2\", \"Semi-final 1\", \"Auditions 4\"), share (\"38.1%\", \"29.3%\", \"29.2%\"), orchestra_id (7, 6, 1), performance_id (3, 6, 6), official_ratings_(millions) (7.51, 7.51, 11.45), date (\"10 June\", \"17 June\", \"11 June\") | show : show_id (4, 2, 2), if_first_show (\"St. Mirren Park\", \"St. Mirren Park\", \"Hampden Park\"), performance_id (5, 1, 1), result (\"T\", \"F\"), attendance (695.0, 695.0, 1925.0) | maestro : conductor_id (12, 5, 6), name (\"Pierre Boulez\", \"Robert Craft\", \"Valeri Gergiev\"), year_of_work (16, 6, 16), nationality (\"USA\", \"UK\", \"France\"), age (50, 50, 50)", + "schema_without_content": "director : conductor_id , name , year_of_work , nationality , age | orchestra : major_record_format , orchestra , year_of_founded , conductor_id , orchestra_id , record_company | performance : weekly_rank , type , share , orchestra_id , performance_id , official_ratings_ , date | show : show_id , if_first_show , performance_id , result , attendance | maestro : conductor_id , name , year_of_work , nationality , age", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "what is the #name of the conductor# who has conducted the most #orchestras# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1", + "schema_with_content": "performance : orchestra_id (1, 10, 7), official_ratings_(millions) (8.38, 9.28, 9.28), type (\"Auditions 3\", \"Live final results\", \"Auditions 5\"), performance_id (3, 3, 1), date (\"9 June\", \"13 June\", \"2007\"), weekly_rank (\"7\", \"2\", \"11\"), share (\"34%\", \"43.7%\", \"38.1%\") | conductor : name (\"Valeri Gergiev\", \"Pierre Boulez\", \"Seiji Ozawa\"), age (40, 63, 47), conductor_id (4, 2, 3), nationality (\"USA\", \"UK\", \"France\"), year_of_work (6, 21, 16) | ensemble : conductor_id (6, 1, 2), orchestra (\"Royal Concertgebouw Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\"), orchestra_id (3, 1, 1), year_of_founded (2006.0, 2003.0, 2009.0), record_company (\"Columbia Masterworks\", \"Columbia Masterworks\", \"Mercury Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | show : attendance (555.0, 1026.0, 1026.0), result (\"T\", \"F\"), show_id (2, 1, 2), if_first_show (\"Hampden Park\", \"Fir Park\", \"Glebe Park\"), performance_id (2, 4, 1) | symphony : conductor_id (6, 1, 2), orchestra (\"Royal Concertgebouw Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\"), orchestra_id (3, 1, 1), year_of_founded (2006.0, 2003.0, 2009.0), record_company (\"Columbia Masterworks\", \"Columbia Masterworks\", \"Mercury Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\")", + "schema_without_content": "performance : orchestra_id , official_ratings_ , type , performance_id , date , weekly_rank , share | conductor : name , age , conductor_id , nationality , year_of_work | ensemble : conductor_id , orchestra , orchestra_id , year_of_founded , record_company , major_record_format | show : attendance , result , show_id , if_first_show , performance_id | symphony : conductor_id , orchestra , orchestra_id , year_of_founded , record_company , major_record_format", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the conductor": "conductor.Name", + "orchestras": "orchestra" + } + }, + { + "question": "please show the #name# of the conductor that has conducted #orchestras founded after 2008# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008", + "schema_with_content": "show : if_first_show (\"Glebe Park\", \"St. Mirren Park\", \"Hampden Park\"), show_id (5, 5, 5), result (\"T\", \"F\"), performance_id (2, 2, 3), attendance (1026.0, 1925.0, 2431.0) | maestro : conductor_id (6, 8, 7), nationality (\"USA\", \"UK\", \"France\"), name (\"Valeri Gergiev\", \"Colin Davis\", \"Paul Jorgensen\"), year_of_work (16, 10, 20), age (42, 41, 47) | director : conductor_id (6, 8, 7), nationality (\"USA\", \"UK\", \"France\"), name (\"Valeri Gergiev\", \"Colin Davis\", \"Paul Jorgensen\"), year_of_work (16, 10, 20), age (42, 41, 47) | performance : type (\"Semi-final 1\", \"Live final\", \"Auditions 1\"), performance_id (6, 3, 3), official_ratings_(millions) (9.29, 5.2, 9.28), date (\"11 June\", \"12 June\", \"16 June\"), share (\"40.9%\", \"34%\", \"28.0%\"), weekly_rank (\"13\", \"11\", \"11\"), orchestra_id (6, 7, 1) | orchestra : record_company (\"Columbia Masterworks\", \"Mercury Records\", \"Delos Records\"), year_of_founded (2003.0, 2003.0, 2002.0), conductor_id (11, 2, 4), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Columbia Symphony Orchestra\", \"Philharmonia Orchestra\", \"Montreal Symphony Orchestra\"), orchestra_id (10, 9, 7)", + "schema_without_content": "show : if_first_show , show_id , result , performance_id , attendance | maestro : conductor_id , nationality , name , year_of_work , age | director : conductor_id , nationality , name , year_of_work , age | performance : type , performance_id , official_ratings_ , date , share , weekly_rank , orchestra_id | orchestra : record_company , year_of_founded , conductor_id , major_record_format , orchestra , orchestra_id", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name": "conductor.Name", + "orchestras founded after 2008": "orchestra.Year_of_Founded" + } + }, + { + "question": "please show the #name# of the conductor that has conducted #orchestras founded after 2008# .", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008", + "schema_with_content": "ensemble : record_company (\"Philips\", \"Kultur\", \"Decca Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (9, 11, 7), orchestra (\"Detroit Symphony Orchestra\", \"Royal Danish Orchestra\", \"Seattle Symphony Orchestra\"), conductor_id (11, 5, 12), year_of_founded (2002.0, 2003.0, 2008.0) | performance : type (\"Live final results\", \"Semi-final 3\", \"Auditions 4\"), official_ratings_(millions) (7.39, 7.51, 8.38), weekly_rank (\"TBC\", \"TBC\", \"7\"), share (\"28.0%\", \"34%\", \"29.2%\"), performance_id (1, 11, 4), date (\"9 June\", \"16 June\", \"11 June\"), orchestra_id (10, 10, 5) | symphony : record_company (\"Philips\", \"Kultur\", \"Decca Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (9, 11, 7), orchestra (\"Detroit Symphony Orchestra\", \"Royal Danish Orchestra\", \"Seattle Symphony Orchestra\"), conductor_id (11, 5, 12), year_of_founded (2002.0, 2003.0, 2008.0) | show : performance_id (3, 5, 1), if_first_show (\"Glebe Park\", \"Glebe Park\", \"Fir Park\"), attendance (555.0, 1925.0, 695.0), result (\"T\", \"F\"), show_id (5, 5, 4) | conductor : name (\"Seiji Ozawa\", \"Antal Brown\", \"Seiji Ozawa\"), nationality (\"USA\", \"UK\", \"France\"), year_of_work (20, 6, 10), conductor_id (6, 4, 6), age (42, 41, 42)", + "schema_without_content": "ensemble : record_company , major_record_format , orchestra_id , orchestra , conductor_id , year_of_founded | performance : type , official_ratings_ , weekly_rank , share , performance_id , date , orchestra_id | symphony : record_company , major_record_format , orchestra_id , orchestra , conductor_id , year_of_founded | show : performance_id , if_first_show , attendance , result , show_id | conductor : name , nationality , year_of_work , conductor_id , age", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "name": "conductor.Name", + "orchestras founded after 2008": "orchestra.Year_of_Founded" + } + }, + { + "question": "what are the #names of conductors# who have conducted #orchestras founded after the year 2008# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008", + "schema_with_content": "director : name (\"Robert Craft\", \"Charles Dutoit\", \"Antal Dor\u00c3\u00a1ti\"), conductor_id (3, 8, 7), age (42, 49, 49), nationality (\"USA\", \"UK\", \"France\"), year_of_work (20, 6, 21) | maestro : name (\"Robert Craft\", \"Charles Dutoit\", \"Antal Dor\u00c3\u00a1ti\"), conductor_id (3, 8, 7), age (42, 49, 49), nationality (\"USA\", \"UK\", \"France\"), year_of_work (20, 6, 21) | show : result (\"T\", \"F\"), attendance (1925.0, 1026.0, 2431.0), if_first_show (\"St. Mirren Park\", \"Glebe Park\", \"St. Mirren Park\"), performance_id (5, 4, 4), show_id (2, 3, 5) | performance : date (\"10 June\", \"9 June\", \"10 June\"), type (\"Auditions 1\", \"Auditions 1\", \"Live final\"), performance_id (5, 9, 6), orchestra_id (1, 2, 3), share (\"44.7%\", \"34%\", \"34.0%\"), official_ratings_(millions) (8.38, 8.36, 11.58), weekly_rank (\"TBC\", \"11\", \"7\") | orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"RCA\", \"Columbia Masterworks\", \"Koch Records / Naxos Records\"), orchestra_id (10, 7, 10), conductor_id (7, 12, 3), orchestra (\"Detroit Symphony Orchestra\", \"Chicago Symphony Orchestra\", \"Kirov Orchestra\"), year_of_founded (2006.0, 2009.0, 2008.0)", + "schema_without_content": "director : name , conductor_id , age , nationality , year_of_work | maestro : name , conductor_id , age , nationality , year_of_work | show : result , attendance , if_first_show , performance_id , show_id | performance : date , type , performance_id , orchestra_id , share , official_ratings_ , weekly_rank | orchestra : major_record_format , record_company , orchestra_id , conductor_id , orchestra , year_of_founded", + "extra_map": null, + "extra_table_map": { + "conductor": [ + "director", + "maestro" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras founded after the year 2008": "orchestra.Year_of_Founded" + } + }, + { + "question": "what are the #names of conductors# who have conducted #orchestras founded after the year 2008# ?", + "db_id": "orchestra", + "orig_query": "select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008", + "schema_with_content": "conductor : nationality (\"USA\", \"UK\", \"France\"), conductor_id (10, 3, 7), age (41, 43, 63), name (\"Robert Craft\", \"Seiji Ozawa\", \"Robert Craft\"), year_of_work (11, 12, 11) | performance : type (\"Auditions 4\", \"Auditions 5\", \"Series average\"), weekly_rank (\"1\", \"15\", \"12\"), official_ratings_(millions) (7.51, 9.28, 5.2), date (\"15 June\", \"14 June\", \"12 June\"), share (\"29.4%\", \"40.9%\", \"38.1%\"), orchestra_id (6, 6, 3), performance_id (2, 11, 4) | show : if_first_show (\"Hampden Park\", \"Hampden Park\", \"St. Mirren Park\"), attendance (1026.0, 2431.0, 1026.0), show_id (1, 5, 4), performance_id (1, 5, 5), result (\"T\", \"F\") | ensemble : record_company (\"Delos Records\", \"Kultur\", \"Columbia Masterworks\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Philharmonia Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Danish Orchestra\"), year_of_founded (2004.0, 2003.0, 2004.0), conductor_id (5, 7, 5), orchestra_id (12, 4, 10) | symphony : record_company (\"Delos Records\", \"Kultur\", \"Columbia Masterworks\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Philharmonia Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Danish Orchestra\"), year_of_founded (2004.0, 2003.0, 2004.0), conductor_id (5, 7, 5), orchestra_id (12, 4, 10)", + "schema_without_content": "conductor : nationality , conductor_id , age , name , year_of_work | performance : type , weekly_rank , official_ratings_ , date , share , orchestra_id , performance_id | show : if_first_show , attendance , show_id , performance_id , result | ensemble : record_company , major_record_format , orchestra , year_of_founded , conductor_id , orchestra_id | symphony : record_company , major_record_format , orchestra , year_of_founded , conductor_id , orchestra_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of conductors": "conductor.Name", + "orchestras founded after the year 2008": "orchestra.Year_of_Founded" + } + }, + { + "question": "please show the different #record companies# and the corresponding #number of orchestras# .", + "db_id": "orchestra", + "orig_query": "select record_company, count(*) from orchestra group by record_company", + "schema_with_content": "ensemble : record_company (\"Koch Records / Naxos Records\", \"Koch Records / Naxos Records\", \"Kultur\"), year_of_founded (2007.0, 2009.0, 2004.0), conductor_id (2, 8, 10), orchestra_id (12, 11, 7), orchestra (\"Orchestre de Paris\", \"Kirov Orchestra\", \"San Francisco Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | performance : weekly_rank (\"15\", \"TBC\", \"11\"), performance_id (1, 2, 7), official_ratings_(millions) (9.28, 9.28, 7.28), date (\"13 June\", \"16 June\", \"11 June\"), share (\"43.7%\", \"29.4%\", \"44.7%\"), orchestra_id (1, 3, 1), type (\"Auditions 2\", \"Auditions 2\", \"Live final results\") | show : attendance (1925.0, 1925.0, 2431.0), result (\"T\", \"F\"), if_first_show (\"St. Mirren Park\", \"Hampden Park\", \"Glebe Park\"), show_id (5, 4, 4), performance_id (3, 4, 5) | symphony : record_company (\"Koch Records / Naxos Records\", \"Koch Records / Naxos Records\", \"Kultur\"), year_of_founded (2007.0, 2009.0, 2004.0), conductor_id (2, 8, 10), orchestra_id (12, 11, 7), orchestra (\"Orchestre de Paris\", \"Kirov Orchestra\", \"San Francisco Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | conductor : age (41, 63, 63), nationality (\"USA\", \"UK\", \"France\"), name (\"Valeri Gergiev\", \"Antal Dor\u00c3\u00a1ti\", \"Robert Craft\"), year_of_work (20, 12, 11), conductor_id (1, 9, 12)", + "schema_without_content": "ensemble : record_company , year_of_founded , conductor_id , orchestra_id , orchestra , major_record_format | performance : weekly_rank , performance_id , official_ratings_ , date , share , orchestra_id , type | show : attendance , result , if_first_show , show_id , performance_id | symphony : record_company , year_of_founded , conductor_id , orchestra_id , orchestra , major_record_format | conductor : age , nationality , name , year_of_work , conductor_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record companies": "orchestra.Record_Company", + "number of orchestras": "orchestra" + } + }, + { + "question": "how many #orchestras# does each #record company# manage?", + "db_id": "orchestra", + "orig_query": "select record_company, count(*) from orchestra group by record_company", + "schema_with_content": "symphony : year_of_founded (2003.0, 2003.0, 2008.0), conductor_id (3, 3, 2), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Montreal Symphony Orchestra\", \"Chicago Symphony Orchestra\", \"Royal Danish Orchestra\"), record_company (\"Kultur\", \"Columbia Masterworks\", \"Philips Classics Records\"), orchestra_id (8, 5, 4) | conductor : year_of_work (6, 6, 10), age (41, 40, 49), name (\"Gerard Schwarz\", \"Seiji Ozawa\", \"Michael Tilson Thomas\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (8, 7, 5) | ensemble : year_of_founded (2003.0, 2003.0, 2008.0), conductor_id (3, 3, 2), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Montreal Symphony Orchestra\", \"Chicago Symphony Orchestra\", \"Royal Danish Orchestra\"), record_company (\"Kultur\", \"Columbia Masterworks\", \"Philips Classics Records\"), orchestra_id (8, 5, 4) | performance : date (\"17 June\", \"13 June\", \"17 June\"), type (\"Auditions 4\", \"Live final results\", \"Live final results\"), share (\"22.7%\", \"22.7%\", \"38.1%\"), weekly_rank (\"1\", \"12\", \"11\"), orchestra_id (9, 10, 10), official_ratings_(millions) (8.38, 9.28, 8.38), performance_id (6, 3, 7) | show : show_id (1, 4, 4), performance_id (5, 5, 4), result (\"T\", \"F\"), if_first_show (\"Glebe Park\", \"Glebe Park\", \"Hampden Park\"), attendance (555.0, 695.0, 1925.0)", + "schema_without_content": "symphony : year_of_founded , conductor_id , major_record_format , orchestra , record_company , orchestra_id | conductor : year_of_work , age , name , nationality , conductor_id | ensemble : year_of_founded , conductor_id , major_record_format , orchestra , record_company , orchestra_id | performance : date , type , share , weekly_rank , orchestra_id , official_ratings_ , performance_id | show : show_id , performance_id , result , if_first_show , attendance", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "orchestras": "orchestra", + "record company": "orchestra.Record_Company" + } + }, + { + "question": "please show the #record formats of orchestras# in ascending order of count.", + "db_id": "orchestra", + "orig_query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", + "schema_with_content": "conductor : year_of_work (20, 21, 20), age (41, 41, 40), nationality (\"USA\", \"UK\", \"France\"), name (\"Valeri Gergiev\", \"Michael Tilson Thomas\", \"Antal Brown\"), conductor_id (4, 4, 2) | show : if_first_show (\"Fir Park\", \"St. Mirren Park\", \"Hampden Park\"), attendance (1026.0, 2431.0, 695.0), performance_id (4, 5, 2), show_id (2, 5, 4), result (\"T\", \"F\") | ensemble : orchestra (\"Seattle Symphony Orchestra\", \"Montreal Symphony Orchestra\", \"Philharmonia Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (3, 12, 11), record_company (\"Deutsche Grammophon\", \"Philips Classics Records\", \"EMI\"), year_of_founded (2004.0, 2002.0, 2008.0), conductor_id (7, 12, 12) | performance : share (\"29.2%\", \"34%\", \"29.3%\"), performance_id (3, 6, 9), date (\"15 June\", \"11 June\", \"11 June\"), orchestra_id (6, 11, 5), type (\"Live final results\", \"Auditions 2\", \"Semi-final 3\"), weekly_rank (\"11\", \"12\", \"13\"), official_ratings_(millions) (11.58, 11.45, 7.39) | symphony : orchestra (\"Seattle Symphony Orchestra\", \"Montreal Symphony Orchestra\", \"Philharmonia Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (3, 12, 11), record_company (\"Deutsche Grammophon\", \"Philips Classics Records\", \"EMI\"), year_of_founded (2004.0, 2002.0, 2008.0), conductor_id (7, 12, 12)", + "schema_without_content": "conductor : year_of_work , age , nationality , name , conductor_id | show : if_first_show , attendance , performance_id , show_id , result | ensemble : orchestra , major_record_format , orchestra_id , record_company , year_of_founded , conductor_id | performance : share , performance_id , date , orchestra_id , type , weekly_rank , official_ratings_ | symphony : orchestra , major_record_format , orchestra_id , record_company , year_of_founded , conductor_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record formats of orchestras": "orchestra.Major_Record_Format" + } + }, + { + "question": "what are the #major record formats of orchestras# , sorted by their frequency?", + "db_id": "orchestra", + "orig_query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", + "schema_with_content": "symphony : conductor_id (7, 12, 9), orchestra_id (3, 1, 1), year_of_founded (2004.0, 2004.0, 2003.0), record_company (\"Kultur\", \"RCA\", \"Delos Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Chicago Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"San Francisco Symphony Orchestra\") | ensemble : conductor_id (7, 12, 9), orchestra_id (3, 1, 1), year_of_founded (2004.0, 2004.0, 2003.0), record_company (\"Kultur\", \"RCA\", \"Delos Records\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Chicago Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"San Francisco Symphony Orchestra\") | show : performance_id (2, 1, 1), if_first_show (\"St. Mirren Park\", \"Glebe Park\", \"Hampden Park\"), result (\"T\", \"F\"), show_id (5, 5, 2), attendance (695.0, 1925.0, 1925.0) | performance : weekly_rank (\"13\", \"7\", \"9\"), official_ratings_(millions) (9.28, 6.73, 5.2), performance_id (8, 3, 5), orchestra_id (8, 3, 9), date (\"2007\", \"10 June\", \"2007\"), type (\"Semi-final 1\", \"Series average\", \"Auditions 1\"), share (\"29.4%\", \"28.0%\", \"43.7%\") | conductor : age (40, 49, 63), name (\"Igor Stravinsky\", \"Antal Brown\", \"Paul Jorgensen\"), conductor_id (5, 9, 3), year_of_work (20, 6, 12), nationality (\"USA\", \"UK\", \"France\")", + "schema_without_content": "symphony : conductor_id , orchestra_id , year_of_founded , record_company , major_record_format , orchestra | ensemble : conductor_id , orchestra_id , year_of_founded , record_company , major_record_format , orchestra | show : performance_id , if_first_show , result , show_id , attendance | performance : weekly_rank , official_ratings_ , performance_id , orchestra_id , date , type , share | conductor : age , name , conductor_id , year_of_work , nationality", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "major record formats of orchestras": "orchestra.Major_Record_Format" + } + }, + { + "question": "list the #record company# shared by the most number of #orchestras# .", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra group by record_company order by count(*) desc limit 1", + "schema_with_content": "symphony : conductor_id (5, 5, 3), record_company (\"RCA\", \"Mercury Records\", \"Kultur\"), orchestra (\"Royal Concertgebouw Orchestra\", \"Kirov Orchestra\", \"London Symphony Orchestra\"), year_of_founded (2008.0, 2009.0, 2003.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (10, 6, 7) | ensemble : conductor_id (5, 5, 3), record_company (\"RCA\", \"Mercury Records\", \"Kultur\"), orchestra (\"Royal Concertgebouw Orchestra\", \"Kirov Orchestra\", \"London Symphony Orchestra\"), year_of_founded (2008.0, 2009.0, 2003.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (10, 6, 7) | show : if_first_show (\"Glebe Park\", \"St. Mirren Park\", \"Hampden Park\"), performance_id (4, 5, 3), show_id (3, 1, 2), result (\"T\", \"F\"), attendance (1925.0, 1925.0, 2431.0) | conductor : age (41, 49, 49), nationality (\"USA\", \"UK\", \"France\"), conductor_id (12, 11, 1), name (\"Colin Davis\", \"Antal Dor\u00c3\u00a1ti\", \"Pierre Boulez\"), year_of_work (10, 20, 20) | performance : official_ratings_(millions) (6.73, 9.29, 7.39), date (\"15 June\", \"9 June\", \"2007\"), type (\"Auditions 1\", \"Live final\", \"Auditions 1\"), weekly_rank (\"8\", \"15\", \"11\"), share (\"34.0%\", \"38.1%\", \"40.9%\"), performance_id (11, 5, 8), orchestra_id (8, 7, 5)", + "schema_without_content": "symphony : conductor_id , record_company , orchestra , year_of_founded , major_record_format , orchestra_id | ensemble : conductor_id , record_company , orchestra , year_of_founded , major_record_format , orchestra_id | show : if_first_show , performance_id , show_id , result , attendance | conductor : age , nationality , conductor_id , name , year_of_work | performance : official_ratings_ , date , type , weekly_rank , share , performance_id , orchestra_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record company": "orchestra.Record_Company", + "orchestras": "orchestra" + } + }, + { + "question": "what is the #record company# used by the greatest number of #orchestras# ?", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra group by record_company order by count(*) desc limit 1", + "schema_with_content": "ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Mercury Records\", \"Kultur\", \"RCA\"), orchestra_id (7, 9, 2), conductor_id (1, 9, 7), year_of_founded (2008.0, 2006.0, 2008.0), orchestra (\"Montreal Symphony Orchestra\", \"Seattle Symphony Orchestra\", \"Chicago Symphony Orchestra\") | performance : orchestra_id (10, 3, 11), type (\"Auditions 2\", \"Semi-final 3\", \"Semi-final 3\"), share (\"29.3%\", \"22.7%\", \"44.7%\"), date (\"17 June\", \"2007\", \"9 June\"), weekly_rank (\"1\", \"15\", \"9\"), official_ratings_(millions) (5.2, 7.28, 7.39), performance_id (11, 4, 1) | conductor : age (41, 41, 47), conductor_id (5, 9, 11), year_of_work (10, 16, 21), name (\"Paul Jorgensen\", \"Paul Jorgensen\", \"Colin Davis\"), nationality (\"USA\", \"UK\", \"France\") | show : show_id (2, 2, 2), attendance (695.0, 555.0, 555.0), result (\"T\", \"F\"), if_first_show (\"Fir Park\", \"Hampden Park\", \"St. Mirren Park\"), performance_id (3, 2, 4) | symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Mercury Records\", \"Kultur\", \"RCA\"), orchestra_id (7, 9, 2), conductor_id (1, 9, 7), year_of_founded (2008.0, 2006.0, 2008.0), orchestra (\"Montreal Symphony Orchestra\", \"Seattle Symphony Orchestra\", \"Chicago Symphony Orchestra\")", + "schema_without_content": "ensemble : major_record_format , record_company , orchestra_id , conductor_id , year_of_founded , orchestra | performance : orchestra_id , type , share , date , weekly_rank , official_ratings_ , performance_id | conductor : age , conductor_id , year_of_work , name , nationality | show : show_id , attendance , result , if_first_show , performance_id | symphony : major_record_format , record_company , orchestra_id , conductor_id , year_of_founded , orchestra", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record company": "orchestra.Record_Company", + "orchestras": "orchestra" + } + }, + { + "question": "list the #names of orchestras# that have no #performance# .", + "db_id": "orchestra", + "orig_query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", + "schema_with_content": "ensemble : year_of_founded (2008.0, 2009.0, 2008.0), record_company (\"Columbia Masterworks\", \"Decca Records\", \"Philips Classics Records\"), orchestra (\"Seattle Symphony Orchestra\", \"Montreal Symphony Orchestra\", \"San Francisco Symphony Orchestra\"), orchestra_id (12, 12, 4), conductor_id (8, 7, 1), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | show : result (\"T\", \"F\"), performance_id (5, 5, 5), if_first_show (\"Fir Park\", \"Fir Park\", \"Glebe Park\"), attendance (555.0, 2431.0, 695.0), show_id (3, 4, 2) | performance : share (\"34%\", \"34%\", \"29.4%\"), type (\"Auditions 4\", \"Auditions 3\", \"Semi-final 1\"), orchestra_id (4, 5, 4), date (\"9 June\", \"2007\", \"11 June\"), official_ratings_(millions) (11.45, 6.73, 11.58), performance_id (9, 10, 3), weekly_rank (\"15\", \"11\", \"15\") | conductor : conductor_id (2, 10, 2), name (\"Paul Jorgensen\", \"Antal Brown\", \"Robert Craft\"), age (47, 40, 49), nationality (\"USA\", \"UK\", \"France\"), year_of_work (20, 20, 16) | symphony : year_of_founded (2008.0, 2009.0, 2008.0), record_company (\"Columbia Masterworks\", \"Decca Records\", \"Philips Classics Records\"), orchestra (\"Seattle Symphony Orchestra\", \"Montreal Symphony Orchestra\", \"San Francisco Symphony Orchestra\"), orchestra_id (12, 12, 4), conductor_id (8, 7, 1), major_record_format (\"CD\", \"CD / LP\", \"DVD\")", + "schema_without_content": "ensemble : year_of_founded , record_company , orchestra , orchestra_id , conductor_id , major_record_format | show : result , performance_id , if_first_show , attendance , show_id | performance : share , type , orchestra_id , date , official_ratings_ , performance_id , weekly_rank | conductor : conductor_id , name , age , nationality , year_of_work | symphony : year_of_founded , record_company , orchestra , orchestra_id , conductor_id , major_record_format", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "names of orchestras": "orchestra.Orchestra", + "performance": "performance" + } + }, + { + "question": "list the #names of orchestras# that have no #performance# .", + "db_id": "orchestra", + "orig_query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", + "schema_with_content": "show : result (\"T\", \"F\"), attendance (2431.0, 1026.0, 555.0), performance_id (3, 3, 2), show_id (3, 5, 4), if_first_show (\"Glebe Park\", \"St. Mirren Park\", \"St. Mirren Park\") | concert : official_ratings_(millions) (7.39, 6.73, 6.73), performance_id (8, 5, 11), type (\"Semi-final 2\", \"Auditions 4\", \"Semi-final 2\"), orchestra_id (4, 11, 7), date (\"2007\", \"16 June\", \"17 June\"), weekly_rank (\"15\", \"15\", \"13\"), share (\"34%\", \"34.0%\", \"44.7%\") | recital : official_ratings_(millions) (7.39, 6.73, 6.73), performance_id (8, 5, 11), type (\"Semi-final 2\", \"Auditions 4\", \"Semi-final 2\"), orchestra_id (4, 11, 7), date (\"2007\", \"16 June\", \"17 June\"), weekly_rank (\"15\", \"15\", \"13\"), share (\"34%\", \"34.0%\", \"44.7%\") | conductor : conductor_id (12, 2, 6), nationality (\"USA\", \"UK\", \"France\"), age (49, 42, 63), name (\"Michael Tilson Thomas\", \"Pierre Boulez\", \"Valeri Gergiev\"), year_of_work (10, 12, 16) | orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (3, 6, 9), record_company (\"Deutsche Grammophon\", \"Mercury Records\", \"Kultur\"), year_of_founded (2007.0, 2008.0, 2002.0), orchestra (\"Royal Concertgebouw Orchestra\", \"Philharmonia Orchestra\", \"Detroit Symphony Orchestra\"), orchestra_id (6, 12, 8)", + "schema_without_content": "show : result , attendance , performance_id , show_id , if_first_show | concert : official_ratings_ , performance_id , type , orchestra_id , date , weekly_rank , share | recital : official_ratings_ , performance_id , type , orchestra_id , date , weekly_rank , share | conductor : conductor_id , nationality , age , name , year_of_work | orchestra : major_record_format , conductor_id , record_company , year_of_founded , orchestra , orchestra_id", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of orchestras": "orchestra.Orchestra", + "performance": "performance" + } + }, + { + "question": "what are the #orchestras# that do not have any #performances# ?", + "db_id": "orchestra", + "orig_query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", + "schema_with_content": "show : show_id (3, 2, 4), result (\"T\", \"F\"), performance_id (5, 5, 4), if_first_show (\"Fir Park\", \"St. Mirren Park\", \"St. Mirren Park\"), attendance (555.0, 1026.0, 1925.0) | performance : type (\"Auditions 3\", \"Semi-final 3\", \"Semi-final 1\"), weekly_rank (\"2\", \"TBC\", \"9\"), official_ratings_(millions) (7.28, 11.45, 7.51), share (\"29.3%\", \"29.4%\", \"28.0%\"), orchestra_id (10, 1, 4), performance_id (10, 4, 11), date (\"9 June\", \"17 June\", \"11 June\") | symphony : record_company (\"RCA\", \"Philips Classics Records\", \"Kultur\"), conductor_id (10, 2, 4), year_of_founded (2003.0, 2009.0, 2004.0), orchestra (\"Philharmonia Orchestra\", \"Philharmonia Orchestra\", \"San Francisco Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (5, 6, 4) | conductor : year_of_work (16, 20, 20), nationality (\"USA\", \"UK\", \"France\"), name (\"Gerard Schwarz\", \"Michael Tilson Thomas\", \"Antal Brown\"), conductor_id (2, 5, 2), age (42, 41, 63) | ensemble : record_company (\"RCA\", \"Philips Classics Records\", \"Kultur\"), conductor_id (10, 2, 4), year_of_founded (2003.0, 2009.0, 2004.0), orchestra (\"Philharmonia Orchestra\", \"Philharmonia Orchestra\", \"San Francisco Symphony Orchestra\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (5, 6, 4)", + "schema_without_content": "show : show_id , result , performance_id , if_first_show , attendance | performance : type , weekly_rank , official_ratings_ , share , orchestra_id , performance_id , date | symphony : record_company , conductor_id , year_of_founded , orchestra , major_record_format , orchestra_id | conductor : year_of_work , nationality , name , conductor_id , age | ensemble : record_company , conductor_id , year_of_founded , orchestra , major_record_format , orchestra_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "orchestras": "orchestra.Orchestra", + "performances": "performance" + } + }, + { + "question": "what are the #orchestras# that do not have any #performances# ?", + "db_id": "orchestra", + "orig_query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", + "schema_with_content": "conductor : name (\"Igor Stravinsky\", \"Valeri Gergiev\", \"Paul Jorgensen\"), conductor_id (4, 6, 3), nationality (\"USA\", \"UK\", \"France\"), age (50, 42, 41), year_of_work (16, 11, 20) | show : performance_id (5, 2, 3), if_first_show (\"Fir Park\", \"Glebe Park\", \"Glebe Park\"), attendance (695.0, 695.0, 1026.0), show_id (4, 4, 4), result (\"T\", \"F\") | orchestra : orchestra_id (10, 1, 7), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Philips\", \"EMI\", \"Koch Records / Naxos Records\"), conductor_id (3, 5, 7), year_of_founded (2004.0, 2008.0, 2007.0), orchestra (\"Montreal Symphony Orchestra\", \"Montreal Symphony Orchestra\", \"San Francisco Symphony Orchestra\") | recital : weekly_rank (\"13\", \"1\", \"13\"), date (\"11 June\", \"13 June\", \"12 June\"), share (\"28.0%\", \"44.7%\", \"38.1%\"), performance_id (7, 6, 3), type (\"Semi-final 2\", \"Auditions 2\", \"Semi-final 2\"), orchestra_id (2, 4, 6), official_ratings_(millions) (7.28, 7.39, 11.58) | concert : weekly_rank (\"13\", \"1\", \"13\"), date (\"11 June\", \"13 June\", \"12 June\"), share (\"28.0%\", \"44.7%\", \"38.1%\"), performance_id (7, 6, 3), type (\"Semi-final 2\", \"Auditions 2\", \"Semi-final 2\"), orchestra_id (2, 4, 6), official_ratings_(millions) (7.28, 7.39, 11.58)", + "schema_without_content": "conductor : name , conductor_id , nationality , age , year_of_work | show : performance_id , if_first_show , attendance , show_id , result | orchestra : orchestra_id , major_record_format , record_company , conductor_id , year_of_founded , orchestra | recital : weekly_rank , date , share , performance_id , type , orchestra_id , official_ratings_ | concert : weekly_rank , date , share , performance_id , type , orchestra_id , official_ratings_", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "orchestras": "orchestra.Orchestra", + "performances": "performance" + } + }, + { + "question": "show the #record companies# shared by #orchestras founded before 2003 and after 2003# .", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", + "schema_with_content": "performance : official_ratings_(millions) (7.51, 7.51, 7.39), date (\"14 June\", \"15 June\", \"14 June\"), type (\"Auditions 1\", \"Auditions 4\", \"Auditions 2\"), weekly_rank (\"1\", \"15\", \"2\"), performance_id (2, 8, 5), orchestra_id (10, 5, 9), share (\"43.7%\", \"34%\", \"40.9%\") | show : performance_id (2, 1, 1), attendance (555.0, 2431.0, 695.0), result (\"T\", \"F\"), if_first_show (\"Hampden Park\", \"Fir Park\", \"Fir Park\"), show_id (5, 4, 5) | conductor : nationality (\"USA\", \"UK\", \"France\"), age (40, 43, 49), name (\"Gerard Schwarz\", \"Valeri Gergiev\", \"Antal Brown\"), conductor_id (11, 5, 10), year_of_work (11, 10, 20) | symphony : conductor_id (12, 4, 1), year_of_founded (2009.0, 2004.0, 2006.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Decca Records\", \"Decca Records\", \"EMI\"), orchestra_id (2, 12, 9), orchestra (\"Royal Concertgebouw Orchestra\", \"Chicago Symphony Orchestra\", \"Philharmonia Orchestra\") | ensemble : conductor_id (12, 4, 1), year_of_founded (2009.0, 2004.0, 2006.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Decca Records\", \"Decca Records\", \"EMI\"), orchestra_id (2, 12, 9), orchestra (\"Royal Concertgebouw Orchestra\", \"Chicago Symphony Orchestra\", \"Philharmonia Orchestra\")", + "schema_without_content": "performance : official_ratings_ , date , type , weekly_rank , performance_id , orchestra_id , share | show : performance_id , attendance , result , if_first_show , show_id | conductor : nationality , age , name , conductor_id , year_of_work | symphony : conductor_id , year_of_founded , major_record_format , record_company , orchestra_id , orchestra | ensemble : conductor_id , year_of_founded , major_record_format , record_company , orchestra_id , orchestra", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record companies": "orchestra.Record_Company", + "orchestras founded before 2003 and after 2003": "orchestra.Year_of_Founded" + } + }, + { + "question": "what are the #record companies# that are used by both #orchestras founded before 2003 and those founded after 2003# ?", + "db_id": "orchestra", + "orig_query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", + "schema_with_content": "conductor : age (41, 41, 40), conductor_id (6, 6, 7), name (\"Pierre Boulez\", \"Colin Davis\", \"Igor Stravinsky\"), year_of_work (21, 20, 6), nationality (\"USA\", \"UK\", \"France\") | performance : weekly_rank (\"7\", \"9\", \"11\"), performance_id (7, 5, 1), type (\"Live final results\", \"Live final results\", \"Auditions 2\"), share (\"29.2%\", \"34.0%\", \"28.0%\"), orchestra_id (6, 8, 1), official_ratings_(millions) (11.45, 7.28, 7.39), date (\"14 June\", \"9 June\", \"16 June\") | ensemble : record_company (\"Deutsche Grammophon\", \"Delos Records\", \"Koch Records / Naxos Records\"), orchestra (\"Royal Concertgebouw Orchestra\", \"Montreal Symphony Orchestra\", \"Columbia Symphony Orchestra\"), orchestra_id (8, 3, 3), year_of_founded (2002.0, 2007.0, 2009.0), conductor_id (4, 8, 12), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | show : result (\"T\", \"F\"), show_id (2, 3, 2), if_first_show (\"Fir Park\", \"St. Mirren Park\", \"St. Mirren Park\"), attendance (2431.0, 2431.0, 2431.0), performance_id (1, 1, 2) | symphony : record_company (\"Deutsche Grammophon\", \"Delos Records\", \"Koch Records / Naxos Records\"), orchestra (\"Royal Concertgebouw Orchestra\", \"Montreal Symphony Orchestra\", \"Columbia Symphony Orchestra\"), orchestra_id (8, 3, 3), year_of_founded (2002.0, 2007.0, 2009.0), conductor_id (4, 8, 12), major_record_format (\"CD\", \"CD / LP\", \"DVD\")", + "schema_without_content": "conductor : age , conductor_id , name , year_of_work , nationality | performance : weekly_rank , performance_id , type , share , orchestra_id , official_ratings_ , date | ensemble : record_company , orchestra , orchestra_id , year_of_founded , conductor_id , major_record_format | show : result , show_id , if_first_show , attendance , performance_id | symphony : record_company , orchestra , orchestra_id , year_of_founded , conductor_id , major_record_format", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "record companies": "orchestra.Record_Company", + "orchestras founded before 2003 and those founded after 2003": "orchestra.Year_of_Founded" + } + }, + { + "question": "find the number of #orchestras# whose #record format# is \"cd\" or \"dvd\".", + "db_id": "orchestra", + "orig_query": "select count(*) from orchestra where major_record_format = \"CD\" or major_record_format = \"DVD\"", + "schema_with_content": "conductor : conductor_id (12, 12, 11), nationality (\"USA\", \"UK\", \"France\"), name (\"Paul Jorgensen\", \"Colin Davis\", \"Michael Tilson Thomas\"), age (40, 50, 50), year_of_work (21, 16, 12) | symphony : record_company (\"EMI\", \"Deutsche Grammophon\", \"Deutsche Grammophon\"), orchestra_id (7, 6, 1), year_of_founded (2006.0, 2008.0, 2004.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (9, 6, 8), orchestra (\"Columbia Symphony Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\") | ensemble : record_company (\"EMI\", \"Deutsche Grammophon\", \"Deutsche Grammophon\"), orchestra_id (7, 6, 1), year_of_founded (2006.0, 2008.0, 2004.0), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), conductor_id (9, 6, 8), orchestra (\"Columbia Symphony Orchestra\", \"London Symphony Orchestra\", \"Chicago Symphony Orchestra\") | show : show_id (1, 2, 4), attendance (555.0, 1925.0, 695.0), performance_id (3, 5, 3), result (\"T\", \"F\"), if_first_show (\"Hampden Park\", \"Glebe Park\", \"Fir Park\") | performance : date (\"15 June\", \"13 June\", \"10 June\"), weekly_rank (\"11\", \"11\", \"13\"), official_ratings_(millions) (11.58, 7.28, 9.28), performance_id (1, 9, 6), type (\"Live final results\", \"Live final results\", \"Semi-final 2\"), orchestra_id (8, 10, 11), share (\"40.9%\", \"44.7%\", \"29.2%\")", + "schema_without_content": "conductor : conductor_id , nationality , name , age , year_of_work | symphony : record_company , orchestra_id , year_of_founded , major_record_format , conductor_id , orchestra | ensemble : record_company , orchestra_id , year_of_founded , major_record_format , conductor_id , orchestra | show : show_id , attendance , performance_id , result , if_first_show | performance : date , weekly_rank , official_ratings_ , performance_id , type , orchestra_id , share", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "orchestras": "orchestra", + "record format": "orchestra.Major_Record_Format" + } + }, + { + "question": "count the number of #orchestras# that have cd or dvd as their #record format# .", + "db_id": "orchestra", + "orig_query": "select count(*) from orchestra where major_record_format = \"CD\" or major_record_format = \"DVD\"", + "schema_with_content": "conductor : year_of_work (16, 12, 12), age (42, 49, 47), nationality (\"USA\", \"UK\", \"France\"), conductor_id (6, 4, 3), name (\"Paul Jorgensen\", \"Igor Stravinsky\", \"Igor Stravinsky\") | show : attendance (2431.0, 695.0, 2431.0), show_id (5, 3, 4), performance_id (5, 1, 4), result (\"T\", \"F\"), if_first_show (\"Hampden Park\", \"St. Mirren Park\", \"Fir Park\") | symphony : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Philips Classics Records\", \"Philips\", \"Mercury Records\"), year_of_founded (2004.0, 2004.0, 2009.0), orchestra (\"Royal Concertgebouw Orchestra\", \"Royal Danish Orchestra\", \"London Symphony Orchestra\"), orchestra_id (1, 1, 1), conductor_id (5, 1, 10) | ensemble : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), record_company (\"Philips Classics Records\", \"Philips\", \"Mercury Records\"), year_of_founded (2004.0, 2004.0, 2009.0), orchestra (\"Royal Concertgebouw Orchestra\", \"Royal Danish Orchestra\", \"London Symphony Orchestra\"), orchestra_id (1, 1, 1), conductor_id (5, 1, 10) | performance : weekly_rank (\"8\", \"15\", \"1\"), official_ratings_(millions) (8.36, 6.73, 9.28), share (\"34%\", \"28.0%\", \"29.3%\"), orchestra_id (6, 7, 2), type (\"Live final results\", \"Auditions 2\", \"Semi-final 2\"), date (\"2007\", \"10 June\", \"9 June\"), performance_id (6, 6, 8)", + "schema_without_content": "conductor : year_of_work , age , nationality , conductor_id , name | show : attendance , show_id , performance_id , result , if_first_show | symphony : major_record_format , record_company , year_of_founded , orchestra , orchestra_id , conductor_id | ensemble : major_record_format , record_company , year_of_founded , orchestra , orchestra_id , conductor_id | performance : weekly_rank , official_ratings_ , share , orchestra_id , type , date , performance_id", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "orchestras": "orchestra", + "record format": "orchestra.Major_Record_Format" + } + }, + { + "question": "show the #years# in which #orchestras# that have given more than one #performance# are founded.", + "db_id": "orchestra", + "orig_query": "select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1", + "schema_with_content": "symphony : record_company (\"Philips\", \"Columbia Masterworks\", \"EMI\"), year_of_founded (2003.0, 2009.0, 2009.0), conductor_id (7, 12, 8), orchestra_id (6, 11, 9), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Detroit Symphony Orchestra\", \"Seattle Symphony Orchestra\", \"San Francisco Symphony Orchestra\") | ensemble : record_company (\"Philips\", \"Columbia Masterworks\", \"EMI\"), year_of_founded (2003.0, 2009.0, 2009.0), conductor_id (7, 12, 8), orchestra_id (6, 11, 9), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"Detroit Symphony Orchestra\", \"Seattle Symphony Orchestra\", \"San Francisco Symphony Orchestra\") | show : result (\"T\", \"F\"), attendance (1026.0, 2431.0, 1026.0), if_first_show (\"St. Mirren Park\", \"Fir Park\", \"Hampden Park\"), performance_id (3, 2, 2), show_id (4, 5, 5) | performance : type (\"Auditions 4\", \"Auditions 2\", \"Auditions 4\"), performance_id (10, 3, 4), share (\"43.7%\", \"28.0%\", \"29.4%\"), official_ratings_(millions) (7.39, 7.39, 11.58), date (\"17 June\", \"13 June\", \"17 June\"), weekly_rank (\"8\", \"11\", \"TBC\"), orchestra_id (1, 7, 1) | conductor : year_of_work (16, 6, 6), conductor_id (8, 7, 3), nationality (\"USA\", \"UK\", \"France\"), name (\"Igor Stravinsky\", \"Igor Stravinsky\", \"Michael Tilson Thomas\"), age (43, 49, 41)", + "schema_without_content": "symphony : record_company , year_of_founded , conductor_id , orchestra_id , major_record_format , orchestra | ensemble : record_company , year_of_founded , conductor_id , orchestra_id , major_record_format , orchestra | show : result , attendance , if_first_show , performance_id , show_id | performance : type , performance_id , share , official_ratings_ , date , weekly_rank , orchestra_id | conductor : year_of_work , conductor_id , nationality , name , age", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "years": "orchestra.Year_of_Founded", + "orchestras": "orchestra", + "performance": "performance" + } + }, + { + "question": "show the #years# in which #orchestras# that have given more than one #performance# are founded.", + "db_id": "orchestra", + "orig_query": "select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1", + "schema_with_content": "show : attendance (2431.0, 555.0, 555.0), result (\"T\", \"F\"), performance_id (1, 3, 3), if_first_show (\"Hampden Park\", \"Glebe Park\", \"Fir Park\"), show_id (5, 1, 4) | orchestra : record_company (\"Decca Records\", \"EMI\", \"Kultur\"), conductor_id (4, 9, 9), major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra_id (1, 1, 2), year_of_founded (2002.0, 2007.0, 2003.0), orchestra (\"Orchestre de Paris\", \"Royal Concertgebouw Orchestra\", \"Detroit Symphony Orchestra\") | conductor : year_of_work (10, 16, 20), nationality (\"USA\", \"UK\", \"France\"), age (41, 41, 47), conductor_id (1, 2, 2), name (\"Valeri Gergiev\", \"Colin Davis\", \"Charles Dutoit\") | concert : performance_id (2, 9, 1), orchestra_id (3, 11, 11), weekly_rank (\"12\", \"7\", \"11\"), date (\"13 June\", \"2007\", \"16 June\"), type (\"Auditions 1\", \"Auditions 5\", \"Semi-final 2\"), official_ratings_(millions) (5.2, 9.29, 6.73), share (\"29.2%\", \"22.7%\", \"29.4%\") | recital : performance_id (2, 9, 1), orchestra_id (3, 11, 11), weekly_rank (\"12\", \"7\", \"11\"), date (\"13 June\", \"2007\", \"16 June\"), type (\"Auditions 1\", \"Auditions 5\", \"Semi-final 2\"), official_ratings_(millions) (5.2, 9.29, 6.73), share (\"29.2%\", \"22.7%\", \"29.4%\")", + "schema_without_content": "show : attendance , result , performance_id , if_first_show , show_id | orchestra : record_company , conductor_id , major_record_format , orchestra_id , year_of_founded , orchestra | conductor : year_of_work , nationality , age , conductor_id , name | concert : performance_id , orchestra_id , weekly_rank , date , type , official_ratings_ , share | recital : performance_id , orchestra_id , weekly_rank , date , type , official_ratings_ , share", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "years": "orchestra.Year_of_Founded", + "orchestras": "orchestra", + "performance": "performance" + } + }, + { + "question": "what are #years of founding for orchestras# that have had more than a single #performance# ?", + "db_id": "orchestra", + "orig_query": "select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1", + "schema_with_content": "conductor : year_of_work (16, 11, 11), nationality (\"USA\", \"UK\", \"France\"), age (47, 41, 42), name (\"Seiji Ozawa\", \"Robert Craft\", \"Charles Dutoit\"), conductor_id (4, 2, 11) | show : attendance (1925.0, 555.0, 695.0), performance_id (2, 5, 5), show_id (3, 4, 1), if_first_show (\"Fir Park\", \"Glebe Park\", \"Hampden Park\"), result (\"T\", \"F\") | performance : share (\"28.0%\", \"38.1%\", \"22.7%\"), official_ratings_(millions) (7.39, 11.58, 9.28), type (\"Auditions 3\", \"Live final\", \"Auditions 3\"), date (\"14 June\", \"2007\", \"12 June\"), performance_id (3, 3, 5), weekly_rank (\"TBC\", \"12\", \"13\"), orchestra_id (1, 3, 11) | ensemble : orchestra (\"London Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Concertgebouw Orchestra\"), conductor_id (8, 10, 5), orchestra_id (9, 10, 11), year_of_founded (2007.0, 2007.0, 2006.0), record_company (\"Philips\", \"Delos Records\", \"Philips\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\") | symphony : orchestra (\"London Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Concertgebouw Orchestra\"), conductor_id (8, 10, 5), orchestra_id (9, 10, 11), year_of_founded (2007.0, 2007.0, 2006.0), record_company (\"Philips\", \"Delos Records\", \"Philips\"), major_record_format (\"CD\", \"CD / LP\", \"DVD\")", + "schema_without_content": "conductor : year_of_work , nationality , age , name , conductor_id | show : attendance , performance_id , show_id , if_first_show , result | performance : share , official_ratings_ , type , date , performance_id , weekly_rank , orchestra_id | ensemble : orchestra , conductor_id , orchestra_id , year_of_founded , record_company , major_record_format | symphony : orchestra , conductor_id , orchestra_id , year_of_founded , record_company , major_record_format", + "extra_map": null, + "extra_table_map": { + "orchestra": [ + "ensemble", + "symphony" + ] + }, + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "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" + ] + }, + "column_linking_gt": { + "years of founding for orchestras": "orchestra.Year_of_Founded", + "performance": "performance" + } + }, + { + "question": "what are #years of founding for orchestras# that have had more than a single #performance# ?", + "db_id": "orchestra", + "orig_query": "select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1", + "schema_with_content": "orchestra : major_record_format (\"CD\", \"CD / LP\", \"DVD\"), orchestra (\"London Symphony Orchestra\", \"Columbia Symphony Orchestra\", \"Royal Concertgebouw Orchestra\"), record_company (\"Delos Records\", \"RCA\", \"Koch Records / Naxos Records\"), orchestra_id (6, 6, 10), year_of_founded (2004.0, 2006.0, 2009.0), conductor_id (7, 3, 8) | conductor : year_of_work (12, 6, 16), age (40, 49, 41), name (\"Michael Tilson Thomas\", \"Colin Davis\", \"Gerard Schwarz\"), nationality (\"USA\", \"UK\", \"France\"), conductor_id (9, 1, 6) | show : if_first_show (\"St. Mirren Park\", \"St. Mirren Park\", \"Glebe Park\"), attendance (1925.0, 555.0, 2431.0), show_id (1, 4, 5), result (\"T\", \"F\"), performance_id (5, 1, 4) | recital : date (\"17 June\", \"17 June\", \"10 June\"), official_ratings_(millions) (7.39, 6.73, 8.38), weekly_rank (\"7\", \"TBC\", \"2\"), share (\"29.2%\", \"40.9%\", \"38.1%\"), orchestra_id (7, 1, 6), performance_id (7, 2, 6), type (\"Series average\", \"Semi-final 2\", \"Semi-final 3\") | concert : date (\"17 June\", \"17 June\", \"10 June\"), official_ratings_(millions) (7.39, 6.73, 8.38), weekly_rank (\"7\", \"TBC\", \"2\"), share (\"29.2%\", \"40.9%\", \"38.1%\"), orchestra_id (7, 1, 6), performance_id (7, 2, 6), type (\"Series average\", \"Semi-final 2\", \"Semi-final 3\")", + "schema_without_content": "orchestra : major_record_format , orchestra , record_company , orchestra_id , year_of_founded , conductor_id | conductor : year_of_work , age , name , nationality , conductor_id | show : if_first_show , attendance , show_id , result , performance_id | recital : date , official_ratings_ , weekly_rank , share , orchestra_id , performance_id , type | concert : date , official_ratings_ , weekly_rank , share , orchestra_id , performance_id , type", + "extra_map": null, + "extra_table_map": { + "performance": [ + "recital", + "concert" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "years of founding for orchestras": "orchestra.Year_of_Founded", + "performance": "performance" + } + }, + { + "question": "what #grade is kyle# in?", + "db_id": "network_1", + "orig_query": "select grade from highschooler where name = \"Kyle\"", + "schema_with_content": "friend : friend_id (1661, 1934, 1661), student_id (1661, 1501, 1934) | Teenager : name (\"Jordan\", \"Jordan\", \"Austin\"), id (1501, 1689, 1501), grade (9, 10, 10) | likes : student_id (1934, 1641, 1247), liked_id (1689, 1689, 1689) | Student : name (\"Jordan\", \"Jordan\", \"Austin\"), id (1501, 1689, 1501), grade (9, 10, 10)", + "schema_without_content": "friend : friend_id , student_id | Teenager : name , id , grade | likes : student_id , liked_id | Student : name , id , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grade is Kyle": "Highschooler.grade" + } + }, + { + "question": "return the #grade for the high schooler# named kyle.", + "db_id": "network_1", + "orig_query": "select grade from highschooler where name = \"Kyle\"", + "schema_with_content": "Student : id (1709, 1381, 1709), name (\"Austin\", \"Austin\", \"Tiffany\"), grade (11, 9, 12) | likes : liked_id (1304, 1304, 1101), student_id (1025, 1709, 1501) | Teenager : id (1709, 1381, 1709), name (\"Austin\", \"Austin\", \"Tiffany\"), grade (11, 9, 12) | friend : friend_id (1468, 1934, 1782), student_id (1911, 1304, 1709)", + "schema_without_content": "Student : id , name , grade | likes : liked_id , student_id | Teenager : id , name , grade | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grade for the high schooler": "Highschooler.grade", + "name": "Highschooler.name" + } + }, + { + "question": "show the #names of all high schoolers in grade# 10.", + "db_id": "network_1", + "orig_query": "select name from highschooler where grade = 10", + "schema_with_content": "Student : name (\"Jordan\", \"Kyle\", \"Kyle\"), grade (10, 9, 11), id (1468, 1316, 1247) | Teenager : name (\"Jordan\", \"Kyle\", \"Kyle\"), grade (10, 9, 11), id (1468, 1316, 1247) | friend : friend_id (1381, 1782, 1661), student_id (1782, 1911, 1468) | likes : liked_id (1689, 1689, 1689), student_id (1247, 1247, 1934)", + "schema_without_content": "Student : name , grade , id | Teenager : name , grade , id | friend : friend_id , student_id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of all high schoolers in grade": "Highschooler.name" + } + }, + { + "question": "what are the #names of all high schoolers in grade# 10?", + "db_id": "network_1", + "orig_query": "select name from highschooler where grade = 10", + "schema_with_content": "Student : name (\"Jessica\", \"John\", \"Tiffany\"), id (1661, 1247, 1316), grade (11, 9, 9) | Teenager : name (\"Jessica\", \"John\", \"Tiffany\"), id (1661, 1247, 1316), grade (11, 9, 9) | friend : student_id (1510, 1782, 1911), friend_id (1661, 1247, 1316) | likes : student_id (1689, 1911, 1782), liked_id (1101, 1247, 1709)", + "schema_without_content": "Student : name , id , grade | Teenager : name , id , grade | friend : student_id , friend_id | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of all high schoolers in grade": "Highschooler.name" + } + }, + { + "question": "show the #id of the high schooler# named kyle.", + "db_id": "network_1", + "orig_query": "select id from highschooler where name = \"Kyle\"", + "schema_with_content": "friend : student_id (1247, 1501, 1247), friend_id (1911, 1247, 1025) | Teenager : id (1468, 1501, 1316), grade (11, 9, 10), name (\"John\", \"Kris\", \"Brittany\") | likes : student_id (1501, 1641, 1689), liked_id (1934, 1501, 1709) | Student : id (1468, 1501, 1316), grade (11, 9, 10), name (\"John\", \"Kris\", \"Brittany\")", + "schema_without_content": "friend : student_id , friend_id | Teenager : id , grade , name | likes : student_id , liked_id | Student : id , grade , name", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "ID of the high schooler": "Highschooler.ID", + "name": "Highschooler.name" + } + }, + { + "question": "what is kyle's #id# ?", + "db_id": "network_1", + "orig_query": "select id from highschooler where name = \"Kyle\"", + "schema_with_content": "friend : student_id (1689, 1247, 1782), friend_id (1025, 1709, 1661) | Teenager : id (1468, 1316, 1689), grade (12, 10, 10), name (\"Kris\", \"Jordan\", \"Austin\") | Student : id (1468, 1316, 1689), grade (12, 10, 10), name (\"Kris\", \"Jordan\", \"Austin\") | likes : liked_id (1709, 1101, 1501), student_id (1247, 1247, 1025)", + "schema_without_content": "friend : student_id , friend_id | Teenager : id , grade , name | Student : id , grade , name | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "Kyle": "Highschooler.name", + "id": "Highschooler.ID" + } + }, + { + "question": "how many #high schoolers# are there in #grade# 9 or 10?", + "db_id": "network_1", + "orig_query": "select count(*) from highschooler where grade = 9 or grade = 10", + "schema_with_content": "Teenager : name (\"Brittany\", \"Austin\", \"John\"), grade (9, 9, 10), id (1661, 1782, 1911) | likes : liked_id (1709, 1304, 1304), student_id (1709, 1911, 1709) | friend : student_id (1101, 1468, 1468), friend_id (1934, 1381, 1782) | Student : name (\"Brittany\", \"Austin\", \"John\"), grade (9, 9, 10), id (1661, 1782, 1911)", + "schema_without_content": "Teenager : name , grade , id | likes : liked_id , student_id | friend : student_id , friend_id | Student : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "high schoolers": "Highschooler", + "grade": "Highschooler.grade" + } + }, + { + "question": "count the number of #high schoolers in grades# 9 or 10.", + "db_id": "network_1", + "orig_query": "select count(*) from highschooler where grade = 9 or grade = 10", + "schema_with_content": "Teenager : id (1510, 1510, 1501), name (\"Brittany\", \"Austin\", \"Kyle\"), grade (12, 10, 12) | likes : student_id (1934, 1247, 1782), liked_id (1501, 1304, 1304) | Student : id (1510, 1510, 1501), name (\"Brittany\", \"Austin\", \"Kyle\"), grade (12, 10, 12) | friend : friend_id (1316, 1101, 1689), student_id (1782, 1101, 1661)", + "schema_without_content": "Teenager : id , name , grade | likes : student_id , liked_id | Student : id , name , grade | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "high schoolers in grades": "Highschooler.grade" + } + }, + { + "question": "show the number of #high schoolers for each grade# .", + "db_id": "network_1", + "orig_query": "select grade, count(*) from highschooler group by grade", + "schema_with_content": "likes : liked_id (1247, 1934, 1468), student_id (1911, 1501, 1782) | Student : id (1381, 1934, 1025), name (\"Haley\", \"Gabriel\", \"Jordan\"), grade (10, 10, 12) | friend : friend_id (1689, 1381, 1641), student_id (1911, 1468, 1911) | Teenager : id (1381, 1934, 1025), name (\"Haley\", \"Gabriel\", \"Jordan\"), grade (10, 10, 12)", + "schema_without_content": "likes : liked_id , student_id | Student : id , name , grade | friend : friend_id , student_id | Teenager : id , name , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "high schoolers for each grade": "Highschooler.grade" + } + }, + { + "question": "how many #high schoolers# are in each #grade# ?", + "db_id": "network_1", + "orig_query": "select grade, count(*) from highschooler group by grade", + "schema_with_content": "friend : friend_id (1381, 1641, 1381), student_id (1934, 1316, 1911) | Student : id (1782, 1911, 1501), name (\"Brittany\", \"Kyle\", \"Tiffany\"), grade (10, 10, 9) | likes : student_id (1501, 1641, 1025), liked_id (1101, 1709, 1304) | Teenager : id (1782, 1911, 1501), name (\"Brittany\", \"Kyle\", \"Tiffany\"), grade (10, 10, 9)", + "schema_without_content": "friend : friend_id , student_id | Student : id , name , grade | likes : student_id , liked_id | Teenager : id , name , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "high schoolers": "Highschooler", + "grade": "Highschooler.grade" + } + }, + { + "question": "which #grade# has the most #high schoolers# ?", + "db_id": "network_1", + "orig_query": "select grade from highschooler group by grade order by count(*) desc limit 1", + "schema_with_content": "Student : id (1689, 1025, 1641), name (\"Gabriel\", \"Tiffany\", \"Logan\"), grade (9, 9, 11) | Teenager : id (1689, 1025, 1641), name (\"Gabriel\", \"Tiffany\", \"Logan\"), grade (9, 9, 11) | likes : student_id (1501, 1934, 1025), liked_id (1689, 1468, 1247) | friend : friend_id (1101, 1316, 1501), student_id (1689, 1510, 1911)", + "schema_without_content": "Student : id , name , grade | Teenager : id , name , grade | likes : student_id , liked_id | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grade": "Highschooler.grade", + "high schoolers": "Highschooler" + } + }, + { + "question": "return the #grade# that has the greatest number of #high schoolers# .", + "db_id": "network_1", + "orig_query": "select grade from highschooler group by grade order by count(*) desc limit 1", + "schema_with_content": "Teenager : id (1025, 1025, 1911), name (\"Haley\", \"Austin\", \"Alexis\"), grade (11, 10, 12) | friend : student_id (1782, 1510, 1381), friend_id (1911, 1501, 1025) | Student : id (1025, 1025, 1911), name (\"Haley\", \"Austin\", \"Alexis\"), grade (11, 10, 12) | likes : student_id (1247, 1247, 1782), liked_id (1501, 1689, 1709)", + "schema_without_content": "Teenager : id , name , grade | friend : student_id , friend_id | Student : id , name , grade | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grade": "Highschooler.grade", + "high schoolers": "Highschooler" + } + }, + { + "question": "show me all #grades# that have at least 4 #students# .", + "db_id": "network_1", + "orig_query": "select grade from highschooler group by grade having count(*) >= 4", + "schema_with_content": "friend : student_id (1316, 1501, 1911), friend_id (1101, 1316, 1911) | Teenager : grade (10, 11, 12), id (1641, 1641, 1689), name (\"John\", \"Tiffany\", \"Brittany\") | Student : grade (10, 11, 12), id (1641, 1641, 1689), name (\"John\", \"Tiffany\", \"Brittany\") | likes : student_id (1934, 1934, 1689), liked_id (1934, 1304, 1501)", + "schema_without_content": "friend : student_id , friend_id | Teenager : grade , id , name | Student : grade , id , name | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grades": "Highschooler.grade", + "students": "Highschooler" + } + }, + { + "question": "which #grades# have 4 or more #high schoolers# ?", + "db_id": "network_1", + "orig_query": "select grade from highschooler group by grade having count(*) >= 4", + "schema_with_content": "Student : name (\"Andrew\", \"Brittany\", \"Kris\"), grade (12, 9, 10), id (1782, 1247, 1934) | Teenager : name (\"Andrew\", \"Brittany\", \"Kris\"), grade (12, 9, 10), id (1782, 1247, 1934) | likes : liked_id (1468, 1934, 1304), student_id (1782, 1501, 1689) | friend : student_id (1316, 1247, 1501), friend_id (1304, 1689, 1381)", + "schema_without_content": "Student : name , grade , id | Teenager : name , grade , id | likes : liked_id , student_id | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "grades": "Highschooler.grade", + "high schoolers": "Highschooler" + } + }, + { + "question": "show the #student ids# and #numbers of friends# corresponding to each.", + "db_id": "network_1", + "orig_query": "select student_id, count(*) from friend group by student_id", + "schema_with_content": "Acquaintance : student_id (1911, 1510, 1101), friend_id (1304, 1934, 1911) | Connection : student_id (1911, 1510, 1101), friend_id (1304, 1934, 1911) | likes : liked_id (1501, 1501, 1934), student_id (1316, 1689, 1709) | highschooler : id (1782, 1025, 1911), grade (11, 11, 10), name (\"Brittany\", \"Jordan\", \"Andrew\")", + "schema_without_content": "Acquaintance : student_id , friend_id | Connection : student_id , friend_id | likes : liked_id , student_id | highschooler : id , grade , name", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "student IDs": "Friend.student_id", + "numbers of friends": "Friend" + } + }, + { + "question": "how many #friends# does each #student# have?", + "db_id": "network_1", + "orig_query": "select student_id, count(*) from friend group by student_id", + "schema_with_content": "Acquaintance : friend_id (1468, 1468, 1934), student_id (1911, 1661, 1661) | Connection : friend_id (1468, 1468, 1934), student_id (1911, 1661, 1661) | highschooler : id (1501, 1501, 1661), grade (9, 11, 12), name (\"Jessica\", \"John\", \"Jessica\") | likes : student_id (1911, 1709, 1316), liked_id (1468, 1247, 1709)", + "schema_without_content": "Acquaintance : friend_id , student_id | Connection : friend_id , student_id | highschooler : id , grade , name | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "friends": "Friend", + "student": "Friend.student_id" + } + }, + { + "question": "show the #names of high school students# and their corresponding #number of friends# .", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "friend : friend_id (1911, 1782, 1501), student_id (1247, 1689, 1501) | Teenager : grade (9, 12, 9), name (\"Brittany\", \"Austin\", \"Andrew\"), id (1709, 1501, 1381) | Student : grade (9, 12, 9), name (\"Brittany\", \"Austin\", \"Andrew\"), id (1709, 1501, 1381) | likes : student_id (1501, 1911, 1025), liked_id (1468, 1501, 1934)", + "schema_without_content": "friend : friend_id , student_id | Teenager : grade , name , id | Student : grade , name , id | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high school students": "Highschooler.name", + "number of friends": "Friend" + } + }, + { + "question": "show the #names of high school students# and their corresponding #number of friends# .", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "highschooler : id (1381, 1247, 1689), grade (9, 10, 9), name (\"Cassandra\", \"John\", \"Kris\") | Acquaintance : friend_id (1709, 1641, 1934), student_id (1934, 1101, 1501) | likes : liked_id (1934, 1304, 1501), student_id (1689, 1911, 1316) | Connection : friend_id (1709, 1641, 1934), student_id (1934, 1101, 1501)", + "schema_without_content": "highschooler : id , grade , name | Acquaintance : friend_id , student_id | likes : liked_id , student_id | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of high school students": "Highschooler.name", + "number of friends": "Friend" + } + }, + { + "question": "what are the #names of the high schoolers# and how many #friends# does each have?", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "Student : name (\"Cassandra\", \"Jessica\", \"Austin\"), id (1782, 1661, 1911), grade (10, 12, 9) | likes : liked_id (1304, 1934, 1304), student_id (1247, 1911, 1247) | Teenager : name (\"Cassandra\", \"Jessica\", \"Austin\"), id (1782, 1661, 1911), grade (10, 12, 9) | friend : friend_id (1661, 1501, 1501), student_id (1247, 1911, 1661)", + "schema_without_content": "Student : name , id , grade | likes : liked_id , student_id | Teenager : name , id , grade | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of the high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what are the #names of the high schoolers# and how many #friends# does each have?", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "likes : liked_id (1304, 1468, 1934), student_id (1501, 1709, 1911) | Acquaintance : friend_id (1501, 1661, 1247), student_id (1911, 1709, 1661) | highschooler : grade (12, 11, 10), name (\"Jessica\", \"Jordan\", \"Austin\"), id (1247, 1501, 1911) | Connection : friend_id (1501, 1661, 1247), student_id (1911, 1709, 1661)", + "schema_without_content": "likes : liked_id , student_id | Acquaintance : friend_id , student_id | highschooler : grade , name , id | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of the high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "Student : grade (10, 12, 9), name (\"Logan\", \"Alexis\", \"John\"), id (1304, 1304, 1025) | Teenager : grade (10, 12, 9), name (\"Logan\", \"Alexis\", \"John\"), id (1304, 1304, 1025) | likes : student_id (1709, 1316, 1911), liked_id (1689, 1101, 1709) | friend : student_id (1709, 1689, 1381), friend_id (1782, 1934, 1641)", + "schema_without_content": "Student : grade , name , id | Teenager : grade , name , id | likes : student_id , liked_id | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "name of the high schooler": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "likes : liked_id (1501, 1304, 1304), student_id (1247, 1025, 1641) | Acquaintance : friend_id (1934, 1247, 1468), student_id (1782, 1468, 1510) | highschooler : grade (11, 12, 10), name (\"Cassandra\", \"Kyle\", \"Jordan\"), id (1709, 1101, 1381) | Connection : friend_id (1934, 1247, 1468), student_id (1782, 1468, 1510)", + "schema_without_content": "likes : liked_id , student_id | Acquaintance : friend_id , student_id | highschooler : grade , name , id | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "name of the high schooler": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "return the #name of the high school student# with the most friends.", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "likes : student_id (1641, 1709, 1934), liked_id (1247, 1101, 1304) | Teenager : id (1501, 1025, 1468), name (\"Tiffany\", \"Gabriel\", \"Kris\"), grade (12, 10, 11) | Student : id (1501, 1025, 1468), name (\"Tiffany\", \"Gabriel\", \"Kris\"), grade (12, 10, 11) | friend : student_id (1661, 1661, 1304), friend_id (1661, 1304, 1381)", + "schema_without_content": "likes : student_id , liked_id | Teenager : id , name , grade | Student : id , name , grade | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "name of the high school student": "Highschooler.name" + } + }, + { + "question": "return the #name of the high school student# with the most friends.", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "highschooler : grade (12, 10, 12), name (\"Haley\", \"Andrew\", \"Tiffany\"), id (1641, 1709, 1381) | Acquaintance : friend_id (1381, 1247, 1709), student_id (1381, 1661, 1304) | likes : student_id (1934, 1709, 1689), liked_id (1247, 1247, 1304) | Connection : friend_id (1381, 1247, 1709), student_id (1381, 1661, 1304)", + "schema_without_content": "highschooler : grade , name , id | Acquaintance : friend_id , student_id | likes : student_id , liked_id | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "name of the high school student": "Highschooler.name" + } + }, + { + "question": "show the #names of high schoolers# who have at least 3 #friends# .", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 3", + "schema_with_content": "likes : liked_id (1501, 1689, 1501), student_id (1782, 1934, 1501) | Teenager : id (1641, 1641, 1316), grade (10, 12, 10), name (\"Gabriel\", \"Austin\", \"Haley\") | Student : id (1641, 1641, 1316), grade (10, 12, 10), name (\"Gabriel\", \"Austin\", \"Haley\") | friend : student_id (1468, 1316, 1934), friend_id (1025, 1689, 1934)", + "schema_without_content": "likes : liked_id , student_id | Teenager : id , grade , name | Student : id , grade , name | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "show the #names of high schoolers# who have at least 3 #friends# .", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 3", + "schema_with_content": "Connection : friend_id (1911, 1782, 1316), student_id (1381, 1501, 1911) | Acquaintance : friend_id (1911, 1782, 1316), student_id (1381, 1501, 1911) | highschooler : name (\"Haley\", \"Gabriel\", \"Kris\"), grade (9, 9, 10), id (1689, 1316, 1468) | likes : liked_id (1501, 1501, 1101), student_id (1709, 1689, 1709)", + "schema_without_content": "Connection : friend_id , student_id | Acquaintance : friend_id , student_id | highschooler : name , grade , id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what are the #names of high schoolers# who have 3 or more #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 3", + "schema_with_content": "Student : grade (11, 11, 12), id (1510, 1911, 1641), name (\"John\", \"Brittany\", \"Andrew\") | friend : friend_id (1501, 1934, 1316), student_id (1101, 1709, 1381) | Teenager : grade (11, 11, 12), id (1510, 1911, 1641), name (\"John\", \"Brittany\", \"Andrew\") | likes : student_id (1641, 1501, 1247), liked_id (1468, 1468, 1101)", + "schema_without_content": "Student : grade , id , name | friend : friend_id , student_id | Teenager : grade , id , name | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what are the #names of high schoolers# who have 3 or more #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 3", + "schema_with_content": "highschooler : id (1782, 1911, 1025), name (\"Logan\", \"John\", \"Austin\"), grade (10, 11, 11) | Acquaintance : student_id (1934, 1782, 1934), friend_id (1468, 1304, 1501) | Connection : student_id (1934, 1782, 1934), friend_id (1468, 1304, 1501) | likes : liked_id (1247, 1304, 1101), student_id (1934, 1911, 1689)", + "schema_without_content": "highschooler : id , name , grade | Acquaintance : student_id , friend_id | Connection : student_id , friend_id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "show the #names of all of the high schooler# kyle's #friends# .", + "db_id": "network_1", + "orig_query": "select t3.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id join highschooler as t3 on t1.friend_id = t3.id where t2.name = \"Kyle\"", + "schema_with_content": "likes : student_id (1501, 1709, 1782), liked_id (1934, 1101, 1247) | Teenager : id (1934, 1501, 1381), name (\"Kyle\", \"Kyle\", \"Alexis\"), grade (9, 12, 12) | friend : student_id (1510, 1501, 1501), friend_id (1911, 1316, 1468) | Student : id (1934, 1501, 1381), name (\"Kyle\", \"Kyle\", \"Alexis\"), grade (9, 12, 12)", + "schema_without_content": "likes : student_id , liked_id | Teenager : id , name , grade | friend : student_id , friend_id | Student : id , name , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of all of the high schooler": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "show the #names of all of the high schooler# kyle's #friends# .", + "db_id": "network_1", + "orig_query": "select t3.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id join highschooler as t3 on t1.friend_id = t3.id where t2.name = \"Kyle\"", + "schema_with_content": "Acquaintance : friend_id (1304, 1661, 1641), student_id (1247, 1911, 1316) | Connection : friend_id (1304, 1661, 1641), student_id (1247, 1911, 1316) | likes : student_id (1025, 1247, 1025), liked_id (1304, 1101, 1304) | highschooler : grade (9, 12, 12), name (\"Tiffany\", \"Gabriel\", \"Alexis\"), id (1025, 1782, 1247)", + "schema_without_content": "Acquaintance : friend_id , student_id | Connection : friend_id , student_id | likes : student_id , liked_id | highschooler : grade , name , id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of all of the high schooler": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "return the #names of friends of the high school student kyle# .", + "db_id": "network_1", + "orig_query": "select t3.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id join highschooler as t3 on t1.friend_id = t3.id where t2.name = \"Kyle\"", + "schema_with_content": "Student : grade (10, 9, 12), id (1661, 1689, 1316), name (\"Kris\", \"Brittany\", \"Tiffany\") | Teenager : grade (10, 9, 12), id (1661, 1689, 1316), name (\"Kris\", \"Brittany\", \"Tiffany\") | likes : student_id (1689, 1689, 1247), liked_id (1247, 1709, 1247) | friend : student_id (1101, 1468, 1709), friend_id (1782, 1247, 1304)", + "schema_without_content": "Student : grade , id , name | Teenager : grade , id , name | likes : student_id , liked_id | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of friends of the high school student Kyle": "Highschooler.name" + } + }, + { + "question": "return the #names of friends of the high school student kyle# .", + "db_id": "network_1", + "orig_query": "select t3.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id join highschooler as t3 on t1.friend_id = t3.id where t2.name = \"Kyle\"", + "schema_with_content": "Connection : friend_id (1661, 1468, 1934), student_id (1247, 1381, 1782) | likes : student_id (1247, 1709, 1911), liked_id (1934, 1304, 1709) | highschooler : id (1381, 1316, 1661), grade (9, 10, 10), name (\"Logan\", \"Alexis\", \"Alexis\") | Acquaintance : friend_id (1661, 1468, 1934), student_id (1247, 1381, 1782)", + "schema_without_content": "Connection : friend_id , student_id | likes : student_id , liked_id | highschooler : id , grade , name | Acquaintance : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of friends of the high school student Kyle": "Highschooler.name" + } + }, + { + "question": "how many #friends# does the #high school student kyle# have?", + "db_id": "network_1", + "orig_query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "likes : liked_id (1689, 1101, 1101), student_id (1501, 1911, 1689) | Teenager : name (\"John\", \"Kyle\", \"Jordan\"), grade (10, 12, 9), id (1689, 1247, 1641) | Student : name (\"John\", \"Kyle\", \"Jordan\"), grade (10, 12, 9), id (1689, 1247, 1641) | friend : student_id (1304, 1381, 1510), friend_id (1934, 1709, 1661)", + "schema_without_content": "likes : liked_id , student_id | Teenager : name , grade , id | Student : name , grade , id | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "friends": "Friend", + "high school student Kyle": "Highschooler.name" + } + }, + { + "question": "how many #friends# does the #high school student kyle# have?", + "db_id": "network_1", + "orig_query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "highschooler : id (1025, 1661, 1709), grade (11, 9, 10), name (\"Alexis\", \"Tiffany\", \"Haley\") | Connection : friend_id (1782, 1501, 1304), student_id (1911, 1709, 1911) | likes : liked_id (1689, 1468, 1501), student_id (1316, 1501, 1934) | Acquaintance : friend_id (1782, 1501, 1304), student_id (1911, 1709, 1911)", + "schema_without_content": "highschooler : id , grade , name | Connection : friend_id , student_id | likes : liked_id , student_id | Acquaintance : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "friends": "Friend", + "high school student Kyle": "Highschooler.name" + } + }, + { + "question": "count the #number of friends kyle# has.", + "db_id": "network_1", + "orig_query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "friend : friend_id (1101, 1501, 1934), student_id (1934, 1661, 1510) | Teenager : grade (9, 12, 9), name (\"Alexis\", \"Jordan\", \"Gabriel\"), id (1468, 1782, 1709) | Student : grade (9, 12, 9), name (\"Alexis\", \"Jordan\", \"Gabriel\"), id (1468, 1782, 1709) | likes : student_id (1316, 1782, 1911), liked_id (1689, 1304, 1689)", + "schema_without_content": "friend : friend_id , student_id | Teenager : grade , name , id | Student : grade , name , id | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "number of friends Kyle": "Friend" + } + }, + { + "question": "count the #number of friends kyle# has.", + "db_id": "network_1", + "orig_query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "Acquaintance : friend_id (1934, 1661, 1501), student_id (1661, 1934, 1911) | Connection : friend_id (1934, 1661, 1501), student_id (1661, 1934, 1911) | highschooler : grade (9, 10, 12), id (1510, 1510, 1661), name (\"Haley\", \"Kyle\", \"Jordan\") | likes : liked_id (1709, 1689, 1247), student_id (1689, 1689, 1934)", + "schema_without_content": "Acquaintance : friend_id , student_id | Connection : friend_id , student_id | highschooler : grade , id , name | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "number of friends Kyle": "Friend" + } + }, + { + "question": "show #ids of all students# who do not have any #friends# .", + "db_id": "network_1", + "orig_query": "select id from highschooler except select student_id from friend", + "schema_with_content": "friend : student_id (1661, 1501, 1247), friend_id (1661, 1247, 1501) | likes : liked_id (1934, 1468, 1304), student_id (1641, 1689, 1709) | Student : name (\"Tiffany\", \"Gabriel\", \"Gabriel\"), id (1247, 1468, 1101), grade (12, 11, 12) | Teenager : name (\"Tiffany\", \"Gabriel\", \"Gabriel\"), id (1247, 1468, 1101), grade (12, 11, 12)", + "schema_without_content": "friend : student_id , friend_id | likes : liked_id , student_id | Student : name , id , grade | Teenager : name , id , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "ids of all students": "Highschooler.ID", + "friends": "Friend" + } + }, + { + "question": "what are the #ids of high school students# who do not have #friends# ?", + "db_id": "network_1", + "orig_query": "select id from highschooler except select student_id from friend", + "schema_with_content": "Teenager : id (1661, 1911, 1304), name (\"Alexis\", \"Brittany\", \"Haley\"), grade (10, 9, 10) | friend : student_id (1381, 1911, 1709), friend_id (1934, 1101, 1934) | Student : id (1661, 1911, 1304), name (\"Alexis\", \"Brittany\", \"Haley\"), grade (10, 9, 10) | likes : student_id (1247, 1911, 1709), liked_id (1101, 1101, 1304)", + "schema_without_content": "Teenager : id , name , grade | friend : student_id , friend_id | Student : id , name , grade | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "ids of high school students": "Highschooler.ID", + "friends": "Friend" + } + }, + { + "question": "show #names of all high school students# who do not have any #friends# .", + "db_id": "network_1", + "orig_query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", + "schema_with_content": "Teenager : grade (11, 9, 9), id (1510, 1101, 1934), name (\"Haley\", \"Andrew\", \"Kris\") | Student : grade (11, 9, 9), id (1510, 1101, 1934), name (\"Haley\", \"Andrew\", \"Kris\") | likes : student_id (1641, 1641, 1934), liked_id (1304, 1101, 1101) | friend : student_id (1381, 1689, 1510), friend_id (1316, 1101, 1689)", + "schema_without_content": "Teenager : grade , id , name | Student : grade , id , name | likes : student_id , liked_id | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of all high school students": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "show #names of all high school students# who do not have any #friends# .", + "db_id": "network_1", + "orig_query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", + "schema_with_content": "Connection : friend_id (1101, 1501, 1381), student_id (1510, 1101, 1501) | Acquaintance : friend_id (1101, 1501, 1381), student_id (1510, 1101, 1501) | highschooler : id (1911, 1911, 1641), grade (10, 9, 10), name (\"John\", \"Alexis\", \"Jordan\") | likes : student_id (1247, 1709, 1782), liked_id (1468, 1468, 1304)", + "schema_without_content": "Connection : friend_id , student_id | Acquaintance : friend_id , student_id | highschooler : id , grade , name | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of all high school students": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what are the #names of students# who have no #friends# ?", + "db_id": "network_1", + "orig_query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", + "schema_with_content": "friend : friend_id (1025, 1381, 1689), student_id (1661, 1501, 1304) | Student : grade (9, 10, 9), name (\"Kris\", \"Gabriel\", \"Gabriel\"), id (1501, 1468, 1510) | Teenager : grade (9, 10, 9), name (\"Kris\", \"Gabriel\", \"Gabriel\"), id (1501, 1468, 1510) | likes : liked_id (1501, 1689, 1468), student_id (1782, 1934, 1911)", + "schema_without_content": "friend : friend_id , student_id | Student : grade , name , id | Teenager : grade , name , id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "what are the #names of students# who have no #friends# ?", + "db_id": "network_1", + "orig_query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", + "schema_with_content": "highschooler : name (\"Kris\", \"Tiffany\", \"Andrew\"), grade (12, 12, 11), id (1661, 1101, 1101) | likes : liked_id (1101, 1101, 1247), student_id (1709, 1911, 1934) | Acquaintance : student_id (1381, 1782, 1468), friend_id (1381, 1709, 1247) | Connection : student_id (1381, 1782, 1468), friend_id (1381, 1709, 1247)", + "schema_without_content": "highschooler : name , grade , id | likes : liked_id , student_id | Acquaintance : student_id , friend_id | Connection : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name", + "friends": "Friend" + } + }, + { + "question": "show the #ids# of high schoolers who have #friends# and are also #liked# by someone else.", + "db_id": "network_1", + "orig_query": "select student_id from friend intersect select liked_id from likes", + "schema_with_content": "Connection : friend_id (1782, 1501, 1304), student_id (1689, 1247, 1381) | Acquaintance : friend_id (1782, 1501, 1304), student_id (1689, 1247, 1381) | likes : liked_id (1304, 1934, 1468), student_id (1025, 1782, 1501) | highschooler : grade (11, 9, 9), name (\"Kris\", \"Haley\", \"Austin\"), id (1689, 1101, 1934)", + "schema_without_content": "Connection : friend_id , student_id | Acquaintance : friend_id , student_id | likes : liked_id , student_id | highschooler : grade , name , id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "ids": "Highschooler.ID", + "friends": "Friend", + "liked": "Likes" + } + }, + { + "question": "what are the #ids of students# who both have #friends# and are #liked# ?", + "db_id": "network_1", + "orig_query": "select student_id from friend intersect select liked_id from likes", + "schema_with_content": "highschooler : grade (12, 11, 11), name (\"Jessica\", \"Jessica\", \"John\"), id (1101, 1641, 1911) | Connection : friend_id (1316, 1782, 1934), student_id (1501, 1689, 1510) | likes : student_id (1025, 1501, 1641), liked_id (1304, 1247, 1468) | Acquaintance : friend_id (1316, 1782, 1934), student_id (1501, 1689, 1510)", + "schema_without_content": "highschooler : grade , name , id | Connection : friend_id , student_id | likes : student_id , liked_id | Acquaintance : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "ids of students": "Highschooler.ID", + "friends": "Friend", + "liked": "Likes" + } + }, + { + "question": "show #name of all students# who have some friends and also are liked by someone else.", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "likes : student_id (1934, 1911, 1025), liked_id (1468, 1468, 1934) | Teenager : name (\"Logan\", \"Andrew\", \"Kris\"), id (1641, 1661, 1661), grade (10, 9, 11) | friend : friend_id (1709, 1934, 1468), student_id (1304, 1782, 1101) | Student : name (\"Logan\", \"Andrew\", \"Kris\"), id (1641, 1661, 1661), grade (10, 9, 11)", + "schema_without_content": "likes : student_id , liked_id | Teenager : name , id , grade | friend : friend_id , student_id | Student : name , id , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "name of all students": "Highschooler.name" + } + }, + { + "question": "show #name of all students# who have some friends and also are liked by someone else.", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "Acquaintance : student_id (1468, 1709, 1934), friend_id (1101, 1661, 1468) | highschooler : id (1641, 1304, 1247), name (\"Gabriel\", \"Jordan\", \"Logan\"), grade (10, 11, 12) | Connection : student_id (1468, 1709, 1934), friend_id (1101, 1661, 1468) | likes : liked_id (1304, 1101, 1689), student_id (1782, 1641, 1316)", + "schema_without_content": "Acquaintance : student_id , friend_id | highschooler : id , name , grade | Connection : student_id , friend_id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "name of all students": "Highschooler.name" + } + }, + { + "question": "show #name of all students# who have some friends and also are liked by someone else.", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "Favourites : student_id (1911, 1316, 1641), liked_id (1247, 1709, 1247) | Preferences : student_id (1911, 1316, 1641), liked_id (1247, 1709, 1247) | friend : friend_id (1661, 1661, 1709), student_id (1101, 1934, 1501) | highschooler : grade (9, 11, 9), name (\"Brittany\", \"Gabriel\", \"Austin\"), id (1782, 1782, 1911)", + "schema_without_content": "Favourites : student_id , liked_id | Preferences : student_id , liked_id | friend : friend_id , student_id | highschooler : grade , name , id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "name of all students": "Highschooler.name" + } + }, + { + "question": "what are the #names of high schoolers# who both have #friends# and are #liked# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "likes : student_id (1025, 1247, 1934), liked_id (1689, 1468, 1101) | friend : student_id (1316, 1101, 1381), friend_id (1025, 1689, 1934) | Teenager : name (\"John\", \"Austin\", \"Alexis\"), grade (10, 10, 12), id (1709, 1689, 1247) | Student : name (\"John\", \"Austin\", \"Alexis\"), grade (10, 10, 12), id (1709, 1689, 1247)", + "schema_without_content": "likes : student_id , liked_id | friend : student_id , friend_id | Teenager : name , grade , id | Student : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend", + "liked": "Likes" + } + }, + { + "question": "what are the #names of high schoolers# who both have #friends# and are #liked# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "highschooler : grade (11, 9, 10), name (\"Kyle\", \"Jessica\", \"Alexis\"), id (1641, 1304, 1101) | Acquaintance : friend_id (1782, 1101, 1025), student_id (1247, 1247, 1709) | likes : liked_id (1101, 1689, 1304), student_id (1934, 1247, 1316) | Connection : friend_id (1782, 1101, 1025), student_id (1247, 1247, 1709)", + "schema_without_content": "highschooler : grade , name , id | Acquaintance : friend_id , student_id | likes : liked_id , student_id | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend", + "liked": "Likes" + } + }, + { + "question": "what are the #names of high schoolers# who both have #friends# and are #liked# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id", + "schema_with_content": "Favourites : liked_id (1501, 1934, 1934), student_id (1247, 1025, 1709) | Preferences : liked_id (1501, 1934, 1934), student_id (1247, 1025, 1709) | highschooler : grade (9, 12, 10), id (1101, 1025, 1934), name (\"Jessica\", \"Jordan\", \"John\") | friend : friend_id (1381, 1381, 1934), student_id (1101, 1247, 1782)", + "schema_without_content": "Favourites : liked_id , student_id | Preferences : liked_id , student_id | highschooler : grade , id , name | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "friends": "Friend", + "liked": "Likes" + } + }, + { + "question": "count the #number of likes for each student id# .", + "db_id": "network_1", + "orig_query": "select student_id, count(*) from likes group by student_id", + "schema_with_content": "Favourites : student_id (1689, 1782, 1689), liked_id (1101, 1689, 1101) | friend : student_id (1468, 1247, 1316), friend_id (1025, 1661, 1381) | highschooler : grade (9, 10, 9), id (1468, 1661, 1911), name (\"Kyle\", \"Andrew\", \"Brittany\") | Preferences : student_id (1689, 1782, 1689), liked_id (1101, 1689, 1101)", + "schema_without_content": "Favourites : student_id , liked_id | friend : student_id , friend_id | highschooler : grade , id , name | Preferences : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "number of likes for each student id": "Likes.student_id" + } + }, + { + "question": "how many #likes# correspond to each #student id# ?", + "db_id": "network_1", + "orig_query": "select student_id, count(*) from likes group by student_id", + "schema_with_content": "Favourites : student_id (1247, 1501, 1247), liked_id (1709, 1101, 1689) | friend : student_id (1661, 1247, 1934), friend_id (1689, 1247, 1101) | highschooler : name (\"Alexis\", \"Brittany\", \"Jessica\"), id (1911, 1304, 1934), grade (11, 10, 10) | Preferences : student_id (1247, 1501, 1247), liked_id (1709, 1101, 1689)", + "schema_without_content": "Favourites : student_id , liked_id | friend : student_id , friend_id | highschooler : name , id , grade | Preferences : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "likes": "Likes", + "student id": "Likes.student_id" + } + }, + { + "question": "show the #names of high schoolers# who have #likes# , and numbers of likes for each.", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "Student : name (\"Tiffany\", \"Kyle\", \"Tiffany\"), grade (11, 9, 10), id (1689, 1304, 1510) | friend : student_id (1709, 1101, 1510), friend_id (1934, 1025, 1101) | likes : student_id (1911, 1501, 1025), liked_id (1501, 1501, 1709) | Teenager : name (\"Tiffany\", \"Kyle\", \"Tiffany\"), grade (11, 9, 10), id (1689, 1304, 1510)", + "schema_without_content": "Student : name , grade , id | friend : student_id , friend_id | likes : student_id , liked_id | Teenager : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "show the #names of high schoolers# who have #likes# , and numbers of likes for each.", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "Preferences : liked_id (1934, 1468, 1247), student_id (1911, 1911, 1641) | Favourites : liked_id (1934, 1468, 1247), student_id (1911, 1911, 1641) | highschooler : id (1381, 1661, 1661), grade (9, 12, 10), name (\"Kyle\", \"Alexis\", \"Gabriel\") | friend : student_id (1101, 1501, 1689), friend_id (1661, 1304, 1381)", + "schema_without_content": "Preferences : liked_id , student_id | Favourites : liked_id , student_id | highschooler : id , grade , name | friend : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "what are the #names of high schoolers# who have #likes# , and how many likes does each have?", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "Teenager : name (\"Logan\", \"Cassandra\", \"Haley\"), id (1304, 1468, 1709), grade (9, 10, 9) | friend : student_id (1934, 1510, 1316), friend_id (1934, 1304, 1316) | likes : liked_id (1468, 1689, 1304), student_id (1025, 1501, 1911) | Student : name (\"Logan\", \"Cassandra\", \"Haley\"), id (1304, 1468, 1709), grade (9, 10, 9)", + "schema_without_content": "Teenager : name , id , grade | friend : student_id , friend_id | likes : liked_id , student_id | Student : name , id , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "what are the #names of high schoolers# who have #likes# , and how many likes does each have?", + "db_id": "network_1", + "orig_query": "select t2.name, count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id", + "schema_with_content": "Preferences : student_id (1689, 1501, 1025), liked_id (1468, 1501, 1709) | Favourites : student_id (1689, 1501, 1025), liked_id (1468, 1501, 1709) | highschooler : name (\"Kris\", \"Haley\", \"Jessica\"), grade (12, 12, 11), id (1782, 1641, 1304) | friend : friend_id (1782, 1641, 1911), student_id (1934, 1911, 1316)", + "schema_without_content": "Preferences : student_id , liked_id | Favourites : student_id , liked_id | highschooler : name , grade , id | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "names of high schoolers": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of #likes# ?", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "friend : student_id (1934, 1934, 1304), friend_id (1316, 1468, 1689) | Teenager : grade (12, 10, 12), id (1782, 1661, 1101), name (\"Austin\", \"Gabriel\", \"Andrew\") | likes : liked_id (1689, 1304, 1304), student_id (1247, 1911, 1709) | Student : grade (12, 10, 12), id (1782, 1661, 1101), name (\"Austin\", \"Gabriel\", \"Andrew\")", + "schema_without_content": "friend : student_id , friend_id | Teenager : grade , id , name | likes : liked_id , student_id | Student : grade , id , name", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "name of the high schooler": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of #likes# ?", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "Preferences : student_id (1689, 1247, 1641), liked_id (1501, 1709, 1468) | Favourites : student_id (1689, 1247, 1641), liked_id (1501, 1709, 1468) | friend : friend_id (1782, 1247, 1381), student_id (1316, 1709, 1911) | highschooler : id (1316, 1101, 1782), grade (11, 10, 11), name (\"Kyle\", \"John\", \"John\")", + "schema_without_content": "Preferences : student_id , liked_id | Favourites : student_id , liked_id | friend : friend_id , student_id | highschooler : id , grade , name", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "name of the high schooler": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "give the #name of the student# with the most #likes# .", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "likes : liked_id (1247, 1101, 1247), student_id (1316, 1501, 1911) | Student : grade (10, 12, 10), name (\"Jordan\", \"Logan\", \"Andrew\"), id (1381, 1709, 1501) | friend : student_id (1468, 1316, 1247), friend_id (1025, 1304, 1316) | Teenager : grade (10, 12, 10), name (\"Jordan\", \"Logan\", \"Andrew\"), id (1381, 1709, 1501)", + "schema_without_content": "likes : liked_id , student_id | Student : grade , name , id | friend : student_id , friend_id | Teenager : grade , name , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "name of the student": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "give the #name of the student# with the most #likes# .", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id order by count(*) desc limit 1", + "schema_with_content": "Preferences : student_id (1316, 1025, 1641), liked_id (1247, 1934, 1709) | friend : friend_id (1501, 1782, 1709), student_id (1689, 1381, 1510) | highschooler : id (1381, 1661, 1689), name (\"John\", \"Andrew\", \"Jessica\"), grade (9, 12, 9) | Favourites : student_id (1316, 1025, 1641), liked_id (1247, 1934, 1709)", + "schema_without_content": "Preferences : student_id , liked_id | friend : friend_id , student_id | highschooler : id , name , grade | Favourites : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "name of the student": "Highschooler.name", + "likes": "Likes" + } + }, + { + "question": "show the #names of students# who have at least 2 likes.", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 2", + "schema_with_content": "Teenager : grade (11, 11, 12), name (\"Haley\", \"Haley\", \"Haley\"), id (1247, 1247, 1316) | friend : friend_id (1247, 1468, 1911), student_id (1661, 1782, 1934) | likes : liked_id (1101, 1101, 1247), student_id (1501, 1501, 1501) | Student : grade (11, 11, 12), name (\"Haley\", \"Haley\", \"Haley\"), id (1247, 1247, 1316)", + "schema_without_content": "Teenager : grade , name , id | friend : friend_id , student_id | likes : liked_id , student_id | Student : grade , name , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name" + } + }, + { + "question": "show the #names of students# who have at least 2 likes.", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 2", + "schema_with_content": "Preferences : liked_id (1468, 1101, 1501), student_id (1689, 1501, 1501) | highschooler : name (\"Haley\", \"Cassandra\", \"Jordan\"), id (1689, 1101, 1782), grade (9, 9, 11) | friend : student_id (1316, 1101, 1468), friend_id (1661, 1316, 1025) | Favourites : liked_id (1468, 1101, 1501), student_id (1689, 1501, 1501)", + "schema_without_content": "Preferences : liked_id , student_id | highschooler : name , id , grade | friend : student_id , friend_id | Favourites : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name" + } + }, + { + "question": "what are the #names of students# who have 2 or more likes?", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 2", + "schema_with_content": "likes : liked_id (1709, 1304, 1101), student_id (1782, 1689, 1316) | friend : student_id (1689, 1316, 1510), friend_id (1468, 1641, 1025) | Teenager : id (1501, 1316, 1661), name (\"Gabriel\", \"Haley\", \"Austin\"), grade (11, 12, 10) | Student : id (1501, 1316, 1661), name (\"Gabriel\", \"Haley\", \"Austin\"), grade (11, 12, 10)", + "schema_without_content": "likes : liked_id , student_id | friend : student_id , friend_id | Teenager : id , name , grade | Student : id , name , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name" + } + }, + { + "question": "what are the #names of students# who have 2 or more likes?", + "db_id": "network_1", + "orig_query": "select t2.name from likes as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id having count(*) >= 2", + "schema_with_content": "friend : friend_id (1316, 1661, 1661), student_id (1782, 1316, 1510) | Preferences : liked_id (1101, 1304, 1247), student_id (1911, 1782, 1934) | Favourites : liked_id (1101, 1304, 1247), student_id (1911, 1782, 1934) | highschooler : id (1304, 1304, 1247), grade (9, 10, 11), name (\"Haley\", \"Kyle\", \"Alexis\")", + "schema_without_content": "friend : friend_id , student_id | Preferences : liked_id , student_id | Favourites : liked_id , student_id | highschooler : id , grade , name", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "names of students": "Highschooler.name" + } + }, + { + "question": "show the #names# of students who have a #grade# higher than 5 and have at least 2 #friends# .", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.grade > 5 group by t1.student_id having count(*) >= 2", + "schema_with_content": "Teenager : name (\"Kris\", \"Cassandra\", \"Jessica\"), grade (12, 9, 9), id (1641, 1101, 1641) | friend : student_id (1689, 1468, 1101), friend_id (1911, 1641, 1101) | likes : liked_id (1101, 1689, 1247), student_id (1709, 1501, 1025) | Student : name (\"Kris\", \"Cassandra\", \"Jessica\"), grade (12, 9, 9), id (1641, 1101, 1641)", + "schema_without_content": "Teenager : name , grade , id | friend : student_id , friend_id | likes : liked_id , student_id | Student : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names": "Highschooler.name", + "grade": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "show the #names# of students who have a #grade# higher than 5 and have at least 2 #friends# .", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.grade > 5 group by t1.student_id having count(*) >= 2", + "schema_with_content": "Connection : friend_id (1501, 1641, 1689), student_id (1468, 1101, 1501) | highschooler : name (\"Haley\", \"Cassandra\", \"Austin\"), grade (9, 11, 9), id (1510, 1468, 1661) | Acquaintance : friend_id (1501, 1641, 1689), student_id (1468, 1101, 1501) | likes : liked_id (1709, 1501, 1468), student_id (1709, 1501, 1782)", + "schema_without_content": "Connection : friend_id , student_id | highschooler : name , grade , id | Acquaintance : friend_id , student_id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names": "Highschooler.name", + "grade": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what are the #names# of high schoolers who have a #grade# of over 5 and have 2 or more #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.grade > 5 group by t1.student_id having count(*) >= 2", + "schema_with_content": "friend : student_id (1911, 1934, 1304), friend_id (1025, 1304, 1304) | Student : name (\"Alexis\", \"Austin\", \"Cassandra\"), grade (10, 10, 12), id (1934, 1689, 1641) | likes : student_id (1247, 1709, 1316), liked_id (1468, 1304, 1689) | Teenager : name (\"Alexis\", \"Austin\", \"Cassandra\"), grade (10, 10, 12), id (1934, 1689, 1641)", + "schema_without_content": "friend : student_id , friend_id | Student : name , grade , id | likes : student_id , liked_id | Teenager : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "names": "Highschooler.name", + "grade": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what are the #names# of high schoolers who have a #grade# of over 5 and have 2 or more #friends# ?", + "db_id": "network_1", + "orig_query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.grade > 5 group by t1.student_id having count(*) >= 2", + "schema_with_content": "likes : liked_id (1468, 1304, 1468), student_id (1689, 1501, 1689) | Acquaintance : friend_id (1381, 1934, 1661), student_id (1782, 1911, 1304) | highschooler : id (1304, 1247, 1709), grade (10, 12, 10), name (\"Alexis\", \"Jordan\", \"Brittany\") | Connection : friend_id (1381, 1934, 1661), student_id (1782, 1911, 1304)", + "schema_without_content": "likes : liked_id , student_id | Acquaintance : friend_id , student_id | highschooler : id , grade , name | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "names": "Highschooler.name", + "grade": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "how many #likes# does #kyle# have?", + "db_id": "network_1", + "orig_query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "friend : student_id (1782, 1510, 1911), friend_id (1661, 1316, 1661) | Teenager : id (1934, 1641, 1689), grade (11, 10, 10), name (\"Haley\", \"Austin\", \"Cassandra\") | Student : id (1934, 1641, 1689), grade (11, 10, 10), name (\"Haley\", \"Austin\", \"Cassandra\") | likes : student_id (1934, 1782, 1025), liked_id (1934, 1501, 1468)", + "schema_without_content": "friend : student_id , friend_id | Teenager : id , grade , name | Student : id , grade , name | likes : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "likes": "Likes", + "Kyle": "Highschooler.name" + } + }, + { + "question": "how many #likes# does #kyle# have?", + "db_id": "network_1", + "orig_query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "friend : student_id (1934, 1247, 1381), friend_id (1911, 1468, 1101) | Preferences : student_id (1641, 1316, 1641), liked_id (1247, 1468, 1934) | highschooler : id (1247, 1782, 1709), grade (11, 11, 11), name (\"Cassandra\", \"Jordan\", \"Austin\") | Favourites : student_id (1641, 1316, 1641), liked_id (1247, 1468, 1934)", + "schema_without_content": "friend : student_id , friend_id | Preferences : student_id , liked_id | highschooler : id , grade , name | Favourites : student_id , liked_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "likes": "Likes", + "Kyle": "Highschooler.name" + } + }, + { + "question": "return the #number of likes that the high schooler named kyle# has.", + "db_id": "network_1", + "orig_query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "likes : student_id (1316, 1247, 1501), liked_id (1709, 1101, 1304) | friend : student_id (1247, 1247, 1934), friend_id (1661, 1661, 1101) | Teenager : name (\"Jessica\", \"Tiffany\", \"Kris\"), grade (12, 9, 9), id (1304, 1316, 1911) | Student : name (\"Jessica\", \"Tiffany\", \"Kris\"), grade (12, 9, 9), id (1304, 1316, 1911)", + "schema_without_content": "likes : student_id , liked_id | friend : student_id , friend_id | Teenager : name , grade , id | Student : name , grade , id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "number of likes that the high schooler named Kyle": "Likes" + } + }, + { + "question": "return the #number of likes that the high schooler named kyle# has.", + "db_id": "network_1", + "orig_query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"Kyle\"", + "schema_with_content": "Preferences : liked_id (1101, 1934, 1101), student_id (1316, 1641, 1316) | friend : student_id (1782, 1934, 1782), friend_id (1025, 1501, 1304) | highschooler : name (\"Cassandra\", \"Alexis\", \"Brittany\"), id (1709, 1689, 1782), grade (11, 12, 12) | Favourites : liked_id (1101, 1934, 1101), student_id (1316, 1641, 1316)", + "schema_without_content": "Preferences : liked_id , student_id | friend : student_id , friend_id | highschooler : name , id , grade | Favourites : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "likes": [ + "Preferences", + "Favourites" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "column_linking_gt": { + "number of likes that the high schooler named Kyle": "Likes" + } + }, + { + "question": "find the #average grade of all students# who have some #friends# .", + "db_id": "network_1", + "orig_query": "select avg(grade) from highschooler where id in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "likes : liked_id (1247, 1304, 1501), student_id (1025, 1501, 1911) | Student : id (1782, 1316, 1934), name (\"Andrew\", \"Andrew\", \"Alexis\"), grade (9, 12, 10) | Teenager : id (1782, 1316, 1934), name (\"Andrew\", \"Andrew\", \"Alexis\"), grade (9, 12, 10) | friend : friend_id (1641, 1247, 1381), student_id (1911, 1689, 1304)", + "schema_without_content": "likes : liked_id , student_id | Student : id , name , grade | Teenager : id , name , grade | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "average grade of all students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "find the #average grade of all students# who have some #friends# .", + "db_id": "network_1", + "orig_query": "select avg(grade) from highschooler where id in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "likes : liked_id (1689, 1934, 1468), student_id (1709, 1934, 1641) | Acquaintance : student_id (1911, 1661, 1468), friend_id (1468, 1381, 1661) | highschooler : grade (11, 12, 9), id (1510, 1025, 1501), name (\"Logan\", \"Alexis\", \"Cassandra\") | Connection : student_id (1911, 1661, 1468), friend_id (1468, 1381, 1661)", + "schema_without_content": "likes : liked_id , student_id | Acquaintance : student_id , friend_id | highschooler : grade , id , name | Connection : student_id , friend_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "average grade of all students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what is the #average grade of students# who have #friends# ?", + "db_id": "network_1", + "orig_query": "select avg(grade) from highschooler where id in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "Teenager : id (1510, 1934, 1247), name (\"Logan\", \"Andrew\", \"Kris\"), grade (11, 9, 11) | friend : friend_id (1782, 1247, 1689), student_id (1661, 1510, 1381) | likes : student_id (1316, 1934, 1782), liked_id (1709, 1689, 1468) | Student : id (1510, 1934, 1247), name (\"Logan\", \"Andrew\", \"Kris\"), grade (11, 9, 11)", + "schema_without_content": "Teenager : id , name , grade | friend : friend_id , student_id | likes : student_id , liked_id | Student : id , name , grade", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "average grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what is the #average grade of students# who have #friends# ?", + "db_id": "network_1", + "orig_query": "select avg(grade) from highschooler where id in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "highschooler : grade (12, 11, 10), name (\"Gabriel\", \"Haley\", \"Jessica\"), id (1501, 1468, 1934) | Acquaintance : student_id (1510, 1468, 1101), friend_id (1304, 1689, 1381) | Connection : student_id (1510, 1468, 1101), friend_id (1304, 1689, 1381) | likes : liked_id (1709, 1501, 1247), student_id (1782, 1911, 1025)", + "schema_without_content": "highschooler : grade , name , id | Acquaintance : student_id , friend_id | Connection : student_id , friend_id | likes : liked_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "average grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "find the #minimum grade of students# who have no #friends# .", + "db_id": "network_1", + "orig_query": "select min(grade) from highschooler where id not in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "Teenager : grade (12, 12, 11), id (1661, 1381, 1934), name (\"Andrew\", \"Kyle\", \"Alexis\") | Student : grade (12, 12, 11), id (1661, 1381, 1934), name (\"Andrew\", \"Kyle\", \"Alexis\") | likes : liked_id (1501, 1501, 1709), student_id (1247, 1934, 1025) | friend : friend_id (1709, 1911, 1661), student_id (1689, 1661, 1510)", + "schema_without_content": "Teenager : grade , id , name | Student : grade , id , name | likes : liked_id , student_id | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "minimum grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "find the #minimum grade of students# who have no #friends# .", + "db_id": "network_1", + "orig_query": "select min(grade) from highschooler where id not in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "likes : student_id (1501, 1709, 1641), liked_id (1468, 1934, 1501) | Acquaintance : friend_id (1304, 1661, 1641), student_id (1510, 1661, 1247) | highschooler : grade (11, 12, 11), id (1689, 1304, 1381), name (\"Austin\", \"Jessica\", \"Cassandra\") | Connection : friend_id (1304, 1661, 1641), student_id (1510, 1661, 1247)", + "schema_without_content": "likes : student_id , liked_id | Acquaintance : friend_id , student_id | highschooler : grade , id , name | Connection : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "minimum grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what is the #lowest grade of students# who do not have any #friends# ?", + "db_id": "network_1", + "orig_query": "select min(grade) from highschooler where id not in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "Student : id (1689, 1304, 1468), name (\"John\", \"Cassandra\", \"Haley\"), grade (12, 9, 10) | likes : student_id (1501, 1641, 1911), liked_id (1101, 1709, 1468) | Teenager : id (1689, 1304, 1468), name (\"John\", \"Cassandra\", \"Haley\"), grade (12, 9, 10) | friend : friend_id (1501, 1911, 1709), student_id (1911, 1381, 1316)", + "schema_without_content": "Student : id , name , grade | likes : student_id , liked_id | Teenager : id , name , grade | friend : friend_id , student_id", + "extra_map": null, + "extra_table_map": { + "highschooler": [ + "Student", + "Teenager" + ] + }, + "db_schema": { + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "column_linking_gt": { + "lowest grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "what is the #lowest grade of students# who do not have any #friends# ?", + "db_id": "network_1", + "orig_query": "select min(grade) from highschooler where id not in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", + "schema_with_content": "Connection : student_id (1501, 1709, 1501), friend_id (1934, 1911, 1304) | Acquaintance : student_id (1501, 1709, 1501), friend_id (1934, 1911, 1304) | likes : liked_id (1689, 1501, 1501), student_id (1689, 1934, 1911) | highschooler : name (\"Jordan\", \"Haley\", \"Jessica\"), id (1934, 1782, 1247), grade (11, 9, 11)", + "schema_without_content": "Connection : student_id , friend_id | Acquaintance : student_id , friend_id | likes : liked_id , student_id | highschooler : name , id , grade", + "extra_map": null, + "extra_table_map": { + "friend": [ + "Connection", + "Acquaintance" + ] + }, + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "column_linking_gt": { + "lowest grade of students": "Highschooler.grade", + "friends": "Friend" + } + }, + { + "question": "which #states# have both #owners# and #professionals# living there?", + "db_id": "dog_kennels", + "orig_query": "select state from owners intersect select state from professionals", + "schema_with_content": "treatments : treatment_id (4, 14, 12), dog_id (2, 13, 12), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-15 20:25:34\", \"2018-03-13 12:22:58\"), cost_of_treatment (852, 668, 429), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 9, 4) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-21 10:41:18\", \"2018-03-18 15:12:50\", \"2018-03-14 08:05:18\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 15:05:16\", \"2018-03-25 02:11:32\"), date_of_birth (\"2013-02-13 05:15:21\", \"2012-07-11 17:15:10\", \"2015-02-26 21:31:22\"), dog_id (1, 14, 1), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Merritt\", \"George\", \"Merritt\"), owner_id (14, 3, 12), age (\"2\", \"9\", \"9\"), gender (\"1\", \"0\"), date_arrived (\"2017-04-15 09:25:31\", \"2018-01-02 03:15:29\", \"2017-12-29 23:24:13\"), weight (\"1.72\", \"1.72\", \"9.8\") | Caretakers : first_name (\"Johann\", \"Rachelle\", \"Orlando\"), cell_number (\"739-136-7202\", \"+70(4)9217952551\", \"478.978.0729\"), state (\"NorthDakota\", \"Arizona\", \"NorthDakota\"), owner_id (1, 6, 11), zip_code (\"22693\", \"93165\", \"00589\"), home_phone (\"085.557.0379x84348\", \"066.264.7885\", \"130-796-4589x05454\"), city (\"Port Reannamouth\", \"South Afton\", \"Barrettburgh\"), street (\"9212 Rosenbaum Lights\", \"15828 Spencer Extensions\", \"89011 Kertzmann Spring Suite 642\"), email_address (\"lynn81@example.org\", \"wpfeffer@example.net\", \"lynn81@example.org\"), last_name (\"DuBuque\", \"Schmitt\", \"Fisher\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Guardians : first_name (\"Johann\", \"Rachelle\", \"Orlando\"), cell_number (\"739-136-7202\", \"+70(4)9217952551\", \"478.978.0729\"), state (\"NorthDakota\", \"Arizona\", \"NorthDakota\"), owner_id (1, 6, 11), zip_code (\"22693\", \"93165\", \"00589\"), home_phone (\"085.557.0379x84348\", \"066.264.7885\", \"130-796-4589x05454\"), city (\"Port Reannamouth\", \"South Afton\", \"Barrettburgh\"), street (\"9212 Rosenbaum Lights\", \"15828 Spencer Extensions\", \"89011 Kertzmann Spring Suite 642\"), email_address (\"lynn81@example.org\", \"wpfeffer@example.net\", \"lynn81@example.org\"), last_name (\"DuBuque\", \"Schmitt\", \"Fisher\") | professionals : home_phone (\"320-508-6023\", \"320-508-6023\", \"+02(1)0259033559\"), state (\"Mississippi\", \"NewMexico\", \"Alabama\"), first_name (\"Winfield\", \"Vernice\", \"Winfield\"), email_address (\"uboehm@example.org\", \"lucile.shanahan@example.org\", \"west.eula@example.net\"), zip_code (\"43129\", \"02281\", \"17902\"), street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), professional_id (1, 2, 9), cell_number (\"1-181-670-9466\", \"139-321-7313\", \"00230569697\"), last_name (\"Murazik\", \"Christiansen\", \"Frami\"), city (\"Domenickton\", \"South Rockyport\", \"New Maryjane\"), role_code (\"Employee\", \"Veterenarian\")", + "schema_without_content": "treatments : treatment_id , dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , professional_id | treatment_types : treatment_type_code , treatment_type_description | dogs : size_code , date_adopted , abandoned_yn , date_departed , date_of_birth , dog_id , breed_code , name , owner_id , age , gender , date_arrived , weight | Caretakers : first_name , cell_number 9217952551\", \"478.978.0729\", state , owner_id , zip_code , home_phone , city , street , email_address , last_name | sizes : size_description , size_code | breeds : breed_name , breed_code | charges : charge_id , charge_amount , charge_type | Guardians : first_name , cell_number 9217952551\", \"478.978.0729\", state , owner_id , zip_code , home_phone , city , street , email_address , last_name | professionals : home_phone 0259033559\", state , first_name , email_address , zip_code , street , professional_id , cell_number , last_name , city , role_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "states": "Owners.state", + "owners": "Owners", + "professionals": "Professionals" + } + }, + { + "question": "find the #states# where both #owners# and #professionals# live.", + "db_id": "dog_kennels", + "orig_query": "select state from owners intersect select state from professionals", + "schema_with_content": "Caretakers : email_address (\"hudson.favian@example.com\", \"christy49@example.org\", \"fschoen@example.net\"), state (\"Maryland\", \"Wisconsin\", \"Florida\"), cell_number (\"762.589.6117x1328\", \"+00(2)4323592985\", \"+70(4)9217952551\"), city (\"Beerton\", \"Lake Jennyferfort\", \"East Hillardberg\"), street (\"9212 Rosenbaum Lights\", \"60352 Kayleigh Crossing Suite 700\", \"1858 Jan Park\"), home_phone (\"(058)997-7627\", \"916.976.9480x13851\", \"(799)563-0260x454\"), owner_id (1, 12, 11), first_name (\"Lorenz\", \"Tre\", \"Kade\"), zip_code (\"86010\", \"22693\", \"86010\"), last_name (\"Mertz\", \"Rippin\", \"Schmitt\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | dogs : dog_id (15, 4, 13), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-06 16:32:11\", \"2018-03-23 16:02:04\"), abandoned_yn (\"1\", \"0\"), weight (\"2.18\", \"8.96\", \"5.16\"), date_departed (\"2018-03-25 02:47:40\", \"2018-03-25 04:42:14\", \"2018-03-25 06:29:10\"), name (\"Narciso\", \"Jesus\", \"Kacey\"), age (\"4\", \"6\", \"9\"), date_of_birth (\"2012-05-31 08:01:36\", \"2012-07-11 17:15:10\", \"2012-01-27 05:11:53\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (8, 1, 7), date_arrived (\"2017-04-20 00:58:55\", \"2017-09-08 20:10:13\", \"2017-07-25 15:19:07\"), gender (\"1\", \"0\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : professional_id (4, 6, 9), date_of_treatment (\"2018-03-16 10:27:36\", \"2018-03-16 10:27:36\", \"2018-03-01 04:14:46\"), treatment_id (4, 7, 13), dog_id (7, 10, 4), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (429, 656, 429) | Guardians : email_address (\"hudson.favian@example.com\", \"christy49@example.org\", \"fschoen@example.net\"), state (\"Maryland\", \"Wisconsin\", \"Florida\"), cell_number (\"762.589.6117x1328\", \"+00(2)4323592985\", \"+70(4)9217952551\"), city (\"Beerton\", \"Lake Jennyferfort\", \"East Hillardberg\"), street (\"9212 Rosenbaum Lights\", \"60352 Kayleigh Crossing Suite 700\", \"1858 Jan Park\"), home_phone (\"(058)997-7627\", \"916.976.9480x13851\", \"(799)563-0260x454\"), owner_id (1, 12, 11), first_name (\"Lorenz\", \"Tre\", \"Kade\"), zip_code (\"86010\", \"22693\", \"86010\"), last_name (\"Mertz\", \"Rippin\", \"Schmitt\") | professionals : home_phone (\"+71(6)2898266914\", \"346.594.3739\", \"(230)338-3342x585\"), zip_code (\"06646\", \"02281\", \"33020\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"962-983-8109x3509\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), last_name (\"Hyatt\", \"Kshlerin\", \"Pouros\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"lourdes.lowe@example.net\", \"schneider.kathryne@example.org\", \"west.eula@example.net\"), city (\"New Laurytown\", \"Domenickton\", \"Raynorfort\"), professional_id (9, 10, 2), first_name (\"Sigurd\", \"Ruben\", \"Sigurd\"), state (\"Mississippi\", \"NewMexico\", \"Utah\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\")", + "schema_without_content": "Caretakers : email_address , state , cell_number 4323592985\", \"+709217952551\", city , street , home_phone 997-7627\", \"916.976.9480x13851\", \"563-0260x454\", owner_id , first_name , zip_code , last_name | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description | dogs : dog_id , date_adopted , abandoned_yn , weight , date_departed , name , age , date_of_birth , size_code , breed_code , owner_id , date_arrived , gender | breeds : breed_code , breed_name | treatments : professional_id , date_of_treatment , treatment_id , dog_id , treatment_type_code , cost_of_treatment | Guardians : email_address , state , cell_number 4323592985\", \"+709217952551\", city , street , home_phone 997-7627\", \"916.976.9480x13851\", \"563-0260x454\", owner_id , first_name , zip_code , last_name | professionals : home_phone 2898266914\", \"346.594.3739\", \"338-3342x585\", zip_code , cell_number , street , last_name , role_code , email_address , city , professional_id , first_name , state | charges : charge_id , charge_amount , charge_type", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "states": "Owners.state", + "owners": "Owners", + "professionals": "Professionals" + } + }, + { + "question": "what is the #average age of the dogs# who have gone through any #treatments# ?", + "db_id": "dog_kennels", + "orig_query": "select avg(age) from dogs where dog_id in (select dog_id from treatments)", + "schema_with_content": "treatments : treatment_id (9, 5, 9), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (668, 147, 139), professional_id (4, 7, 14), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-02-28 17:09:43\", \"2018-03-04 20:33:43\"), dog_id (15, 12, 15) | professionals : professional_id (5, 15, 1), zip_code (\"41215\", \"02281\", \"98844\"), cell_number (\"499-434-0215x1628\", \"011.193.9081x3186\", \"328.842.3792\"), home_phone (\"1-609-566-2752x25197\", \"1-609-566-2752x25197\", \"1-609-566-2752x25197\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), last_name (\"Frami\", \"O'Reilly\", \"O'Reilly\"), email_address (\"schneider.kathryne@example.org\", \"uboehm@example.org\", \"cole.margarita@example.org\"), role_code (\"Employee\", \"Veterenarian\"), city (\"East Ila\", \"Kirastad\", \"Juddton\"), first_name (\"Taryn\", \"Ericka\", \"Velva\"), state (\"Wyoming\", \"NorthCarolina\", \"Wyoming\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : zip_code (\"93165\", \"93165\", \"36871\"), state (\"Virginia\", \"Wisconsin\", \"Washington\"), home_phone (\"(799)563-0260x454\", \"085.557.0379x84348\", \"066.264.7885\"), cell_number (\"1-626-264-7659x1697\", \"559.874.3011x989\", \"559.874.3011x989\"), last_name (\"Nicolas\", \"DuBuque\", \"DuBuque\"), owner_id (14, 1, 13), street (\"2635 Caitlyn Plains\", \"68118 Daniel Row\", \"89011 Kertzmann Spring Suite 642\"), email_address (\"margaretta.runte@example.net\", \"pearlie18@example.com\", \"fschoen@example.net\"), first_name (\"Lorenz\", \"Emelie\", \"Lorenz\"), city (\"Port Reannamouth\", \"Beerton\", \"Port Zackery\") | Canines : date_of_birth (\"2012-01-27 05:11:53\", \"2009-04-12 06:02:48\", \"2009-04-12 06:02:48\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"2\", \"1\", \"5\"), date_arrived (\"2017-05-06 08:03:52\", \"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\"), owner_id (8, 2, 2), name (\"Troy\", \"Hipolito\", \"Jeffrey\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-21 10:41:18\", \"2018-03-13 12:47:15\"), gender (\"1\", \"0\"), dog_id (6, 10, 1), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 02:11:32\", \"2018-03-25 05:07:47\"), weight (\"5.16\", \"2.18\", \"3.52\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Pooches : date_of_birth (\"2012-01-27 05:11:53\", \"2009-04-12 06:02:48\", \"2009-04-12 06:02:48\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"2\", \"1\", \"5\"), date_arrived (\"2017-05-06 08:03:52\", \"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\"), owner_id (8, 2, 2), name (\"Troy\", \"Hipolito\", \"Jeffrey\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-21 10:41:18\", \"2018-03-13 12:47:15\"), gender (\"1\", \"0\"), dog_id (6, 10, 1), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 02:11:32\", \"2018-03-25 05:07:47\"), weight (\"5.16\", \"2.18\", \"3.52\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "treatments : treatment_id , treatment_type_code , cost_of_treatment , professional_id , date_of_treatment , dog_id | professionals : professional_id , zip_code , cell_number , home_phone , street , last_name , email_address , role_code , city , first_name , state | treatment_types : treatment_type_description , treatment_type_code | owners : zip_code , state , home_phone 563-0260x454\", \"085.557.0379x84348\", \"066.264.7885\", cell_number , last_name , owner_id , street , email_address , first_name , city | Canines : date_of_birth , breed_code , age , date_arrived , owner_id , name , date_adopted , gender , dog_id , date_departed , weight , abandoned_yn , size_code | breeds : breed_name , breed_code | Pooches : date_of_birth , breed_code , age , date_arrived , owner_id , name , date_adopted , gender , dog_id , date_departed , weight , abandoned_yn , size_code | charges : charge_type , charge_id , charge_amount | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "average age of the dogs": "Dogs.age", + "treatments": "Treatments" + } + }, + { + "question": "what is the #average age of the dogs# who have gone through any #treatments# ?", + "db_id": "dog_kennels", + "orig_query": "select avg(age) from dogs where dog_id in (select dog_id from treatments)", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | procedures : dog_id (4, 2, 10), cost_of_treatment (945, 945, 945), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\"), treatment_id (7, 13, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 10) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | owners : home_phone (\"(544)034-1670\", \"(544)034-1670\", \"363.948.1090\"), city (\"Port Zackery\", \"Port Reannamouth\", \"New Margaretteborough\"), street (\"2635 Caitlyn Plains\", \"15828 Spencer Extensions\", \"68118 Daniel Row\"), zip_code (\"92406\", \"25609\", \"78297\"), state (\"SouthDakota\", \"Virginia\", \"Wisconsin\"), cell_number (\"1-739-421-2225x38148\", \"+70(4)9217952551\", \"1-626-264-7659x1697\"), first_name (\"Lorenz\", \"Gay\", \"Cindy\"), email_address (\"ykris@example.com\", \"hudson.favian@example.com\", \"christy49@example.org\"), last_name (\"Price\", \"Haley\", \"Nicolas\"), owner_id (14, 13, 1) | therapies : dog_id (4, 2, 10), cost_of_treatment (945, 945, 945), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\"), treatment_id (7, 13, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 10) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : gender (\"1\", \"0\"), owner_id (2, 10, 10), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"8.04\", \"7.57\", \"9.8\"), name (\"Troy\", \"Holden\", \"Jeffrey\"), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-10 15:06:43\", \"2018-03-23 16:02:04\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-12-29 23:24:13\", \"2017-10-25 00:55:34\", \"2017-06-25 10:14:05\"), date_of_birth (\"2015-02-26 21:31:22\", \"2008-10-09 22:38:53\", \"2008-05-30 12:51:34\"), age (\"9\", \"3\", \"5\"), dog_id (15, 4, 3), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-24 19:36:59\", \"2018-03-25 04:50:22\") | professionals : zip_code (\"07412\", \"77129\", \"02281\"), first_name (\"Taryn\", \"Ruben\", \"Danny\"), state (\"California\", \"Alabama\", \"Wisconsin\"), professional_id (15, 2, 4), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), email_address (\"deanna.schuster@example.com\", \"uboehm@example.org\", \"goyette.roosevelt@example.net\"), home_phone (\"+43(5)1132733868\", \"346.594.3739\", \"+71(6)2898266914\"), city (\"Borisside\", \"East Ila\", \"Kirastad\"), cell_number (\"609-405-2990\", \"139-321-7313\", \"011.193.9081x3186\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Watsica\", \"Pouros\", \"Tillman\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | procedures : dog_id , cost_of_treatment , date_of_treatment , treatment_id , treatment_type_code , professional_id | breeds : breed_code , breed_name | charges : charge_amount , charge_id , charge_type | owners : home_phone 034-1670\", \"034-1670\", \"363.948.1090\", city , street , zip_code , state , cell_number 9217952551\", \"1-626-264-7659x1697\", first_name , email_address , last_name , owner_id | therapies : dog_id , cost_of_treatment , date_of_treatment , treatment_id , treatment_type_code , professional_id | sizes : size_description , size_code | dogs : gender , owner_id , size_code , weight , name , date_adopted , breed_code , date_arrived , date_of_birth , age , dog_id , abandoned_yn , date_departed | professionals : zip_code , first_name , state , professional_id , street , email_address , home_phone 1132733868\", \"346.594.3739\", \"+712898266914\", city , cell_number , role_code , last_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "average age of the dogs": "Dogs.age", + "treatments": "Treatments" + } + }, + { + "question": "find the #average age of the dogs# who went through #treatments# .", + "db_id": "dog_kennels", + "orig_query": "select avg(age) from dogs where dog_id in (select dog_id from treatments)", + "schema_with_content": "charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatments : professional_id (9, 4, 7), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-13 12:22:58\", \"2018-03-11 04:23:15\"), dog_id (10, 2, 4), treatment_id (8, 3, 1), cost_of_treatment (407, 852, 429), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | Canines : date_arrived (\"2018-01-17 11:44:16\", \"2017-05-06 08:03:52\", \"2018-01-17 11:44:16\"), date_of_birth (\"2013-02-20 14:50:56\", \"2018-03-17 04:05:12\", \"2013-02-20 14:50:56\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-06 16:32:11\", \"2018-03-21 10:41:18\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"8.04\", \"9.48\", \"4.36\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-24 19:36:59\", \"2018-03-25 02:47:40\"), dog_id (4, 12, 7), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (7, 12, 2), gender (\"1\", \"0\"), name (\"Hipolito\", \"Narciso\", \"Jeffrey\"), age (\"4\", \"9\", \"8\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : email_address (\"pearlie18@example.com\", \"angeline99@example.com\", \"lynn81@example.org\"), street (\"15828 Spencer Extensions\", \"89011 Kertzmann Spring Suite 642\", \"89011 Kertzmann Spring Suite 642\"), home_phone (\"916.976.9480x13851\", \"916.976.9480x13851\", \"318-052-6573\"), first_name (\"Cindy\", \"Tre\", \"Emelie\"), owner_id (11, 7, 8), zip_code (\"02647\", \"86010\", \"45244\"), last_name (\"Fisher\", \"Hamill\", \"Hamill\"), cell_number (\"(257)399-3116\", \"+70(4)9217952551\", \"121.381.3316x6535\"), city (\"Port Reannamouth\", \"Lake Jennyferfort\", \"Beerton\"), state (\"SouthDakota\", \"Pennsylvania\", \"NewYork\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Pooches : date_arrived (\"2018-01-17 11:44:16\", \"2017-05-06 08:03:52\", \"2018-01-17 11:44:16\"), date_of_birth (\"2013-02-20 14:50:56\", \"2018-03-17 04:05:12\", \"2013-02-20 14:50:56\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-06 16:32:11\", \"2018-03-21 10:41:18\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"8.04\", \"9.48\", \"4.36\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-24 19:36:59\", \"2018-03-25 02:47:40\"), dog_id (4, 12, 7), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (7, 12, 2), gender (\"1\", \"0\"), name (\"Hipolito\", \"Narciso\", \"Jeffrey\"), age (\"4\", \"9\", \"8\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), home_phone (\"(920)304-4499x59146\", \"1-609-566-2752x25197\", \"971.048.3763x9404\"), first_name (\"Taryn\", \"Danny\", \"Karley\"), state (\"Montana\", \"Alabama\", \"Wyoming\"), last_name (\"Walter\", \"O'Reilly\", \"Ullrich\"), professional_id (5, 6, 1), zip_code (\"34041\", \"52476\", \"43129\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"delphine29@example.com\", \"goyette.roosevelt@example.net\", \"lambert62@example.org\"), city (\"New Maryjane\", \"New Maryjane\", \"North Adelberttown\"), cell_number (\"1-258-285-4707x8020\", \"880-659-7577x736\", \"609-405-2990\")", + "schema_without_content": "charges : charge_id , charge_amount , charge_type | treatments : professional_id , date_of_treatment , dog_id , treatment_id , cost_of_treatment , treatment_type_code | Canines : date_arrived , date_of_birth , abandoned_yn , date_adopted , breed_code , weight , date_departed , dog_id , size_code , owner_id , gender , name , age | treatment_types : treatment_type_code , treatment_type_description | owners : email_address , street , home_phone , first_name , owner_id , zip_code , last_name , cell_number 399-3116\", \"+709217952551\", \"121.381.3316x6535\", city , state | breeds : breed_code , breed_name | Pooches : date_arrived , date_of_birth , abandoned_yn , date_adopted , breed_code , weight , date_departed , dog_id , size_code , owner_id , gender , name , age | sizes : size_description , size_code | professionals : street , home_phone 304-4499x59146\", \"1-609-566-2752x25197\", \"971.048.3763x9404\", first_name , state , last_name , professional_id , zip_code , role_code , email_address , city , cell_number", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "average age of the dogs": "Dogs.age", + "treatments": "Treatments" + } + }, + { + "question": "find the #average age of the dogs# who went through #treatments# .", + "db_id": "dog_kennels", + "orig_query": "select avg(age) from dogs where dog_id in (select dog_id from treatments)", + "schema_with_content": "owners : street (\"51934 Treutel Harbor\", \"692 Jaskolski Forges\", \"9212 Rosenbaum Lights\"), last_name (\"Hamill\", \"Rippin\", \"Mertz\"), cell_number (\"+70(4)9217952551\", \"121.381.3316x6535\", \"+70(4)9217952551\"), city (\"Port Zackery\", \"Lake Carleyborough\", \"Port Reannamouth\"), zip_code (\"35747\", \"25609\", \"25609\"), owner_id (12, 1, 12), state (\"Arizona\", \"Vermont\", \"Virginia\"), first_name (\"Adelle\", \"Jaclyn\", \"Adelle\"), home_phone (\"130-796-4589x05454\", \"085.557.0379x84348\", \"066.264.7885\"), email_address (\"pearlie18@example.com\", \"edythe62@example.org\", \"marks.gail@example.org\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | therapies : treatment_id (13, 12, 3), professional_id (7, 14, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (1, 12, 14), cost_of_treatment (428, 945, 428), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-14 19:10:40\", \"2018-03-15 19:10:02\") | procedures : treatment_id (13, 12, 3), professional_id (7, 14, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (1, 12, 14), cost_of_treatment (428, 945, 428), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-14 19:10:40\", \"2018-03-15 19:10:02\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | professionals : home_phone (\"971.048.3763x9404\", \"312.216.3352\", \"(920)304-4499x59146\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), email_address (\"lambert62@example.org\", \"uboehm@example.org\", \"lourdes.lowe@example.net\"), professional_id (11, 12, 5), first_name (\"Brady\", \"Danny\", \"Olaf\"), last_name (\"Tillman\", \"Murazik\", \"Pouros\"), city (\"Jaceton\", \"Baileymouth\", \"Borisside\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"52476\", \"52476\", \"54312\"), cell_number (\"00230569697\", \"962-983-8109x3509\", \"1-258-285-4707x8020\"), state (\"NewMexico\", \"Mississippi\", \"Connecticut\") | dogs : date_adopted (\"2018-03-08 15:03:00\", \"2018-03-08 15:03:00\", \"2018-03-25 08:12:51\"), gender (\"1\", \"0\"), weight (\"6.92\", \"2.18\", \"8.96\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Merritt\", \"Evangeline\", \"Houston\"), date_arrived (\"2017-06-25 10:14:05\", \"2018-01-17 11:44:16\", \"2017-04-15 09:25:31\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\", \"2018-03-24 19:12:22\"), owner_id (5, 14, 13), age (\"5\", \"1\", \"9\"), dog_id (12, 1, 4), date_of_birth (\"2010-11-11 07:11:53\", \"2012-05-03 21:42:25\", \"2013-02-20 14:50:56\")", + "schema_without_content": "owners : street , last_name , cell_number 9217952551\", \"121.381.3316x6535\", \"+709217952551\", city , zip_code , owner_id , state , first_name , home_phone , email_address | sizes : size_code , size_description | therapies : treatment_id , professional_id , treatment_type_code , dog_id , cost_of_treatment , date_of_treatment | procedures : treatment_id , professional_id , treatment_type_code , dog_id , cost_of_treatment , date_of_treatment | treatment_types : treatment_type_code , treatment_type_description | charges : charge_type , charge_amount , charge_id | breeds : breed_name , breed_code | professionals : home_phone 304-4499x59146\", street , email_address , professional_id , first_name , last_name , city , role_code , zip_code , cell_number , state | dogs : date_adopted , gender , weight , size_code , breed_code , name , date_arrived , abandoned_yn , date_departed , owner_id , age , dog_id , date_of_birth", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "average age of the dogs": "Dogs.age", + "treatments": "Treatments" + } + }, + { + "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_id": "dog_kennels", + "orig_query": "select professional_id, last_name, cell_number from professionals where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", + "schema_with_content": "breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Handlers : home_phone (\"246-951-0080x76716\", \"891.475.2256\", \"+02(1)0259033559\"), role_code (\"Employee\", \"Veterenarian\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), zip_code (\"43129\", \"52476\", \"02281\"), city (\"North Adelberttown\", \"Baileymouth\", \"Kirastad\"), last_name (\"Watsica\", \"Hayes\", \"Ullrich\"), state (\"Utah\", \"Connecticut\", \"NewMexico\"), first_name (\"Danny\", \"Karley\", \"Domenica\"), cell_number (\"889-940-2676\", \"1-258-285-4707x8020\", \"889-940-2676\"), professional_id (1, 4, 7), email_address (\"goyette.roosevelt@example.net\", \"lucile.shanahan@example.org\", \"west.eula@example.net\") | owners : last_name (\"Funk\", \"DuBuque\", \"Fisher\"), zip_code (\"02647\", \"25609\", \"11990\"), city (\"Port Zackery\", \"East Maribelbury\", \"Lake Carleyborough\"), street (\"59509 Mellie Mountain\", \"9212 Rosenbaum Lights\", \"60352 Kayleigh Crossing Suite 700\"), cell_number (\"121.381.3316x6535\", \"(722)768-5439x484\", \"341.667.8085\"), state (\"NorthDakota\", \"SouthDakota\", \"Indiana\"), email_address (\"kturner@example.net\", \"ymaggio@example.com\", \"christy49@example.org\"), home_phone (\"130-796-4589x05454\", \"363.948.1090\", \"1-346-655-5842x768\"), owner_id (10, 13, 11), first_name (\"Tre\", \"Nora\", \"Jaclyn\") | dogs : dog_id (5, 13, 11), gender (\"1\", \"0\"), owner_id (2, 13, 6), name (\"Jeffrey\", \"Hipolito\", \"Betty\"), age (\"3\", \"3\", \"3\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-05-06 08:03:52\", \"2018-01-17 11:44:16\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-08 15:03:00\", \"2018-02-27 11:54:35\"), date_of_birth (\"2012-05-31 08:01:36\", \"2009-04-12 06:02:48\", \"2015-02-26 21:31:22\"), weight (\"6.92\", \"6.92\", \"4.01\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatments : cost_of_treatment (945, 514, 514), professional_id (6, 8, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (15, 13, 2), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-10 11:45:58\", \"2018-03-11 04:23:15\"), treatment_id (3, 7, 9) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | Caregivers : home_phone (\"246-951-0080x76716\", \"891.475.2256\", \"+02(1)0259033559\"), role_code (\"Employee\", \"Veterenarian\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), zip_code (\"43129\", \"52476\", \"02281\"), city (\"North Adelberttown\", \"Baileymouth\", \"Kirastad\"), last_name (\"Watsica\", \"Hayes\", \"Ullrich\"), state (\"Utah\", \"Connecticut\", \"NewMexico\"), first_name (\"Danny\", \"Karley\", \"Domenica\"), cell_number (\"889-940-2676\", \"1-258-285-4707x8020\", \"889-940-2676\"), professional_id (1, 4, 7), email_address (\"goyette.roosevelt@example.net\", \"lucile.shanahan@example.org\", \"west.eula@example.net\")", + "schema_without_content": "breeds : breed_name , breed_code | treatment_types : treatment_type_code , treatment_type_description | Handlers : home_phone 0259033559\", role_code , street , zip_code , city , last_name , state , first_name , cell_number , professional_id , email_address | owners : last_name , zip_code , city , street , cell_number 768-5439x484\", \"341.667.8085\", state , email_address , home_phone , owner_id , first_name | dogs : dog_id , gender , owner_id , name , age , date_arrived , date_departed , breed_code , abandoned_yn , size_code , date_adopted , date_of_birth , weight | sizes : size_code , size_description | treatments : cost_of_treatment , professional_id , treatment_type_code , dog_id , date_of_treatment , treatment_id | charges : charge_type , charge_id , charge_amount | Caregivers : home_phone 0259033559\", role_code , street , zip_code , city , last_name , state , first_name , cell_number , professional_id , email_address", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "state": "Professionals.state", + "treatment": "Treatments", + "id": "Professionals.professional_id", + "last name": "Professionals.last_name", + "cell phone": "Professionals.cell_number" + } + }, + { + "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_id": "dog_kennels", + "orig_query": "select professional_id, last_name, cell_number from professionals where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", + "schema_with_content": "breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | procedures : cost_of_treatment (514, 313, 407), treatment_id (12, 14, 12), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (1, 15, 4), professional_id (6, 10, 6) | therapies : cost_of_treatment (514, 313, 407), treatment_id (12, 14, 12), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (1, 15, 4), professional_id (6, 10, 6) | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 06:29:10\", \"2018-03-25 02:11:32\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-04-15 09:25:31\", \"2018-01-02 03:15:29\"), dog_id (15, 13, 7), date_of_birth (\"2012-01-27 05:11:53\", \"2012-01-27 05:11:53\", \"2008-10-09 22:38:53\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-25 08:12:51\", \"2018-02-27 00:27:57\"), gender (\"1\", \"0\"), weight (\"1.39\", \"8.96\", \"6.92\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"3\", \"8\", \"3\"), abandoned_yn (\"1\", \"0\"), name (\"Narciso\", \"Betty\", \"Evangeline\"), owner_id (8, 11, 1), size_code (\"LGE\", \"MED\", \"SML\") | owners : street (\"2635 Caitlyn Plains\", \"1204 Mae Highway Apt. 107\", \"1858 Jan Park\"), first_name (\"Cindy\", \"Adelle\", \"Nora\"), owner_id (7, 5, 3), city (\"South Daisyfurt\", \"Port Zackery\", \"Brakusfurt\"), zip_code (\"86010\", \"86010\", \"22693\"), state (\"Arizona\", \"Arizona\", \"Indiana\"), home_phone (\"01802479758\", \"916.976.9480x13851\", \"(544)034-1670\"), last_name (\"Rippin\", \"Price\", \"Nicolas\"), cell_number (\"762.589.6117x1328\", \"762.589.6117x1328\", \"559.874.3011x989\"), email_address (\"angeline99@example.com\", \"hudson.favian@example.com\", \"hudson.favian@example.com\") | professionals : state (\"Indiana\", \"Montana\", \"Connecticut\"), home_phone (\"+71(6)2898266914\", \"246-951-0080x76716\", \"+02(1)0259033559\"), last_name (\"Christiansen\", \"Pouros\", \"Pouros\"), city (\"North Adelberttown\", \"New Laurytown\", \"Juddton\"), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\"), professional_id (15, 11, 10), email_address (\"uboehm@example.org\", \"goyette.roosevelt@example.net\", \"lourdes.lowe@example.net\"), first_name (\"Vernice\", \"Lesly\", \"Monte\"), zip_code (\"02281\", \"41215\", \"41215\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"011.193.9081x3186\", \"328.842.3792\", \"609-405-2990\")", + "schema_without_content": "breeds : breed_name , breed_code | procedures : cost_of_treatment , treatment_id , date_of_treatment , treatment_type_code , dog_id , professional_id | therapies : cost_of_treatment , treatment_id , date_of_treatment , treatment_type_code , dog_id , professional_id | charges : charge_id , charge_type , charge_amount | treatment_types : treatment_type_description , treatment_type_code | sizes : size_description , size_code | dogs : date_departed , date_arrived , dog_id , date_of_birth , date_adopted , gender , weight , breed_code , age , abandoned_yn , name , owner_id , size_code | owners : street , first_name , owner_id , city , zip_code , state , home_phone 034-1670\", last_name , cell_number , email_address | professionals : state , home_phone 2898266914\", \"246-951-0080x76716\", \"+020259033559\", last_name , city , street , professional_id , email_address , first_name , zip_code , role_code , cell_number", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "state": "Professionals.state", + "treatment": "Treatments", + "id": "Professionals.professional_id", + "last name": "Professionals.last_name", + "cell phone": "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_id": "dog_kennels", + "orig_query": "select professional_id, last_name, cell_number from professionals where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Caregivers : state (\"Utah\", \"Indiana\", \"Wyoming\"), professional_id (1, 1, 10), last_name (\"Braun\", \"Walter\", \"Considine\"), cell_number (\"00230569697\", \"00230569697\", \"(275)939-2435x80863\"), city (\"Jaceton\", \"North Adelberttown\", \"Juddton\"), zip_code (\"54312\", \"80775\", \"43129\"), home_phone (\"+02(1)0259033559\", \"(920)304-4499x59146\", \"246-951-0080x76716\"), email_address (\"delphine29@example.com\", \"jerrod.bahringer@example.org\", \"mekhi.little@example.org\"), first_name (\"Lesly\", \"Karley\", \"Vernice\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), role_code (\"Employee\", \"Veterenarian\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Handlers : state (\"Utah\", \"Indiana\", \"Wyoming\"), professional_id (1, 1, 10), last_name (\"Braun\", \"Walter\", \"Considine\"), cell_number (\"00230569697\", \"00230569697\", \"(275)939-2435x80863\"), city (\"Jaceton\", \"North Adelberttown\", \"Juddton\"), zip_code (\"54312\", \"80775\", \"43129\"), home_phone (\"+02(1)0259033559\", \"(920)304-4499x59146\", \"246-951-0080x76716\"), email_address (\"delphine29@example.com\", \"jerrod.bahringer@example.org\", \"mekhi.little@example.org\"), first_name (\"Lesly\", \"Karley\", \"Vernice\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), role_code (\"Employee\", \"Veterenarian\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : cell_number (\"+00(2)4323592985\", \"(783)271-6744x4507\", \"762.589.6117x1328\"), email_address (\"kturner@example.net\", \"christy49@example.org\", \"ykris@example.com\"), first_name (\"Gay\", \"Emelie\", \"Nora\"), street (\"89011 Kertzmann Spring Suite 642\", \"2635 Caitlyn Plains\", \"57382 Yost Ridges\"), zip_code (\"02647\", \"78297\", \"92406\"), city (\"Port Reannamouth\", \"Barrettburgh\", \"Barrettburgh\"), last_name (\"Mertz\", \"Haley\", \"Funk\"), state (\"Wisconsin\", \"Maryland\", \"Virginia\"), home_phone (\"(799)563-0260x454\", \"(544)034-1670\", \"01802479758\"), owner_id (12, 9, 4) | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (147, 514, 349), professional_id (6, 9, 8), date_of_treatment (\"2018-03-16 10:27:36\", \"2018-03-10 11:45:58\", \"2018-03-04 20:33:43\"), treatment_id (9, 2, 11), dog_id (4, 13, 13) | dogs : date_adopted (\"2018-03-06 16:32:11\", \"2018-02-25 23:45:30\", \"2018-03-18 15:12:50\"), dog_id (10, 5, 5), date_of_birth (\"2008-05-30 12:51:34\", \"2013-02-20 14:50:56\", \"2012-01-27 05:11:53\"), name (\"Narciso\", \"Evangeline\", \"Jesus\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 04:50:22\", \"2018-03-25 13:07:04\"), weight (\"3.52\", \"8.16\", \"3.52\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-12-29 06:08:26\", \"2017-10-25 00:55:34\"), owner_id (2, 3, 7), age (\"4\", \"5\", \"5\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "breeds : breed_code , breed_name | Caregivers : state , professional_id , last_name , cell_number 939-2435x80863\", city , zip_code , home_phone 0259033559\", \"304-4499x59146\", \"246-951-0080x76716\", email_address , first_name , street , role_code | charges : charge_type , charge_id , charge_amount | sizes : size_description , size_code | Handlers : state , professional_id , last_name , cell_number 939-2435x80863\", city , zip_code , home_phone 0259033559\", \"304-4499x59146\", \"246-951-0080x76716\", email_address , first_name , street , role_code | treatment_types : treatment_type_code , treatment_type_description | owners : cell_number 4323592985\", \"271-6744x4507\", \"762.589.6117x1328\", email_address , first_name , street , zip_code , city , last_name , state , home_phone 563-0260x454\", \"034-1670\", \"01802479758\", owner_id | treatments : treatment_type_code , cost_of_treatment , professional_id , date_of_treatment , treatment_id , dog_id | dogs : date_adopted , dog_id , date_of_birth , name , abandoned_yn , date_departed , weight , breed_code , gender , date_arrived , owner_id , age , size_code", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "last name": "Professionals.last_name", + "cell phone": "Professionals.cell_number", + "state": "Professionals.state", + "treatments": "Treatments" + } + }, + { + "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_id": "dog_kennels", + "orig_query": "select professional_id, last_name, cell_number from professionals where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", + "schema_with_content": "procedures : professional_id (6, 4, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (13, 12, 1), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-16 10:27:36\", \"2018-03-01 04:14:46\"), treatment_id (3, 2, 11), cost_of_treatment (429, 429, 656) | owners : owner_id (10, 8, 15), street (\"9212 Rosenbaum Lights\", \"51934 Treutel Harbor\", \"60352 Kayleigh Crossing Suite 700\"), cell_number (\"(257)399-3116\", \"(257)399-3116\", \"(257)399-3116\"), last_name (\"Hauck\", \"DuBuque\", \"Stoltenberg\"), zip_code (\"36871\", \"45244\", \"22731\"), state (\"Maryland\", \"Vermont\", \"Virginia\"), first_name (\"Melisa\", \"Orlando\", \"Gay\"), home_phone (\"(094)747-5094x8134\", \"1-332-849-1908\", \"916.976.9480x13851\"), email_address (\"zboncak.madonna@example.net\", \"ybergstrom@example.com\", \"ybergstrom@example.com\"), city (\"West Leonard\", \"East Hillardberg\", \"Beerton\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | therapies : professional_id (6, 4, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (13, 12, 1), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-16 10:27:36\", \"2018-03-01 04:14:46\"), treatment_id (3, 2, 11), cost_of_treatment (429, 429, 656) | professionals : email_address (\"mekhi.little@example.org\", \"cole.margarita@example.org\", \"delphine29@example.com\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Olaf\", \"Olaf\", \"Sigurd\"), home_phone (\"+43(5)1132733868\", \"325-155-0801x7005\", \"320-508-6023\"), cell_number (\"461-801-2600\", \"139-321-7313\", \"1-181-670-9466\"), state (\"Montana\", \"Utah\", \"Alabama\"), zip_code (\"77129\", \"43129\", \"54312\"), last_name (\"Considine\", \"Ullrich\", \"Frami\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), professional_id (5, 2, 13), city (\"Borisside\", \"McLaughlinfort\", \"McLaughlinfort\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : weight (\"8.96\", \"8.96\", \"1.72\"), gender (\"1\", \"0\"), date_of_birth (\"2010-11-11 07:11:53\", \"2015-02-26 21:31:22\", \"2012-10-14 14:44:37\"), owner_id (8, 1, 11), abandoned_yn (\"1\", \"0\"), age (\"1\", \"9\", \"9\"), dog_id (1, 11, 3), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-14 08:05:18\", \"2018-03-23 16:02:04\"), date_arrived (\"2017-06-18 19:45:38\", \"2018-01-02 03:15:29\", \"2017-04-20 00:58:55\"), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 02:47:40\", \"2018-03-24 19:36:59\"), name (\"Jeffrey\", \"Jeffrey\", \"Jesus\")", + "schema_without_content": "procedures : professional_id , treatment_type_code , dog_id , date_of_treatment , treatment_id , cost_of_treatment | owners : owner_id , street , cell_number 399-3116\", \"399-3116\", \"399-3116\", last_name , zip_code , state , first_name , home_phone 747-5094x8134\", \"1-332-849-1908\", \"916.976.9480x13851\", email_address , city | charges : charge_type , charge_amount , charge_id | sizes : size_description , size_code | treatment_types : treatment_type_description , treatment_type_code | therapies : professional_id , treatment_type_code , dog_id , date_of_treatment , treatment_id , cost_of_treatment | professionals : email_address , role_code , first_name , home_phone 1132733868\", \"325-155-0801x7005\", \"320-508-6023\", cell_number , state , zip_code , last_name , street , professional_id , city | breeds : breed_code , breed_name | dogs : weight , gender , date_of_birth , owner_id , abandoned_yn , age , dog_id , breed_code , date_adopted , date_arrived , size_code , date_departed , name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "last name": "Professionals.last_name", + "cell phone": "Professionals.cell_number", + "state": "Professionals.state", + "treatments": "Treatments" + } + }, + { + "question": "which #first names# are used for professionals or owners but are not used as #dog names# ?", + "db_id": "dog_kennels", + "orig_query": "select first_name from professionals union select first_name from owners except select name from dogs", + "schema_with_content": "treatments : cost_of_treatment (656, 567, 852), professional_id (9, 6, 4), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-16 10:27:36\", \"2018-03-15 19:10:02\"), treatment_id (15, 15, 14), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (2, 12, 14) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Caretakers : first_name (\"Rolando\", \"Lorenz\", \"Heather\"), zip_code (\"87304\", \"22693\", \"78297\"), cell_number (\"559.874.3011x989\", \"341.667.8085\", \"478.978.0729\"), state (\"SouthDakota\", \"Wisconsin\", \"Washington\"), street (\"9212 Rosenbaum Lights\", \"15828 Spencer Extensions\", \"57382 Yost Ridges\"), home_phone (\"(799)563-0260x454\", \"1-682-845-0116x63235\", \"363.948.1090\"), owner_id (6, 10, 5), last_name (\"Funk\", \"Hauck\", \"Nicolas\"), city (\"Lake Jennyferfort\", \"West Leonard\", \"Lake Tia\"), email_address (\"marks.gail@example.org\", \"christy49@example.org\", \"zboncak.madonna@example.net\") | professionals : zip_code (\"02281\", \"54312\", \"34041\"), cell_number (\"1-258-285-4707x8020\", \"011.193.9081x3186\", \"011.193.9081x3186\"), state (\"Connecticut\", \"Wyoming\", \"Utah\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), city (\"South Rockyport\", \"Jaceton\", \"New Maryjane\"), first_name (\"Winfield\", \"Jayson\", \"Taryn\"), professional_id (2, 11, 2), home_phone (\"312.216.3352\", \"325-155-0801x7005\", \"312.216.3352\"), email_address (\"jacynthe.mclaughlin@example.net\", \"lucile.shanahan@example.org\", \"goyette.roosevelt@example.net\"), last_name (\"Murazik\", \"Jacobs\", \"Braun\"), role_code (\"Employee\", \"Veterenarian\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : date_of_birth (\"2013-02-20 14:50:56\", \"2012-01-27 05:11:53\", \"2012-10-14 14:44:37\"), weight (\"8.04\", \"1.72\", \"8.16\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-21 10:41:18\", \"2018-02-27 00:27:57\", \"2018-03-25 08:12:51\"), owner_id (10, 7, 12), date_arrived (\"2017-12-29 23:24:13\", \"2017-04-20 00:58:55\", \"2017-09-08 20:10:13\"), dog_id (9, 4, 7), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), age (\"1\", \"3\", \"8\"), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-25 04:50:22\", \"2018-03-25 02:11:32\"), name (\"Hipolito\", \"Troy\", \"Holden\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Guardians : first_name (\"Rolando\", \"Lorenz\", \"Heather\"), zip_code (\"87304\", \"22693\", \"78297\"), cell_number (\"559.874.3011x989\", \"341.667.8085\", \"478.978.0729\"), state (\"SouthDakota\", \"Wisconsin\", \"Washington\"), street (\"9212 Rosenbaum Lights\", \"15828 Spencer Extensions\", \"57382 Yost Ridges\"), home_phone (\"(799)563-0260x454\", \"1-682-845-0116x63235\", \"363.948.1090\"), owner_id (6, 10, 5), last_name (\"Funk\", \"Hauck\", \"Nicolas\"), city (\"Lake Jennyferfort\", \"West Leonard\", \"Lake Tia\"), email_address (\"marks.gail@example.org\", \"christy49@example.org\", \"zboncak.madonna@example.net\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "treatments : cost_of_treatment , professional_id , date_of_treatment , treatment_id , treatment_type_code , dog_id | charges : charge_amount , charge_id , charge_type | Caretakers : first_name , zip_code , cell_number , state , street , home_phone 563-0260x454\", \"1-682-845-0116x63235\", \"363.948.1090\", owner_id , last_name , city , email_address | professionals : zip_code , cell_number , state , street , city , first_name , professional_id , home_phone , email_address , last_name , role_code | breeds : breed_code , breed_name | dogs : date_of_birth , weight , gender , date_adopted , owner_id , date_arrived , dog_id , breed_code , abandoned_yn , age , size_code , date_departed , name | sizes : size_code , size_description | Guardians : first_name , zip_code , cell_number , state , street , home_phone 563-0260x454\", \"1-682-845-0116x63235\", \"363.948.1090\", owner_id , last_name , city , email_address | treatment_types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names": "Owners.first_name", + "dog names": "Dogs.name" + } + }, + { + "question": "which #first names# are used for professionals or owners but are not used as #dog names# ?", + "db_id": "dog_kennels", + "orig_query": "select first_name from professionals union select first_name from owners except select name from dogs", + "schema_with_content": "treatments : cost_of_treatment (656, 266, 266), treatment_id (2, 2, 2), dog_id (1, 12, 14), professional_id (4, 4, 7), date_of_treatment (\"2018-03-16 10:27:36\", \"2018-03-04 20:33:43\", \"2018-03-01 04:14:46\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | Handlers : zip_code (\"67980\", \"33020\", \"43129\"), role_code (\"Employee\", \"Veterenarian\"), city (\"East Ila\", \"South Rockyport\", \"East Ila\"), last_name (\"Pouros\", \"Murazik\", \"Braun\"), state (\"Indiana\", \"Wyoming\", \"SouthCarolina\"), professional_id (8, 7, 3), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), cell_number (\"880-659-7577x736\", \"00230569697\", \"00230569697\"), home_phone (\"325-155-0801x7005\", \"346.594.3739\", \"312.216.3352\"), email_address (\"uboehm@example.org\", \"schneider.kathryne@example.org\", \"delphine29@example.com\"), first_name (\"Olaf\", \"Danny\", \"Winfield\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | owners : last_name (\"Funk\", \"Hauck\", \"Prohaska\"), home_phone (\"(094)747-5094x8134\", \"1-346-655-5842x768\", \"916.976.9480x13851\"), zip_code (\"02647\", \"36871\", \"92406\"), email_address (\"edythe62@example.org\", \"kturner@example.net\", \"kturner@example.net\"), cell_number (\"1-739-421-2225x38148\", \"(722)768-5439x484\", \"(722)768-5439x484\"), owner_id (15, 4, 10), state (\"Florida\", \"Maryland\", \"Arizona\"), first_name (\"Lorenz\", \"Kade\", \"Rachelle\"), street (\"2635 Caitlyn Plains\", \"68118 Daniel Row\", \"9212 Rosenbaum Lights\"), city (\"Lake Jennyferfort\", \"Port Reannamouth\", \"Port Reannamouth\") | Caregivers : zip_code (\"67980\", \"33020\", \"43129\"), role_code (\"Employee\", \"Veterenarian\"), city (\"East Ila\", \"South Rockyport\", \"East Ila\"), last_name (\"Pouros\", \"Murazik\", \"Braun\"), state (\"Indiana\", \"Wyoming\", \"SouthCarolina\"), professional_id (8, 7, 3), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), cell_number (\"880-659-7577x736\", \"00230569697\", \"00230569697\"), home_phone (\"325-155-0801x7005\", \"346.594.3739\", \"312.216.3352\"), email_address (\"uboehm@example.org\", \"schneider.kathryne@example.org\", \"delphine29@example.com\"), first_name (\"Olaf\", \"Danny\", \"Winfield\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | dogs : date_arrived (\"2017-10-24 04:45:13\", \"2017-10-24 04:45:13\", \"2017-12-22 05:02:02\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-03-25 08:12:51\", \"2018-03-18 07:47:40\"), date_of_birth (\"2012-10-14 14:44:37\", \"2008-05-19 15:54:49\", \"2008-05-30 12:51:34\"), dog_id (4, 12, 11), abandoned_yn (\"1\", \"0\"), name (\"Evangeline\", \"Betty\", \"Betty\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (8, 12, 12), age (\"5\", \"1\", \"6\"), weight (\"8.16\", \"6.92\", \"1.39\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 06:58:44\", \"2018-03-25 06:58:44\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "treatments : cost_of_treatment , treatment_id , dog_id , professional_id , date_of_treatment , treatment_type_code | Handlers : zip_code , role_code , city , last_name , state , professional_id , street , cell_number , home_phone , email_address , first_name | charges : charge_type , charge_amount , charge_id | owners : last_name , home_phone 747-5094x8134\", \"1-346-655-5842x768\", \"916.976.9480x13851\", zip_code , email_address , cell_number 768-5439x484\", \"768-5439x484\", owner_id , state , first_name , street , city | Caregivers : zip_code , role_code , city , last_name , state , professional_id , street , cell_number , home_phone , email_address , first_name | sizes : size_description , size_code | treatment_types : treatment_type_description , treatment_type_code | dogs : date_arrived , date_adopted , date_of_birth , dog_id , abandoned_yn , name , breed_code , gender , size_code , owner_id , age , weight , date_departed | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names": "Owners.first_name", + "dog names": "Dogs.name" + } + }, + { + "question": "find the #first names# that are used for professionals or owners but are not used as #dog names# .", + "db_id": "dog_kennels", + "orig_query": "select first_name from professionals union select first_name from owners except select name from dogs", + "schema_with_content": "treatments : cost_of_treatment (567, 681, 945), dog_id (13, 4, 2), treatment_id (9, 4, 4), professional_id (10, 5, 10), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-19 04:39:54\", \"2018-03-15 20:25:34\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Caretakers : zip_code (\"35747\", \"61019\", \"78297\"), last_name (\"DuBuque\", \"Mertz\", \"Ondricka\"), street (\"59509 Mellie Mountain\", \"2417 Keara Stravenue Apt. 146\", \"6950 Katherine Forges Apt. 630\"), email_address (\"zboncak.madonna@example.net\", \"wpfeffer@example.net\", \"edythe62@example.org\"), first_name (\"Lorenz\", \"Emelie\", \"Heather\"), state (\"SouthDakota\", \"SouthDakota\", \"Indiana\"), cell_number (\"+00(2)4323592985\", \"478.978.0729\", \"(783)271-6744x4507\"), city (\"Lake Valentin\", \"East Maribelbury\", \"Lake Tia\"), owner_id (5, 6, 13), home_phone (\"01802479758\", \"916.976.9480x13851\", \"893-862-5295x61709\") | professionals : home_phone (\"971.048.3763x9404\", \"1-138-287-3775\", \"1-138-287-3775\"), first_name (\"Jayson\", \"Olaf\", \"Taryn\"), cell_number (\"(275)939-2435x80863\", \"328.842.3792\", \"(369)908-7311x065\"), city (\"West Heidi\", \"Raynorfort\", \"North Adelberttown\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), zip_code (\"34041\", \"06646\", \"34041\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (4, 6, 4), last_name (\"Tillman\", \"Kshlerin\", \"Tillman\"), state (\"Mississippi\", \"Alabama\", \"Mississippi\"), email_address (\"cole.margarita@example.org\", \"jeichmann@example.com\", \"cole.margarita@example.org\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-02-27 00:27:57\", \"2018-03-06 16:32:11\"), owner_id (14, 8, 14), weight (\"2.18\", \"8.16\", \"5.16\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (11, 3, 6), date_arrived (\"2017-12-22 05:02:02\", \"2017-04-20 00:58:55\", \"2017-06-25 10:14:05\"), age (\"1\", \"2\", \"1\"), name (\"Evangeline\", \"Mavis\", \"Lyric\"), date_of_birth (\"2008-05-30 12:51:34\", \"2018-03-17 04:05:12\", \"2018-03-17 04:05:12\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 06:29:10\", \"2018-03-24 23:48:59\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Guardians : zip_code (\"35747\", \"61019\", \"78297\"), last_name (\"DuBuque\", \"Mertz\", \"Ondricka\"), street (\"59509 Mellie Mountain\", \"2417 Keara Stravenue Apt. 146\", \"6950 Katherine Forges Apt. 630\"), email_address (\"zboncak.madonna@example.net\", \"wpfeffer@example.net\", \"edythe62@example.org\"), first_name (\"Lorenz\", \"Emelie\", \"Heather\"), state (\"SouthDakota\", \"SouthDakota\", \"Indiana\"), cell_number (\"+00(2)4323592985\", \"478.978.0729\", \"(783)271-6744x4507\"), city (\"Lake Valentin\", \"East Maribelbury\", \"Lake Tia\"), owner_id (5, 6, 13), home_phone (\"01802479758\", \"916.976.9480x13851\", \"893-862-5295x61709\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "treatments : cost_of_treatment , dog_id , treatment_id , professional_id , date_of_treatment , treatment_type_code | treatment_types : treatment_type_code , treatment_type_description | Caretakers : zip_code , last_name , street , email_address , first_name , state , cell_number 4323592985\", \"478.978.0729\", \"271-6744x4507\", city , owner_id , home_phone | professionals : home_phone , first_name , cell_number 939-2435x80863\", \"328.842.3792\", \"908-7311x065\", city , street , zip_code , role_code , professional_id , last_name , state , email_address | dogs : size_code , gender , date_adopted , owner_id , weight , breed_code , dog_id , date_arrived , age , name , date_of_birth , abandoned_yn , date_departed | sizes : size_code , size_description | Guardians : zip_code , last_name , street , email_address , first_name , state , cell_number 4323592985\", \"478.978.0729\", \"271-6744x4507\", city , owner_id , home_phone | charges : charge_type , charge_amount , charge_id | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names": "Owners.first_name", + "dog names": "Dogs.name" + } + }, + { + "question": "find the #first names# that are used for professionals or owners but are not used as #dog names# .", + "db_id": "dog_kennels", + "orig_query": "select first_name from professionals union select first_name from owners except select name from dogs", + "schema_with_content": "Caregivers : first_name (\"Olaf\", \"Karley\", \"Karley\"), state (\"Alabama\", \"Alabama\", \"Connecticut\"), home_phone (\"971.048.3763x9404\", \"246-951-0080x76716\", \"312.216.3352\"), zip_code (\"34041\", \"33020\", \"02281\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), email_address (\"lourdes.lowe@example.net\", \"mekhi.little@example.org\", \"west.eula@example.net\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Braun\", \"Hayes\", \"Braun\"), professional_id (3, 8, 4), city (\"McLaughlinfort\", \"North Odellfurt\", \"McLaughlinfort\"), cell_number (\"(275)939-2435x80863\", \"962-983-8109x3509\", \"1-181-670-9466\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : age (\"9\", \"6\", \"1\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2008-10-09 22:38:53\", \"2008-05-30 12:51:34\", \"2012-07-11 17:15:10\"), weight (\"4.01\", \"8.16\", \"3.52\"), name (\"Hipolito\", \"Houston\", \"Kacey\"), owner_id (8, 1, 1), dog_id (4, 2, 1), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 05:07:47\", \"2018-03-24 19:12:22\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-05-06 08:03:52\", \"2017-06-25 10:14:05\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-08 15:03:00\", \"2018-03-21 10:41:18\"), gender (\"1\", \"0\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | owners : cell_number (\"478.978.0729\", \"559.874.3011x989\", \"+70(4)9217952551\"), owner_id (13, 8, 12), first_name (\"Melisa\", \"Nora\", \"Adelle\"), street (\"60352 Kayleigh Crossing Suite 700\", \"1858 Jan Park\", \"68118 Daniel Row\"), home_phone (\"318-052-6573\", \"(799)563-0260x454\", \"(544)034-1670\"), zip_code (\"22731\", \"92406\", \"35747\"), last_name (\"Haley\", \"Price\", \"Funk\"), city (\"Lake Jennyferfort\", \"South Afton\", \"Barrettburgh\"), email_address (\"margaretta.runte@example.net\", \"fschoen@example.net\", \"ykris@example.com\"), state (\"Pennsylvania\", \"Florida\", \"Washington\") | Handlers : first_name (\"Olaf\", \"Karley\", \"Karley\"), state (\"Alabama\", \"Alabama\", \"Connecticut\"), home_phone (\"971.048.3763x9404\", \"246-951-0080x76716\", \"312.216.3352\"), zip_code (\"34041\", \"33020\", \"02281\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), email_address (\"lourdes.lowe@example.net\", \"mekhi.little@example.org\", \"west.eula@example.net\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Braun\", \"Hayes\", \"Braun\"), professional_id (3, 8, 4), city (\"McLaughlinfort\", \"North Odellfurt\", \"McLaughlinfort\"), cell_number (\"(275)939-2435x80863\", \"962-983-8109x3509\", \"1-181-670-9466\") | treatments : dog_id (2, 15, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (313, 945, 139), treatment_id (1, 15, 3), professional_id (7, 8, 5), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-23 13:52:10\", \"2018-03-10 11:45:58\")", + "schema_without_content": "Caregivers : first_name , state , home_phone , zip_code , street , email_address , role_code , last_name , professional_id , city , cell_number 939-2435x80863\", \"962-983-8109x3509\", \"1-181-670-9466\" | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_code , breed_name | dogs : age , size_code , date_of_birth , weight , name , owner_id , dog_id , date_departed , date_arrived , breed_code , abandoned_yn , date_adopted , gender | charges : charge_type , charge_amount , charge_id | owners : cell_number 9217952551\", owner_id , first_name , street , home_phone 563-0260x454\", \"034-1670\", zip_code , last_name , city , email_address , state | Handlers : first_name , state , home_phone , zip_code , street , email_address , role_code , last_name , professional_id , city , cell_number 939-2435x80863\", \"962-983-8109x3509\", \"1-181-670-9466\" | treatments : dog_id , treatment_type_code , cost_of_treatment , treatment_id , professional_id , date_of_treatment", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names": "Owners.first_name", + "dog names": "Dogs.name" + } + }, + { + "question": "which #professional# did not operate any #treatment# on dogs? list the #professional's id# , #role# and #email# .", + "db_id": "dog_kennels", + "orig_query": "select professional_id, role_code, email_address from professionals except select t1.professional_id, t1.role_code, t1.email_address from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "owners : city (\"Port Reannamouth\", \"South Daisyfurt\", \"New Margaretteborough\"), home_phone (\"1-682-845-0116x63235\", \"(058)997-7627\", \"130-796-4589x05454\"), email_address (\"pearlie18@example.com\", \"ykris@example.com\", \"kturner@example.net\"), first_name (\"Jaclyn\", \"Nora\", \"Rolando\"), owner_id (6, 14, 5), cell_number (\"341.667.8085\", \"481-483-9083x37986\", \"633.455.3045x85484\"), last_name (\"Hauck\", \"Prohaska\", \"Hamill\"), state (\"Mississippi\", \"SouthDakota\", \"Washington\"), zip_code (\"22731\", \"86010\", \"00589\"), street (\"6950 Katherine Forges Apt. 630\", \"59509 Mellie Mountain\", \"6950 Katherine Forges Apt. 630\") | Caregivers : state (\"Mississippi\", \"NewMexico\", \"Hawaii\"), professional_id (3, 8, 9), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), cell_number (\"889-940-2676\", \"889-940-2676\", \"1-258-285-4707x8020\"), home_phone (\"1-138-287-3775\", \"325-155-0801x7005\", \"+02(1)0259033559\"), zip_code (\"43129\", \"07412\", \"80775\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jeichmann@example.com\", \"uboehm@example.org\", \"marquardt.furman@example.org\"), city (\"West Heidi\", \"North Adelberttown\", \"North Odellfurt\"), last_name (\"Considine\", \"Christiansen\", \"Hyatt\"), first_name (\"Domenica\", \"Karley\", \"Sigurd\") | treatments : cost_of_treatment (668, 945, 514), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-15 19:10:02\", \"2018-03-15 19:10:02\"), professional_id (10, 8, 9), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (13, 5, 7), dog_id (14, 13, 15) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Handlers : state (\"Mississippi\", \"NewMexico\", \"Hawaii\"), professional_id (3, 8, 9), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), cell_number (\"889-940-2676\", \"889-940-2676\", \"1-258-285-4707x8020\"), home_phone (\"1-138-287-3775\", \"325-155-0801x7005\", \"+02(1)0259033559\"), zip_code (\"43129\", \"07412\", \"80775\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jeichmann@example.com\", \"uboehm@example.org\", \"marquardt.furman@example.org\"), city (\"West Heidi\", \"North Adelberttown\", \"North Odellfurt\"), last_name (\"Considine\", \"Christiansen\", \"Hyatt\"), first_name (\"Domenica\", \"Karley\", \"Sigurd\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2009-04-12 06:02:48\", \"2013-02-20 14:50:56\", \"2012-10-14 14:44:37\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-06 16:32:11\", \"2018-02-27 11:54:35\"), gender (\"1\", \"0\"), age (\"4\", \"3\", \"5\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 13:07:04\", \"2018-03-25 04:50:22\"), owner_id (6, 1, 8), dog_id (5, 7, 4), date_arrived (\"2017-10-25 00:55:34\", \"2017-06-18 19:45:38\", \"2017-04-15 09:25:31\"), weight (\"8.04\", \"9.8\", \"2.18\"), abandoned_yn (\"1\", \"0\"), name (\"Hipolito\", \"George\", \"Evangeline\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "owners : city , home_phone 997-7627\", \"130-796-4589x05454\", email_address , first_name , owner_id , cell_number , last_name , state , zip_code , street | Caregivers : state , professional_id , street , cell_number , home_phone 0259033559\", zip_code , role_code , email_address , city , last_name , first_name | treatments : cost_of_treatment , date_of_treatment , professional_id , treatment_type_code , treatment_id , dog_id | charges : charge_amount , charge_id , charge_type | treatment_types : treatment_type_description , treatment_type_code | breeds : breed_code , breed_name | Handlers : state , professional_id , street , cell_number , home_phone 0259033559\", zip_code , role_code , email_address , city , last_name , first_name | dogs : size_code , breed_code , date_of_birth , date_adopted , gender , age , date_departed , owner_id , dog_id , date_arrived , weight , abandoned_yn , name | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professional": "Professionals", + "treatment": "Treatments", + "role": "Professionals.role_code", + "email": "Professionals.email_address", + "professional's id": "Professionals.professional_id" + } + }, + { + "question": "which #professional# did not operate any #treatment# on dogs? list the #professional's id# , #role# and #email# .", + "db_id": "dog_kennels", + "orig_query": "select professional_id, role_code, email_address from professionals except select t1.professional_id, t1.role_code, t1.email_address from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : cell_number (\"(722)768-5439x484\", \"762.589.6117x1328\", \"478.978.0729\"), home_phone (\"01802479758\", \"085.557.0379x84348\", \"(094)747-5094x8134\"), first_name (\"Rachelle\", \"Lorenz\", \"Gay\"), zip_code (\"92406\", \"86010\", \"93165\"), last_name (\"Rippin\", \"Fisher\", \"Hamill\"), owner_id (3, 15, 6), street (\"692 Jaskolski Forges\", \"57382 Yost Ridges\", \"1858 Jan Park\"), email_address (\"lynn81@example.org\", \"hudson.favian@example.com\", \"fschoen@example.net\"), state (\"Maryland\", \"NewYork\", \"Pennsylvania\"), city (\"Port Reannamouth\", \"West Leonard\", \"Lake Valentin\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | therapies : cost_of_treatment (266, 567, 407), professional_id (14, 10, 14), treatment_id (8, 1, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-13 12:22:58\", \"2018-03-15 19:10:02\"), dog_id (2, 4, 7) | dogs : date_adopted (\"2018-02-27 00:27:57\", \"2018-03-10 15:06:43\", \"2018-03-08 15:03:00\"), date_of_birth (\"2012-05-03 21:42:25\", \"2017-09-19 05:39:09\", \"2009-04-12 06:02:48\"), age (\"8\", \"4\", \"5\"), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\"), name (\"Bessie\", \"Jeffrey\", \"Narciso\"), abandoned_yn (\"1\", \"0\"), weight (\"8.96\", \"6.92\", \"1.72\"), owner_id (6, 3, 14), date_arrived (\"2017-05-06 08:03:52\", \"2017-10-24 04:45:13\", \"2018-01-17 11:44:16\"), dog_id (11, 6, 4), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\") | professionals : cell_number (\"609-405-2990\", \"328.842.3792\", \"962-983-8109x3509\"), first_name (\"Jayson\", \"Jayson\", \"Vernice\"), city (\"Raynorfort\", \"Jaceton\", \"West Heidi\"), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), last_name (\"Tillman\", \"O'Reilly\", \"Tillman\"), home_phone (\"320-508-6023\", \"+43(5)1132733868\", \"325-155-0801x7005\"), professional_id (8, 1, 15), state (\"Mississippi\", \"Hawaii\", \"Wisconsin\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"cole.margarita@example.org\", \"jeichmann@example.com\", \"deanna.schuster@example.com\"), zip_code (\"02281\", \"98844\", \"02281\") | procedures : cost_of_treatment (266, 567, 407), professional_id (14, 10, 14), treatment_id (8, 1, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-13 12:22:58\", \"2018-03-15 19:10:02\"), dog_id (2, 4, 7) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "charges : charge_id , charge_amount , charge_type | treatment_types : treatment_type_description , treatment_type_code | owners : cell_number 768-5439x484\", \"762.589.6117x1328\", \"478.978.0729\", home_phone 747-5094x8134\", first_name , zip_code , last_name , owner_id , street , email_address , state , city | sizes : size_code , size_description | therapies : cost_of_treatment , professional_id , treatment_id , treatment_type_code , date_of_treatment , dog_id | dogs : date_adopted , date_of_birth , age , size_code , date_departed , name , abandoned_yn , weight , owner_id , date_arrived , dog_id , breed_code , gender | professionals : cell_number , first_name , city , street , last_name , home_phone 1132733868\", \"325-155-0801x7005\", professional_id , state , role_code , email_address , zip_code | procedures : cost_of_treatment , professional_id , treatment_id , treatment_type_code , date_of_treatment , dog_id | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professional": "Professionals", + "treatment": "Treatments", + "role": "Professionals.role_code", + "email": "Professionals.email_address", + "professional's id": "Professionals.professional_id" + } + }, + { + "question": "give me the #id# , #role# and e #mail of the professionals# who did not perform any #treatment# on dogs.", + "db_id": "dog_kennels", + "orig_query": "select professional_id, role_code, email_address from professionals except select t1.professional_id, t1.role_code, t1.email_address from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatments : treatment_id (8, 4, 1), professional_id (14, 4, 6), dog_id (7, 14, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-23 13:52:10\", \"2018-03-14 19:10:40\"), cost_of_treatment (147, 681, 313) | owners : cell_number (\"(257)399-3116\", \"121.381.3316x6535\", \"+70(4)9217952551\"), last_name (\"Fisher\", \"Rippin\", \"Hauck\"), zip_code (\"92406\", \"25609\", \"22693\"), first_name (\"Tre\", \"Lorenz\", \"Nora\"), home_phone (\"066.264.7885\", \"1-682-845-0116x63235\", \"066.264.7885\"), city (\"Port Reannamouth\", \"Lake Tia\", \"New Margaretteborough\"), email_address (\"lynn81@example.org\", \"angeline99@example.com\", \"ymaggio@example.com\"), owner_id (10, 2, 11), state (\"Vermont\", \"Indiana\", \"Arkansas\"), street (\"59509 Mellie Mountain\", \"59509 Mellie Mountain\", \"1204 Mae Highway Apt. 107\") | Caregivers : home_phone (\"022.529.0550x1319\", \"346.594.3739\", \"+71(6)2898266914\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), first_name (\"Domenica\", \"Jayson\", \"Danny\"), state (\"NewMexico\", \"Hawaii\", \"Alabama\"), email_address (\"marquardt.furman@example.org\", \"deanna.schuster@example.com\", \"deanna.schuster@example.com\"), zip_code (\"84515\", \"07412\", \"54312\"), role_code (\"Employee\", \"Veterenarian\"), city (\"East Ila\", \"Domenickton\", \"Borisside\"), cell_number (\"880-659-7577x736\", \"880-659-7577x736\", \"(369)908-7311x065\"), professional_id (3, 12, 1), last_name (\"Pouros\", \"Braun\", \"Kshlerin\") | dogs : date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 06:29:10\", \"2018-03-25 04:42:14\"), weight (\"6.92\", \"6.92\", \"1.72\"), owner_id (10, 6, 2), name (\"Kacey\", \"Lyric\", \"Hipolito\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"6\", \"9\", \"4\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-10 15:06:43\", \"2018-03-14 08:05:18\"), abandoned_yn (\"1\", \"0\"), date_of_birth (\"2009-04-12 06:02:48\", \"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\"), dog_id (9, 9, 9), date_arrived (\"2017-06-25 10:14:05\", \"2017-06-18 19:45:38\", \"2017-04-20 00:58:55\"), gender (\"1\", \"0\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Handlers : home_phone (\"022.529.0550x1319\", \"346.594.3739\", \"+71(6)2898266914\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), first_name (\"Domenica\", \"Jayson\", \"Danny\"), state (\"NewMexico\", \"Hawaii\", \"Alabama\"), email_address (\"marquardt.furman@example.org\", \"deanna.schuster@example.com\", \"deanna.schuster@example.com\"), zip_code (\"84515\", \"07412\", \"54312\"), role_code (\"Employee\", \"Veterenarian\"), city (\"East Ila\", \"Domenickton\", \"Borisside\"), cell_number (\"880-659-7577x736\", \"880-659-7577x736\", \"(369)908-7311x065\"), professional_id (3, 12, 1), last_name (\"Pouros\", \"Braun\", \"Kshlerin\")", + "schema_without_content": "breeds : breed_name , breed_code | treatments : treatment_id , professional_id , dog_id , treatment_type_code , date_of_treatment , cost_of_treatment | owners : cell_number 399-3116\", \"121.381.3316x6535\", \"+709217952551\", last_name , zip_code , first_name , home_phone , city , email_address , owner_id , state , street | Caregivers : home_phone 2898266914\", street , first_name , state , email_address , zip_code , role_code , city , cell_number 908-7311x065\", professional_id , last_name | dogs : date_departed , weight , owner_id , name , size_code , age , breed_code , date_adopted , abandoned_yn , date_of_birth , dog_id , date_arrived , gender | charges : charge_amount , charge_type , charge_id | treatment_types : treatment_type_description , treatment_type_code | sizes : size_description , size_code | Handlers : home_phone 2898266914\", street , first_name , state , email_address , zip_code , role_code , city , cell_number 908-7311x065\", professional_id , last_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "role": "Professionals.role_code", + "mail of the professionals": "Professionals", + "treatment": "Treatments", + "email": "Professionals.email_address" + } + }, + { + "question": "give me the #id# , #role# and e #mail of the professionals# who did not perform any #treatment# on dogs.", + "db_id": "dog_kennels", + "orig_query": "select professional_id, role_code, email_address from professionals except select t1.professional_id, t1.role_code, t1.email_address from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "therapies : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 14, 4), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-24 22:25:58\", \"2018-03-13 12:22:58\"), cost_of_treatment (681, 266, 407), dog_id (7, 2, 2), treatment_id (8, 9, 6) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : owner_id (1, 13, 6), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (10, 15, 3), weight (\"8.95\", \"9.48\", \"8.95\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-24 19:36:59\", \"2018-03-25 02:11:32\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-08 15:03:00\", \"2018-03-21 10:41:18\"), date_of_birth (\"2010-11-11 07:11:53\", \"2012-05-03 21:42:25\", \"2008-05-30 12:51:34\"), age (\"9\", \"4\", \"2\"), abandoned_yn (\"1\", \"0\"), name (\"Houston\", \"Mavis\", \"Kacey\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-10-25 00:55:34\", \"2018-01-17 11:44:16\", \"2018-01-17 11:44:16\") | professionals : last_name (\"Frami\", \"Jacobs\", \"Ullrich\"), city (\"Kirastad\", \"Jaceton\", \"Borisside\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"1-181-670-9466\", \"011.193.9081x3186\", \"(369)908-7311x065\"), email_address (\"cole.margarita@example.org\", \"cole.margarita@example.org\", \"mekhi.little@example.org\"), home_phone (\"971.048.3763x9404\", \"971.048.3763x9404\", \"+43(5)1132733868\"), state (\"Connecticut\", \"SouthCarolina\", \"SouthCarolina\"), zip_code (\"33020\", \"02281\", \"84515\"), professional_id (1, 8, 11), first_name (\"Domenica\", \"Ericka\", \"Winfield\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\") | owners : first_name (\"Emelie\", \"Rachelle\", \"Rachelle\"), zip_code (\"25609\", \"22693\", \"78297\"), last_name (\"Feil\", \"Hauck\", \"Hauck\"), city (\"Lake Jennyferfort\", \"Lake Carleyborough\", \"Lake Jennyferfort\"), owner_id (5, 9, 7), cell_number (\"(783)271-6744x4507\", \"1-739-421-2225x38148\", \"1-626-264-7659x1697\"), email_address (\"hudson.favian@example.com\", \"zboncak.madonna@example.net\", \"margaretta.runte@example.net\"), street (\"692 Jaskolski Forges\", \"1204 Mae Highway Apt. 107\", \"692 Jaskolski Forges\"), home_phone (\"363.948.1090\", \"01802479758\", \"318-052-6573\"), state (\"Pennsylvania\", \"Arizona\", \"NewYork\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | procedures : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 14, 4), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-24 22:25:58\", \"2018-03-13 12:22:58\"), cost_of_treatment (681, 266, 407), dog_id (7, 2, 2), treatment_id (8, 9, 6)", + "schema_without_content": "therapies : treatment_type_code , professional_id , date_of_treatment , cost_of_treatment , dog_id , treatment_id | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_code , breed_name | dogs : owner_id , breed_code , dog_id , weight , date_departed , gender , date_adopted , date_of_birth , age , abandoned_yn , name , size_code , date_arrived | professionals : last_name , city , role_code , cell_number 908-7311x065\", email_address , home_phone 1132733868\", state , zip_code , professional_id , first_name , street | owners : first_name , zip_code , last_name , city , owner_id , cell_number 271-6744x4507\", \"1-739-421-2225x38148\", \"1-626-264-7659x1697\", email_address , street , home_phone , state | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | procedures : treatment_type_code , professional_id , date_of_treatment , cost_of_treatment , dog_id , treatment_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "role": "Professionals.role_code", + "mail of the professionals": "Professionals", + "treatment": "Treatments", + "email": "Professionals.email_address" + } + }, + { + "question": "which owner owns the most dogs? list the #owner id# , #first name# and #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t2.first_name, t2.last_name from dogs as t1 join owners as t2 on t1.owner_id = t2.owner_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "Caretakers : home_phone (\"01802479758\", \"066.264.7885\", \"130-796-4589x05454\"), city (\"Lake Tia\", \"East Maribelbury\", \"Port Reannamouth\"), zip_code (\"86010\", \"87304\", \"25609\"), owner_id (4, 1, 8), cell_number (\"341.667.8085\", \"+70(4)9217952551\", \"341.667.8085\"), last_name (\"Mertz\", \"Fisher\", \"Feil\"), first_name (\"Tre\", \"Emelie\", \"Heather\"), email_address (\"edythe62@example.org\", \"ybergstrom@example.com\", \"pearlie18@example.com\"), state (\"Washington\", \"Maryland\", \"Florida\"), street (\"2417 Keara Stravenue Apt. 146\", \"60352 Kayleigh Crossing Suite 700\", \"60352 Kayleigh Crossing Suite 700\") | dogs : gender (\"1\", \"0\"), weight (\"7.57\", \"3.52\", \"1.39\"), owner_id (12, 12, 13), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-03-08 15:03:00\", \"2018-03-18 15:12:50\"), date_arrived (\"2017-10-25 00:55:34\", \"2017-05-06 08:03:52\", \"2017-06-25 10:14:05\"), name (\"Troy\", \"George\", \"Kacey\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"6\", \"6\", \"3\"), date_of_birth (\"2008-10-09 22:38:53\", \"2008-05-19 15:54:49\", \"2017-09-19 05:39:09\"), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 06:46:07\", \"2018-03-25 05:07:47\"), dog_id (1, 15, 10) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | professionals : email_address (\"delphine29@example.com\", \"jacynthe.mclaughlin@example.net\", \"jeichmann@example.com\"), first_name (\"Taryn\", \"Monte\", \"Brady\"), role_code (\"Employee\", \"Veterenarian\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), last_name (\"Murazik\", \"Hyatt\", \"Jacobs\"), zip_code (\"43129\", \"80775\", \"52476\"), home_phone (\"971.048.3763x9404\", \"(920)304-4499x59146\", \"(920)304-4499x59146\"), professional_id (9, 8, 3), cell_number (\"609-405-2990\", \"499-434-0215x1628\", \"889-940-2676\"), city (\"North Adelberttown\", \"Borisside\", \"Borisside\"), state (\"Utah\", \"Hawaii\", \"Indiana\") | Guardians : home_phone (\"01802479758\", \"066.264.7885\", \"130-796-4589x05454\"), city (\"Lake Tia\", \"East Maribelbury\", \"Port Reannamouth\"), zip_code (\"86010\", \"87304\", \"25609\"), owner_id (4, 1, 8), cell_number (\"341.667.8085\", \"+70(4)9217952551\", \"341.667.8085\"), last_name (\"Mertz\", \"Fisher\", \"Feil\"), first_name (\"Tre\", \"Emelie\", \"Heather\"), email_address (\"edythe62@example.org\", \"ybergstrom@example.com\", \"pearlie18@example.com\"), state (\"Washington\", \"Maryland\", \"Florida\"), street (\"2417 Keara Stravenue Apt. 146\", \"60352 Kayleigh Crossing Suite 700\", \"60352 Kayleigh Crossing Suite 700\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (12, 14, 8), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-14 19:10:40\", \"2018-03-11 04:23:15\"), professional_id (8, 5, 8), dog_id (4, 10, 14), cost_of_treatment (147, 945, 656) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "Caretakers : home_phone , city , zip_code , owner_id , cell_number 9217952551\", \"341.667.8085\", last_name , first_name , email_address , state , street | dogs : gender , weight , owner_id , abandoned_yn , date_adopted , date_arrived , name , breed_code , age , date_of_birth , size_code , date_departed , dog_id | breeds : breed_name , breed_code | professionals : email_address , first_name , role_code , street , last_name , zip_code , home_phone 304-4499x59146\", \"304-4499x59146\", professional_id , cell_number , city , state | Guardians : home_phone , city , zip_code , owner_id , cell_number 9217952551\", \"341.667.8085\", last_name , first_name , email_address , state , street | treatments : treatment_type_code , treatment_id , date_of_treatment , professional_id , dog_id , cost_of_treatment | charges : charge_type , charge_id , charge_amount | treatment_types : treatment_type_code , treatment_type_description | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "first name": "Owners.first_name", + "last name": "Owners.last_name" + } + }, + { + "question": "which owner owns the most dogs? list the #owner id# , #first name# and #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t2.first_name, t2.last_name from dogs as t1 join owners as t2 on t1.owner_id = t2.owner_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 10, 14), dog_id (7, 14, 10), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-15 20:25:34\", \"2018-03-15 20:25:34\"), cost_of_treatment (428, 945, 266), treatment_id (9, 15, 13) | professionals : street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"72532 Hane Course\nLake Berylland, ND 95283\"), zip_code (\"34041\", \"77129\", \"43129\"), professional_id (4, 11, 5), city (\"West Heidi\", \"Raynorfort\", \"Kirastad\"), cell_number (\"461-801-2600\", \"1-181-670-9466\", \"889-940-2676\"), email_address (\"mekhi.little@example.org\", \"goyette.roosevelt@example.net\", \"goyette.roosevelt@example.net\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"+71(6)2898266914\", \"(920)304-4499x59146\", \"(920)304-4499x59146\"), first_name (\"Sigurd\", \"Jayson\", \"Vernice\"), last_name (\"Jacobs\", \"Walter\", \"Considine\"), state (\"California\", \"Wyoming\", \"SouthCarolina\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Pooches : date_adopted (\"2018-02-25 23:45:30\", \"2018-03-10 15:06:43\", \"2018-02-25 23:45:30\"), gender (\"1\", \"0\"), date_arrived (\"2017-04-20 00:58:55\", \"2017-04-20 00:58:55\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"5.16\", \"1.72\", \"9.8\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 02:47:40\", \"2018-03-25 14:15:41\"), owner_id (11, 11, 8), name (\"Jesus\", \"Narciso\", \"Kacey\"), age (\"9\", \"8\", \"9\"), date_of_birth (\"2009-04-12 06:02:48\", \"2008-10-09 22:38:53\", \"2009-04-12 06:02:48\"), dog_id (15, 6, 3) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : owner_id (6, 7, 4), last_name (\"Price\", \"Feil\", \"Rippin\"), first_name (\"Rolando\", \"Orlando\", \"Jaclyn\"), city (\"East Maribelbury\", \"Port Reannamouth\", \"South Afton\"), zip_code (\"02647\", \"11990\", \"22693\"), state (\"Pennsylvania\", \"Washington\", \"Florida\"), cell_number (\"+70(4)9217952551\", \"1-739-421-2225x38148\", \"+00(2)4323592985\"), home_phone (\"(058)997-7627\", \"085.557.0379x84348\", \"(799)563-0260x454\"), email_address (\"edythe62@example.org\", \"edythe62@example.org\", \"christy49@example.org\"), street (\"89011 Kertzmann Spring Suite 642\", \"1204 Mae Highway Apt. 107\", \"59509 Mellie Mountain\") | Canines : date_adopted (\"2018-02-25 23:45:30\", \"2018-03-10 15:06:43\", \"2018-02-25 23:45:30\"), gender (\"1\", \"0\"), date_arrived (\"2017-04-20 00:58:55\", \"2017-04-20 00:58:55\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"5.16\", \"1.72\", \"9.8\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 02:47:40\", \"2018-03-25 14:15:41\"), owner_id (11, 11, 8), name (\"Jesus\", \"Narciso\", \"Kacey\"), age (\"9\", \"8\", \"9\"), date_of_birth (\"2009-04-12 06:02:48\", \"2008-10-09 22:38:53\", \"2009-04-12 06:02:48\"), dog_id (15, 6, 3) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "charges : charge_type , charge_id , charge_amount | treatments : treatment_type_code , professional_id , dog_id , date_of_treatment , cost_of_treatment , treatment_id | professionals : street , zip_code , professional_id , city , cell_number , email_address , role_code , home_phone 2898266914\", \"304-4499x59146\", \"304-4499x59146\", first_name , last_name , state | sizes : size_code , size_description | Pooches : date_adopted , gender , date_arrived , abandoned_yn , size_code , weight , breed_code , date_departed , owner_id , name , age , date_of_birth , dog_id | treatment_types : treatment_type_description , treatment_type_code | owners : owner_id , last_name , first_name , city , zip_code , state , cell_number 9217952551\", \"1-739-421-2225x38148\", \"+004323592985\", home_phone 997-7627\", \"085.557.0379x84348\", \"563-0260x454\", email_address , street | Canines : date_adopted , gender , date_arrived , abandoned_yn , size_code , weight , breed_code , date_departed , owner_id , name , age , date_of_birth , dog_id | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "first name": "Owners.first_name", + "last name": "Owners.last_name" + } + }, + { + "question": "return the #owner# id, #first name# and l #ast name of the owner# who has the most dogs.", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t2.first_name, t2.last_name from dogs as t1 join owners as t2 on t1.owner_id = t2.owner_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Caretakers : state (\"Florida\", \"Mississippi\", \"Virginia\"), last_name (\"Fisher\", \"Hamill\", \"Nicolas\"), home_phone (\"(094)747-5094x8134\", \"916.976.9480x13851\", \"(799)563-0260x454\"), city (\"New Margaretteborough\", \"South Afton\", \"East Hillardberg\"), email_address (\"fschoen@example.net\", \"ymaggio@example.com\", \"kturner@example.net\"), owner_id (14, 10, 14), street (\"1858 Jan Park\", \"0647 Hintz Village Apt. 024\", \"0647 Hintz Village Apt. 024\"), first_name (\"Orlando\", \"Heather\", \"Melisa\"), zip_code (\"22693\", \"25609\", \"22731\"), cell_number (\"1-626-264-7659x1697\", \"+00(2)4323592985\", \"478.978.0729\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Guardians : state (\"Florida\", \"Mississippi\", \"Virginia\"), last_name (\"Fisher\", \"Hamill\", \"Nicolas\"), home_phone (\"(094)747-5094x8134\", \"916.976.9480x13851\", \"(799)563-0260x454\"), city (\"New Margaretteborough\", \"South Afton\", \"East Hillardberg\"), email_address (\"fschoen@example.net\", \"ymaggio@example.com\", \"kturner@example.net\"), owner_id (14, 10, 14), street (\"1858 Jan Park\", \"0647 Hintz Village Apt. 024\", \"0647 Hintz Village Apt. 024\"), first_name (\"Orlando\", \"Heather\", \"Melisa\"), zip_code (\"22693\", \"25609\", \"22731\"), cell_number (\"1-626-264-7659x1697\", \"+00(2)4323592985\", \"478.978.0729\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | professionals : role_code (\"Employee\", \"Veterenarian\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), zip_code (\"06646\", \"34041\", \"34041\"), email_address (\"uboehm@example.org\", \"uboehm@example.org\", \"delphine29@example.com\"), state (\"Indiana\", \"Indiana\", \"SouthCarolina\"), last_name (\"Tillman\", \"Kshlerin\", \"Jacobs\"), home_phone (\"325-155-0801x7005\", \"(920)304-4499x59146\", \"971.048.3763x9404\"), cell_number (\"139-321-7313\", \"889-940-2676\", \"328.842.3792\"), first_name (\"Jayson\", \"Vernice\", \"Monte\"), professional_id (15, 14, 13), city (\"Jaceton\", \"Kirastad\", \"New Maryjane\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatments : professional_id (7, 4, 6), treatment_id (9, 6, 14), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-04 20:33:43\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (12, 1, 15), cost_of_treatment (313, 514, 668) | dogs : date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-08 15:03:00\", \"2018-03-08 15:03:00\"), dog_id (13, 12, 11), age (\"6\", \"2\", \"2\"), owner_id (8, 13, 7), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), name (\"Houston\", \"Bessie\", \"George\"), weight (\"3.52\", \"1.72\", \"8.16\"), date_arrived (\"2017-06-18 19:45:38\", \"2017-05-06 08:03:52\", \"2017-10-16 20:06:21\"), date_of_birth (\"2008-05-19 15:54:49\", \"2012-05-03 21:42:25\", \"2015-02-26 21:31:22\"), gender (\"1\", \"0\")", + "schema_without_content": "sizes : size_description , size_code | Caretakers : state , last_name , home_phone 747-5094x8134\", \"916.976.9480x13851\", \"563-0260x454\", city , email_address , owner_id , street , first_name , zip_code , cell_number 4323592985\", \"478.978.0729\" | treatment_types : treatment_type_code , treatment_type_description | Guardians : state , last_name , home_phone 747-5094x8134\", \"916.976.9480x13851\", \"563-0260x454\", city , email_address , owner_id , street , first_name , zip_code , cell_number 4323592985\", \"478.978.0729\" | charges : charge_id , charge_type , charge_amount | professionals : role_code , street , zip_code , email_address , state , last_name , home_phone 304-4499x59146\", \"971.048.3763x9404\", cell_number , first_name , professional_id , city | breeds : breed_name , breed_code | treatments : professional_id , treatment_id , date_of_treatment , treatment_type_code , dog_id , cost_of_treatment | dogs : date_departed , date_adopted , dog_id , age , owner_id , breed_code , size_code , abandoned_yn , name , weight , date_arrived , date_of_birth , gender", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "first name": "Owners.first_name", + "ast name of the owner": "Owners", + "owner id": "Owners.owner_id", + "last name": "Owners.last_name" + } + }, + { + "question": "return the #owner# id, #first name# and l #ast name of the owner# who has the most dogs.", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t2.first_name, t2.last_name from dogs as t1 join owners as t2 on t1.owner_id = t2.owner_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-13 12:22:58\", \"2018-03-13 12:22:58\"), professional_id (4, 9, 10), treatment_id (5, 3, 13), dog_id (13, 15, 13), cost_of_treatment (266, 428, 313), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Canines : date_adopted (\"2018-03-23 16:02:04\", \"2018-03-18 15:12:50\", \"2018-02-27 11:54:35\"), dog_id (1, 7, 11), age (\"9\", \"4\", \"4\"), name (\"Mavis\", \"Merritt\", \"Narciso\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\", \"2017-09-08 20:10:13\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 06:58:44\", \"2018-03-25 10:25:46\"), owner_id (14, 7, 6), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"2.18\", \"2.18\", \"1.72\"), gender (\"1\", \"0\"), date_of_birth (\"2012-05-31 08:01:36\", \"2012-07-11 17:15:10\", \"2017-09-19 05:39:09\"), abandoned_yn (\"1\", \"0\") | professionals : first_name (\"Monte\", \"Domenica\", \"Danny\"), email_address (\"cole.margarita@example.org\", \"jerrod.bahringer@example.org\", \"goyette.roosevelt@example.net\"), last_name (\"Hayes\", \"Hayes\", \"Braun\"), professional_id (4, 6, 2), city (\"West Heidi\", \"New Laurytown\", \"Raynorfort\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), zip_code (\"84515\", \"67980\", \"77129\"), state (\"Mississippi\", \"SouthCarolina\", \"Alabama\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"609-405-2990\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"1-609-566-2752x25197\", \"(920)304-4499x59146\", \"346.594.3739\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | owners : state (\"Indiana\", \"Arkansas\", \"Mississippi\"), city (\"Beerton\", \"Lake Carleyborough\", \"Lake Jennyferfort\"), cell_number (\"1-626-264-7659x1697\", \"+70(4)9217952551\", \"+00(2)4323592985\"), first_name (\"Kade\", \"Emelie\", \"Adelle\"), last_name (\"Ondricka\", \"Rippin\", \"Fisher\"), email_address (\"ymaggio@example.com\", \"fschoen@example.net\", \"marks.gail@example.org\"), street (\"51934 Treutel Harbor\", \"9212 Rosenbaum Lights\", \"2417 Keara Stravenue Apt. 146\"), owner_id (2, 3, 3), home_phone (\"(058)997-7627\", \"130-796-4589x05454\", \"1-346-655-5842x768\"), zip_code (\"87304\", \"02647\", \"87304\") | Pooches : date_adopted (\"2018-03-23 16:02:04\", \"2018-03-18 15:12:50\", \"2018-02-27 11:54:35\"), dog_id (1, 7, 11), age (\"9\", \"4\", \"4\"), name (\"Mavis\", \"Merritt\", \"Narciso\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\", \"2017-09-08 20:10:13\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 06:58:44\", \"2018-03-25 10:25:46\"), owner_id (14, 7, 6), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"2.18\", \"2.18\", \"1.72\"), gender (\"1\", \"0\"), date_of_birth (\"2012-05-31 08:01:36\", \"2012-07-11 17:15:10\", \"2017-09-19 05:39:09\"), abandoned_yn (\"1\", \"0\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "breeds : breed_code , breed_name | treatments : date_of_treatment , professional_id , treatment_id , dog_id , cost_of_treatment , treatment_type_code | treatment_types : treatment_type_code , treatment_type_description | Canines : date_adopted , dog_id , age , name , size_code , date_arrived , date_departed , owner_id , breed_code , weight , gender , date_of_birth , abandoned_yn | professionals : first_name , email_address , last_name , professional_id , city , street , zip_code , state , cell_number , role_code , home_phone 304-4499x59146\", \"346.594.3739\" | charges : charge_amount , charge_type , charge_id | owners : state , city , cell_number 9217952551\", \"+004323592985\", first_name , last_name , email_address , street , owner_id , home_phone 997-7627\", \"130-796-4589x05454\", \"1-346-655-5842x768\", zip_code | Pooches : date_adopted , dog_id , age , name , size_code , date_arrived , date_departed , owner_id , breed_code , weight , gender , date_of_birth , abandoned_yn | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "first name": "Owners.first_name", + "ast name of the owner": "Owners", + "owner id": "Owners.owner_id", + "last name": "Owners.last_name" + } + }, + { + "question": "which #professionals# have done at least two #treatments# ? list the #professional's id# , #role# , and #first name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.role_code, t1.first_name from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "treatments : professional_id (14, 8, 7), treatment_id (11, 10, 5), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-14 19:10:40\", \"2018-03-14 19:10:40\"), dog_id (14, 7, 13), cost_of_treatment (668, 514, 313) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Handlers : first_name (\"Ruben\", \"Vernice\", \"Monte\"), home_phone (\"+43(5)1132733868\", \"246-951-0080x76716\", \"+43(5)1132733868\"), email_address (\"goyette.roosevelt@example.net\", \"cole.margarita@example.org\", \"jeichmann@example.com\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (8, 12, 6), city (\"East Ila\", \"Kirastad\", \"Kirastad\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"962-983-8109x3509\", \"1-258-285-4707x8020\", \"1-258-285-4707x8020\"), state (\"Montana\", \"NorthCarolina\", \"Wisconsin\"), zip_code (\"80775\", \"33020\", \"17902\"), last_name (\"Kshlerin\", \"Frami\", \"Tillman\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | dogs : date_of_birth (\"2010-11-11 07:11:53\", \"2012-05-03 21:42:25\", \"2012-10-14 14:44:37\"), dog_id (15, 10, 6), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-18 15:12:50\", \"2018-03-05 06:05:23\"), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), weight (\"1.72\", \"9.48\", \"8.04\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 06:58:44\", \"2018-03-25 02:47:40\"), gender (\"1\", \"0\"), name (\"Betty\", \"Evangeline\", \"Evangeline\"), owner_id (3, 8, 12), date_arrived (\"2017-10-24 04:45:13\", \"2017-10-25 00:55:34\", \"2017-12-22 05:02:02\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"9\", \"4\", \"9\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Caregivers : first_name (\"Ruben\", \"Vernice\", \"Monte\"), home_phone (\"+43(5)1132733868\", \"246-951-0080x76716\", \"+43(5)1132733868\"), email_address (\"goyette.roosevelt@example.net\", \"cole.margarita@example.org\", \"jeichmann@example.com\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (8, 12, 6), city (\"East Ila\", \"Kirastad\", \"Kirastad\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"962-983-8109x3509\", \"1-258-285-4707x8020\", \"1-258-285-4707x8020\"), state (\"Montana\", \"NorthCarolina\", \"Wisconsin\"), zip_code (\"80775\", \"33020\", \"17902\"), last_name (\"Kshlerin\", \"Frami\", \"Tillman\") | owners : first_name (\"Lorenz\", \"Nora\", \"Melisa\"), cell_number (\"762.589.6117x1328\", \"(783)271-6744x4507\", \"739-136-7202\"), owner_id (15, 10, 2), home_phone (\"(058)997-7627\", \"130-796-4589x05454\", \"066.264.7885\"), street (\"692 Jaskolski Forges\", \"59509 Mellie Mountain\", \"89011 Kertzmann Spring Suite 642\"), city (\"Lake Tia\", \"New Margaretteborough\", \"West Leonard\"), last_name (\"Prohaska\", \"Mertz\", \"Hauck\"), email_address (\"ykris@example.com\", \"christy49@example.org\", \"lynn81@example.org\"), state (\"NorthDakota\", \"Arkansas\", \"Vermont\"), zip_code (\"02647\", \"02647\", \"35747\")", + "schema_without_content": "treatments : professional_id , treatment_id , treatment_type_code , date_of_treatment , dog_id , cost_of_treatment | breeds : breed_name , breed_code | Handlers : first_name , home_phone 1132733868\", \"246-951-0080x76716\", \"+431132733868\", email_address , street , professional_id , city , role_code , cell_number , state , zip_code , last_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | dogs : date_of_birth , dog_id , date_adopted , size_code , abandoned_yn , weight , date_departed , gender , name , owner_id , date_arrived , breed_code , age | treatment_types : treatment_type_description , treatment_type_code | Caregivers : first_name , home_phone 1132733868\", \"246-951-0080x76716\", \"+431132733868\", email_address , street , professional_id , city , role_code , cell_number , state , zip_code , last_name | owners : first_name , cell_number 271-6744x4507\", \"739-136-7202\", owner_id , home_phone 997-7627\", \"130-796-4589x05454\", \"066.264.7885\", street , city , last_name , email_address , state , zip_code", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "treatments": "Treatments", + "role": "Professionals.role_code", + "first name": "Professionals.first_name", + "professional's id": "Professionals.professional_id" + } + }, + { + "question": "which #professionals# have done at least two #treatments# ? list the #professional's id# , #role# , and #first name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.role_code, t1.first_name from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : state (\"Indiana\", \"Washington\", \"Mississippi\"), street (\"59509 Mellie Mountain\", \"68118 Daniel Row\", \"89011 Kertzmann Spring Suite 642\"), email_address (\"angeline99@example.com\", \"ymaggio@example.com\", \"ymaggio@example.com\"), owner_id (7, 6, 1), last_name (\"Price\", \"Price\", \"Hamill\"), first_name (\"Johann\", \"Rolando\", \"Nora\"), city (\"East Maribelbury\", \"Port Zackery\", \"West Leonard\"), cell_number (\"+70(4)9217952551\", \"1-739-421-2225x38148\", \"633.455.3045x85484\"), zip_code (\"92406\", \"22731\", \"35747\"), home_phone (\"130-796-4589x05454\", \"1-682-845-0116x63235\", \"01802479758\") | professionals : last_name (\"Jacobs\", \"Jacobs\", \"Pouros\"), state (\"Montana\", \"Montana\", \"SouthCarolina\"), home_phone (\"+02(1)0259033559\", \"320-508-6023\", \"312.216.3352\"), cell_number (\"00230569697\", \"461-801-2600\", \"1-258-285-4707x8020\"), first_name (\"Lesly\", \"Monte\", \"Sigurd\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), zip_code (\"80775\", \"98844\", \"17902\"), email_address (\"uboehm@example.org\", \"lourdes.lowe@example.net\", \"jeichmann@example.com\"), professional_id (9, 11, 9), city (\"North Odellfurt\", \"New Maryjane\", \"McLaughlinfort\"), role_code (\"Employee\", \"Veterenarian\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | procedures : cost_of_treatment (139, 428, 945), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-15 20:25:34\", \"2018-03-15 20:25:34\"), treatment_id (7, 2, 3), professional_id (4, 5, 9), dog_id (13, 14, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | therapies : cost_of_treatment (139, 428, 945), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-15 20:25:34\", \"2018-03-15 20:25:34\"), treatment_id (7, 2, 3), professional_id (4, 5, 9), dog_id (13, 14, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | dogs : date_arrived (\"2017-10-24 04:45:13\", \"2018-01-02 03:15:29\", \"2017-10-25 00:55:34\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 02:11:32\", \"2018-03-25 06:46:07\"), age (\"4\", \"4\", \"4\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"8.95\", \"9.8\", \"1.72\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (14, 1, 10), date_of_birth (\"2015-02-26 21:31:22\", \"2008-05-30 12:51:34\", \"2012-05-31 08:01:36\"), owner_id (12, 10, 14), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-18 07:47:40\", \"2018-02-27 11:54:35\"), name (\"Jeffrey\", \"Kacey\", \"Jeffrey\"), gender (\"1\", \"0\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | sizes : size_description , size_code | owners : state , street , email_address , owner_id , last_name , first_name , city , cell_number 9217952551\", \"1-739-421-2225x38148\", \"633.455.3045x85484\", zip_code , home_phone | professionals : last_name , state , home_phone 0259033559\", \"320-508-6023\", \"312.216.3352\", cell_number , first_name , street , zip_code , email_address , professional_id , city , role_code | breeds : breed_code , breed_name | procedures : cost_of_treatment , date_of_treatment , treatment_id , professional_id , dog_id , treatment_type_code | charges : charge_id , charge_type , charge_amount | therapies : cost_of_treatment , date_of_treatment , treatment_id , professional_id , dog_id , treatment_type_code | dogs : date_arrived , date_departed , age , abandoned_yn , size_code , weight , breed_code , dog_id , date_of_birth , owner_id , date_adopted , name , gender", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "treatments": "Treatments", + "role": "Professionals.role_code", + "first name": "Professionals.first_name", + "professional's id": "Professionals.professional_id" + } + }, + { + "question": "what are the #id# , #role# , and fi #rst name of the professionals w# ho have performed two or more treatments?", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.role_code, t1.first_name from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Handlers : street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), home_phone (\"246-951-0080x76716\", \"+43(5)1132733868\", \"+71(6)2898266914\"), city (\"Juddton\", \"Borisside\", \"South Rockyport\"), first_name (\"Domenica\", \"Monte\", \"Domenica\"), state (\"Hawaii\", \"Alabama\", \"Wyoming\"), last_name (\"Pouros\", \"Pouros\", \"Frami\"), email_address (\"lourdes.lowe@example.net\", \"uboehm@example.org\", \"lucile.shanahan@example.org\"), cell_number (\"(275)939-2435x80863\", \"328.842.3792\", \"(369)908-7311x065\"), professional_id (4, 2, 6), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"02281\", \"02281\", \"07412\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Caregivers : street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), home_phone (\"246-951-0080x76716\", \"+43(5)1132733868\", \"+71(6)2898266914\"), city (\"Juddton\", \"Borisside\", \"South Rockyport\"), first_name (\"Domenica\", \"Monte\", \"Domenica\"), state (\"Hawaii\", \"Alabama\", \"Wyoming\"), last_name (\"Pouros\", \"Pouros\", \"Frami\"), email_address (\"lourdes.lowe@example.net\", \"uboehm@example.org\", \"lucile.shanahan@example.org\"), cell_number (\"(275)939-2435x80863\", \"328.842.3792\", \"(369)908-7311x065\"), professional_id (4, 2, 6), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"02281\", \"02281\", \"07412\") | dogs : gender (\"1\", \"0\"), date_of_birth (\"2008-10-09 22:38:53\", \"2008-10-09 22:38:53\", \"2015-02-26 21:31:22\"), abandoned_yn (\"1\", \"0\"), age (\"3\", \"6\", \"6\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (6, 11, 5), dog_id (1, 5, 9), date_departed (\"2018-03-24 23:48:59\", \"2018-03-24 19:12:22\", \"2018-03-25 14:15:41\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-02-27 00:27:57\", \"2018-03-05 06:05:23\"), name (\"Hipolito\", \"Houston\", \"Holden\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"1.72\", \"3.52\", \"5.16\"), date_arrived (\"2018-01-17 11:44:16\", \"2017-12-29 23:24:13\", \"2017-10-16 20:06:21\") | owners : last_name (\"Feil\", \"Prohaska\", \"Funk\"), state (\"Indiana\", \"Vermont\", \"Maryland\"), zip_code (\"22693\", \"45244\", \"25609\"), city (\"East Hillardberg\", \"Lake Valentin\", \"West Leonard\"), cell_number (\"481-483-9083x37986\", \"1-626-264-7659x1697\", \"478.978.0729\"), email_address (\"fschoen@example.net\", \"pearlie18@example.com\", \"hudson.favian@example.com\"), street (\"89011 Kertzmann Spring Suite 642\", \"68118 Daniel Row\", \"6950 Katherine Forges Apt. 630\"), owner_id (11, 5, 5), first_name (\"Heather\", \"Lorenz\", \"Rachelle\"), home_phone (\"(799)563-0260x454\", \"130-796-4589x05454\", \"1-332-849-1908\") | treatments : date_of_treatment (\"2018-03-08 05:26:23\", \"2018-03-13 12:22:58\", \"2018-03-15 20:25:34\"), cost_of_treatment (429, 681, 313), professional_id (8, 6, 5), treatment_id (7, 13, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (4, 12, 10)", + "schema_without_content": "breeds : breed_code , breed_name | sizes : size_description , size_code | Handlers : street , home_phone 1132733868\", \"+712898266914\", city , first_name , state , last_name , email_address , cell_number 939-2435x80863\", \"328.842.3792\", \"908-7311x065\", professional_id , role_code , zip_code | treatment_types : treatment_type_code , treatment_type_description | charges : charge_amount , charge_id , charge_type | Caregivers : street , home_phone 1132733868\", \"+712898266914\", city , first_name , state , last_name , email_address , cell_number 939-2435x80863\", \"328.842.3792\", \"908-7311x065\", professional_id , role_code , zip_code | dogs : gender , date_of_birth , abandoned_yn , age , breed_code , owner_id , dog_id , date_departed , date_adopted , name , size_code , weight , date_arrived | owners : last_name , state , zip_code , city , cell_number , email_address , street , owner_id , first_name , home_phone 563-0260x454\", \"130-796-4589x05454\", \"1-332-849-1908\" | treatments : date_of_treatment , cost_of_treatment , professional_id , treatment_id , treatment_type_code , dog_id", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "role": "Professionals.role_code", + "rst name of the professionals w": "Professionals", + "first name": "Professionals.first_name" + } + }, + { + "question": "what are the #id# , #role# , and fi #rst name of the professionals w# ho have performed two or more treatments?", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.role_code, t1.first_name from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | procedures : dog_id (7, 2, 4), cost_of_treatment (668, 313, 656), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 14), treatment_id (6, 14, 9), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-10 11:45:58\", \"2018-03-10 11:45:58\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : zip_code (\"77129\", \"33020\", \"02281\"), professional_id (6, 11, 3), city (\"Kirastad\", \"Juddton\", \"West Heidi\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), email_address (\"west.eula@example.net\", \"schneider.kathryne@example.org\", \"lucile.shanahan@example.org\"), first_name (\"Domenica\", \"Lesly\", \"Ericka\"), last_name (\"Frami\", \"Kshlerin\", \"Frami\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"971.048.3763x9404\", \"312.216.3352\", \"1-138-287-3775\"), state (\"Indiana\", \"SouthCarolina\", \"Connecticut\"), cell_number (\"139-321-7313\", \"962-983-8109x3509\", \"609-405-2990\") | therapies : dog_id (7, 2, 4), cost_of_treatment (668, 313, 656), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 14), treatment_id (6, 14, 9), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-10 11:45:58\", \"2018-03-10 11:45:58\") | dogs : weight (\"8.16\", \"4.36\", \"1.72\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2012-07-11 17:15:10\", \"2012-05-31 08:01:36\", \"2018-03-17 04:05:12\"), date_arrived (\"2017-12-22 05:02:02\", \"2017-05-06 08:03:52\", \"2017-09-08 20:10:13\"), date_adopted (\"2018-03-18 07:47:40\", \"2018-03-18 15:12:50\", \"2018-03-13 12:47:15\"), age (\"6\", \"4\", \"1\"), name (\"Holden\", \"Troy\", \"Bessie\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 04:42:14\", \"2018-03-24 19:12:22\"), dog_id (8, 7, 10), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), owner_id (6, 10, 2) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : last_name (\"Schmitt\", \"Schmitt\", \"Prohaska\"), email_address (\"zboncak.madonna@example.net\", \"christy49@example.org\", \"hudson.favian@example.com\"), owner_id (9, 8, 3), street (\"1858 Jan Park\", \"59509 Mellie Mountain\", \"9212 Rosenbaum Lights\"), home_phone (\"1-346-655-5842x768\", \"01802479758\", \"1-332-849-1908\"), city (\"Port Zackery\", \"West Leonard\", \"Brakusfurt\"), zip_code (\"78297\", \"61019\", \"61019\"), state (\"NewYork\", \"Washington\", \"Mississippi\"), first_name (\"Heather\", \"Adelle\", \"Heather\"), cell_number (\"(783)271-6744x4507\", \"762.589.6117x1328\", \"481-483-9083x37986\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | procedures : dog_id , cost_of_treatment , treatment_type_code , professional_id , treatment_id , date_of_treatment | charges : charge_id , charge_type , charge_amount | sizes : size_description , size_code | professionals : zip_code , professional_id , city , street , email_address , first_name , last_name , role_code , home_phone , state , cell_number | therapies : dog_id , cost_of_treatment , treatment_type_code , professional_id , treatment_id , date_of_treatment | dogs : weight , size_code , date_of_birth , date_arrived , date_adopted , age , name , breed_code , date_departed , dog_id , gender , abandoned_yn , owner_id | breeds : breed_name , breed_code | owners : last_name , email_address , owner_id , street , home_phone , city , zip_code , state , first_name , cell_number 271-6744x4507\", \"762.589.6117x1328\", \"481-483-9083x37986\"", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "role": "Professionals.role_code", + "rst name of the professionals w": "Professionals", + "first name": "Professionals.first_name" + } + }, + { + "question": "what is the #name of the breed# with the most #dogs# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.breed_name from breeds as t1 join dogs as t2 on t1.breed_code = t2.breed_code group by t1.breed_name order by count(*) desc limit 1", + "schema_with_content": "owners : home_phone (\"916.976.9480x13851\", \"130-796-4589x05454\", \"085.557.0379x84348\"), email_address (\"ymaggio@example.com\", \"ykris@example.com\", \"christy49@example.org\"), owner_id (6, 15, 8), city (\"East Hillardberg\", \"South Daisyfurt\", \"Lake Jennyferfort\"), zip_code (\"93165\", \"11990\", \"25609\"), last_name (\"Mertz\", \"Feil\", \"Ondricka\"), street (\"2417 Keara Stravenue Apt. 146\", \"89011 Kertzmann Spring Suite 642\", \"692 Jaskolski Forges\"), first_name (\"Rachelle\", \"Nora\", \"Rachelle\"), state (\"Pennsylvania\", \"NewYork\", \"Maryland\"), cell_number (\"481-483-9083x37986\", \"478.978.0729\", \"(783)271-6744x4507\") | Dog_Types : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Canine_Breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | professionals : street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), first_name (\"Jayson\", \"Ericka\", \"Ericka\"), last_name (\"Murazik\", \"Pouros\", \"Pouros\"), zip_code (\"41215\", \"17902\", \"06646\"), email_address (\"mekhi.little@example.org\", \"jeichmann@example.com\", \"west.eula@example.net\"), city (\"North Adelberttown\", \"West Heidi\", \"Juddton\"), state (\"Connecticut\", \"Montana\", \"NewMexico\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"246-951-0080x76716\", \"325-155-0801x7005\", \"+71(6)2898266914\"), cell_number (\"00230569697\", \"1-185-137-1945x409\", \"139-321-7313\"), professional_id (2, 13, 7) | dogs : date_arrived (\"2017-12-29 23:24:13\", \"2017-10-24 04:45:13\", \"2017-10-25 00:55:34\"), weight (\"8.16\", \"1.72\", \"9.48\"), date_of_birth (\"2008-05-19 15:54:49\", \"2012-05-31 08:01:36\", \"2008-10-09 22:38:53\"), owner_id (13, 7, 13), date_adopted (\"2018-03-21 10:41:18\", \"2018-03-10 15:06:43\", \"2018-03-23 16:02:04\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), age (\"4\", \"2\", \"4\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 13:07:04\", \"2018-03-25 02:11:32\"), name (\"Houston\", \"Betty\", \"Evangeline\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (3, 10, 5) | treatments : treatment_id (10, 6, 10), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-10 11:45:58\", \"2018-03-13 12:22:58\"), dog_id (12, 10, 10), cost_of_treatment (668, 514, 852), professional_id (7, 5, 5), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\")", + "schema_without_content": "owners : home_phone , email_address , owner_id , city , zip_code , last_name , street , first_name , state , cell_number 271-6744x4507\" | Dog_Types : breed_name , breed_code | Canine_Breeds : breed_name , breed_code | sizes : size_code , size_description | charges : charge_amount , charge_type , charge_id | professionals : street , first_name , last_name , zip_code , email_address , city , state , role_code , home_phone 2898266914\", cell_number , professional_id | dogs : date_arrived , weight , date_of_birth , owner_id , date_adopted , breed_code , abandoned_yn , gender , age , date_departed , name , size_code , dog_id | treatments : treatment_id , date_of_treatment , dog_id , cost_of_treatment , professional_id , treatment_type_code | treatment_types : treatment_type_code , treatment_type_description", + "extra_map": null, + "extra_table_map": { + "breeds": [ + "Dog_Types", + "Canine_Breeds" + ] + }, + "db_schema": { + "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" + ], + "Dog_Types": [ + "breed_code", + "breed_name" + ], + "Canine_Breeds": [ + "breed_code", + "breed_name" + ] + }, + "column_linking_gt": { + "name of the breed": "Breeds.breed_name", + "dogs": "Dogs" + } + }, + { + "question": "what is the #name of the breed# with the most #dogs# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.breed_name from breeds as t1 join dogs as t2 on t1.breed_code = t2.breed_code group by t1.breed_name order by count(*) desc limit 1", + "schema_with_content": "owners : first_name (\"Rolando\", \"Jaclyn\", \"Rolando\"), home_phone (\"(058)997-7627\", \"363.948.1090\", \"130-796-4589x05454\"), last_name (\"Hamill\", \"Hamill\", \"DuBuque\"), email_address (\"ykris@example.com\", \"fschoen@example.net\", \"christy49@example.org\"), owner_id (5, 6, 6), city (\"Lake Jennyferfort\", \"Lake Carleyborough\", \"East Maribelbury\"), zip_code (\"35747\", \"78297\", \"35747\"), state (\"Florida\", \"Washington\", \"Indiana\"), street (\"51934 Treutel Harbor\", \"59509 Mellie Mountain\", \"1858 Jan Park\"), cell_number (\"(722)768-5439x484\", \"478.978.0729\", \"(783)271-6744x4507\") | professionals : street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"72532 Hane Course\nLake Berylland, ND 95283\"), city (\"Juddton\", \"McLaughlinfort\", \"North Adelberttown\"), last_name (\"O'Reilly\", \"Tillman\", \"Frami\"), cell_number (\"00230569697\", \"499-434-0215x1628\", \"00230569697\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"022.529.0550x1319\", \"022.529.0550x1319\", \"+71(6)2898266914\"), zip_code (\"41215\", \"54312\", \"52476\"), email_address (\"lucile.shanahan@example.org\", \"jacynthe.mclaughlin@example.net\", \"uboehm@example.org\"), professional_id (7, 6, 3), state (\"Utah\", \"Wyoming\", \"Montana\"), first_name (\"Karley\", \"Brady\", \"Ruben\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Canines : breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"5\", \"5\", \"5\"), dog_id (2, 13, 12), weight (\"4.36\", \"8.96\", \"4.36\"), owner_id (7, 10, 12), gender (\"1\", \"0\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-10-25 00:55:34\", \"2017-04-15 09:25:31\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-24 19:36:59\", \"2018-03-25 14:15:41\"), abandoned_yn (\"1\", \"0\"), name (\"Troy\", \"Jesus\", \"Houston\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-21 10:41:18\", \"2018-03-18 07:47:40\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\") | treatments : cost_of_treatment (945, 313, 668), dog_id (7, 12, 13), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-10 11:45:58\", \"2018-03-16 10:27:36\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (14, 5, 8), treatment_id (7, 3, 11) | Pooches : breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"5\", \"5\", \"5\"), dog_id (2, 13, 12), weight (\"4.36\", \"8.96\", \"4.36\"), owner_id (7, 10, 12), gender (\"1\", \"0\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-10-25 00:55:34\", \"2017-04-15 09:25:31\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-24 19:36:59\", \"2018-03-25 14:15:41\"), abandoned_yn (\"1\", \"0\"), name (\"Troy\", \"Jesus\", \"Houston\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-21 10:41:18\", \"2018-03-18 07:47:40\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "owners : first_name , home_phone 997-7627\", \"363.948.1090\", \"130-796-4589x05454\", last_name , email_address , owner_id , city , zip_code , state , street , cell_number 768-5439x484\", \"478.978.0729\", \"271-6744x4507\" | professionals : street , city , last_name , cell_number , role_code , home_phone 2898266914\", zip_code , email_address , professional_id , state , first_name | sizes : size_code , size_description | Canines : breed_code , age , dog_id , weight , owner_id , gender , date_arrived , date_departed , abandoned_yn , name , date_adopted , size_code , date_of_birth | treatments : cost_of_treatment , dog_id , date_of_treatment , treatment_type_code , professional_id , treatment_id | Pooches : breed_code , age , dog_id , weight , owner_id , gender , date_arrived , date_departed , abandoned_yn , name , date_adopted , size_code , date_of_birth | charges : charge_id , charge_amount , charge_type | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "name of the breed": "Breeds.breed_name", + "dogs": "Dogs" + } + }, + { + "question": "which #breed# do the most dogs have? give me the #breed name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.breed_name from breeds as t1 join dogs as t2 on t1.breed_code = t2.breed_code group by t1.breed_name order by count(*) desc limit 1", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatments : dog_id (14, 4, 15), professional_id (14, 8, 4), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-23 13:52:10\", \"2018-02-26 09:08:53\"), treatment_id (12, 3, 3), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 514, 567) | Canine_Breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Dog_Types : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : email_address (\"lynn81@example.org\", \"ymaggio@example.com\", \"zboncak.madonna@example.net\"), state (\"Wisconsin\", \"NewYork\", \"Arkansas\"), street (\"57382 Yost Ridges\", \"2635 Caitlyn Plains\", \"51934 Treutel Harbor\"), zip_code (\"45244\", \"87304\", \"36871\"), owner_id (10, 6, 6), first_name (\"Cindy\", \"Emelie\", \"Gay\"), cell_number (\"(257)399-3116\", \"481-483-9083x37986\", \"121.381.3316x6535\"), city (\"Lake Jennyferfort\", \"Port Zackery\", \"Lake Jennyferfort\"), last_name (\"Fisher\", \"Hauck\", \"Price\"), home_phone (\"916.976.9480x13851\", \"085.557.0379x84348\", \"1-682-845-0116x63235\") | dogs : age (\"4\", \"6\", \"9\"), weight (\"9.8\", \"8.96\", \"9.8\"), date_arrived (\"2017-12-22 05:02:02\", \"2018-01-17 11:44:16\", \"2017-12-29 06:08:26\"), date_of_birth (\"2017-09-19 05:39:09\", \"2010-11-11 07:11:53\", \"2008-10-09 22:38:53\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (14, 8, 13), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-21 10:41:18\", \"2018-03-10 15:06:43\"), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 04:42:14\", \"2018-03-25 14:15:41\"), name (\"Evangeline\", \"Narciso\", \"Mavis\"), abandoned_yn (\"1\", \"0\"), owner_id (2, 6, 1), breed_code (\"ESK\", \"BUL\", \"HUS\") | professionals : last_name (\"O'Reilly\", \"O'Reilly\", \"Pouros\"), city (\"New Maryjane\", \"West Heidi\", \"West Heidi\"), home_phone (\"891.475.2256\", \"246-951-0080x76716\", \"320-508-6023\"), cell_number (\"(369)908-7311x065\", \"00230569697\", \"(275)939-2435x80863\"), first_name (\"Olaf\", \"Jayson\", \"Taryn\"), zip_code (\"07412\", \"67980\", \"80775\"), email_address (\"lucile.shanahan@example.org\", \"deanna.schuster@example.com\", \"jeichmann@example.com\"), role_code (\"Employee\", \"Veterenarian\"), street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), professional_id (1, 2, 3), state (\"NorthCarolina\", \"Connecticut\", \"Mississippi\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | charges : charge_type , charge_id , charge_amount | sizes : size_description , size_code | treatments : dog_id , professional_id , date_of_treatment , treatment_id , treatment_type_code , cost_of_treatment | Canine_Breeds : breed_name , breed_code | Dog_Types : breed_name , breed_code | owners : email_address , state , street , zip_code , owner_id , first_name , cell_number 399-3116\", \"481-483-9083x37986\", \"121.381.3316x6535\", city , last_name , home_phone | dogs : age , weight , date_arrived , date_of_birth , gender , size_code , dog_id , date_adopted , date_departed , name , abandoned_yn , owner_id , breed_code | professionals : last_name , city , home_phone , cell_number 908-7311x065\", \"00230569697\", \"939-2435x80863\", first_name , zip_code , email_address , role_code , street , professional_id , state", + "extra_map": null, + "extra_table_map": { + "breeds": [ + "Dog_Types", + "Canine_Breeds" + ] + }, + "db_schema": { + "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" + ], + "Dog_Types": [ + "breed_code", + "breed_name" + ], + "Canine_Breeds": [ + "breed_code", + "breed_name" + ] + }, + "column_linking_gt": { + "breed": "Breeds", + "breed name": "Breeds.breed_name" + } + }, + { + "question": "which #breed# do the most dogs have? give me the #breed name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.breed_name from breeds as t1 join dogs as t2 on t1.breed_code = t2.breed_code group by t1.breed_name order by count(*) desc limit 1", + "schema_with_content": "professionals : first_name (\"Karley\", \"Monte\", \"Vernice\"), state (\"NorthCarolina\", \"Indiana\", \"Wyoming\"), city (\"McLaughlinfort\", \"Jaceton\", \"South Rockyport\"), home_phone (\"320-508-6023\", \"+02(1)0259033559\", \"971.048.3763x9404\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"80775\", \"84515\", \"43129\"), email_address (\"lucile.shanahan@example.org\", \"uboehm@example.org\", \"deanna.schuster@example.com\"), cell_number (\"461-801-2600\", \"011.193.9081x3186\", \"962-983-8109x3509\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), professional_id (3, 2, 12), last_name (\"Jacobs\", \"Kshlerin\", \"Jacobs\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Canines : abandoned_yn (\"1\", \"0\"), owner_id (6, 14, 11), date_of_birth (\"2008-10-09 22:38:53\", \"2012-05-03 21:42:25\", \"2012-05-31 08:01:36\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-29 23:24:13\", \"2017-12-29 23:24:13\"), gender (\"1\", \"0\"), weight (\"2.18\", \"1.39\", \"8.16\"), age (\"6\", \"5\", \"2\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 02:47:40\", \"2018-03-24 19:12:22\"), name (\"Kacey\", \"Troy\", \"Mavis\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-23 16:02:04\", \"2018-02-27 11:54:35\"), dog_id (1, 3, 2), breed_code (\"ESK\", \"BUL\", \"HUS\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-19 04:39:54\", \"2018-03-24 22:25:58\"), dog_id (12, 10, 12), cost_of_treatment (567, 266, 349), treatment_id (2, 13, 4), professional_id (10, 4, 7) | Pooches : abandoned_yn (\"1\", \"0\"), owner_id (6, 14, 11), date_of_birth (\"2008-10-09 22:38:53\", \"2012-05-03 21:42:25\", \"2012-05-31 08:01:36\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-29 23:24:13\", \"2017-12-29 23:24:13\"), gender (\"1\", \"0\"), weight (\"2.18\", \"1.39\", \"8.16\"), age (\"6\", \"5\", \"2\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 02:47:40\", \"2018-03-24 19:12:22\"), name (\"Kacey\", \"Troy\", \"Mavis\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-23 16:02:04\", \"2018-02-27 11:54:35\"), dog_id (1, 3, 2), breed_code (\"ESK\", \"BUL\", \"HUS\") | owners : cell_number (\"1-739-421-2225x38148\", \"478.978.0729\", \"121.381.3316x6535\"), first_name (\"Heather\", \"Adelle\", \"Heather\"), email_address (\"edythe62@example.org\", \"hudson.favian@example.com\", \"ykris@example.com\"), zip_code (\"86010\", \"92406\", \"86010\"), street (\"2417 Keara Stravenue Apt. 146\", \"2417 Keara Stravenue Apt. 146\", \"1204 Mae Highway Apt. 107\"), city (\"West Leonard\", \"South Afton\", \"Lake Carleyborough\"), state (\"Vermont\", \"Vermont\", \"Maryland\"), owner_id (14, 5, 14), home_phone (\"893-862-5295x61709\", \"(058)997-7627\", \"(799)563-0260x454\"), last_name (\"Prohaska\", \"Hauck\", \"Prohaska\")", + "schema_without_content": "professionals : first_name , state , city , home_phone 0259033559\", \"971.048.3763x9404\", role_code , zip_code , email_address , cell_number , street , professional_id , last_name | charges : charge_id , charge_amount , charge_type | sizes : size_code , size_description | breeds : breed_code , breed_name | treatment_types : treatment_type_description , treatment_type_code | Canines : abandoned_yn , owner_id , date_of_birth , size_code , date_arrived , gender , weight , age , date_departed , name , date_adopted , dog_id , breed_code | treatments : treatment_type_code , date_of_treatment , dog_id , cost_of_treatment , treatment_id , professional_id | Pooches : abandoned_yn , owner_id , date_of_birth , size_code , date_arrived , gender , weight , age , date_departed , name , date_adopted , dog_id , breed_code | owners : cell_number , first_name , email_address , zip_code , street , city , state , owner_id , home_phone 997-7627\", \"563-0260x454\", last_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "breed": "Breeds", + "breed 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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Guardians : home_phone (\"066.264.7885\", \"893-862-5295x61709\", \"01802479758\"), cell_number (\"121.381.3316x6535\", \"(783)271-6744x4507\", \"121.381.3316x6535\"), zip_code (\"22693\", \"11990\", \"25609\"), email_address (\"pearlie18@example.com\", \"margaretta.runte@example.net\", \"edythe62@example.org\"), owner_id (12, 11, 12), street (\"9212 Rosenbaum Lights\", \"1204 Mae Highway Apt. 107\", \"2417 Keara Stravenue Apt. 146\"), city (\"New Margaretteborough\", \"South Afton\", \"Beerton\"), state (\"NorthDakota\", \"SouthDakota\", \"Vermont\"), first_name (\"Lorenz\", \"Orlando\", \"Cindy\"), last_name (\"Stoltenberg\", \"DuBuque\", \"Nicolas\") | Caretakers : home_phone (\"066.264.7885\", \"893-862-5295x61709\", \"01802479758\"), cell_number (\"121.381.3316x6535\", \"(783)271-6744x4507\", \"121.381.3316x6535\"), zip_code (\"22693\", \"11990\", \"25609\"), email_address (\"pearlie18@example.com\", \"margaretta.runte@example.net\", \"edythe62@example.org\"), owner_id (12, 11, 12), street (\"9212 Rosenbaum Lights\", \"1204 Mae Highway Apt. 107\", \"2417 Keara Stravenue Apt. 146\"), city (\"New Margaretteborough\", \"South Afton\", \"Beerton\"), state (\"NorthDakota\", \"SouthDakota\", \"Vermont\"), first_name (\"Lorenz\", \"Orlando\", \"Cindy\"), last_name (\"Stoltenberg\", \"DuBuque\", \"Nicolas\") | treatments : date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-19 04:39:54\", \"2018-03-14 19:10:40\"), treatment_id (10, 2, 1), professional_id (4, 10, 14), cost_of_treatment (147, 147, 514), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (15, 4, 12) | dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (8, 11, 2), date_of_birth (\"2009-04-12 06:02:48\", \"2013-02-13 05:15:21\", \"2015-02-26 21:31:22\"), dog_id (9, 11, 13), name (\"Houston\", \"Mavis\", \"Lyric\"), date_arrived (\"2017-10-25 00:55:34\", \"2017-12-29 06:08:26\", \"2017-12-29 23:24:13\"), date_adopted (\"2018-03-10 15:06:43\", \"2018-03-07 21:45:43\", \"2018-02-25 23:45:30\"), weight (\"1.72\", \"8.04\", \"5.16\"), abandoned_yn (\"1\", \"0\"), age (\"5\", \"1\", \"3\"), gender (\"1\", \"0\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 02:11:32\", \"2018-03-25 02:11:32\") | professionals : city (\"Domenickton\", \"East Ila\", \"North Adelberttown\"), home_phone (\"246-951-0080x76716\", \"312.216.3352\", \"1-609-566-2752x25197\"), first_name (\"Velva\", \"Lesly\", \"Winfield\"), state (\"Mississippi\", \"Wisconsin\", \"SouthCarolina\"), zip_code (\"77129\", \"84515\", \"06646\"), email_address (\"jerrod.bahringer@example.org\", \"lambert62@example.org\", \"delphine29@example.com\"), professional_id (1, 14, 3), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"1-185-137-1945x409\", \"962-983-8109x3509\", \"880-659-7577x736\"), last_name (\"Hyatt\", \"Frami\", \"Frami\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "charges : charge_type , charge_amount , charge_id | treatment_types : treatment_type_code , treatment_type_description | Guardians : home_phone , cell_number 271-6744x4507\", \"121.381.3316x6535\", zip_code , email_address , owner_id , street , city , state , first_name , last_name | Caretakers : home_phone , cell_number 271-6744x4507\", \"121.381.3316x6535\", zip_code , email_address , owner_id , street , city , state , first_name , last_name | treatments : date_of_treatment , treatment_id , professional_id , cost_of_treatment , treatment_type_code , dog_id | dogs : breed_code , size_code , owner_id , date_of_birth , dog_id , name , date_arrived , date_adopted , weight , abandoned_yn , age , gender , date_departed | professionals : city , home_phone , first_name , state , zip_code , email_address , professional_id , role_code , cell_number , last_name , street | sizes : size_code , size_description | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "last name": "Owners.last_name" + } + }, + { + "question": "which owner has paid for the most treatments on his or her dogs? list the #owner id# and #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "Pooches : name (\"Holden\", \"Betty\", \"Betty\"), weight (\"4.36\", \"4.01\", \"1.72\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (11, 7, 7), date_of_birth (\"2012-05-03 21:42:25\", \"2013-02-13 05:15:21\", \"2012-01-27 05:11:53\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-02-27 00:27:57\", \"2018-02-25 23:45:30\"), age (\"1\", \"6\", \"5\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), dog_id (10, 13, 9), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 05:07:47\", \"2018-03-24 19:12:22\"), date_arrived (\"2018-01-17 11:44:16\", \"2017-05-06 08:03:52\", \"2018-01-17 11:44:16\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | owners : last_name (\"Haley\", \"Prohaska\", \"Hauck\"), city (\"New Margaretteborough\", \"South Afton\", \"Brakusfurt\"), state (\"Florida\", \"Maryland\", \"NorthDakota\"), home_phone (\"(544)034-1670\", \"1-332-849-1908\", \"893-862-5295x61709\"), cell_number (\"1-626-264-7659x1697\", \"481-483-9083x37986\", \"(257)399-3116\"), street (\"60352 Kayleigh Crossing Suite 700\", \"59509 Mellie Mountain\", \"57382 Yost Ridges\"), zip_code (\"61019\", \"78297\", \"25609\"), email_address (\"christy49@example.org\", \"ykris@example.com\", \"kturner@example.net\"), first_name (\"Emelie\", \"Cindy\", \"Rolando\"), owner_id (8, 12, 4) | professionals : state (\"SouthCarolina\", \"Wisconsin\", \"NorthCarolina\"), zip_code (\"17902\", \"84515\", \"84515\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (7, 8, 9), city (\"North Odellfurt\", \"Baileymouth\", \"New Laurytown\"), email_address (\"jacynthe.mclaughlin@example.net\", \"jerrod.bahringer@example.org\", \"goyette.roosevelt@example.net\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), last_name (\"Walter\", \"Watsica\", \"Hayes\"), home_phone (\"320-508-6023\", \"971.048.3763x9404\", \"+02(1)0259033559\"), first_name (\"Olaf\", \"Karley\", \"Jayson\"), cell_number (\"00230569697\", \"(369)908-7311x065\", \"139-321-7313\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | treatments : date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-13 12:22:58\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (2, 1, 1), dog_id (14, 15, 15), cost_of_treatment (429, 567, 428), professional_id (9, 14, 4) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Canines : name (\"Holden\", \"Betty\", \"Betty\"), weight (\"4.36\", \"4.01\", \"1.72\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (11, 7, 7), date_of_birth (\"2012-05-03 21:42:25\", \"2013-02-13 05:15:21\", \"2012-01-27 05:11:53\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-02-27 00:27:57\", \"2018-02-25 23:45:30\"), age (\"1\", \"6\", \"5\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), dog_id (10, 13, 9), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 05:07:47\", \"2018-03-24 19:12:22\"), date_arrived (\"2018-01-17 11:44:16\", \"2017-05-06 08:03:52\", \"2018-01-17 11:44:16\"), breed_code (\"ESK\", \"BUL\", \"HUS\")", + "schema_without_content": "Pooches : name , weight , size_code , owner_id , date_of_birth , date_adopted , age , abandoned_yn , gender , dog_id , date_departed , date_arrived , breed_code | owners : last_name , city , state , home_phone 034-1670\", \"1-332-849-1908\", \"893-862-5295x61709\", cell_number 399-3116\", street , zip_code , email_address , first_name , owner_id | professionals : state , zip_code , role_code , professional_id , city , email_address , street , last_name , home_phone 0259033559\", first_name , cell_number 908-7311x065\", \"139-321-7313\" | sizes : size_description , size_code | treatment_types : treatment_type_description , treatment_type_code | charges : charge_type , charge_amount , charge_id | treatments : date_of_treatment , treatment_type_code , treatment_id , dog_id , cost_of_treatment , professional_id | breeds : breed_code , breed_name | Canines : name , weight , size_code , owner_id , date_of_birth , date_adopted , age , abandoned_yn , gender , dog_id , date_departed , date_arrived , breed_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "last name": "Owners.last_name" + } + }, + { + "question": "which owner has paid for the most treatments on his or her dogs? list the #owner id# and #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "procedures : dog_id (7, 4, 2), treatment_id (7, 13, 1), professional_id (5, 8, 14), date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-16 10:27:36\", \"2018-03-14 19:10:40\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (349, 945, 428) | owners : street (\"2635 Caitlyn Plains\", \"1204 Mae Highway Apt. 107\", \"89011 Kertzmann Spring Suite 642\"), email_address (\"kturner@example.net\", \"angeline99@example.com\", \"ybergstrom@example.com\"), city (\"South Afton\", \"Port Reannamouth\", \"Port Reannamouth\"), owner_id (1, 1, 9), state (\"NewYork\", \"Virginia\", \"Arkansas\"), first_name (\"Emelie\", \"Heather\", \"Cindy\"), last_name (\"Haley\", \"Schmitt\", \"Price\"), home_phone (\"893-862-5295x61709\", \"066.264.7885\", \"(799)563-0260x454\"), cell_number (\"(722)768-5439x484\", \"762.589.6117x1328\", \"(257)399-3116\"), zip_code (\"45244\", \"61019\", \"35747\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | therapies : dog_id (7, 4, 2), treatment_id (7, 13, 1), professional_id (5, 8, 14), date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-16 10:27:36\", \"2018-03-14 19:10:40\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (349, 945, 428) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | dogs : gender (\"1\", \"0\"), name (\"Lyric\", \"Jesus\", \"Betty\"), age (\"2\", \"1\", \"5\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-21 10:41:18\", \"2018-03-13 12:47:15\"), weight (\"8.95\", \"4.36\", \"8.96\"), abandoned_yn (\"1\", \"0\"), dog_id (2, 14, 3), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-05-06 08:03:52\", \"2017-12-22 05:02:02\"), owner_id (8, 8, 14), date_of_birth (\"2012-07-11 17:15:10\", \"2008-10-09 22:38:53\", \"2010-11-11 07:11:53\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 06:29:10\", \"2018-03-24 19:12:22\") | professionals : zip_code (\"52476\", \"52476\", \"52476\"), role_code (\"Employee\", \"Veterenarian\"), street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), state (\"Hawaii\", \"Wisconsin\", \"NewMexico\"), professional_id (8, 6, 10), email_address (\"jacynthe.mclaughlin@example.net\", \"lucile.shanahan@example.org\", \"deanna.schuster@example.com\"), home_phone (\"320-508-6023\", \"(920)304-4499x59146\", \"1-138-287-3775\"), cell_number (\"609-405-2990\", \"880-659-7577x736\", \"609-405-2990\"), first_name (\"Lesly\", \"Vernice\", \"Winfield\"), city (\"McLaughlinfort\", \"North Odellfurt\", \"Raynorfort\"), last_name (\"Braun\", \"Hayes\", \"Murazik\")", + "schema_without_content": "procedures : dog_id , treatment_id , professional_id , date_of_treatment , treatment_type_code , cost_of_treatment | owners : street , email_address , city , owner_id , state , first_name , last_name , home_phone 563-0260x454\", cell_number 768-5439x484\", \"762.589.6117x1328\", \"399-3116\", zip_code | breeds : breed_code , breed_name | sizes : size_code , size_description | therapies : dog_id , treatment_id , professional_id , date_of_treatment , treatment_type_code , cost_of_treatment | treatment_types : treatment_type_description , treatment_type_code | charges : charge_type , charge_amount , charge_id | dogs : gender , name , age , breed_code , date_adopted , weight , abandoned_yn , dog_id , size_code , date_arrived , owner_id , date_of_birth , date_departed | professionals : zip_code , role_code , street , state , professional_id , email_address , home_phone 304-4499x59146\", \"1-138-287-3775\", cell_number , first_name , city , last_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "last name": "Owners.last_name" + } + }, + { + "question": "tell me the #owner# id and #last name of the owner# who spent the most on treatments of his or her dogs.", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "professionals : state (\"SouthCarolina\", \"NewMexico\", \"Wyoming\"), home_phone (\"+43(5)1132733868\", \"971.048.3763x9404\", \"1-609-566-2752x25197\"), last_name (\"Tillman\", \"Kshlerin\", \"Pouros\"), professional_id (2, 8, 7), city (\"Kirastad\", \"Jaceton\", \"Kirastad\"), zip_code (\"02281\", \"77129\", \"34041\"), first_name (\"Vernice\", \"Ericka\", \"Sigurd\"), cell_number (\"(275)939-2435x80863\", \"00230569697\", \"609-405-2990\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jacynthe.mclaughlin@example.net\", \"jerrod.bahringer@example.org\", \"jacynthe.mclaughlin@example.net\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Caretakers : street (\"57382 Yost Ridges\", \"1204 Mae Highway Apt. 107\", \"0647 Hintz Village Apt. 024\"), zip_code (\"22731\", \"86010\", \"00589\"), state (\"Mississippi\", \"Maryland\", \"Vermont\"), email_address (\"edythe62@example.org\", \"lynn81@example.org\", \"margaretta.runte@example.net\"), cell_number (\"+70(4)9217952551\", \"341.667.8085\", \"559.874.3011x989\"), home_phone (\"085.557.0379x84348\", \"(544)034-1670\", \"1-332-849-1908\"), last_name (\"DuBuque\", \"Funk\", \"Mertz\"), first_name (\"Rachelle\", \"Johann\", \"Heather\"), city (\"Lake Carleyborough\", \"Lake Tia\", \"Lake Tia\"), owner_id (11, 2, 1) | treatments : date_of_treatment (\"2018-03-08 05:26:23\", \"2018-03-11 04:23:15\", \"2018-03-14 19:10:40\"), professional_id (8, 14, 6), cost_of_treatment (147, 407, 681), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (13, 1, 14), treatment_id (11, 7, 10) | dogs : date_of_birth (\"2008-10-09 22:38:53\", \"2008-05-19 15:54:49\", \"2012-10-14 14:44:37\"), age (\"6\", \"2\", \"3\"), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), weight (\"4.01\", \"9.48\", \"3.52\"), date_arrived (\"2017-10-16 20:06:21\", \"2017-09-08 20:10:13\", \"2018-01-17 11:44:16\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (5, 1, 1), name (\"Merritt\", \"Betty\", \"George\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-06 16:32:11\", \"2018-03-07 21:45:43\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (12, 14, 1), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 06:29:10\", \"2018-03-25 05:07:47\") | Guardians : street (\"57382 Yost Ridges\", \"1204 Mae Highway Apt. 107\", \"0647 Hintz Village Apt. 024\"), zip_code (\"22731\", \"86010\", \"00589\"), state (\"Mississippi\", \"Maryland\", \"Vermont\"), email_address (\"edythe62@example.org\", \"lynn81@example.org\", \"margaretta.runte@example.net\"), cell_number (\"+70(4)9217952551\", \"341.667.8085\", \"559.874.3011x989\"), home_phone (\"085.557.0379x84348\", \"(544)034-1670\", \"1-332-849-1908\"), last_name (\"DuBuque\", \"Funk\", \"Mertz\"), first_name (\"Rachelle\", \"Johann\", \"Heather\"), city (\"Lake Carleyborough\", \"Lake Tia\", \"Lake Tia\"), owner_id (11, 2, 1) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "professionals : state , home_phone 1132733868\", \"971.048.3763x9404\", \"1-609-566-2752x25197\", last_name , professional_id , city , zip_code , first_name , cell_number 939-2435x80863\", \"00230569697\", \"609-405-2990\", street , role_code , email_address | charges : charge_type , charge_amount , charge_id | breeds : breed_code , breed_name | sizes : size_description , size_code | Caretakers : street , zip_code , state , email_address , cell_number 9217952551\", \"341.667.8085\", \"559.874.3011x989\", home_phone 034-1670\", \"1-332-849-1908\", last_name , first_name , city , owner_id | treatments : date_of_treatment , professional_id , cost_of_treatment , treatment_type_code , dog_id , treatment_id | dogs : date_of_birth , age , gender , abandoned_yn , weight , date_arrived , size_code , dog_id , name , date_adopted , breed_code , owner_id , date_departed | Guardians : street , zip_code , state , email_address , cell_number 9217952551\", \"341.667.8085\", \"559.874.3011x989\", home_phone 034-1670\", \"1-332-849-1908\", last_name , first_name , city , owner_id | treatment_types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "last name of the owner": "Owners.last_name", + "owner 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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "owners : email_address (\"marks.gail@example.org\", \"ymaggio@example.com\", \"angeline99@example.com\"), home_phone (\"1-332-849-1908\", \"363.948.1090\", \"1-346-655-5842x768\"), last_name (\"Fisher\", \"Funk\", \"Mertz\"), cell_number (\"739-136-7202\", \"559.874.3011x989\", \"739-136-7202\"), city (\"Port Reannamouth\", \"West Leonard\", \"Port Reannamouth\"), street (\"2635 Caitlyn Plains\", \"9212 Rosenbaum Lights\", \"51934 Treutel Harbor\"), owner_id (10, 8, 6), zip_code (\"86010\", \"87304\", \"61019\"), first_name (\"Adelle\", \"Adelle\", \"Jaclyn\"), state (\"Wisconsin\", \"Mississippi\", \"Vermont\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | professionals : state (\"Alabama\", \"Utah\", \"Indiana\"), email_address (\"uboehm@example.org\", \"lambert62@example.org\", \"lucile.shanahan@example.org\"), city (\"North Adelberttown\", \"Kirastad\", \"Raynorfort\"), first_name (\"Sigurd\", \"Ericka\", \"Olaf\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"77129\", \"06646\", \"34041\"), last_name (\"Watsica\", \"Christiansen\", \"Braun\"), professional_id (2, 14, 1), home_phone (\"+43(5)1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"72532 Hane Course\nLake Berylland, ND 95283\"), cell_number (\"499-434-0215x1628\", \"00230569697\", \"00230569697\") | treatments : dog_id (7, 7, 14), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-15 20:25:34\", \"2018-03-14 19:10:40\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (852, 852, 429), professional_id (5, 4, 5), treatment_id (8, 2, 6) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Canines : name (\"Betty\", \"Hipolito\", \"Narciso\"), gender (\"1\", \"0\"), date_arrived (\"2018-01-17 11:44:16\", \"2018-01-17 11:44:16\", \"2017-06-25 10:14:05\"), weight (\"8.16\", \"9.8\", \"7.57\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-10 15:06:43\", \"2018-03-08 15:03:00\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (3, 15, 5), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"6\", \"6\", \"2\"), date_of_birth (\"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\"), owner_id (14, 13, 5), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 06:58:44\", \"2018-03-25 14:15:41\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Pooches : name (\"Betty\", \"Hipolito\", \"Narciso\"), gender (\"1\", \"0\"), date_arrived (\"2018-01-17 11:44:16\", \"2018-01-17 11:44:16\", \"2017-06-25 10:14:05\"), weight (\"8.16\", \"9.8\", \"7.57\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-10 15:06:43\", \"2018-03-08 15:03:00\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (3, 15, 5), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"6\", \"6\", \"2\"), date_of_birth (\"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\", \"2017-09-19 05:39:09\"), owner_id (14, 13, 5), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 06:58:44\", \"2018-03-25 14:15:41\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "owners : email_address , home_phone , last_name , cell_number , city , street , owner_id , zip_code , first_name , state | treatment_types : treatment_type_code , treatment_type_description | professionals : state , email_address , city , first_name , role_code , zip_code , last_name , professional_id , home_phone 1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\", street , cell_number | treatments : dog_id , date_of_treatment , treatment_type_code , cost_of_treatment , professional_id , treatment_id | charges : charge_amount , charge_id , charge_type | Canines : name , gender , date_arrived , weight , date_adopted , abandoned_yn , size_code , dog_id , breed_code , age , date_of_birth , owner_id , date_departed | sizes : size_code , size_description | Pooches : name , gender , date_arrived , weight , date_adopted , abandoned_yn , size_code , dog_id , breed_code , age , date_of_birth , owner_id , date_departed | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "last name of the owner": "Owners.last_name", + "owner 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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by count(*) desc limit 1", + "schema_with_content": "professionals : state (\"Wisconsin\", \"Hawaii\", \"California\"), first_name (\"Lesly\", \"Ruben\", \"Karley\"), home_phone (\"(230)338-3342x585\", \"971.048.3763x9404\", \"320-508-6023\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), zip_code (\"43129\", \"98844\", \"43129\"), role_code (\"Employee\", \"Veterenarian\"), city (\"Domenickton\", \"McLaughlinfort\", \"West Heidi\"), last_name (\"Murazik\", \"Jacobs\", \"Frami\"), email_address (\"mekhi.little@example.org\", \"lambert62@example.org\", \"west.eula@example.net\"), professional_id (10, 7, 2), cell_number (\"(275)939-2435x80863\", \"461-801-2600\", \"011.193.9081x3186\") | dogs : date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 10:25:46\", \"2018-03-24 19:36:59\"), weight (\"8.04\", \"5.16\", \"1.72\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), age (\"2\", \"9\", \"2\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-02-27 11:54:35\", \"2018-03-25 08:12:51\"), owner_id (13, 14, 6), dog_id (15, 4, 15), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-04-15 09:25:31\", \"2017-04-15 09:25:31\"), name (\"Houston\", \"Bessie\", \"George\"), date_of_birth (\"2012-10-14 14:44:37\", \"2018-03-17 04:05:12\", \"2008-05-30 12:51:34\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | procedures : professional_id (6, 14, 7), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-19 04:39:54\", \"2018-03-19 04:39:54\"), cost_of_treatment (407, 656, 852), dog_id (1, 13, 14), treatment_id (2, 4, 1), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | owners : state (\"Mississippi\", \"Virginia\", \"SouthDakota\"), city (\"Brakusfurt\", \"South Daisyfurt\", \"Brakusfurt\"), email_address (\"angeline99@example.com\", \"hudson.favian@example.com\", \"angeline99@example.com\"), cell_number (\"762.589.6117x1328\", \"341.667.8085\", \"739-136-7202\"), owner_id (4, 12, 2), street (\"6950 Katherine Forges Apt. 630\", \"1204 Mae Highway Apt. 107\", \"60352 Kayleigh Crossing Suite 700\"), first_name (\"Emelie\", \"Gay\", \"Melisa\"), home_phone (\"363.948.1090\", \"1-346-655-5842x768\", \"363.948.1090\"), last_name (\"Prohaska\", \"Feil\", \"Funk\"), zip_code (\"87304\", \"36871\", \"22731\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | therapies : professional_id (6, 14, 7), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-19 04:39:54\", \"2018-03-19 04:39:54\"), cost_of_treatment (407, 656, 852), dog_id (1, 13, 14), treatment_id (2, 4, 1), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "professionals : state , first_name , home_phone 338-3342x585\", \"971.048.3763x9404\", \"320-508-6023\", street , zip_code , role_code , city , last_name , email_address , professional_id , cell_number 939-2435x80863\", \"461-801-2600\", \"011.193.9081x3186\" | dogs : date_departed , weight , breed_code , abandoned_yn , age , gender , date_adopted , owner_id , dog_id , size_code , date_arrived , name , date_of_birth | treatment_types : treatment_type_code , treatment_type_description | procedures : professional_id , date_of_treatment , cost_of_treatment , dog_id , treatment_id , treatment_type_code | owners : state , city , email_address , cell_number , owner_id , street , first_name , home_phone , last_name , zip_code | sizes : size_code , size_description | charges : charge_type , charge_amount , charge_id | therapies : professional_id , date_of_treatment , cost_of_treatment , dog_id , treatment_id , treatment_type_code | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "last name of the owner": "Owners.last_name", + "owner id": "Owners.owner_id" + } + }, + { + "question": "what is the #description of the treatment type that costs# the least money in total?", + "db_id": "dog_kennels", + "orig_query": "select t1.treatment_type_description from treatment_types as t1 join treatments as t2 on t1.treatment_type_code = t2.treatment_type_code group by t1.treatment_type_code order by sum(cost_of_treatment) asc limit 1", + "schema_with_content": "treatments : date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-19 04:39:54\", \"2018-02-26 09:08:53\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (8, 2, 2), professional_id (5, 5, 9), cost_of_treatment (567, 349, 668), dog_id (14, 4, 10) | Therapy_Types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | dogs : name (\"Bessie\", \"Mavis\", \"Holden\"), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), weight (\"6.92\", \"9.8\", \"8.95\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-04-15 09:25:31\", \"2018-01-02 03:15:29\", \"2017-04-20 00:58:55\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-25 06:46:07\", \"2018-03-25 06:58:44\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-07 21:45:43\", \"2018-03-23 16:02:04\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2012-10-14 14:44:37\", \"2008-10-09 22:38:53\", \"2009-04-12 06:02:48\"), dog_id (10, 13, 12), age (\"4\", \"1\", \"4\"), owner_id (14, 1, 12) | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Care_Types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : cell_number (\"739-136-7202\", \"478.978.0729\", \"121.381.3316x6535\"), zip_code (\"92406\", \"35747\", \"02647\"), owner_id (1, 12, 9), first_name (\"Lorenz\", \"Jaclyn\", \"Rolando\"), state (\"Pennsylvania\", \"NorthDakota\", \"Mississippi\"), home_phone (\"(544)034-1670\", \"318-052-6573\", \"363.948.1090\"), email_address (\"lynn81@example.org\", \"hudson.favian@example.com\", \"zboncak.madonna@example.net\"), city (\"East Maribelbury\", \"Beerton\", \"Beerton\"), last_name (\"Mertz\", \"Nicolas\", \"Rippin\"), street (\"9212 Rosenbaum Lights\", \"51934 Treutel Harbor\", \"60352 Kayleigh Crossing Suite 700\") | professionals : first_name (\"Karley\", \"Danny\", \"Taryn\"), email_address (\"cole.margarita@example.org\", \"schneider.kathryne@example.org\", \"west.eula@example.net\"), state (\"Wyoming\", \"Indiana\", \"NewMexico\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), city (\"McLaughlinfort\", \"Domenickton\", \"McLaughlinfort\"), zip_code (\"34041\", \"02281\", \"54312\"), last_name (\"Considine\", \"Walter\", \"Ullrich\"), home_phone (\"346.594.3739\", \"971.048.3763x9404\", \"(230)338-3342x585\"), cell_number (\"499-434-0215x1628\", \"1-181-670-9466\", \"609-405-2990\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (13, 3, 7) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "treatments : date_of_treatment , treatment_type_code , treatment_id , professional_id , cost_of_treatment , dog_id | Therapy_Types : treatment_type_code , treatment_type_description | breeds : breed_name , breed_code | dogs : name , size_code , gender , weight , abandoned_yn , date_arrived , date_departed , date_adopted , breed_code , date_of_birth , dog_id , age , owner_id | charges : charge_id , charge_amount , charge_type | Care_Types : treatment_type_code , treatment_type_description | owners : cell_number , zip_code , owner_id , first_name , state , home_phone 034-1670\", \"318-052-6573\", \"363.948.1090\", email_address , city , last_name , street | professionals : first_name , email_address , state , street , city , zip_code , last_name , home_phone 338-3342x585\", cell_number , role_code , professional_id | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "description of the treatment type that costs": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "what is the #description of the treatment type that costs# the least money in total?", + "db_id": "dog_kennels", + "orig_query": "select t1.treatment_type_description from treatment_types as t1 join treatments as t2 on t1.treatment_type_code = t2.treatment_type_code group by t1.treatment_type_code order by sum(cost_of_treatment) asc limit 1", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | procedures : professional_id (4, 6, 7), dog_id (15, 14, 4), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-24 22:25:58\", \"2018-03-14 19:10:40\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 567, 567), treatment_id (2, 2, 14) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : role_code (\"Employee\", \"Veterenarian\"), city (\"Kirastad\", \"South Rockyport\", \"North Odellfurt\"), email_address (\"lucile.shanahan@example.org\", \"delphine29@example.com\", \"uboehm@example.org\"), state (\"Wyoming\", \"California\", \"Indiana\"), last_name (\"Watsica\", \"Considine\", \"Hyatt\"), professional_id (12, 1, 7), zip_code (\"54312\", \"77129\", \"02281\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"461-801-2600\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), first_name (\"Domenica\", \"Vernice\", \"Winfield\"), home_phone (\"320-508-6023\", \"325-155-0801x7005\", \"1-138-287-3775\") | owners : owner_id (11, 2, 13), city (\"South Daisyfurt\", \"South Daisyfurt\", \"Port Reannamouth\"), street (\"1204 Mae Highway Apt. 107\", \"2417 Keara Stravenue Apt. 146\", \"59509 Mellie Mountain\"), home_phone (\"130-796-4589x05454\", \"066.264.7885\", \"363.948.1090\"), cell_number (\"+00(2)4323592985\", \"559.874.3011x989\", \"(257)399-3116\"), last_name (\"Haley\", \"Hauck\", \"Schmitt\"), state (\"Indiana\", \"NewYork\", \"Washington\"), email_address (\"margaretta.runte@example.net\", \"angeline99@example.com\", \"ybergstrom@example.com\"), zip_code (\"02647\", \"25609\", \"87304\"), first_name (\"Heather\", \"Johann\", \"Cindy\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | dogs : name (\"Jesus\", \"Houston\", \"Houston\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-23 16:02:04\", \"2018-02-25 23:45:30\"), weight (\"1.39\", \"8.04\", \"9.48\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 02:47:40\", \"2018-03-25 04:42:14\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (11, 5, 5), age (\"4\", \"9\", \"4\"), owner_id (5, 5, 3), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2012-07-11 17:15:10\", \"2010-11-11 07:11:53\", \"2008-10-09 22:38:53\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\") | therapies : professional_id (4, 6, 7), dog_id (15, 14, 4), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-24 22:25:58\", \"2018-03-14 19:10:40\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 567, 567), treatment_id (2, 2, 14)", + "schema_without_content": "charges : charge_amount , charge_type , charge_id | breeds : breed_code , breed_name | procedures : professional_id , dog_id , date_of_treatment , treatment_type_code , cost_of_treatment , treatment_id | sizes : size_description , size_code | professionals : role_code , city , email_address , state , last_name , professional_id , zip_code , cell_number , street , first_name , home_phone | owners : owner_id , city , street , home_phone , cell_number 4323592985\", \"559.874.3011x989\", \"399-3116\", last_name , state , email_address , zip_code , first_name | treatment_types : treatment_type_code , treatment_type_description | dogs : name , date_adopted , weight , date_departed , size_code , dog_id , age , owner_id , breed_code , date_of_birth , date_arrived , abandoned_yn , gender | therapies : professional_id , dog_id , date_of_treatment , treatment_type_code , cost_of_treatment , treatment_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description of the treatment type that costs": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "give me the #description of the treatment type# whose #total cost# is the lowest.", + "db_id": "dog_kennels", + "orig_query": "select t1.treatment_type_description from treatment_types as t1 join treatments as t2 on t1.treatment_type_code = t2.treatment_type_code group by t1.treatment_type_code order by sum(cost_of_treatment) asc limit 1", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | dogs : name (\"Betty\", \"Jeffrey\", \"Kacey\"), weight (\"4.36\", \"1.39\", \"1.39\"), dog_id (11, 5, 12), date_of_birth (\"2013-02-13 05:15:21\", \"2008-10-09 22:38:53\", \"2017-09-19 05:39:09\"), age (\"1\", \"1\", \"9\"), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-09-08 20:10:13\", \"2017-04-15 09:25:31\", \"2018-01-02 03:15:29\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\", \"2018-02-27 11:54:35\"), owner_id (1, 14, 7), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 13:07:04\", \"2018-03-24 19:12:22\") | professionals : first_name (\"Ruben\", \"Lesly\", \"Taryn\"), professional_id (10, 15, 13), zip_code (\"54312\", \"33020\", \"77129\"), cell_number (\"1-185-137-1945x409\", \"889-940-2676\", \"609-405-2990\"), last_name (\"Hyatt\", \"Hyatt\", \"Christiansen\"), state (\"Wisconsin\", \"California\", \"California\"), home_phone (\"891.475.2256\", \"+43(5)1132733868\", \"+02(1)0259033559\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"goyette.roosevelt@example.net\", \"lucile.shanahan@example.org\", \"jerrod.bahringer@example.org\"), city (\"Raynorfort\", \"North Adelberttown\", \"West Heidi\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\") | Care_Types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | treatments : treatment_id (1, 3, 4), dog_id (10, 4, 7), professional_id (10, 10, 9), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-15 20:25:34\", \"2018-03-16 10:27:36\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (681, 349, 852) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : city (\"Lake Valentin\", \"Lake Tia\", \"Lake Valentin\"), cell_number (\"762.589.6117x1328\", \"762.589.6117x1328\", \"633.455.3045x85484\"), last_name (\"Hamill\", \"Mertz\", \"Funk\"), zip_code (\"45244\", \"93165\", \"92406\"), state (\"NorthDakota\", \"Indiana\", \"NorthDakota\"), owner_id (13, 1, 4), street (\"15828 Spencer Extensions\", \"89011 Kertzmann Spring Suite 642\", \"51934 Treutel Harbor\"), email_address (\"pearlie18@example.com\", \"ybergstrom@example.com\", \"ybergstrom@example.com\"), home_phone (\"(544)034-1670\", \"085.557.0379x84348\", \"(094)747-5094x8134\"), first_name (\"Gay\", \"Orlando\", \"Heather\") | Therapy_Types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\")", + "schema_without_content": "charges : charge_amount , charge_id , charge_type | dogs : name , weight , dog_id , date_of_birth , age , size_code , abandoned_yn , gender , breed_code , date_arrived , date_adopted , owner_id , date_departed | professionals : first_name , professional_id , zip_code , cell_number , last_name , state , home_phone 1132733868\", \"+020259033559\", role_code , email_address , city , street | Care_Types : treatment_type_code , treatment_type_description | treatments : treatment_id , dog_id , professional_id , date_of_treatment , treatment_type_code , cost_of_treatment | sizes : size_description , size_code | breeds : breed_name , breed_code | owners : city , cell_number , last_name , zip_code , state , owner_id , street , email_address , home_phone 034-1670\", \"085.557.0379x84348\", \"747-5094x8134\", first_name | Therapy_Types : treatment_type_code , treatment_type_description", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "description of the treatment type": "Treatment_Types.treatment_type_description", + "total cost": "Treatments.cost_of_treatment" + } + }, + { + "question": "give me the #description of the treatment type# whose #total cost# is the lowest.", + "db_id": "dog_kennels", + "orig_query": "select t1.treatment_type_description from treatment_types as t1 join treatments as t2 on t1.treatment_type_code = t2.treatment_type_code group by t1.treatment_type_code order by sum(cost_of_treatment) asc limit 1", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | professionals : zip_code (\"06646\", \"98844\", \"06646\"), first_name (\"Velva\", \"Brady\", \"Sigurd\"), last_name (\"Hayes\", \"Considine\", \"Hayes\"), home_phone (\"312.216.3352\", \"320-508-6023\", \"320-508-6023\"), professional_id (6, 1, 14), role_code (\"Employee\", \"Veterenarian\"), state (\"Connecticut\", \"Utah\", \"SouthCarolina\"), email_address (\"deanna.schuster@example.com\", \"lambert62@example.org\", \"marquardt.furman@example.org\"), city (\"North Adelberttown\", \"Domenickton\", \"Raynorfort\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\"), cell_number (\"139-321-7313\", \"1-181-670-9466\", \"880-659-7577x736\") | owners : email_address (\"pearlie18@example.com\", \"hudson.favian@example.com\", \"pearlie18@example.com\"), first_name (\"Orlando\", \"Heather\", \"Tre\"), owner_id (5, 6, 14), cell_number (\"559.874.3011x989\", \"341.667.8085\", \"+00(2)4323592985\"), zip_code (\"22731\", \"87304\", \"11990\"), state (\"SouthDakota\", \"Arkansas\", \"Wisconsin\"), city (\"West Leonard\", \"Lake Valentin\", \"Port Zackery\"), last_name (\"Price\", \"Price\", \"Hauck\"), street (\"1204 Mae Highway Apt. 107\", \"9212 Rosenbaum Lights\", \"59509 Mellie Mountain\"), home_phone (\"1-346-655-5842x768\", \"1-682-845-0116x63235\", \"893-862-5295x61709\") | therapies : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (12, 15, 12), professional_id (14, 6, 14), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-02-28 17:09:43\", \"2018-03-08 05:26:23\"), treatment_id (5, 14, 3), cost_of_treatment (147, 945, 656) | dogs : abandoned_yn (\"1\", \"0\"), owner_id (1, 11, 8), date_arrived (\"2017-10-24 04:45:13\", \"2017-12-29 06:08:26\", \"2017-04-15 09:25:31\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-08 15:03:00\", \"2018-03-21 10:41:18\"), dog_id (14, 12, 3), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:11:32\", \"2018-03-25 15:05:16\"), name (\"Houston\", \"Houston\", \"Kacey\"), weight (\"7.57\", \"4.01\", \"1.72\"), date_of_birth (\"2012-01-27 05:11:53\", \"2012-10-14 14:44:37\", \"2012-01-27 05:11:53\"), age (\"2\", \"2\", \"1\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | procedures : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (12, 15, 12), professional_id (14, 6, 14), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-02-28 17:09:43\", \"2018-03-08 05:26:23\"), treatment_id (5, 14, 3), cost_of_treatment (147, 945, 656) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | sizes : size_description , size_code | charges : charge_type , charge_amount , charge_id | professionals : zip_code , first_name , last_name , home_phone , professional_id , role_code , state , email_address , city , street , cell_number | owners : email_address , first_name , owner_id , cell_number 4323592985\", zip_code , state , city , last_name , street , home_phone | therapies : treatment_type_code , dog_id , professional_id , date_of_treatment , treatment_id , cost_of_treatment | dogs : abandoned_yn , owner_id , date_arrived , gender , size_code , date_adopted , dog_id , date_departed , name , weight , date_of_birth , age , breed_code | procedures : treatment_type_code , dog_id , professional_id , date_of_treatment , treatment_id , cost_of_treatment | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description of the treatment type": "Treatment_Types.treatment_type_description", + "total cost": "Treatments.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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | dogs : abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-05 06:05:23\", \"2018-03-18 07:47:40\"), name (\"Evangeline\", \"Betty\", \"Mavis\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 04:50:22\", \"2018-03-24 19:36:59\"), owner_id (5, 7, 6), date_arrived (\"2018-01-02 03:15:29\", \"2017-04-15 09:25:31\", \"2017-12-22 05:02:02\"), date_of_birth (\"2018-03-17 04:05:12\", \"2012-05-03 21:42:25\", \"2012-05-31 08:01:36\"), gender (\"1\", \"0\"), age (\"4\", \"4\", \"5\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (8, 3, 6), weight (\"8.96\", \"4.01\", \"8.95\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | treatments : dog_id (4, 13, 12), professional_id (9, 7, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-19 04:39:54\", \"2018-02-28 17:09:43\"), treatment_id (11, 7, 7), cost_of_treatment (852, 428, 514) | Caretakers : email_address (\"marks.gail@example.org\", \"hudson.favian@example.com\", \"pearlie18@example.com\"), state (\"Arizona\", \"Wisconsin\", \"SouthDakota\"), first_name (\"Melisa\", \"Adelle\", \"Melisa\"), street (\"59509 Mellie Mountain\", \"1858 Jan Park\", \"15828 Spencer Extensions\"), home_phone (\"(058)997-7627\", \"(094)747-5094x8134\", \"(094)747-5094x8134\"), cell_number (\"(722)768-5439x484\", \"559.874.3011x989\", \"(722)768-5439x484\"), last_name (\"Hamill\", \"Price\", \"Fisher\"), city (\"New Margaretteborough\", \"Lake Tia\", \"East Maribelbury\"), zip_code (\"61019\", \"92406\", \"36871\"), owner_id (2, 10, 13) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | professionals : role_code (\"Employee\", \"Veterenarian\"), home_phone (\"891.475.2256\", \"325-155-0801x7005\", \"325-155-0801x7005\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), zip_code (\"80775\", \"98844\", \"43129\"), email_address (\"lambert62@example.org\", \"lourdes.lowe@example.net\", \"west.eula@example.net\"), first_name (\"Sigurd\", \"Danny\", \"Ericka\"), professional_id (13, 12, 11), state (\"Alabama\", \"Hawaii\", \"Mississippi\"), cell_number (\"1-258-285-4707x8020\", \"1-181-670-9466\", \"(369)908-7311x065\"), city (\"West Heidi\", \"North Adelberttown\", \"East Ila\"), last_name (\"Braun\", \"Kshlerin\", \"Braun\") | Guardians : email_address (\"marks.gail@example.org\", \"hudson.favian@example.com\", \"pearlie18@example.com\"), state (\"Arizona\", \"Wisconsin\", \"SouthDakota\"), first_name (\"Melisa\", \"Adelle\", \"Melisa\"), street (\"59509 Mellie Mountain\", \"1858 Jan Park\", \"15828 Spencer Extensions\"), home_phone (\"(058)997-7627\", \"(094)747-5094x8134\", \"(094)747-5094x8134\"), cell_number (\"(722)768-5439x484\", \"559.874.3011x989\", \"(722)768-5439x484\"), last_name (\"Hamill\", \"Price\", \"Fisher\"), city (\"New Margaretteborough\", \"Lake Tia\", \"East Maribelbury\"), zip_code (\"61019\", \"92406\", \"36871\"), owner_id (2, 10, 13)", + "schema_without_content": "charges : charge_type , charge_amount , charge_id | dogs : abandoned_yn , size_code , date_adopted , name , date_departed , owner_id , date_arrived , date_of_birth , gender , age , breed_code , dog_id , weight | treatment_types : treatment_type_code , treatment_type_description | treatments : dog_id , professional_id , treatment_type_code , date_of_treatment , treatment_id , cost_of_treatment | Caretakers : email_address , state , first_name , street , home_phone 997-7627\", \"747-5094x8134\", \"747-5094x8134\", cell_number 768-5439x484\", \"559.874.3011x989\", \"768-5439x484\", last_name , city , zip_code , owner_id | sizes : size_description , size_code | breeds : breed_code , breed_name | professionals : role_code , home_phone , street , zip_code , email_address , first_name , professional_id , state , cell_number 908-7311x065\", city , last_name | Guardians : email_address , state , first_name , street , home_phone 997-7627\", \"747-5094x8134\", \"747-5094x8134\", cell_number 768-5439x484\", \"559.874.3011x989\", \"768-5439x484\", last_name , city , zip_code , owner_id", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "amount of money": "Treatments.cost_of_treatment", + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code" + } + }, + { + "question": "which owner has paid the largest #amount of money# in total for their dogs? show the #owner id# and #zip code# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | Canines : date_arrived (\"2017-04-15 09:25:31\", \"2017-04-15 09:25:31\", \"2017-12-29 06:08:26\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), weight (\"4.01\", \"1.39\", \"4.01\"), name (\"Hipolito\", \"George\", \"Kacey\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 02:47:40\", \"2018-03-25 14:15:41\"), dog_id (5, 9, 5), age (\"4\", \"8\", \"4\"), owner_id (11, 14, 13), date_of_birth (\"2012-05-31 08:01:36\", \"2008-05-19 15:54:49\", \"2015-02-26 21:31:22\"), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-02-27 11:54:35\", \"2018-03-18 07:47:40\") | professionals : cell_number (\"962-983-8109x3509\", \"1-181-670-9466\", \"1-181-670-9466\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (3, 2, 11), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), home_phone (\"320-508-6023\", \"+43(5)1132733868\", \"1-138-287-3775\"), zip_code (\"80775\", \"80775\", \"17902\"), first_name (\"Ruben\", \"Taryn\", \"Domenica\"), email_address (\"lucile.shanahan@example.org\", \"jeichmann@example.com\", \"uboehm@example.org\"), last_name (\"Watsica\", \"Walter\", \"Ullrich\"), state (\"NewMexico\", \"Wisconsin\", \"SouthCarolina\"), city (\"Baileymouth\", \"East Ila\", \"McLaughlinfort\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : owner_id (2, 13, 10), zip_code (\"36871\", \"00589\", \"45244\"), first_name (\"Rolando\", \"Lorenz\", \"Adelle\"), cell_number (\"481-483-9083x37986\", \"633.455.3045x85484\", \"633.455.3045x85484\"), street (\"6950 Katherine Forges Apt. 630\", \"89011 Kertzmann Spring Suite 642\", \"89011 Kertzmann Spring Suite 642\"), state (\"Arizona\", \"Florida\", \"Virginia\"), email_address (\"lynn81@example.org\", \"ybergstrom@example.com\", \"kturner@example.net\"), last_name (\"Funk\", \"Ondricka\", \"Price\"), city (\"Lake Jennyferfort\", \"Port Reannamouth\", \"South Afton\"), home_phone (\"066.264.7885\", \"1-332-849-1908\", \"318-052-6573\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | treatments : date_of_treatment (\"2018-03-14 19:10:40\", \"2018-02-28 17:09:43\", \"2018-03-24 22:25:58\"), treatment_id (9, 5, 11), dog_id (7, 13, 1), professional_id (5, 4, 6), cost_of_treatment (139, 514, 266), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | Pooches : date_arrived (\"2017-04-15 09:25:31\", \"2017-04-15 09:25:31\", \"2017-12-29 06:08:26\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), weight (\"4.01\", \"1.39\", \"4.01\"), name (\"Hipolito\", \"George\", \"Kacey\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 02:47:40\", \"2018-03-25 14:15:41\"), dog_id (5, 9, 5), age (\"4\", \"8\", \"4\"), owner_id (11, 14, 13), date_of_birth (\"2012-05-31 08:01:36\", \"2008-05-19 15:54:49\", \"2015-02-26 21:31:22\"), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-02-27 11:54:35\", \"2018-03-18 07:47:40\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "charges : charge_amount , charge_type , charge_id | Canines : date_arrived , breed_code , abandoned_yn , weight , name , date_departed , dog_id , age , owner_id , date_of_birth , size_code , gender , date_adopted | professionals : cell_number , role_code , professional_id , street , home_phone 1132733868\", \"1-138-287-3775\", zip_code , first_name , email_address , last_name , state , city | breeds : breed_name , breed_code | owners : owner_id , zip_code , first_name , cell_number , street , state , email_address , last_name , city , home_phone | treatment_types : treatment_type_description , treatment_type_code | treatments : date_of_treatment , treatment_id , dog_id , professional_id , cost_of_treatment , treatment_type_code | Pooches : date_arrived , breed_code , abandoned_yn , weight , name , date_departed , dog_id , age , owner_id , date_of_birth , size_code , gender , date_adopted | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "amount of money": "Treatments.cost_of_treatment", + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code" + } + }, + { + "question": "which owner has paid the largest #amount of money# in total for their dogs? show the #owner id# and #zip code# .", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | therapies : professional_id (9, 8, 6), cost_of_treatment (313, 349, 349), date_of_treatment (\"2018-03-08 05:26:23\", \"2018-03-16 10:27:36\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (2, 13, 2), treatment_id (3, 2, 5) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | dogs : name (\"George\", \"Bessie\", \"Houston\"), abandoned_yn (\"1\", \"0\"), age (\"2\", \"6\", \"9\"), weight (\"9.8\", \"8.96\", \"4.01\"), dog_id (4, 4, 13), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-18 07:47:40\", \"2018-03-23 16:02:04\", \"2018-02-25 23:45:30\"), date_arrived (\"2017-09-08 20:10:13\", \"2018-01-02 03:15:29\", \"2017-05-06 08:03:52\"), owner_id (12, 3, 12), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 06:58:44\", \"2018-03-25 06:58:44\"), gender (\"1\", \"0\"), date_of_birth (\"2008-05-19 15:54:49\", \"2013-02-13 05:15:21\", \"2008-05-19 15:54:49\") | procedures : professional_id (9, 8, 6), cost_of_treatment (313, 349, 349), date_of_treatment (\"2018-03-08 05:26:23\", \"2018-03-16 10:27:36\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (2, 13, 2), treatment_id (3, 2, 5) | owners : home_phone (\"363.948.1090\", \"130-796-4589x05454\", \"(094)747-5094x8134\"), city (\"Port Zackery\", \"East Maribelbury\", \"Port Reannamouth\"), last_name (\"Feil\", \"Nicolas\", \"Fisher\"), first_name (\"Melisa\", \"Emelie\", \"Melisa\"), state (\"Arkansas\", \"Indiana\", \"Vermont\"), street (\"6950 Katherine Forges Apt. 630\", \"15828 Spencer Extensions\", \"692 Jaskolski Forges\"), zip_code (\"25609\", \"61019\", \"86010\"), owner_id (2, 4, 8), cell_number (\"739-136-7202\", \"1-626-264-7659x1697\", \"478.978.0729\"), email_address (\"angeline99@example.com\", \"lynn81@example.org\", \"edythe62@example.org\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | professionals : home_phone (\"320-508-6023\", \"1-138-287-3775\", \"+02(1)0259033559\"), professional_id (8, 11, 6), email_address (\"west.eula@example.net\", \"mekhi.little@example.org\", \"deanna.schuster@example.com\"), cell_number (\"328.842.3792\", \"(275)939-2435x80863\", \"962-983-8109x3509\"), last_name (\"Kshlerin\", \"Murazik\", \"Considine\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"84515\", \"52476\", \"02281\"), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), first_name (\"Danny\", \"Olaf\", \"Winfield\"), state (\"Mississippi\", \"Alabama\", \"Hawaii\"), city (\"Kirastad\", \"Juddton\", \"Kirastad\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | therapies : professional_id , cost_of_treatment , date_of_treatment , treatment_type_code , dog_id , treatment_id | breeds : breed_name , breed_code | dogs : name , abandoned_yn , age , weight , dog_id , size_code , breed_code , date_adopted , date_arrived , owner_id , date_departed , gender , date_of_birth | procedures : professional_id , cost_of_treatment , date_of_treatment , treatment_type_code , dog_id , treatment_id | owners : home_phone 747-5094x8134\", city , last_name , first_name , state , street , zip_code , owner_id , cell_number , email_address | charges : charge_type , charge_amount , charge_id | professionals : home_phone 0259033559\", professional_id , email_address , cell_number 939-2435x80863\", \"962-983-8109x3509\", last_name , role_code , zip_code , street , first_name , state , city | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "amount of money": "Treatments.cost_of_treatment", + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code" + } + }, + { + "question": "find the #owner id# and #zip code# of the owner who spent the most #money# in total for his or her dogs.", + "db_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "Guardians : cell_number (\"762.589.6117x1328\", \"+70(4)9217952551\", \"559.874.3011x989\"), city (\"East Maribelbury\", \"Lake Carleyborough\", \"Beerton\"), first_name (\"Heather\", \"Nora\", \"Kade\"), last_name (\"Hauck\", \"Schmitt\", \"Schmitt\"), zip_code (\"11990\", \"11990\", \"45244\"), owner_id (15, 4, 3), state (\"Pennsylvania\", \"Wisconsin\", \"Florida\"), home_phone (\"(544)034-1670\", \"1-682-845-0116x63235\", \"(058)997-7627\"), email_address (\"fschoen@example.net\", \"ybergstrom@example.com\", \"ykris@example.com\"), street (\"57382 Yost Ridges\", \"692 Jaskolski Forges\", \"51934 Treutel Harbor\") | treatments : date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\", \"2018-03-23 13:52:10\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (9, 10, 14), dog_id (10, 13, 2), treatment_id (7, 8, 13), cost_of_treatment (945, 945, 428) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : age (\"1\", \"9\", \"4\"), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 04:50:22\", \"2018-03-25 04:50:22\"), date_arrived (\"2017-10-16 20:06:21\", \"2017-04-15 09:25:31\", \"2017-04-15 09:25:31\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2012-05-31 08:01:36\", \"2012-07-11 17:15:10\", \"2013-02-20 14:50:56\"), name (\"Houston\", \"Holden\", \"Houston\"), abandoned_yn (\"1\", \"0\"), weight (\"4.36\", \"7.57\", \"8.95\"), dog_id (13, 3, 9), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-23 16:02:04\", \"2018-03-18 15:12:50\"), owner_id (13, 5, 7), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | Caretakers : cell_number (\"762.589.6117x1328\", \"+70(4)9217952551\", \"559.874.3011x989\"), city (\"East Maribelbury\", \"Lake Carleyborough\", \"Beerton\"), first_name (\"Heather\", \"Nora\", \"Kade\"), last_name (\"Hauck\", \"Schmitt\", \"Schmitt\"), zip_code (\"11990\", \"11990\", \"45244\"), owner_id (15, 4, 3), state (\"Pennsylvania\", \"Wisconsin\", \"Florida\"), home_phone (\"(544)034-1670\", \"1-682-845-0116x63235\", \"(058)997-7627\"), email_address (\"fschoen@example.net\", \"ybergstrom@example.com\", \"ykris@example.com\"), street (\"57382 Yost Ridges\", \"692 Jaskolski Forges\", \"51934 Treutel Harbor\") | professionals : street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), city (\"West Heidi\", \"New Maryjane\", \"New Laurytown\"), first_name (\"Sigurd\", \"Lesly\", \"Ruben\"), home_phone (\"891.475.2256\", \"+71(6)2898266914\", \"246-951-0080x76716\"), last_name (\"Christiansen\", \"O'Reilly\", \"Considine\"), state (\"Connecticut\", \"Montana\", \"California\"), professional_id (6, 14, 6), cell_number (\"328.842.3792\", \"011.193.9081x3186\", \"609-405-2990\"), zip_code (\"02281\", \"52476\", \"77129\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"delphine29@example.com\", \"lucile.shanahan@example.org\", \"lambert62@example.org\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "Guardians : cell_number 9217952551\", \"559.874.3011x989\", city , first_name , last_name , zip_code , owner_id , state , home_phone 034-1670\", \"1-682-845-0116x63235\", \"997-7627\", email_address , street | treatments : date_of_treatment , treatment_type_code , professional_id , dog_id , treatment_id , cost_of_treatment | breeds : breed_code , breed_name | dogs : age , date_departed , date_arrived , size_code , date_of_birth , name , abandoned_yn , weight , dog_id , date_adopted , owner_id , gender , breed_code | Caretakers : cell_number 9217952551\", \"559.874.3011x989\", city , first_name , last_name , zip_code , owner_id , state , home_phone 034-1670\", \"1-682-845-0116x63235\", \"997-7627\", email_address , street | professionals : street , city , first_name , home_phone 2898266914\", \"246-951-0080x76716\", last_name , state , professional_id , cell_number , zip_code , role_code , email_address | treatment_types : treatment_type_description , treatment_type_code | charges : charge_amount , charge_type , charge_id | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code", + "money": "Treatments.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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "treatments : treatment_id (2, 11, 6), cost_of_treatment (266, 681, 407), professional_id (5, 8, 9), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-10 11:45:58\", \"2018-03-24 22:25:58\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (15, 14, 7) | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | Pooches : age (\"6\", \"4\", \"8\"), date_of_birth (\"2012-07-11 17:15:10\", \"2009-04-12 06:02:48\", \"2012-07-11 17:15:10\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"2.18\", \"5.16\", \"6.92\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (11, 4, 10), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-22 05:02:02\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), owner_id (11, 1, 8), date_adopted (\"2018-02-25 23:45:30\", \"2018-02-25 23:45:30\", \"2018-03-23 16:02:04\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:11:32\", \"2018-03-25 04:50:22\"), gender (\"1\", \"0\"), name (\"Troy\", \"Betty\", \"Jeffrey\") | owners : email_address (\"ykris@example.com\", \"ymaggio@example.com\", \"hudson.favian@example.com\"), cell_number (\"+00(2)4323592985\", \"559.874.3011x989\", \"1-626-264-7659x1697\"), owner_id (12, 9, 15), last_name (\"Fisher\", \"Prohaska\", \"Hamill\"), city (\"East Hillardberg\", \"Brakusfurt\", \"Port Reannamouth\"), first_name (\"Rolando\", \"Orlando\", \"Nora\"), street (\"0647 Hintz Village Apt. 024\", \"2635 Caitlyn Plains\", \"692 Jaskolski Forges\"), state (\"NewYork\", \"Florida\", \"Indiana\"), home_phone (\"916.976.9480x13851\", \"(094)747-5094x8134\", \"066.264.7885\"), zip_code (\"92406\", \"92406\", \"92406\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | professionals : street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"72532 Hane Course\nLake Berylland, ND 95283\"), home_phone (\"891.475.2256\", \"246-951-0080x76716\", \"891.475.2256\"), first_name (\"Danny\", \"Jayson\", \"Danny\"), state (\"Utah\", \"Mississippi\", \"Wyoming\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"06646\", \"52476\", \"41215\"), email_address (\"uboehm@example.org\", \"west.eula@example.net\", \"lambert62@example.org\"), city (\"North Adelberttown\", \"Kirastad\", \"Jaceton\"), professional_id (10, 15, 14), cell_number (\"962-983-8109x3509\", \"328.842.3792\", \"139-321-7313\"), last_name (\"Tillman\", \"Walter\", \"Christiansen\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Canines : age (\"6\", \"4\", \"8\"), date_of_birth (\"2012-07-11 17:15:10\", \"2009-04-12 06:02:48\", \"2012-07-11 17:15:10\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"2.18\", \"5.16\", \"6.92\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (11, 4, 10), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-22 05:02:02\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), owner_id (11, 1, 8), date_adopted (\"2018-02-25 23:45:30\", \"2018-02-25 23:45:30\", \"2018-03-23 16:02:04\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:11:32\", \"2018-03-25 04:50:22\"), gender (\"1\", \"0\"), name (\"Troy\", \"Betty\", \"Jeffrey\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "treatments : treatment_id , cost_of_treatment , professional_id , date_of_treatment , treatment_type_code , dog_id | charges : charge_amount , charge_type , charge_id | Pooches : age , date_of_birth , breed_code , weight , size_code , dog_id , date_arrived , abandoned_yn , owner_id , date_adopted , date_departed , gender , name | owners : email_address , cell_number 4323592985\", \"559.874.3011x989\", \"1-626-264-7659x1697\", owner_id , last_name , city , first_name , street , state , home_phone 747-5094x8134\", \"066.264.7885\", zip_code | sizes : size_code , size_description | professionals : street , home_phone , first_name , state , role_code , zip_code , email_address , city , professional_id , cell_number , last_name | treatment_types : treatment_type_description , treatment_type_code | Canines : age , date_of_birth , breed_code , weight , size_code , dog_id , date_arrived , abandoned_yn , owner_id , date_adopted , date_departed , gender , name | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code", + "money": "Treatments.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_id": "dog_kennels", + "orig_query": "select t1.owner_id, t1.zip_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id join treatments as t3 on t2.dog_id = t3.dog_id group by t1.owner_id order by sum(t3.cost_of_treatment) desc limit 1", + "schema_with_content": "breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | professionals : street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), first_name (\"Vernice\", \"Winfield\", \"Danny\"), home_phone (\"320-508-6023\", \"325-155-0801x7005\", \"1-609-566-2752x25197\"), professional_id (12, 11, 9), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"609-405-2990\", \"499-434-0215x1628\", \"011.193.9081x3186\"), city (\"South Rockyport\", \"New Laurytown\", \"New Laurytown\"), zip_code (\"84515\", \"84515\", \"84515\"), last_name (\"Kshlerin\", \"Kshlerin\", \"Considine\"), email_address (\"lucile.shanahan@example.org\", \"jeichmann@example.com\", \"uboehm@example.org\"), state (\"California\", \"Hawaii\", \"Mississippi\") | therapies : date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-08 05:26:23\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (5, 8, 7), treatment_id (7, 3, 4), cost_of_treatment (266, 514, 313), dog_id (15, 4, 4) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | dogs : date_arrived (\"2018-01-02 03:15:29\", \"2017-10-24 04:45:13\", \"2017-04-15 09:25:31\"), date_of_birth (\"2012-10-14 14:44:37\", \"2013-02-13 05:15:21\", \"2008-05-19 15:54:49\"), name (\"Mavis\", \"Lyric\", \"Houston\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"5\", \"2\", \"8\"), gender (\"1\", \"0\"), owner_id (3, 14, 14), abandoned_yn (\"1\", \"0\"), weight (\"8.16\", \"4.01\", \"6.92\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 06:58:44\", \"2018-03-24 19:12:22\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-02-27 11:54:35\", \"2018-03-23 16:02:04\"), dog_id (11, 5, 11) | procedures : date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-08 05:26:23\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (5, 8, 7), treatment_id (7, 3, 4), cost_of_treatment (266, 514, 313), dog_id (15, 4, 4) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | owners : first_name (\"Adelle\", \"Nora\", \"Cindy\"), street (\"1858 Jan Park\", \"68118 Daniel Row\", \"1204 Mae Highway Apt. 107\"), state (\"Arkansas\", \"SouthDakota\", \"Mississippi\"), home_phone (\"130-796-4589x05454\", \"(799)563-0260x454\", \"01802479758\"), city (\"Lake Carleyborough\", \"East Maribelbury\", \"Brakusfurt\"), email_address (\"marks.gail@example.org\", \"ymaggio@example.com\", \"ykris@example.com\"), owner_id (10, 9, 2), zip_code (\"11990\", \"35747\", \"00589\"), cell_number (\"(783)271-6744x4507\", \"762.589.6117x1328\", \"341.667.8085\"), last_name (\"Mertz\", \"Rippin\", \"Rippin\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3)", + "schema_without_content": "breeds : breed_name , breed_code | professionals : street , first_name , home_phone , professional_id , role_code , cell_number , city , zip_code , last_name , email_address , state | therapies : date_of_treatment , treatment_type_code , professional_id , treatment_id , cost_of_treatment , dog_id | treatment_types : treatment_type_code , treatment_type_description | dogs : date_arrived , date_of_birth , name , size_code , breed_code , age , gender , owner_id , abandoned_yn , weight , date_departed , date_adopted , dog_id | procedures : date_of_treatment , treatment_type_code , professional_id , treatment_id , cost_of_treatment , dog_id | sizes : size_code , size_description | owners : first_name , street , state , home_phone 563-0260x454\", \"01802479758\", city , email_address , owner_id , zip_code , cell_number 271-6744x4507\", \"762.589.6117x1328\", \"341.667.8085\", last_name | charges : charge_amount , charge_type , charge_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner id": "Owners.owner_id", + "zip code": "Owners.zip_code", + "money": "Treatments.cost_of_treatment" + } + }, + { + "question": "which #professionals# have done at least two #types of treatments# ? list the #professional id# and #cell phone# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Handlers : email_address (\"schneider.kathryne@example.org\", \"cole.margarita@example.org\", \"marquardt.furman@example.org\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), city (\"New Laurytown\", \"East Ila\", \"West Heidi\"), last_name (\"Frami\", \"Hyatt\", \"Ullrich\"), home_phone (\"346.594.3739\", \"+43(5)1132733868\", \"(920)304-4499x59146\"), zip_code (\"67980\", \"84515\", \"52476\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"499-434-0215x1628\", \"011.193.9081x3186\", \"461-801-2600\"), state (\"SouthCarolina\", \"Alabama\", \"SouthCarolina\"), professional_id (10, 7, 13), first_name (\"Vernice\", \"Brady\", \"Karley\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (13, 2, 13), cost_of_treatment (139, 428, 668), dog_id (13, 2, 15), professional_id (6, 8, 4), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-04 20:33:43\", \"2018-03-10 11:45:58\") | Caregivers : email_address (\"schneider.kathryne@example.org\", \"cole.margarita@example.org\", \"marquardt.furman@example.org\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), city (\"New Laurytown\", \"East Ila\", \"West Heidi\"), last_name (\"Frami\", \"Hyatt\", \"Ullrich\"), home_phone (\"346.594.3739\", \"+43(5)1132733868\", \"(920)304-4499x59146\"), zip_code (\"67980\", \"84515\", \"52476\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"499-434-0215x1628\", \"011.193.9081x3186\", \"461-801-2600\"), state (\"SouthCarolina\", \"Alabama\", \"SouthCarolina\"), professional_id (10, 7, 13), first_name (\"Vernice\", \"Brady\", \"Karley\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : weight (\"4.01\", \"8.04\", \"3.52\"), owner_id (1, 14, 1), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), age (\"1\", \"2\", \"6\"), dog_id (11, 12, 7), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-25 08:12:51\", \"2018-02-27 00:27:57\"), date_of_birth (\"2013-02-20 14:50:56\", \"2013-02-20 14:50:56\", \"2008-10-09 22:38:53\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Jeffrey\", \"Jesus\", \"Holden\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-10-25 00:55:34\", \"2017-07-25 15:19:07\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | owners : cell_number (\"559.874.3011x989\", \"481-483-9083x37986\", \"739-136-7202\"), first_name (\"Rachelle\", \"Lorenz\", \"Rachelle\"), owner_id (15, 15, 6), home_phone (\"318-052-6573\", \"1-332-849-1908\", \"130-796-4589x05454\"), email_address (\"edythe62@example.org\", \"christy49@example.org\", \"kturner@example.net\"), state (\"Arizona\", \"Arkansas\", \"Arizona\"), city (\"Port Reannamouth\", \"Port Zackery\", \"Lake Tia\"), street (\"60352 Kayleigh Crossing Suite 700\", \"1204 Mae Highway Apt. 107\", \"68118 Daniel Row\"), zip_code (\"35747\", \"86010\", \"86010\"), last_name (\"Schmitt\", \"Prohaska\", \"Nicolas\")", + "schema_without_content": "breeds : breed_code , breed_name | Handlers : email_address , street , city , last_name , home_phone 1132733868\", \"304-4499x59146\", zip_code , role_code , cell_number , state , professional_id , first_name | treatments : treatment_type_code , treatment_id , cost_of_treatment , dog_id , professional_id , date_of_treatment | Caregivers : email_address , street , city , last_name , home_phone 1132733868\", \"304-4499x59146\", zip_code , role_code , cell_number , state , professional_id , first_name | treatment_types : treatment_type_description , treatment_type_code | sizes : size_description , size_code | dogs : weight , owner_id , abandoned_yn , breed_code , gender , age , dog_id , date_adopted , date_of_birth , size_code , name , date_departed , date_arrived | charges : charge_id , charge_type , charge_amount | owners : cell_number , first_name , owner_id , home_phone , email_address , state , city , street , zip_code , last_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "types of treatments": "Treatments.treatment_type_code", + "professional id": "Professionals.professional_id", + "cell phone": "Professionals.cell_number" + } + }, + { + "question": "which #professionals# have done at least two #types of treatments# ? list the #professional id# and #cell phone# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | professionals : city (\"East Ila\", \"McLaughlinfort\", \"North Adelberttown\"), zip_code (\"17902\", \"34041\", \"84515\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), first_name (\"Olaf\", \"Brady\", \"Ericka\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"139-321-7313\", \"328.842.3792\", \"880-659-7577x736\"), last_name (\"Walter\", \"Kshlerin\", \"Pouros\"), home_phone (\"971.048.3763x9404\", \"325-155-0801x7005\", \"346.594.3739\"), state (\"Connecticut\", \"Hawaii\", \"Alabama\"), email_address (\"uboehm@example.org\", \"deanna.schuster@example.com\", \"lourdes.lowe@example.net\"), professional_id (10, 5, 3) | procedures : cost_of_treatment (668, 266, 681), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-04 20:33:43\", \"2018-03-08 05:26:23\"), dog_id (10, 2, 1), treatment_id (5, 14, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 10, 8) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : email_address (\"kturner@example.net\", \"edythe62@example.org\", \"wpfeffer@example.net\"), cell_number (\"+70(4)9217952551\", \"1-626-264-7659x1697\", \"559.874.3011x989\"), owner_id (2, 1, 6), last_name (\"Mertz\", \"DuBuque\", \"Price\"), first_name (\"Lorenz\", \"Johann\", \"Rolando\"), street (\"0647 Hintz Village Apt. 024\", \"692 Jaskolski Forges\", \"9212 Rosenbaum Lights\"), state (\"SouthDakota\", \"Florida\", \"Vermont\"), zip_code (\"35747\", \"86010\", \"92406\"), city (\"West Leonard\", \"Lake Carleyborough\", \"Lake Carleyborough\"), home_phone (\"1-346-655-5842x768\", \"1-346-655-5842x768\", \"363.948.1090\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | therapies : cost_of_treatment (668, 266, 681), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-04 20:33:43\", \"2018-03-08 05:26:23\"), dog_id (10, 2, 1), treatment_id (5, 14, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 10, 8) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | dogs : date_departed (\"2018-03-25 02:47:40\", \"2018-03-25 04:42:14\", \"2018-03-25 13:07:04\"), owner_id (12, 11, 13), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"2\", \"9\", \"6\"), weight (\"8.16\", \"1.72\", \"8.04\"), name (\"Merritt\", \"Kacey\", \"Troy\"), abandoned_yn (\"1\", \"0\"), dog_id (14, 9, 15), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2012-01-27 05:11:53\", \"2012-10-14 14:44:37\", \"2012-01-27 05:11:53\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-04-20 00:58:55\", \"2017-05-06 08:03:52\")", + "schema_without_content": "breeds : breed_code , breed_name | professionals : city , zip_code , street , first_name , role_code , cell_number , last_name , home_phone , state , email_address , professional_id | procedures : cost_of_treatment , date_of_treatment , dog_id , treatment_id , treatment_type_code , professional_id | treatment_types : treatment_type_description , treatment_type_code | owners : email_address , cell_number 9217952551\", \"1-626-264-7659x1697\", \"559.874.3011x989\", owner_id , last_name , first_name , street , state , zip_code , city , home_phone | charges : charge_amount , charge_id , charge_type | therapies : cost_of_treatment , date_of_treatment , dog_id , treatment_id , treatment_type_code , professional_id | sizes : size_code , size_description | dogs : date_departed , owner_id , gender , breed_code , age , weight , name , abandoned_yn , dog_id , date_adopted , size_code , date_of_birth , date_arrived", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "types of treatments": "Treatments.treatment_type_code", + "professional id": "Professionals.professional_id", + "cell phone": "Professionals.cell_number" + } + }, + { + "question": "find the #id# and #cell phone of the professionals# who operate two or more #types of treatments# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "Caregivers : home_phone (\"+71(6)2898266914\", \"325-155-0801x7005\", \"246-951-0080x76716\"), zip_code (\"33020\", \"17902\", \"67980\"), city (\"South Rockyport\", \"Jaceton\", \"West Heidi\"), state (\"Connecticut\", \"Montana\", \"NewMexico\"), cell_number (\"00230569697\", \"609-405-2990\", \"1-185-137-1945x409\"), last_name (\"Frami\", \"Jacobs\", \"Watsica\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\"), professional_id (9, 10, 15), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Velva\", \"Monte\", \"Taryn\"), email_address (\"cole.margarita@example.org\", \"jacynthe.mclaughlin@example.net\", \"goyette.roosevelt@example.net\") | owners : email_address (\"kturner@example.net\", \"angeline99@example.com\", \"wpfeffer@example.net\"), home_phone (\"(799)563-0260x454\", \"1-332-849-1908\", \"893-862-5295x61709\"), owner_id (12, 1, 15), last_name (\"Mertz\", \"Ondricka\", \"Hamill\"), first_name (\"Gay\", \"Heather\", \"Emelie\"), street (\"60352 Kayleigh Crossing Suite 700\", \"2417 Keara Stravenue Apt. 146\", \"1858 Jan Park\"), state (\"Arizona\", \"Vermont\", \"SouthDakota\"), city (\"Barrettburgh\", \"East Maribelbury\", \"Brakusfurt\"), zip_code (\"78297\", \"22731\", \"78297\"), cell_number (\"559.874.3011x989\", \"121.381.3316x6535\", \"633.455.3045x85484\") | Handlers : home_phone (\"+71(6)2898266914\", \"325-155-0801x7005\", \"246-951-0080x76716\"), zip_code (\"33020\", \"17902\", \"67980\"), city (\"South Rockyport\", \"Jaceton\", \"West Heidi\"), state (\"Connecticut\", \"Montana\", \"NewMexico\"), cell_number (\"00230569697\", \"609-405-2990\", \"1-185-137-1945x409\"), last_name (\"Frami\", \"Jacobs\", \"Watsica\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\"), professional_id (9, 10, 15), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Velva\", \"Monte\", \"Taryn\"), email_address (\"cole.margarita@example.org\", \"jacynthe.mclaughlin@example.net\", \"goyette.roosevelt@example.net\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | treatments : treatment_id (10, 12, 10), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-14 19:10:40\", \"2018-03-01 04:14:46\"), cost_of_treatment (668, 656, 852), dog_id (15, 15, 2), professional_id (4, 4, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : age (\"1\", \"5\", \"8\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-12-22 05:02:02\", \"2018-01-02 03:15:29\"), gender (\"1\", \"0\"), name (\"Jesus\", \"Mavis\", \"Kacey\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (8, 7, 5), weight (\"8.95\", \"9.8\", \"5.16\"), date_of_birth (\"2013-02-20 14:50:56\", \"2013-02-13 05:15:21\", \"2018-03-17 04:05:12\"), owner_id (2, 14, 14), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 14:15:41\", \"2018-03-25 06:58:44\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-18 07:47:40\", \"2018-02-25 23:45:30\", \"2018-03-14 08:05:18\"), abandoned_yn (\"1\", \"0\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "Caregivers : home_phone 2898266914\", \"325-155-0801x7005\", \"246-951-0080x76716\", zip_code , city , state , cell_number , last_name , street , professional_id , role_code , first_name , email_address | owners : email_address , home_phone 563-0260x454\", \"1-332-849-1908\", \"893-862-5295x61709\", owner_id , last_name , first_name , street , state , city , zip_code , cell_number | Handlers : home_phone 2898266914\", \"325-155-0801x7005\", \"246-951-0080x76716\", zip_code , city , state , cell_number , last_name , street , professional_id , role_code , first_name , email_address | treatment_types : treatment_type_description , treatment_type_code | treatments : treatment_id , date_of_treatment , cost_of_treatment , dog_id , professional_id , treatment_type_code | sizes : size_description , size_code | dogs : age , date_arrived , gender , name , breed_code , dog_id , weight , date_of_birth , owner_id , date_departed , size_code , date_adopted , abandoned_yn | charges : charge_amount , charge_id , charge_type | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "cell phone of the professionals": "Professionals.cell_number", + "types of treatments": "Treatments.treatment_type_code" + } + }, + { + "question": "find the #id# and #cell phone of the professionals# who operate two or more #types of treatments# .", + "db_id": "dog_kennels", + "orig_query": "select t1.professional_id, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | dogs : date_adopted (\"2018-03-18 07:47:40\", \"2018-03-18 07:47:40\", \"2018-02-27 00:27:57\"), gender (\"1\", \"0\"), date_of_birth (\"2008-10-09 22:38:53\", \"2010-11-11 07:11:53\", \"2015-02-26 21:31:22\"), owner_id (6, 10, 2), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"7.57\", \"8.95\", \"5.16\"), name (\"Evangeline\", \"Kacey\", \"Merritt\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 06:46:07\", \"2018-03-25 14:15:41\"), date_arrived (\"2017-06-18 19:45:38\", \"2017-04-20 00:58:55\", \"2017-04-20 00:58:55\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"4\", \"5\", \"8\"), dog_id (7, 5, 14), abandoned_yn (\"1\", \"0\") | professionals : zip_code (\"84515\", \"33020\", \"06646\"), professional_id (11, 4, 7), city (\"Raynorfort\", \"New Laurytown\", \"McLaughlinfort\"), home_phone (\"346.594.3739\", \"022.529.0550x1319\", \"325-155-0801x7005\"), cell_number (\"499-434-0215x1628\", \"(369)908-7311x065\", \"1-181-670-9466\"), first_name (\"Domenica\", \"Vernice\", \"Velva\"), last_name (\"Braun\", \"Tillman\", \"Considine\"), street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), state (\"California\", \"Wisconsin\", \"NorthCarolina\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jeichmann@example.com\", \"lourdes.lowe@example.net\", \"uboehm@example.org\") | procedures : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (7, 10, 14), treatment_id (4, 10, 9), dog_id (15, 15, 7), cost_of_treatment (852, 681, 139), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-08 05:26:23\", \"2018-02-28 17:09:43\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | therapies : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (7, 10, 14), treatment_id (4, 10, 9), dog_id (15, 15, 7), cost_of_treatment (852, 681, 139), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-08 05:26:23\", \"2018-02-28 17:09:43\") | owners : street (\"60352 Kayleigh Crossing Suite 700\", \"0647 Hintz Village Apt. 024\", \"51934 Treutel Harbor\"), owner_id (5, 7, 6), city (\"South Afton\", \"Lake Valentin\", \"Lake Tia\"), first_name (\"Emelie\", \"Adelle\", \"Jaclyn\"), cell_number (\"762.589.6117x1328\", \"633.455.3045x85484\", \"478.978.0729\"), zip_code (\"22731\", \"45244\", \"22731\"), email_address (\"zboncak.madonna@example.net\", \"angeline99@example.com\", \"wpfeffer@example.net\"), state (\"Virginia\", \"Virginia\", \"Wisconsin\"), last_name (\"Rippin\", \"Ondricka\", \"Haley\"), home_phone (\"1-682-845-0116x63235\", \"916.976.9480x13851\", \"130-796-4589x05454\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | charges : charge_id , charge_type , charge_amount | dogs : date_adopted , gender , date_of_birth , owner_id , breed_code , weight , name , date_departed , date_arrived , size_code , age , dog_id , abandoned_yn | professionals : zip_code , professional_id , city , home_phone , cell_number 908-7311x065\", \"1-181-670-9466\", first_name , last_name , street , state , role_code , email_address | procedures : treatment_type_code , professional_id , treatment_id , dog_id , cost_of_treatment , date_of_treatment | sizes : size_description , size_code | breeds : breed_name , breed_code | therapies : treatment_type_code , professional_id , treatment_id , dog_id , cost_of_treatment , date_of_treatment | owners : street , owner_id , city , first_name , cell_number , zip_code , email_address , state , last_name , home_phone", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "id": "Professionals.professional_id", + "cell phone of the professionals": "Professionals.cell_number", + "types of treatments": "Treatments.treatment_type_code" + } + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done #treatment with cost# below average?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t1.last_name from professionals as t1 join treatments as t2 where cost_of_treatment < (select avg(cost_of_treatment) from treatments)", + "schema_with_content": "Caregivers : professional_id (4, 8, 7), role_code (\"Employee\", \"Veterenarian\"), state (\"SouthCarolina\", \"Alabama\", \"Mississippi\"), last_name (\"Pouros\", \"Murazik\", \"Murazik\"), first_name (\"Karley\", \"Taryn\", \"Domenica\"), home_phone (\"(230)338-3342x585\", \"+43(5)1132733868\", \"+02(1)0259033559\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"499-434-0215x1628\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), zip_code (\"98844\", \"02281\", \"98844\"), email_address (\"jerrod.bahringer@example.org\", \"lourdes.lowe@example.net\", \"jacynthe.mclaughlin@example.net\"), city (\"New Maryjane\", \"McLaughlinfort\", \"Domenickton\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Handlers : professional_id (4, 8, 7), role_code (\"Employee\", \"Veterenarian\"), state (\"SouthCarolina\", \"Alabama\", \"Mississippi\"), last_name (\"Pouros\", \"Murazik\", \"Murazik\"), first_name (\"Karley\", \"Taryn\", \"Domenica\"), home_phone (\"(230)338-3342x585\", \"+43(5)1132733868\", \"+02(1)0259033559\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"499-434-0215x1628\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), zip_code (\"98844\", \"02281\", \"98844\"), email_address (\"jerrod.bahringer@example.org\", \"lourdes.lowe@example.net\", \"jacynthe.mclaughlin@example.net\"), city (\"New Maryjane\", \"McLaughlinfort\", \"Domenickton\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : email_address (\"angeline99@example.com\", \"ykris@example.com\", \"ybergstrom@example.com\"), first_name (\"Lorenz\", \"Lorenz\", \"Orlando\"), owner_id (2, 6, 12), state (\"Florida\", \"Maryland\", \"Wisconsin\"), home_phone (\"893-862-5295x61709\", \"01802479758\", \"1-332-849-1908\"), street (\"2417 Keara Stravenue Apt. 146\", \"68118 Daniel Row\", \"59509 Mellie Mountain\"), city (\"Lake Valentin\", \"Lake Carleyborough\", \"Lake Jennyferfort\"), zip_code (\"45244\", \"92406\", \"87304\"), cell_number (\"(257)399-3116\", \"478.978.0729\", \"(783)271-6744x4507\"), last_name (\"Stoltenberg\", \"Feil\", \"Prohaska\") | treatments : cost_of_treatment (514, 313, 407), dog_id (14, 13, 13), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-13 12:22:58\", \"2018-03-23 13:52:10\"), treatment_id (3, 3, 6), professional_id (8, 7, 14), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | dogs : date_arrived (\"2017-12-29 23:24:13\", \"2017-10-16 20:06:21\", \"2017-12-22 05:02:02\"), dog_id (11, 12, 12), weight (\"1.39\", \"8.04\", \"9.48\"), date_adopted (\"2018-03-18 07:47:40\", \"2018-03-05 06:05:23\", \"2018-03-18 15:12:50\"), name (\"Mavis\", \"Mavis\", \"Jeffrey\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2010-11-11 07:11:53\", \"2013-02-13 05:15:21\", \"2008-05-19 15:54:49\"), abandoned_yn (\"1\", \"0\"), owner_id (10, 11, 10), age (\"2\", \"3\", \"8\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\"), gender (\"1\", \"0\")", + "schema_without_content": "Caregivers : professional_id , role_code , state , last_name , first_name , home_phone 338-3342x585\", \"+431132733868\", \"+020259033559\", cell_number , street , zip_code , email_address , city | charges : charge_amount , charge_id , charge_type | Handlers : professional_id , role_code , state , last_name , first_name , home_phone 338-3342x585\", \"+431132733868\", \"+020259033559\", cell_number , street , zip_code , email_address , city | breeds : breed_name , breed_code | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description | owners : email_address , first_name , owner_id , state , home_phone , street , city , zip_code , cell_number 399-3116\", \"478.978.0729\", \"271-6744x4507\", last_name | treatments : cost_of_treatment , dog_id , date_of_treatment , treatment_id , professional_id , treatment_type_code | dogs : date_arrived , dog_id , weight , date_adopted , name , size_code , breed_code , date_of_birth , abandoned_yn , owner_id , age , date_departed , gender", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "Professionals.first_name", + "last name": "Professionals.last_name", + "treatment with cost": "Treatments.cost_of_treatment" + } + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done #treatment with cost# below average?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t1.last_name from professionals as t1 join treatments as t2 where cost_of_treatment < (select avg(cost_of_treatment) from treatments)", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : cell_number (\"481-483-9083x37986\", \"478.978.0729\", \"(257)399-3116\"), city (\"Lake Carleyborough\", \"Brakusfurt\", \"West Leonard\"), owner_id (1, 13, 9), state (\"Indiana\", \"Washington\", \"Virginia\"), home_phone (\"318-052-6573\", \"363.948.1090\", \"(058)997-7627\"), last_name (\"Nicolas\", \"Schmitt\", \"Prohaska\"), street (\"1858 Jan Park\", \"51934 Treutel Harbor\", \"1858 Jan Park\"), first_name (\"Adelle\", \"Tre\", \"Cindy\"), email_address (\"hudson.favian@example.com\", \"pearlie18@example.com\", \"margaretta.runte@example.net\"), zip_code (\"11990\", \"36871\", \"86010\") | professionals : state (\"NewMexico\", \"Utah\", \"Utah\"), home_phone (\"(920)304-4499x59146\", \"325-155-0801x7005\", \"891.475.2256\"), city (\"Kirastad\", \"Jaceton\", \"North Odellfurt\"), first_name (\"Karley\", \"Vernice\", \"Danny\"), last_name (\"Jacobs\", \"Hyatt\", \"Murazik\"), email_address (\"lourdes.lowe@example.net\", \"cole.margarita@example.org\", \"jeichmann@example.com\"), cell_number (\"328.842.3792\", \"1-185-137-1945x409\", \"889-940-2676\"), zip_code (\"84515\", \"41215\", \"43129\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), role_code (\"Employee\", \"Veterenarian\"), professional_id (15, 13, 15) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | dogs : abandoned_yn (\"1\", \"0\"), name (\"Mavis\", \"Betty\", \"Kacey\"), weight (\"7.57\", \"8.96\", \"8.96\"), date_arrived (\"2017-12-29 23:24:13\", \"2017-12-29 06:08:26\", \"2018-01-17 11:44:16\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\", \"2018-03-24 23:48:59\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"4\", \"2\", \"1\"), gender (\"1\", \"0\"), date_of_birth (\"2012-01-27 05:11:53\", \"2008-05-19 15:54:49\", \"2012-01-27 05:11:53\"), owner_id (12, 7, 2), dog_id (8, 6, 15), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-18 07:47:40\", \"2018-03-25 08:12:51\") | procedures : cost_of_treatment (514, 147, 567), professional_id (4, 5, 14), dog_id (12, 12, 12), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-15 20:25:34\", \"2018-03-01 04:14:46\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (12, 14, 15) | therapies : cost_of_treatment (514, 147, 567), professional_id (4, 5, 14), dog_id (12, 12, 12), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-15 20:25:34\", \"2018-03-01 04:14:46\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (12, 14, 15) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | owners : cell_number 399-3116\", city , owner_id , state , home_phone 997-7627\", last_name , street , first_name , email_address , zip_code | professionals : state , home_phone 304-4499x59146\", \"325-155-0801x7005\", \"891.475.2256\", city , first_name , last_name , email_address , cell_number , zip_code , street , role_code , professional_id | sizes : size_code , size_description | charges : charge_id , charge_type , charge_amount | dogs : abandoned_yn , name , weight , date_arrived , date_departed , breed_code , age , gender , date_of_birth , owner_id , dog_id , size_code , date_adopted | procedures : cost_of_treatment , professional_id , dog_id , date_of_treatment , treatment_type_code , treatment_id | therapies : cost_of_treatment , professional_id , dog_id , date_of_treatment , treatment_type_code , treatment_id | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "Professionals.first_name", + "last name": "Professionals.last_name", + "treatment with cost": "Treatments.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_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t1.last_name from professionals as t1 join treatments as t2 where cost_of_treatment < (select avg(cost_of_treatment) from treatments)", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-24 22:25:58\", \"2018-03-14 19:10:40\"), cost_of_treatment (852, 407, 852), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (15, 2, 4), treatment_id (9, 2, 15), professional_id (10, 8, 9) | Handlers : last_name (\"Jacobs\", \"Hyatt\", \"Kshlerin\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Ericka\", \"Taryn\", \"Karley\"), state (\"Montana\", \"Connecticut\", \"Wyoming\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), email_address (\"lourdes.lowe@example.net\", \"uboehm@example.org\", \"cole.margarita@example.org\"), professional_id (13, 13, 7), city (\"New Laurytown\", \"North Odellfurt\", \"Borisside\"), home_phone (\"891.475.2256\", \"+71(6)2898266914\", \"+02(1)0259033559\"), cell_number (\"889-940-2676\", \"1-185-137-1945x409\", \"880-659-7577x736\"), zip_code (\"07412\", \"02281\", \"43129\") | dogs : weight (\"1.39\", \"1.72\", \"4.36\"), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), date_of_birth (\"2010-11-11 07:11:53\", \"2013-02-13 05:15:21\", \"2015-02-26 21:31:22\"), age (\"1\", \"6\", \"5\"), dog_id (14, 1, 2), name (\"Kacey\", \"Mavis\", \"Lyric\"), date_arrived (\"2017-04-20 00:58:55\", \"2017-10-25 00:55:34\", \"2017-07-25 15:19:07\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\"), gender (\"1\", \"0\"), date_departed (\"2018-03-24 19:36:59\", \"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\"), owner_id (7, 5, 13) | owners : street (\"2417 Keara Stravenue Apt. 146\", \"9212 Rosenbaum Lights\", \"15828 Spencer Extensions\"), city (\"Lake Carleyborough\", \"South Daisyfurt\", \"Beerton\"), state (\"Arizona\", \"Pennsylvania\", \"Washington\"), last_name (\"Price\", \"DuBuque\", \"Prohaska\"), email_address (\"ymaggio@example.com\", \"kturner@example.net\", \"hudson.favian@example.com\"), home_phone (\"(094)747-5094x8134\", \"130-796-4589x05454\", \"1-346-655-5842x768\"), owner_id (11, 2, 9), cell_number (\"(257)399-3116\", \"559.874.3011x989\", \"559.874.3011x989\"), zip_code (\"35747\", \"78297\", \"86010\"), first_name (\"Jaclyn\", \"Orlando\", \"Tre\") | Caregivers : last_name (\"Jacobs\", \"Hyatt\", \"Kshlerin\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Ericka\", \"Taryn\", \"Karley\"), state (\"Montana\", \"Connecticut\", \"Wyoming\"), street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), email_address (\"lourdes.lowe@example.net\", \"uboehm@example.org\", \"cole.margarita@example.org\"), professional_id (13, 13, 7), city (\"New Laurytown\", \"North Odellfurt\", \"Borisside\"), home_phone (\"891.475.2256\", \"+71(6)2898266914\", \"+02(1)0259033559\"), cell_number (\"889-940-2676\", \"1-185-137-1945x409\", \"880-659-7577x736\"), zip_code (\"07412\", \"02281\", \"43129\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3)", + "schema_without_content": "breeds : breed_code , breed_name | treatments : date_of_treatment , cost_of_treatment , treatment_type_code , dog_id , treatment_id , professional_id | Handlers : last_name , role_code , first_name , state , street , email_address , professional_id , city , home_phone 2898266914\", \"+020259033559\", cell_number , zip_code | dogs : weight , size_code , abandoned_yn , date_of_birth , age , dog_id , name , date_arrived , breed_code , date_adopted , gender , date_departed , owner_id | owners : street , city , state , last_name , email_address , home_phone 747-5094x8134\", \"130-796-4589x05454\", \"1-346-655-5842x768\", owner_id , cell_number 399-3116\", \"559.874.3011x989\", \"559.874.3011x989\", zip_code , first_name | Caregivers : last_name , role_code , first_name , state , street , email_address , professional_id , city , home_phone 2898266914\", \"+020259033559\", cell_number , zip_code | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description | charges : charge_type , charge_amount , charge_id", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "costs": "Treatments.cost_of_treatment", + "first names": "Professionals.first_name", + "last names": "Professionals.last_name" + } + }, + { + "question": "which #professionals# have operated a treatment that #costs# less than the average? give me theor #first names# and #last names# .", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t1.last_name from professionals as t1 join treatments as t2 where cost_of_treatment < (select avg(cost_of_treatment) from treatments)", + "schema_with_content": "therapies : date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-19 04:39:54\", \"2018-03-01 04:14:46\"), professional_id (14, 7, 10), treatment_id (7, 3, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (945, 139, 139), dog_id (7, 12, 4) | dogs : gender (\"1\", \"0\"), name (\"Betty\", \"Narciso\", \"Merritt\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-14 08:05:18\", \"2018-03-14 08:05:18\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-10-16 20:06:21\", \"2017-10-24 04:45:13\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\", \"2018-03-25 05:07:47\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"9.48\", \"8.95\", \"8.04\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (14, 3, 13), dog_id (3, 9, 6), date_of_birth (\"2010-11-11 07:11:53\", \"2013-02-13 05:15:21\", \"2012-10-14 14:44:37\"), age (\"4\", \"3\", \"8\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : cell_number (\"1-258-285-4707x8020\", \"328.842.3792\", \"(275)939-2435x80863\"), zip_code (\"33020\", \"02281\", \"43129\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Lesly\", \"Brady\", \"Ericka\"), last_name (\"Kshlerin\", \"Braun\", \"Murazik\"), state (\"NewMexico\", \"NorthCarolina\", \"NewMexico\"), home_phone (\"971.048.3763x9404\", \"891.475.2256\", \"+43(5)1132733868\"), city (\"North Adelberttown\", \"South Rockyport\", \"Juddton\"), email_address (\"lourdes.lowe@example.net\", \"schneider.kathryne@example.org\", \"uboehm@example.org\"), professional_id (10, 5, 14) | procedures : date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-19 04:39:54\", \"2018-03-01 04:14:46\"), professional_id (14, 7, 10), treatment_id (7, 3, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (945, 139, 139), dog_id (7, 12, 4) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : home_phone (\"(799)563-0260x454\", \"01802479758\", \"1-682-845-0116x63235\"), last_name (\"Feil\", \"Mertz\", \"Stoltenberg\"), first_name (\"Johann\", \"Rolando\", \"Rolando\"), owner_id (15, 6, 9), city (\"Port Zackery\", \"New Margaretteborough\", \"Lake Jennyferfort\"), street (\"692 Jaskolski Forges\", \"15828 Spencer Extensions\", \"9212 Rosenbaum Lights\"), cell_number (\"478.978.0729\", \"(257)399-3116\", \"+70(4)9217952551\"), state (\"Indiana\", \"Indiana\", \"NewYork\"), zip_code (\"36871\", \"11990\", \"61019\"), email_address (\"edythe62@example.org\", \"edythe62@example.org\", \"ymaggio@example.com\")", + "schema_without_content": "therapies : date_of_treatment , professional_id , treatment_id , treatment_type_code , cost_of_treatment , dog_id | dogs : gender , name , date_adopted , date_arrived , date_departed , breed_code , weight , abandoned_yn , size_code , owner_id , dog_id , date_of_birth , age | breeds : breed_name , breed_code | charges : charge_amount , charge_id , charge_type | sizes : size_description , size_code | professionals : cell_number 939-2435x80863\", zip_code , street , role_code , first_name , last_name , state , home_phone 1132733868\", city , email_address , professional_id | procedures : date_of_treatment , professional_id , treatment_id , treatment_type_code , cost_of_treatment , dog_id | treatment_types : treatment_type_description , treatment_type_code | owners : home_phone 563-0260x454\", \"01802479758\", \"1-682-845-0116x63235\", last_name , first_name , owner_id , city , street , cell_number 399-3116\", \"+709217952551\", state , zip_code , email_address", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "costs": "Treatments.cost_of_treatment", + "first names": "Professionals.first_name", + "last names": "Professionals.last_name" + } + }, + { + "question": "list the #date of each treatment# , together with the #first name of the professional# who operated it.", + "db_id": "dog_kennels", + "orig_query": "select t1.date_of_treatment, t2.first_name from treatments as t1 join professionals as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Caregivers : street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), role_code (\"Employee\", \"Veterenarian\"), city (\"North Adelberttown\", \"New Maryjane\", \"Baileymouth\"), home_phone (\"+71(6)2898266914\", \"1-609-566-2752x25197\", \"312.216.3352\"), professional_id (9, 6, 9), first_name (\"Ericka\", \"Taryn\", \"Taryn\"), zip_code (\"17902\", \"43129\", \"80775\"), email_address (\"delphine29@example.com\", \"uboehm@example.org\", \"goyette.roosevelt@example.net\"), last_name (\"Considine\", \"Walter\", \"O'Reilly\"), cell_number (\"1-258-285-4707x8020\", \"962-983-8109x3509\", \"328.842.3792\"), state (\"Montana\", \"NewMexico\", \"Connecticut\") | Handlers : street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), role_code (\"Employee\", \"Veterenarian\"), city (\"North Adelberttown\", \"New Maryjane\", \"Baileymouth\"), home_phone (\"+71(6)2898266914\", \"1-609-566-2752x25197\", \"312.216.3352\"), professional_id (9, 6, 9), first_name (\"Ericka\", \"Taryn\", \"Taryn\"), zip_code (\"17902\", \"43129\", \"80775\"), email_address (\"delphine29@example.com\", \"uboehm@example.org\", \"goyette.roosevelt@example.net\"), last_name (\"Considine\", \"Walter\", \"O'Reilly\"), cell_number (\"1-258-285-4707x8020\", \"962-983-8109x3509\", \"328.842.3792\"), state (\"Montana\", \"NewMexico\", \"Connecticut\") | owners : street (\"51934 Treutel Harbor\", \"9212 Rosenbaum Lights\", \"2635 Caitlyn Plains\"), last_name (\"Rippin\", \"Hamill\", \"Rippin\"), cell_number (\"(783)271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\"), state (\"Florida\", \"Washington\", \"Mississippi\"), first_name (\"Jaclyn\", \"Rachelle\", \"Nora\"), zip_code (\"22693\", \"25609\", \"87304\"), city (\"East Maribelbury\", \"Lake Tia\", \"New Margaretteborough\"), owner_id (14, 6, 12), email_address (\"christy49@example.org\", \"ybergstrom@example.com\", \"pearlie18@example.com\"), home_phone (\"916.976.9480x13851\", \"1-346-655-5842x768\", \"916.976.9480x13851\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatments : date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-16 10:27:36\", \"2018-03-14 19:10:40\"), dog_id (4, 1, 13), professional_id (14, 5, 6), cost_of_treatment (407, 429, 656), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (7, 13, 4) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : weight (\"1.39\", \"8.16\", \"4.36\"), age (\"1\", \"1\", \"8\"), date_arrived (\"2017-12-22 05:02:02\", \"2018-01-17 11:44:16\", \"2017-04-15 09:25:31\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-18 15:12:50\", \"2018-03-21 10:41:18\"), gender (\"1\", \"0\"), name (\"Bessie\", \"Jeffrey\", \"Houston\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-24 23:48:59\", \"2018-03-25 10:25:46\"), dog_id (11, 2, 8), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2009-04-12 06:02:48\", \"2013-02-13 05:15:21\", \"2017-09-19 05:39:09\"), owner_id (1, 8, 7), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3)", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | Caregivers : street , role_code , city , home_phone 2898266914\", \"1-609-566-2752x25197\", \"312.216.3352\", professional_id , first_name , zip_code , email_address , last_name , cell_number , state | Handlers : street , role_code , city , home_phone 2898266914\", \"1-609-566-2752x25197\", \"312.216.3352\", professional_id , first_name , zip_code , email_address , last_name , cell_number , state | owners : street , last_name , cell_number 271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\", state , first_name , zip_code , city , owner_id , email_address , home_phone | breeds : breed_name , breed_code | treatments : date_of_treatment , dog_id , professional_id , cost_of_treatment , treatment_type_code , treatment_id | sizes : size_description , size_code | dogs : weight , age , date_arrived , date_adopted , gender , name , date_departed , dog_id , breed_code , date_of_birth , owner_id , size_code , abandoned_yn | charges : charge_amount , charge_type , charge_id", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "date of each treatment": "Treatments.date_of_treatment", + "first name of the professional": "Professionals.first_name" + } + }, + { + "question": "list the #date of each treatment# , together with the #first name of the professional# who operated it.", + "db_id": "dog_kennels", + "orig_query": "select t1.date_of_treatment, t2.first_name from treatments as t1 join professionals as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "owners : zip_code (\"00589\", \"35747\", \"25609\"), street (\"6950 Katherine Forges Apt. 630\", \"89011 Kertzmann Spring Suite 642\", \"2635 Caitlyn Plains\"), home_phone (\"(544)034-1670\", \"893-862-5295x61709\", \"(544)034-1670\"), cell_number (\"1-739-421-2225x38148\", \"1-739-421-2225x38148\", \"478.978.0729\"), state (\"SouthDakota\", \"Virginia\", \"Pennsylvania\"), owner_id (12, 14, 4), last_name (\"Funk\", \"Price\", \"Nicolas\"), email_address (\"fschoen@example.net\", \"hudson.favian@example.com\", \"margaretta.runte@example.net\"), first_name (\"Heather\", \"Lorenz\", \"Gay\"), city (\"Lake Tia\", \"Barrettburgh\", \"Port Reannamouth\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | procedures : dog_id (4, 13, 1), professional_id (6, 7, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (7, 13, 2), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-01 04:14:46\", \"2018-03-13 12:22:58\"), cost_of_treatment (147, 567, 514) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | therapies : dog_id (4, 13, 1), professional_id (6, 7, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (7, 13, 2), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-01 04:14:46\", \"2018-03-13 12:22:58\"), cost_of_treatment (147, 567, 514) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | dogs : gender (\"1\", \"0\"), age (\"2\", \"1\", \"4\"), weight (\"9.48\", \"2.18\", \"8.95\"), date_arrived (\"2017-10-25 00:55:34\", \"2017-09-08 20:10:13\", \"2018-01-02 03:15:29\"), owner_id (2, 12, 12), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (15, 11, 15), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\"), date_of_birth (\"2009-04-12 06:02:48\", \"2012-05-03 21:42:25\", \"2012-05-31 08:01:36\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Mavis\", \"Houston\", \"Evangeline\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 13:07:04\", \"2018-03-25 10:25:46\") | professionals : role_code (\"Employee\", \"Veterenarian\"), last_name (\"Murazik\", \"Christiansen\", \"Pouros\"), home_phone (\"320-508-6023\", \"+02(1)0259033559\", \"022.529.0550x1319\"), professional_id (15, 14, 6), first_name (\"Olaf\", \"Brady\", \"Winfield\"), zip_code (\"06646\", \"07412\", \"07412\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\"), cell_number (\"609-405-2990\", \"499-434-0215x1628\", \"499-434-0215x1628\"), state (\"NorthCarolina\", \"Wyoming\", \"SouthCarolina\"), city (\"New Laurytown\", \"Juddton\", \"Raynorfort\"), email_address (\"lourdes.lowe@example.net\", \"jeichmann@example.com\", \"jacynthe.mclaughlin@example.net\")", + "schema_without_content": "owners : zip_code , street , home_phone 034-1670\", \"893-862-5295x61709\", \"034-1670\", cell_number , state , owner_id , last_name , email_address , first_name , city | sizes : size_code , size_description | procedures : dog_id , professional_id , treatment_type_code , treatment_id , date_of_treatment , cost_of_treatment | breeds : breed_code , breed_name | treatment_types : treatment_type_code , treatment_type_description | therapies : dog_id , professional_id , treatment_type_code , treatment_id , date_of_treatment , cost_of_treatment | charges : charge_amount , charge_id , charge_type | dogs : gender , age , weight , date_arrived , owner_id , breed_code , dog_id , date_adopted , date_of_birth , abandoned_yn , size_code , name , date_departed | professionals : role_code , last_name , home_phone 0259033559\", \"022.529.0550x1319\", professional_id , first_name , zip_code , street , cell_number , state , city , email_address", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "date of each treatment": "Treatments.date_of_treatment", + "first name of the professional": "Professionals.first_name" + } + }, + { + "question": "what are the #date# and the #operating professional's first name of each treatment?# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.date_of_treatment, t2.first_name from treatments as t1 join professionals as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : home_phone (\"(544)034-1670\", \"363.948.1090\", \"01802479758\"), zip_code (\"86010\", \"36871\", \"93165\"), cell_number (\"478.978.0729\", \"1-626-264-7659x1697\", \"739-136-7202\"), last_name (\"Rippin\", \"Hauck\", \"Ondricka\"), street (\"59509 Mellie Mountain\", \"57382 Yost Ridges\", \"60352 Kayleigh Crossing Suite 700\"), email_address (\"pearlie18@example.com\", \"zboncak.madonna@example.net\", \"marks.gail@example.org\"), first_name (\"Kade\", \"Adelle\", \"Tre\"), city (\"West Leonard\", \"Lake Tia\", \"West Leonard\"), state (\"NorthDakota\", \"Vermont\", \"NorthDakota\"), owner_id (15, 2, 5) | Caregivers : zip_code (\"54312\", \"34041\", \"84515\"), home_phone (\"+02(1)0259033559\", \"320-508-6023\", \"320-508-6023\"), professional_id (10, 9, 15), first_name (\"Jayson\", \"Jayson\", \"Ericka\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Braun\", \"Considine\", \"Pouros\"), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), email_address (\"lourdes.lowe@example.net\", \"lourdes.lowe@example.net\", \"uboehm@example.org\"), state (\"Indiana\", \"Montana\", \"Wisconsin\"), cell_number (\"880-659-7577x736\", \"609-405-2990\", \"328.842.3792\"), city (\"Borisside\", \"West Heidi\", \"McLaughlinfort\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | Handlers : zip_code (\"54312\", \"34041\", \"84515\"), home_phone (\"+02(1)0259033559\", \"320-508-6023\", \"320-508-6023\"), professional_id (10, 9, 15), first_name (\"Jayson\", \"Jayson\", \"Ericka\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Braun\", \"Considine\", \"Pouros\"), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), email_address (\"lourdes.lowe@example.net\", \"lourdes.lowe@example.net\", \"uboehm@example.org\"), state (\"Indiana\", \"Montana\", \"Wisconsin\"), cell_number (\"880-659-7577x736\", \"609-405-2990\", \"328.842.3792\"), city (\"Borisside\", \"West Heidi\", \"McLaughlinfort\") | treatments : date_of_treatment (\"2018-03-15 19:10:02\", \"2018-02-26 09:08:53\", \"2018-03-14 19:10:40\"), professional_id (10, 14, 9), cost_of_treatment (668, 407, 852), dog_id (15, 14, 12), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (10, 3, 5) | dogs : dog_id (1, 9, 10), abandoned_yn (\"1\", \"0\"), weight (\"8.16\", \"9.48\", \"3.52\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-04-20 00:58:55\", \"2017-06-25 10:14:05\"), age (\"6\", \"1\", \"1\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:47:40\", \"2018-03-25 13:07:04\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (6, 5, 14), date_adopted (\"2018-03-21 10:41:18\", \"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\"), date_of_birth (\"2008-10-09 22:38:53\", \"2012-05-31 08:01:36\", \"2012-07-11 17:15:10\"), name (\"Lyric\", \"Merritt\", \"Narciso\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "breeds : breed_code , breed_name | treatment_types : treatment_type_code , treatment_type_description | owners : home_phone 034-1670\", \"363.948.1090\", \"01802479758\", zip_code , cell_number , last_name , street , email_address , first_name , city , state , owner_id | Caregivers : zip_code , home_phone 0259033559\", \"320-508-6023\", \"320-508-6023\", professional_id , first_name , role_code , last_name , street , email_address , state , cell_number , city | charges : charge_amount , charge_type , charge_id | Handlers : zip_code , home_phone 0259033559\", \"320-508-6023\", \"320-508-6023\", professional_id , first_name , role_code , last_name , street , email_address , state , cell_number , city | treatments : date_of_treatment , professional_id , cost_of_treatment , dog_id , treatment_type_code , treatment_id | dogs : dog_id , abandoned_yn , weight , date_arrived , age , date_departed , gender , size_code , owner_id , date_adopted , date_of_birth , name , breed_code | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "date": "Treatments.date_of_treatment", + "operating professional's first name of each treatment?": "Professionals.first_name" + } + }, + { + "question": "what are the #date# and the #operating professional's first name of each treatment?# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.date_of_treatment, t2.first_name from treatments as t1 join professionals as t2 on t1.professional_id = t2.professional_id", + "schema_with_content": "dogs : name (\"Jeffrey\", \"Houston\", \"Mavis\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-02-27 11:54:35\", \"2018-03-08 15:03:00\"), abandoned_yn (\"1\", \"0\"), age (\"2\", \"8\", \"9\"), gender (\"1\", \"0\"), date_of_birth (\"2008-10-09 22:38:53\", \"2017-09-19 05:39:09\", \"2012-01-27 05:11:53\"), date_arrived (\"2017-06-25 10:14:05\", \"2017-12-29 23:24:13\", \"2017-07-25 15:19:07\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 02:47:40\", \"2018-03-25 14:15:41\"), owner_id (12, 12, 1), weight (\"6.92\", \"6.92\", \"4.36\"), dog_id (3, 4, 10) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | professionals : street (\"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), zip_code (\"67980\", \"84515\", \"77129\"), last_name (\"O'Reilly\", \"Watsica\", \"Murazik\"), state (\"Indiana\", \"Alabama\", \"Utah\"), home_phone (\"246-951-0080x76716\", \"+43(5)1132733868\", \"325-155-0801x7005\"), cell_number (\"(275)939-2435x80863\", \"011.193.9081x3186\", \"(275)939-2435x80863\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Sigurd\", \"Taryn\", \"Sigurd\"), city (\"McLaughlinfort\", \"Domenickton\", \"East Ila\"), email_address (\"west.eula@example.net\", \"jeichmann@example.com\", \"delphine29@example.com\"), professional_id (10, 2, 8) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | procedures : professional_id (5, 7, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-02-28 17:09:43\", \"2018-03-13 12:22:58\"), dog_id (14, 13, 7), cost_of_treatment (428, 681, 429), treatment_id (2, 14, 2) | therapies : professional_id (5, 7, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-02-28 17:09:43\", \"2018-03-13 12:22:58\"), dog_id (14, 13, 7), cost_of_treatment (428, 681, 429), treatment_id (2, 14, 2) | owners : street (\"6950 Katherine Forges Apt. 630\", \"9212 Rosenbaum Lights\", \"59509 Mellie Mountain\"), owner_id (3, 7, 4), home_phone (\"(094)747-5094x8134\", \"(094)747-5094x8134\", \"(799)563-0260x454\"), last_name (\"Ondricka\", \"Funk\", \"Fisher\"), email_address (\"ybergstrom@example.com\", \"marks.gail@example.org\", \"angeline99@example.com\"), cell_number (\"762.589.6117x1328\", \"(257)399-3116\", \"478.978.0729\"), city (\"Lake Carleyborough\", \"Lake Valentin\", \"Port Zackery\"), state (\"Florida\", \"NewYork\", \"Florida\"), first_name (\"Melisa\", \"Jaclyn\", \"Rolando\"), zip_code (\"87304\", \"87304\", \"93165\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "dogs : name , size_code , breed_code , date_adopted , abandoned_yn , age , gender , date_of_birth , date_arrived , date_departed , owner_id , weight , dog_id | breeds : breed_name , breed_code | professionals : street , zip_code , last_name , state , home_phone 1132733868\", \"325-155-0801x7005\", cell_number 939-2435x80863\", \"011.193.9081x3186\", \"939-2435x80863\", role_code , first_name , city , email_address , professional_id | treatment_types : treatment_type_description , treatment_type_code | procedures : professional_id , treatment_type_code , date_of_treatment , dog_id , cost_of_treatment , treatment_id | therapies : professional_id , treatment_type_code , date_of_treatment , dog_id , cost_of_treatment , treatment_id | owners : street , owner_id , home_phone 747-5094x8134\", \"747-5094x8134\", \"563-0260x454\", last_name , email_address , cell_number 399-3116\", \"478.978.0729\", city , state , first_name , zip_code | charges : charge_amount , charge_id , charge_type | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "date": "Treatments.date_of_treatment", + "operating professional's first name of each treatment?": "Professionals.first_name" + } + }, + { + "question": "list the #cost of each treatment# and the corresponding #treatment type description# .", + "db_id": "dog_kennels", + "orig_query": "select t1.cost_of_treatment, t2.treatment_type_description from treatments as t1 join treatment_types as t2 on t1.treatment_type_code = t2.treatment_type_code", + "schema_with_content": "Care_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : gender (\"1\", \"0\"), owner_id (5, 2, 3), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"4\", \"9\", \"1\"), dog_id (13, 13, 8), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 04:50:22\", \"2018-03-25 04:50:22\"), weight (\"9.48\", \"4.01\", \"4.36\"), date_arrived (\"2017-12-29 06:08:26\", \"2018-01-02 03:15:29\", \"2017-06-18 19:45:38\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2008-05-19 15:54:49\", \"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\"), name (\"Betty\", \"Merritt\", \"Jeffrey\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-02-25 23:45:30\", \"2018-03-23 16:02:04\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatments : date_of_treatment (\"2018-03-16 10:27:36\", \"2018-03-16 10:27:36\", \"2018-03-15 19:10:02\"), professional_id (8, 14, 10), treatment_id (1, 3, 14), dog_id (4, 1, 14), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 313, 656) | professionals : professional_id (3, 6, 8), email_address (\"cole.margarita@example.org\", \"lucile.shanahan@example.org\", \"west.eula@example.net\"), zip_code (\"43129\", \"07412\", \"54312\"), cell_number (\"011.193.9081x3186\", \"(369)908-7311x065\", \"(369)908-7311x065\"), city (\"Raynorfort\", \"Jaceton\", \"Baileymouth\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), first_name (\"Domenica\", \"Winfield\", \"Ruben\"), state (\"Indiana\", \"Montana\", \"Hawaii\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"246-951-0080x76716\", \"325-155-0801x7005\", \"+43(5)1132733868\"), last_name (\"Kshlerin\", \"Hyatt\", \"Braun\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : home_phone (\"318-052-6573\", \"130-796-4589x05454\", \"130-796-4589x05454\"), cell_number (\"1-739-421-2225x38148\", \"121.381.3316x6535\", \"1-626-264-7659x1697\"), last_name (\"Haley\", \"Hamill\", \"Haley\"), zip_code (\"02647\", \"92406\", \"11990\"), state (\"Florida\", \"NewYork\", \"NewYork\"), city (\"Brakusfurt\", \"Lake Carleyborough\", \"Lake Carleyborough\"), owner_id (3, 12, 14), email_address (\"margaretta.runte@example.net\", \"lynn81@example.org\", \"pearlie18@example.com\"), street (\"692 Jaskolski Forges\", \"68118 Daniel Row\", \"2417 Keara Stravenue Apt. 146\"), first_name (\"Adelle\", \"Orlando\", \"Nora\") | Therapy_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "Care_Types : treatment_type_description , treatment_type_code | breeds : breed_code , breed_name | dogs : gender , owner_id , abandoned_yn , size_code , age , dog_id , date_departed , weight , date_arrived , breed_code , date_of_birth , name , date_adopted | charges : charge_amount , charge_id , charge_type | treatments : date_of_treatment , professional_id , treatment_id , dog_id , treatment_type_code , cost_of_treatment | professionals : professional_id , email_address , zip_code , cell_number 908-7311x065\", \"908-7311x065\", city , street , first_name , state , role_code , home_phone 1132733868\", last_name | sizes : size_description , size_code | owners : home_phone , cell_number , last_name , zip_code , state , city , owner_id , email_address , street , first_name | Therapy_Types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "cost of each treatment": "Treatments.cost_of_treatment", + "treatment type description": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "list the #cost of each treatment# and the corresponding #treatment type description# .", + "db_id": "dog_kennels", + "orig_query": "select t1.cost_of_treatment, t2.treatment_type_description from treatments as t1 join treatment_types as t2 on t1.treatment_type_code = t2.treatment_type_code", + "schema_with_content": "professionals : last_name (\"Pouros\", \"Considine\", \"Murazik\"), city (\"Raynorfort\", \"East Ila\", \"Juddton\"), professional_id (10, 4, 14), email_address (\"lucile.shanahan@example.org\", \"jacynthe.mclaughlin@example.net\", \"marquardt.furman@example.org\"), role_code (\"Employee\", \"Veterenarian\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\"), first_name (\"Jayson\", \"Domenica\", \"Taryn\"), zip_code (\"43129\", \"67980\", \"02281\"), state (\"Montana\", \"Wyoming\", \"Wyoming\"), cell_number (\"962-983-8109x3509\", \"139-321-7313\", \"889-940-2676\"), home_phone (\"+71(6)2898266914\", \"+43(5)1132733868\", \"325-155-0801x7005\") | dogs : owner_id (10, 2, 5), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (1, 10, 13), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-10-25 00:55:34\", \"2018-01-17 11:44:16\", \"2017-04-15 09:25:31\"), gender (\"1\", \"0\"), date_of_birth (\"2012-10-14 14:44:37\", \"2008-05-30 12:51:34\", \"2013-02-20 14:50:56\"), weight (\"8.16\", \"8.95\", \"1.39\"), name (\"Kacey\", \"Jeffrey\", \"Kacey\"), age (\"1\", \"2\", \"9\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 13:07:04\", \"2018-03-25 02:47:40\"), date_adopted (\"2018-03-08 15:03:00\", \"2018-03-23 16:02:04\", \"2018-02-27 00:27:57\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : cell_number (\"478.978.0729\", \"633.455.3045x85484\", \"+00(2)4323592985\"), first_name (\"Lorenz\", \"Adelle\", \"Jaclyn\"), street (\"57382 Yost Ridges\", \"692 Jaskolski Forges\", \"15828 Spencer Extensions\"), city (\"New Margaretteborough\", \"West Leonard\", \"Brakusfurt\"), owner_id (4, 3, 4), home_phone (\"916.976.9480x13851\", \"363.948.1090\", \"1-682-845-0116x63235\"), zip_code (\"35747\", \"36871\", \"93165\"), email_address (\"ymaggio@example.com\", \"ybergstrom@example.com\", \"hudson.favian@example.com\"), last_name (\"Stoltenberg\", \"Haley\", \"Price\"), state (\"SouthDakota\", \"Florida\", \"Pennsylvania\") | procedures : dog_id (7, 14, 14), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-08 05:26:23\", \"2018-02-28 17:09:43\"), cost_of_treatment (139, 429, 945), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (6, 6, 6), treatment_id (14, 4, 4) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | therapies : dog_id (7, 14, 14), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-08 05:26:23\", \"2018-02-28 17:09:43\"), cost_of_treatment (139, 429, 945), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (6, 6, 6), treatment_id (14, 4, 4)", + "schema_without_content": "professionals : last_name , city , professional_id , email_address , role_code , street , first_name , zip_code , state , cell_number , home_phone 2898266914\", \"+431132733868\", \"325-155-0801x7005\" | dogs : owner_id , abandoned_yn , size_code , dog_id , breed_code , date_arrived , gender , date_of_birth , weight , name , age , date_departed , date_adopted | breeds : breed_code , breed_name | treatment_types : treatment_type_description , treatment_type_code | owners : cell_number 4323592985\", first_name , street , city , owner_id , home_phone , zip_code , email_address , last_name , state | procedures : dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , professional_id , treatment_id | charges : charge_type , charge_amount , charge_id | sizes : size_description , size_code | therapies : dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , professional_id , treatment_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cost of each treatment": "Treatments.cost_of_treatment", + "treatment type description": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "what are the #cost# and #treatment# type description of each treatment?", + "db_id": "dog_kennels", + "orig_query": "select t1.cost_of_treatment, t2.treatment_type_description from treatments as t1 join treatment_types as t2 on t1.treatment_type_code = t2.treatment_type_code", + "schema_with_content": "professionals : city (\"South Rockyport\", \"Raynorfort\", \"North Adelberttown\"), first_name (\"Olaf\", \"Lesly\", \"Domenica\"), last_name (\"Kshlerin\", \"Murazik\", \"Frami\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"84515\", \"02281\", \"43129\"), state (\"Indiana\", \"Wisconsin\", \"Utah\"), email_address (\"cole.margarita@example.org\", \"deanna.schuster@example.com\", \"deanna.schuster@example.com\"), home_phone (\"246-951-0080x76716\", \"+71(6)2898266914\", \"+02(1)0259033559\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\"), professional_id (1, 5, 1), cell_number (\"461-801-2600\", \"962-983-8109x3509\", \"328.842.3792\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | treatments : professional_id (9, 5, 7), cost_of_treatment (349, 945, 668), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-08 05:26:23\", \"2018-03-15 20:25:34\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (1, 12, 12), treatment_id (6, 4, 6) | owners : street (\"89011 Kertzmann Spring Suite 642\", \"89011 Kertzmann Spring Suite 642\", \"60352 Kayleigh Crossing Suite 700\"), cell_number (\"633.455.3045x85484\", \"341.667.8085\", \"(783)271-6744x4507\"), zip_code (\"36871\", \"22693\", \"87304\"), city (\"West Leonard\", \"Port Zackery\", \"East Maribelbury\"), first_name (\"Jaclyn\", \"Melisa\", \"Adelle\"), last_name (\"Ondricka\", \"Haley\", \"DuBuque\"), home_phone (\"916.976.9480x13851\", \"1-332-849-1908\", \"085.557.0379x84348\"), email_address (\"ymaggio@example.com\", \"pearlie18@example.com\", \"kturner@example.net\"), state (\"Pennsylvania\", \"Virginia\", \"Indiana\"), owner_id (2, 7, 5) | dogs : owner_id (7, 7, 10), dog_id (15, 10, 2), date_of_birth (\"2015-02-26 21:31:22\", \"2012-07-11 17:15:10\", \"2012-07-11 17:15:10\"), name (\"Hipolito\", \"Jeffrey\", \"Narciso\"), date_departed (\"2018-03-25 02:47:40\", \"2018-03-24 19:12:22\", \"2018-03-24 19:12:22\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), weight (\"4.01\", \"1.72\", \"6.92\"), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), date_arrived (\"2017-12-29 23:24:13\", \"2017-09-08 20:10:13\", \"2017-06-25 10:14:05\"), age (\"9\", \"5\", \"6\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\", \"2018-03-06 16:32:11\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Care_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Therapy_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "professionals : city , first_name , last_name , role_code , zip_code , state , email_address , home_phone 2898266914\", \"+020259033559\", street , professional_id , cell_number | charges : charge_id , charge_type , charge_amount | treatments : professional_id , cost_of_treatment , date_of_treatment , treatment_type_code , dog_id , treatment_id | owners : street , cell_number 271-6744x4507\", zip_code , city , first_name , last_name , home_phone , email_address , state , owner_id | dogs : owner_id , dog_id , date_of_birth , name , date_departed , breed_code , abandoned_yn , weight , size_code , gender , date_arrived , age , date_adopted | sizes : size_code , size_description | Care_Types : treatment_type_description , treatment_type_code | breeds : breed_code , breed_name | Therapy_Types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "cost": "Treatments.cost_of_treatment", + "treatment": "Treatments", + "treatment type description": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "what are the #cost# and #treatment# type description of each treatment?", + "db_id": "dog_kennels", + "orig_query": "select t1.cost_of_treatment, t2.treatment_type_description from treatments as t1 join treatment_types as t2 on t1.treatment_type_code = t2.treatment_type_code", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | therapies : dog_id (4, 2, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (8, 11, 15), cost_of_treatment (313, 945, 266), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-13 12:22:58\", \"2018-03-11 04:23:15\"), professional_id (8, 14, 5) | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | dogs : date_of_birth (\"2013-02-13 05:15:21\", \"2017-09-19 05:39:09\", \"2015-02-26 21:31:22\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-03-08 15:03:00\", \"2018-03-18 15:12:50\"), dog_id (5, 11, 6), weight (\"2.18\", \"1.39\", \"6.92\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-25 04:50:22\", \"2018-03-25 10:25:46\"), name (\"Betty\", \"Houston\", \"Bessie\"), owner_id (5, 3, 8), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-06-18 19:45:38\", \"2017-12-29 23:24:13\", \"2017-09-08 20:10:13\"), age (\"6\", \"2\", \"3\") | owners : zip_code (\"00589\", \"11990\", \"86010\"), cell_number (\"1-626-264-7659x1697\", \"(257)399-3116\", \"739-136-7202\"), owner_id (7, 12, 2), first_name (\"Emelie\", \"Nora\", \"Cindy\"), home_phone (\"(094)747-5094x8134\", \"(058)997-7627\", \"(058)997-7627\"), city (\"Barrettburgh\", \"South Daisyfurt\", \"Lake Valentin\"), email_address (\"marks.gail@example.org\", \"zboncak.madonna@example.net\", \"lynn81@example.org\"), street (\"692 Jaskolski Forges\", \"692 Jaskolski Forges\", \"6950 Katherine Forges Apt. 630\"), state (\"Arkansas\", \"Washington\", \"NorthDakota\"), last_name (\"Hauck\", \"Mertz\", \"Rippin\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | professionals : cell_number (\"609-405-2990\", \"1-181-670-9466\", \"00230569697\"), email_address (\"cole.margarita@example.org\", \"schneider.kathryne@example.org\", \"lambert62@example.org\"), state (\"Connecticut\", \"NorthCarolina\", \"Connecticut\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (15, 15, 8), first_name (\"Lesly\", \"Danny\", \"Monte\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), last_name (\"Kshlerin\", \"Frami\", \"Frami\"), city (\"West Heidi\", \"Baileymouth\", \"Jaceton\"), home_phone (\"312.216.3352\", \"+02(1)0259033559\", \"+43(5)1132733868\"), zip_code (\"54312\", \"34041\", \"34041\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | procedures : dog_id (4, 2, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (8, 11, 15), cost_of_treatment (313, 945, 266), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-13 12:22:58\", \"2018-03-11 04:23:15\"), professional_id (8, 14, 5)", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | therapies : dog_id , treatment_type_code , treatment_id , cost_of_treatment , date_of_treatment , professional_id | charges : charge_id , charge_amount , charge_type | dogs : date_of_birth , size_code , date_adopted , dog_id , weight , breed_code , date_departed , name , owner_id , gender , abandoned_yn , date_arrived , age | owners : zip_code , cell_number 399-3116\", \"739-136-7202\", owner_id , first_name , home_phone 747-5094x8134\", \"997-7627\", \"997-7627\", city , email_address , street , state , last_name | sizes : size_code , size_description | professionals : cell_number , email_address , state , role_code , professional_id , first_name , street , last_name , city , home_phone 0259033559\", \"+431132733868\", zip_code | breeds : breed_name , breed_code | procedures : dog_id , treatment_type_code , treatment_id , cost_of_treatment , date_of_treatment , professional_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cost": "Treatments.cost_of_treatment", + "treatment": "Treatments", + "treatment type description": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "list each #owner's first name# , last name, and the #size# of his for her #dog# .", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t1.last_name, t2.size_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (1, 4, 2), owner_id (13, 6, 2), weight (\"5.16\", \"8.96\", \"8.04\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-25 15:05:16\", \"2018-03-24 19:36:59\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2018-03-17 04:05:12\", \"2013-02-20 14:50:56\", \"2012-05-03 21:42:25\"), name (\"Evangeline\", \"Kacey\", \"Jesus\"), gender (\"1\", \"0\"), age (\"4\", \"3\", \"1\"), date_arrived (\"2017-10-25 00:55:34\", \"2017-10-16 20:06:21\", \"2017-06-25 10:14:05\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-21 10:41:18\", \"2018-03-06 16:32:11\"), abandoned_yn (\"1\", \"0\") | Guardians : last_name (\"Fisher\", \"Funk\", \"Price\"), owner_id (3, 5, 10), email_address (\"angeline99@example.com\", \"kturner@example.net\", \"lynn81@example.org\"), state (\"Pennsylvania\", \"Mississippi\", \"SouthDakota\"), city (\"South Afton\", \"Lake Jennyferfort\", \"South Afton\"), first_name (\"Orlando\", \"Emelie\", \"Heather\"), home_phone (\"1-346-655-5842x768\", \"363.948.1090\", \"893-862-5295x61709\"), cell_number (\"+70(4)9217952551\", \"762.589.6117x1328\", \"1-626-264-7659x1697\"), street (\"59509 Mellie Mountain\", \"68118 Daniel Row\", \"57382 Yost Ridges\"), zip_code (\"78297\", \"61019\", \"22693\") | treatments : dog_id (14, 12, 14), treatment_id (3, 12, 12), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (139, 407, 266), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-02-26 09:08:53\", \"2018-02-28 17:09:43\"), professional_id (10, 7, 14) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | professionals : state (\"Alabama\", \"Hawaii\", \"Connecticut\"), email_address (\"delphine29@example.com\", \"jerrod.bahringer@example.org\", \"jacynthe.mclaughlin@example.net\"), city (\"South Rockyport\", \"New Maryjane\", \"Borisside\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), zip_code (\"17902\", \"84515\", \"67980\"), professional_id (13, 14, 5), home_phone (\"346.594.3739\", \"+02(1)0259033559\", \"320-508-6023\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Tillman\", \"Ullrich\", \"Braun\"), first_name (\"Brady\", \"Monte\", \"Sigurd\"), cell_number (\"880-659-7577x736\", \"1-258-285-4707x8020\", \"609-405-2990\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Caretakers : last_name (\"Fisher\", \"Funk\", \"Price\"), owner_id (3, 5, 10), email_address (\"angeline99@example.com\", \"kturner@example.net\", \"lynn81@example.org\"), state (\"Pennsylvania\", \"Mississippi\", \"SouthDakota\"), city (\"South Afton\", \"Lake Jennyferfort\", \"South Afton\"), first_name (\"Orlando\", \"Emelie\", \"Heather\"), home_phone (\"1-346-655-5842x768\", \"363.948.1090\", \"893-862-5295x61709\"), cell_number (\"+70(4)9217952551\", \"762.589.6117x1328\", \"1-626-264-7659x1697\"), street (\"59509 Mellie Mountain\", \"68118 Daniel Row\", \"57382 Yost Ridges\"), zip_code (\"78297\", \"61019\", \"22693\")", + "schema_without_content": "dogs : breed_code , dog_id , owner_id , weight , date_departed , size_code , date_of_birth , name , gender , age , date_arrived , date_adopted , abandoned_yn | Guardians : last_name , owner_id , email_address , state , city , first_name , home_phone , cell_number 9217952551\", \"762.589.6117x1328\", \"1-626-264-7659x1697\", street , zip_code | treatments : dog_id , treatment_id , treatment_type_code , cost_of_treatment , date_of_treatment , professional_id | charges : charge_amount , charge_id , charge_type | professionals : state , email_address , city , street , zip_code , professional_id , home_phone 0259033559\", \"320-508-6023\", role_code , last_name , first_name , cell_number | sizes : size_description , size_code | breeds : breed_name , breed_code | treatment_types : treatment_type_description , treatment_type_code | Caretakers : last_name , owner_id , email_address , state , city , first_name , home_phone , cell_number 9217952551\", \"762.589.6117x1328\", \"1-626-264-7659x1697\", street , zip_code", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "size": "Dogs.size_code", + "dog": "Dogs", + "owner's first name": "Owners.first_name", + "owner's last name": "Owners.last_name" + } + }, + { + "question": "list each #owner's first name# , last name, and the #size# of his for her #dog# .", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t1.last_name, t2.size_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Pooches : age (\"5\", \"5\", \"3\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Lyric\", \"Troy\", \"Lyric\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-14 08:05:18\", \"2018-03-10 15:06:43\"), date_departed (\"2018-03-25 02:47:40\", \"2018-03-25 10:25:46\", \"2018-03-25 02:11:32\"), dog_id (8, 1, 9), weight (\"7.57\", \"8.04\", \"6.92\"), owner_id (13, 10, 6), date_arrived (\"2017-04-15 09:25:31\", \"2017-12-22 05:02:02\", \"2017-12-29 06:08:26\"), date_of_birth (\"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\", \"2018-03-17 04:05:12\") | professionals : home_phone (\"(230)338-3342x585\", \"022.529.0550x1319\", \"320-508-6023\"), last_name (\"Watsica\", \"Jacobs\", \"Watsica\"), professional_id (11, 10, 11), zip_code (\"98844\", \"43129\", \"52476\"), first_name (\"Velva\", \"Vernice\", \"Olaf\"), state (\"SouthCarolina\", \"California\", \"Connecticut\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), city (\"Juddton\", \"New Maryjane\", \"Baileymouth\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"delphine29@example.com\", \"uboehm@example.org\", \"goyette.roosevelt@example.net\"), cell_number (\"889-940-2676\", \"1-181-670-9466\", \"609-405-2990\") | Canines : age (\"5\", \"5\", \"3\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Lyric\", \"Troy\", \"Lyric\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-14 08:05:18\", \"2018-03-10 15:06:43\"), date_departed (\"2018-03-25 02:47:40\", \"2018-03-25 10:25:46\", \"2018-03-25 02:11:32\"), dog_id (8, 1, 9), weight (\"7.57\", \"8.04\", \"6.92\"), owner_id (13, 10, 6), date_arrived (\"2017-04-15 09:25:31\", \"2017-12-22 05:02:02\", \"2017-12-29 06:08:26\"), date_of_birth (\"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\", \"2018-03-17 04:05:12\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | owners : city (\"Barrettburgh\", \"Lake Carleyborough\", \"Barrettburgh\"), owner_id (5, 1, 1), street (\"15828 Spencer Extensions\", \"2635 Caitlyn Plains\", \"1858 Jan Park\"), first_name (\"Kade\", \"Tre\", \"Cindy\"), zip_code (\"02647\", \"61019\", \"22693\"), email_address (\"christy49@example.org\", \"angeline99@example.com\", \"lynn81@example.org\"), cell_number (\"559.874.3011x989\", \"+00(2)4323592985\", \"(722)768-5439x484\"), state (\"Vermont\", \"SouthDakota\", \"Virginia\"), last_name (\"Mertz\", \"Hamill\", \"Feil\"), home_phone (\"1-332-849-1908\", \"01802479758\", \"318-052-6573\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatments : professional_id (4, 7, 10), treatment_id (6, 8, 3), dog_id (10, 2, 2), cost_of_treatment (428, 313, 147), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-19 04:39:54\", \"2018-02-28 17:09:43\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "breeds : breed_code , breed_name | Pooches : age , breed_code , size_code , name , abandoned_yn , gender , date_adopted , date_departed , dog_id , weight , owner_id , date_arrived , date_of_birth | professionals : home_phone 338-3342x585\", \"022.529.0550x1319\", \"320-508-6023\", last_name , professional_id , zip_code , first_name , state , street , city , role_code , email_address , cell_number | Canines : age , breed_code , size_code , name , abandoned_yn , gender , date_adopted , date_departed , dog_id , weight , owner_id , date_arrived , date_of_birth | charges : charge_id , charge_type , charge_amount | owners : city , owner_id , street , first_name , zip_code , email_address , cell_number 4323592985\", \"768-5439x484\", state , last_name , home_phone | sizes : size_code , size_description | treatments : professional_id , treatment_id , dog_id , cost_of_treatment , treatment_type_code , date_of_treatment | treatment_types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner": "Owners", + "size": "Dogs.size_code", + "dog": "Dogs", + "owner's first name": "Owners.first_name", + "owner's last name": "Owners.last_name" + } + }, + { + "question": "what are each #owner's first name# , last name, and the #size of their dog# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t1.last_name, t2.size_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "professionals : cell_number (\"1-181-670-9466\", \"(369)908-7311x065\", \"328.842.3792\"), home_phone (\"312.216.3352\", \"1-609-566-2752x25197\", \"320-508-6023\"), email_address (\"mekhi.little@example.org\", \"lourdes.lowe@example.net\", \"lourdes.lowe@example.net\"), state (\"NewMexico\", \"Montana\", \"Utah\"), first_name (\"Brady\", \"Sigurd\", \"Domenica\"), role_code (\"Employee\", \"Veterenarian\"), city (\"West Heidi\", \"East Ila\", \"North Odellfurt\"), zip_code (\"54312\", \"41215\", \"17902\"), last_name (\"Braun\", \"Pouros\", \"Hayes\"), street (\"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), professional_id (6, 1, 1) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : professional_id (4, 9, 9), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-13 12:22:58\", \"2018-03-14 19:10:40\"), treatment_id (3, 1, 7), cost_of_treatment (681, 656, 514), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (4, 7, 14) | Guardians : home_phone (\"085.557.0379x84348\", \"893-862-5295x61709\", \"318-052-6573\"), email_address (\"pearlie18@example.com\", \"kturner@example.net\", \"fschoen@example.net\"), zip_code (\"22731\", \"35747\", \"87304\"), cell_number (\"(783)271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\"), state (\"Indiana\", \"Vermont\", \"Arkansas\"), city (\"Port Zackery\", \"South Daisyfurt\", \"East Maribelbury\"), last_name (\"Haley\", \"DuBuque\", \"Nicolas\"), owner_id (14, 11, 15), street (\"60352 Kayleigh Crossing Suite 700\", \"89011 Kertzmann Spring Suite 642\", \"2635 Caitlyn Plains\"), first_name (\"Nora\", \"Adelle\", \"Orlando\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Caretakers : home_phone (\"085.557.0379x84348\", \"893-862-5295x61709\", \"318-052-6573\"), email_address (\"pearlie18@example.com\", \"kturner@example.net\", \"fschoen@example.net\"), zip_code (\"22731\", \"35747\", \"87304\"), cell_number (\"(783)271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\"), state (\"Indiana\", \"Vermont\", \"Arkansas\"), city (\"Port Zackery\", \"South Daisyfurt\", \"East Maribelbury\"), last_name (\"Haley\", \"DuBuque\", \"Nicolas\"), owner_id (14, 11, 15), street (\"60352 Kayleigh Crossing Suite 700\", \"89011 Kertzmann Spring Suite 642\", \"2635 Caitlyn Plains\"), first_name (\"Nora\", \"Adelle\", \"Orlando\") | dogs : date_departed (\"2018-03-25 02:47:40\", \"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\"), dog_id (3, 10, 3), weight (\"9.8\", \"8.16\", \"7.57\"), age (\"3\", \"4\", \"8\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-02-27 00:27:57\", \"2018-03-06 16:32:11\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2013-02-20 14:50:56\", \"2012-10-14 14:44:37\", \"2008-10-09 22:38:53\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (3, 11, 1), date_arrived (\"2017-10-25 00:55:34\", \"2017-10-25 00:55:34\", \"2017-10-16 20:06:21\"), name (\"Hipolito\", \"Kacey\", \"Narciso\")", + "schema_without_content": "professionals : cell_number 908-7311x065\", \"328.842.3792\", home_phone , email_address , state , first_name , role_code , city , zip_code , last_name , street , professional_id | breeds : breed_code , breed_name | treatments : professional_id , date_of_treatment , treatment_id , cost_of_treatment , treatment_type_code , dog_id | Guardians : home_phone , email_address , zip_code , cell_number 271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\", state , city , last_name , owner_id , street , first_name | treatment_types : treatment_type_description , treatment_type_code | sizes : size_code , size_description | charges : charge_amount , charge_id , charge_type | Caretakers : home_phone , email_address , zip_code , cell_number 271-6744x4507\", \"478.978.0729\", \"1-626-264-7659x1697\", state , city , last_name , owner_id , street , first_name | dogs : date_departed , dog_id , weight , age , abandoned_yn , gender , date_adopted , breed_code , date_of_birth , size_code , owner_id , date_arrived , name", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "size of their dog": "Dogs.size_code", + "owner's first name": "Owners.first_name", + "owner's last name": "Owners.last_name" + } + }, + { + "question": "what are each #owner's first name# , last name, and the #size of their dog# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t1.last_name, t2.size_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : zip_code (\"78297\", \"35747\", \"45244\"), cell_number (\"1-626-264-7659x1697\", \"478.978.0729\", \"341.667.8085\"), state (\"Wisconsin\", \"Washington\", \"Indiana\"), city (\"Beerton\", \"Lake Valentin\", \"Brakusfurt\"), home_phone (\"01802479758\", \"(799)563-0260x454\", \"(544)034-1670\"), street (\"1204 Mae Highway Apt. 107\", \"692 Jaskolski Forges\", \"9212 Rosenbaum Lights\"), first_name (\"Tre\", \"Emelie\", \"Kade\"), last_name (\"Price\", \"Ondricka\", \"Schmitt\"), email_address (\"hudson.favian@example.com\", \"edythe62@example.org\", \"ybergstrom@example.com\"), owner_id (15, 15, 3) | treatments : cost_of_treatment (313, 147, 147), treatment_id (2, 1, 2), professional_id (5, 4, 7), dog_id (1, 2, 4), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-15 20:25:34\", \"2018-03-15 19:10:02\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | Canines : date_of_birth (\"2018-03-17 04:05:12\", \"2012-01-27 05:11:53\", \"2008-05-19 15:54:49\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Narciso\", \"Evangeline\", \"George\"), dog_id (9, 12, 4), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 06:29:10\", \"2018-03-25 04:42:14\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-09-08 20:10:13\", \"2017-12-22 05:02:02\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-02-27 11:54:35\", \"2018-03-14 08:05:18\"), gender (\"1\", \"0\"), owner_id (3, 14, 13), age (\"3\", \"9\", \"5\"), abandoned_yn (\"1\", \"0\"), weight (\"2.18\", \"6.92\", \"4.01\") | Pooches : date_of_birth (\"2018-03-17 04:05:12\", \"2012-01-27 05:11:53\", \"2008-05-19 15:54:49\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Narciso\", \"Evangeline\", \"George\"), dog_id (9, 12, 4), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 06:29:10\", \"2018-03-25 04:42:14\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-09-08 20:10:13\", \"2017-12-22 05:02:02\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-02-27 11:54:35\", \"2018-03-14 08:05:18\"), gender (\"1\", \"0\"), owner_id (3, 14, 13), age (\"3\", \"9\", \"5\"), abandoned_yn (\"1\", \"0\"), weight (\"2.18\", \"6.92\", \"4.01\") | professionals : city (\"North Adelberttown\", \"West Heidi\", \"East Ila\"), first_name (\"Velva\", \"Brady\", \"Karley\"), home_phone (\"1-138-287-3775\", \"1-609-566-2752x25197\", \"312.216.3352\"), zip_code (\"34041\", \"43129\", \"34041\"), last_name (\"O'Reilly\", \"Jacobs\", \"Hyatt\"), state (\"Hawaii\", \"SouthCarolina\", \"California\"), professional_id (8, 12, 10), email_address (\"jacynthe.mclaughlin@example.net\", \"lucile.shanahan@example.org\", \"goyette.roosevelt@example.net\"), role_code (\"Employee\", \"Veterenarian\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), cell_number (\"(369)908-7311x065\", \"1-181-670-9466\", \"328.842.3792\")", + "schema_without_content": "sizes : size_description , size_code | owners : zip_code , cell_number , state , city , home_phone 563-0260x454\", \"034-1670\", street , first_name , last_name , email_address , owner_id | treatments : cost_of_treatment , treatment_id , professional_id , dog_id , date_of_treatment , treatment_type_code | treatment_types : treatment_type_code , treatment_type_description | charges : charge_type , charge_id , charge_amount | breeds : breed_code , breed_name | Canines : date_of_birth , breed_code , name , dog_id , date_departed , date_arrived , size_code , date_adopted , gender , owner_id , age , abandoned_yn , weight | Pooches : date_of_birth , breed_code , name , dog_id , date_departed , date_arrived , size_code , date_adopted , gender , owner_id , age , abandoned_yn , weight | professionals : city , first_name , home_phone , zip_code , last_name , state , professional_id , email_address , role_code , street , cell_number 908-7311x065\", \"1-181-670-9466\", \"328.842.3792\"", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "size of their dog": "Dogs.size_code", + "owner's first name": "Owners.first_name", + "owner's last name": "Owners.last_name" + } + }, + { + "question": "list pairs of the #owner's first name# and the #dogs's name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (9, 15, 6), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-15 19:10:02\", \"2018-03-08 05:26:23\"), professional_id (9, 14, 8), dog_id (2, 2, 14), cost_of_treatment (313, 514, 428) | professionals : cell_number (\"889-940-2676\", \"1-258-285-4707x8020\", \"1-181-670-9466\"), professional_id (5, 13, 7), home_phone (\"(920)304-4499x59146\", \"1-609-566-2752x25197\", \"320-508-6023\"), email_address (\"cole.margarita@example.org\", \"delphine29@example.com\", \"lourdes.lowe@example.net\"), state (\"NorthCarolina\", \"NorthCarolina\", \"Connecticut\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"06646\", \"06646\", \"07412\"), first_name (\"Danny\", \"Monte\", \"Danny\"), street (\"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), last_name (\"Tillman\", \"Murazik\", \"Considine\"), city (\"Juddton\", \"New Maryjane\", \"Baileymouth\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | dogs : dog_id (15, 8, 10), name (\"Houston\", \"Betty\", \"Mavis\"), owner_id (10, 10, 5), age (\"9\", \"9\", \"8\"), date_of_birth (\"2012-05-31 08:01:36\", \"2013-02-20 14:50:56\", \"2017-09-19 05:39:09\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-02-27 11:54:35\", \"2018-03-07 21:45:43\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"1.39\", \"8.96\", \"8.96\"), date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 04:50:22\", \"2018-03-24 19:36:59\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-07-25 15:19:07\", \"2018-01-17 11:44:16\"), size_code (\"LGE\", \"MED\", \"SML\") | Guardians : cell_number (\"341.667.8085\", \"739-136-7202\", \"341.667.8085\"), first_name (\"Emelie\", \"Tre\", \"Rachelle\"), zip_code (\"61019\", \"25609\", \"35747\"), city (\"Lake Carleyborough\", \"East Maribelbury\", \"South Daisyfurt\"), last_name (\"DuBuque\", \"Fisher\", \"Stoltenberg\"), state (\"NewYork\", \"Maryland\", \"Pennsylvania\"), street (\"68118 Daniel Row\", \"68118 Daniel Row\", \"6950 Katherine Forges Apt. 630\"), email_address (\"zboncak.madonna@example.net\", \"pearlie18@example.com\", \"marks.gail@example.org\"), owner_id (9, 12, 2), home_phone (\"318-052-6573\", \"1-682-845-0116x63235\", \"130-796-4589x05454\") | Caretakers : cell_number (\"341.667.8085\", \"739-136-7202\", \"341.667.8085\"), first_name (\"Emelie\", \"Tre\", \"Rachelle\"), zip_code (\"61019\", \"25609\", \"35747\"), city (\"Lake Carleyborough\", \"East Maribelbury\", \"South Daisyfurt\"), last_name (\"DuBuque\", \"Fisher\", \"Stoltenberg\"), state (\"NewYork\", \"Maryland\", \"Pennsylvania\"), street (\"68118 Daniel Row\", \"68118 Daniel Row\", \"6950 Katherine Forges Apt. 630\"), email_address (\"zboncak.madonna@example.net\", \"pearlie18@example.com\", \"marks.gail@example.org\"), owner_id (9, 12, 2), home_phone (\"318-052-6573\", \"1-682-845-0116x63235\", \"130-796-4589x05454\")", + "schema_without_content": "charges : charge_amount , charge_type , charge_id | treatments : treatment_type_code , treatment_id , date_of_treatment , professional_id , dog_id , cost_of_treatment | professionals : cell_number , professional_id , home_phone 304-4499x59146\", \"1-609-566-2752x25197\", \"320-508-6023\", email_address , state , role_code , zip_code , first_name , street , last_name , city | treatment_types : treatment_type_description , treatment_type_code | sizes : size_description , size_code | breeds : breed_name , breed_code | dogs : dog_id , name , owner_id , age , date_of_birth , date_adopted , abandoned_yn , gender , breed_code , weight , date_departed , date_arrived , size_code | Guardians : cell_number , first_name , zip_code , city , last_name , state , street , email_address , owner_id , home_phone | Caretakers : cell_number , first_name , zip_code , city , last_name , state , street , email_address , owner_id , home_phone", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner's first name": "Owners.first_name", + "dogs's name": "Dogs.name" + } + }, + { + "question": "list pairs of the #owner's first name# and the #dogs's name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (4, 7, 15), professional_id (9, 9, 5), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-04 20:33:43\", \"2018-03-15 19:10:02\"), treatment_id (10, 10, 1), cost_of_treatment (656, 428, 349) | professionals : last_name (\"O'Reilly\", \"Watsica\", \"Braun\"), cell_number (\"1-258-285-4707x8020\", \"889-940-2676\", \"1-258-285-4707x8020\"), zip_code (\"34041\", \"33020\", \"02281\"), email_address (\"goyette.roosevelt@example.net\", \"cole.margarita@example.org\", \"jerrod.bahringer@example.org\"), professional_id (14, 12, 10), home_phone (\"1-609-566-2752x25197\", \"+71(6)2898266914\", \"1-138-287-3775\"), role_code (\"Employee\", \"Veterenarian\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), state (\"NorthCarolina\", \"SouthCarolina\", \"Utah\"), first_name (\"Jayson\", \"Olaf\", \"Sigurd\"), city (\"West Heidi\", \"Baileymouth\", \"North Adelberttown\") | owners : cell_number (\"(783)271-6744x4507\", \"+00(2)4323592985\", \"(257)399-3116\"), city (\"Lake Valentin\", \"Lake Carleyborough\", \"Lake Tia\"), last_name (\"Rippin\", \"Rippin\", \"Stoltenberg\"), email_address (\"edythe62@example.org\", \"marks.gail@example.org\", \"ybergstrom@example.com\"), street (\"59509 Mellie Mountain\", \"692 Jaskolski Forges\", \"59509 Mellie Mountain\"), first_name (\"Johann\", \"Heather\", \"Kade\"), zip_code (\"86010\", \"00589\", \"35747\"), home_phone (\"(058)997-7627\", \"130-796-4589x05454\", \"130-796-4589x05454\"), state (\"SouthDakota\", \"Vermont\", \"Vermont\"), owner_id (7, 2, 14) | Pooches : date_arrived (\"2017-05-06 08:03:52\", \"2017-10-24 04:45:13\", \"2017-12-22 05:02:02\"), weight (\"4.01\", \"3.52\", \"4.36\"), name (\"Jeffrey\", \"George\", \"Troy\"), abandoned_yn (\"1\", \"0\"), owner_id (2, 12, 13), date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 15:05:16\", \"2018-03-25 05:07:47\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2010-11-11 07:11:53\", \"2010-11-11 07:11:53\", \"2009-04-12 06:02:48\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-23 16:02:04\", \"2018-03-05 06:05:23\"), dog_id (7, 13, 14), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"3\", \"5\", \"9\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Canines : date_arrived (\"2017-05-06 08:03:52\", \"2017-10-24 04:45:13\", \"2017-12-22 05:02:02\"), weight (\"4.01\", \"3.52\", \"4.36\"), name (\"Jeffrey\", \"George\", \"Troy\"), abandoned_yn (\"1\", \"0\"), owner_id (2, 12, 13), date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 15:05:16\", \"2018-03-25 05:07:47\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2010-11-11 07:11:53\", \"2010-11-11 07:11:53\", \"2009-04-12 06:02:48\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-23 16:02:04\", \"2018-03-05 06:05:23\"), dog_id (7, 13, 14), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"3\", \"5\", \"9\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | charges : charge_type , charge_id , charge_amount | treatments : treatment_type_code , dog_id , professional_id , date_of_treatment , treatment_id , cost_of_treatment | professionals : last_name , cell_number , zip_code , email_address , professional_id , home_phone 2898266914\", \"1-138-287-3775\", role_code , street , state , first_name , city | owners : cell_number 271-6744x4507\", \"+004323592985\", \"399-3116\", city , last_name , email_address , street , first_name , zip_code , home_phone 997-7627\", \"130-796-4589x05454\", \"130-796-4589x05454\", state , owner_id | Pooches : date_arrived , weight , name , abandoned_yn , owner_id , date_departed , breed_code , date_of_birth , date_adopted , dog_id , gender , size_code , age | breeds : breed_name , breed_code | sizes : size_description , size_code | Canines : date_arrived , weight , name , abandoned_yn , owner_id , date_departed , breed_code , date_of_birth , date_adopted , dog_id , gender , size_code , age", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner's first name": "Owners.first_name", + "dogs's name": "Dogs.name" + } + }, + { + "question": "what are each #owner's first name# and their #dogs's name# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Guardians : last_name (\"Stoltenberg\", \"Stoltenberg\", \"Schmitt\"), street (\"692 Jaskolski Forges\", \"60352 Kayleigh Crossing Suite 700\", \"60352 Kayleigh Crossing Suite 700\"), owner_id (2, 13, 9), zip_code (\"25609\", \"92406\", \"61019\"), state (\"Pennsylvania\", \"Arkansas\", \"Virginia\"), city (\"Barrettburgh\", \"Lake Carleyborough\", \"West Leonard\"), cell_number (\"(722)768-5439x484\", \"1-739-421-2225x38148\", \"481-483-9083x37986\"), home_phone (\"1-682-845-0116x63235\", \"363.948.1090\", \"318-052-6573\"), first_name (\"Kade\", \"Emelie\", \"Jaclyn\"), email_address (\"ykris@example.com\", \"kturner@example.net\", \"angeline99@example.com\") | Caretakers : last_name (\"Stoltenberg\", \"Stoltenberg\", \"Schmitt\"), street (\"692 Jaskolski Forges\", \"60352 Kayleigh Crossing Suite 700\", \"60352 Kayleigh Crossing Suite 700\"), owner_id (2, 13, 9), zip_code (\"25609\", \"92406\", \"61019\"), state (\"Pennsylvania\", \"Arkansas\", \"Virginia\"), city (\"Barrettburgh\", \"Lake Carleyborough\", \"West Leonard\"), cell_number (\"(722)768-5439x484\", \"1-739-421-2225x38148\", \"481-483-9083x37986\"), home_phone (\"1-682-845-0116x63235\", \"363.948.1090\", \"318-052-6573\"), first_name (\"Kade\", \"Emelie\", \"Jaclyn\"), email_address (\"ykris@example.com\", \"kturner@example.net\", \"angeline99@example.com\") | dogs : dog_id (12, 11, 3), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 15:05:16\", \"2018-03-25 02:47:40\"), date_arrived (\"2018-01-17 11:44:16\", \"2017-12-29 06:08:26\", \"2017-06-18 19:45:38\"), gender (\"1\", \"0\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-03-13 12:47:15\", \"2018-03-06 16:32:11\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), abandoned_yn (\"1\", \"0\"), owner_id (6, 12, 11), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"8.96\", \"1.72\", \"6.92\"), name (\"Narciso\", \"Lyric\", \"Bessie\"), age (\"6\", \"1\", \"5\"), date_of_birth (\"2010-11-11 07:11:53\", \"2012-01-27 05:11:53\", \"2012-10-14 14:44:37\") | professionals : first_name (\"Monte\", \"Domenica\", \"Velva\"), last_name (\"Walter\", \"Ullrich\", \"Ullrich\"), role_code (\"Employee\", \"Veterenarian\"), city (\"New Maryjane\", \"North Adelberttown\", \"North Odellfurt\"), cell_number (\"880-659-7577x736\", \"(275)939-2435x80863\", \"461-801-2600\"), home_phone (\"320-508-6023\", \"246-951-0080x76716\", \"1-138-287-3775\"), zip_code (\"06646\", \"77129\", \"43129\"), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"72532 Hane Course\nLake Berylland, ND 95283\"), professional_id (7, 1, 1), state (\"Wyoming\", \"Mississippi\", \"SouthCarolina\"), email_address (\"lucile.shanahan@example.org\", \"west.eula@example.net\", \"goyette.roosevelt@example.net\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatments : dog_id (7, 4, 4), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-19 04:39:54\", \"2018-03-13 12:22:58\"), treatment_id (6, 4, 9), professional_id (8, 6, 7), cost_of_treatment (139, 668, 945)", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | Guardians : last_name , street , owner_id , zip_code , state , city , cell_number 768-5439x484\", \"1-739-421-2225x38148\", \"481-483-9083x37986\", home_phone , first_name , email_address | Caretakers : last_name , street , owner_id , zip_code , state , city , cell_number 768-5439x484\", \"1-739-421-2225x38148\", \"481-483-9083x37986\", home_phone , first_name , email_address | dogs : dog_id , date_departed , date_arrived , gender , date_adopted , breed_code , abandoned_yn , owner_id , size_code , weight , name , age , date_of_birth | professionals : first_name , last_name , role_code , city , cell_number 939-2435x80863\", \"461-801-2600\", home_phone , zip_code , street , professional_id , state , email_address | breeds : breed_name , breed_code | sizes : size_description , size_code | charges : charge_amount , charge_id , charge_type | treatments : dog_id , treatment_type_code , date_of_treatment , treatment_id , professional_id , cost_of_treatment", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner's first name": "Owners.first_name", + "dogs's name": "Dogs.name" + } + }, + { + "question": "what are each #owner's first name# and their #dogs's name# ?", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id", + "schema_with_content": "Pooches : breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (1, 4, 2), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_of_birth (\"2012-10-14 14:44:37\", \"2017-09-19 05:39:09\", \"2012-05-03 21:42:25\"), age (\"2\", \"5\", \"1\"), weight (\"5.16\", \"7.57\", \"8.95\"), name (\"Bessie\", \"Lyric\", \"Bessie\"), owner_id (14, 1, 2), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\"), date_arrived (\"2017-06-18 19:45:38\", \"2017-06-25 10:14:05\", \"2017-09-08 20:10:13\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 06:29:10\", \"2018-03-25 02:47:40\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | owners : street (\"15828 Spencer Extensions\", \"15828 Spencer Extensions\", \"89011 Kertzmann Spring Suite 642\"), last_name (\"DuBuque\", \"Funk\", \"Schmitt\"), first_name (\"Cindy\", \"Kade\", \"Adelle\"), cell_number (\"1-626-264-7659x1697\", \"1-739-421-2225x38148\", \"341.667.8085\"), email_address (\"marks.gail@example.org\", \"zboncak.madonna@example.net\", \"ybergstrom@example.com\"), city (\"New Margaretteborough\", \"South Daisyfurt\", \"Lake Carleyborough\"), zip_code (\"25609\", \"25609\", \"78297\"), home_phone (\"(058)997-7627\", \"085.557.0379x84348\", \"1-346-655-5842x768\"), owner_id (14, 14, 14), state (\"Arizona\", \"Mississippi\", \"NewYork\") | Canines : breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (1, 4, 2), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_of_birth (\"2012-10-14 14:44:37\", \"2017-09-19 05:39:09\", \"2012-05-03 21:42:25\"), age (\"2\", \"5\", \"1\"), weight (\"5.16\", \"7.57\", \"8.95\"), name (\"Bessie\", \"Lyric\", \"Bessie\"), owner_id (14, 1, 2), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\"), date_arrived (\"2017-06-18 19:45:38\", \"2017-06-25 10:14:05\", \"2017-09-08 20:10:13\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 06:29:10\", \"2018-03-25 02:47:40\") | professionals : first_name (\"Monte\", \"Olaf\", \"Brady\"), last_name (\"O'Reilly\", \"Jacobs\", \"Tillman\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), state (\"Montana\", \"Utah\", \"NorthCarolina\"), professional_id (14, 1, 6), role_code (\"Employee\", \"Veterenarian\"), city (\"Kirastad\", \"Baileymouth\", \"Juddton\"), cell_number (\"00230569697\", \"1-185-137-1945x409\", \"139-321-7313\"), home_phone (\"971.048.3763x9404\", \"320-508-6023\", \"325-155-0801x7005\"), zip_code (\"52476\", \"06646\", \"34041\"), email_address (\"lambert62@example.org\", \"jacynthe.mclaughlin@example.net\", \"lambert62@example.org\") | treatments : professional_id (4, 14, 9), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-24 22:25:58\", \"2018-03-13 12:22:58\"), cost_of_treatment (852, 147, 668), treatment_id (12, 6, 1), dog_id (10, 7, 14)", + "schema_without_content": "Pooches : breed_code , size_code , dog_id , abandoned_yn , gender , date_of_birth , age , weight , name , owner_id , date_adopted , date_arrived , date_departed | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_name , breed_code | sizes : size_code , size_description | charges : charge_amount , charge_id , charge_type | owners : street , last_name , first_name , cell_number , email_address , city , zip_code , home_phone 997-7627\", \"085.557.0379x84348\", \"1-346-655-5842x768\", owner_id , state | Canines : breed_code , size_code , dog_id , abandoned_yn , gender , date_of_birth , age , weight , name , owner_id , date_adopted , date_arrived , date_departed | professionals : first_name , last_name , street , state , professional_id , role_code , city , cell_number , home_phone , zip_code , email_address | treatments : professional_id , treatment_type_code , date_of_treatment , cost_of_treatment , treatment_id , dog_id", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owner's first name": "Owners.first_name", + "dogs's name": "Dogs.name" + } + }, + { + "question": "list the #names of the dogs# of the rarest #breed# and the #treatment dates# of them.", + "db_id": "dog_kennels", + "orig_query": "select t1.name, t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from dogs group by breed_code order by count(*) asc limit 1)", + "schema_with_content": "professionals : zip_code (\"67980\", \"77129\", \"67980\"), email_address (\"marquardt.furman@example.org\", \"jacynthe.mclaughlin@example.net\", \"deanna.schuster@example.com\"), home_phone (\"320-508-6023\", \"1-609-566-2752x25197\", \"1-609-566-2752x25197\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"880-659-7577x736\", \"139-321-7313\", \"1-258-285-4707x8020\"), state (\"SouthCarolina\", \"NorthCarolina\", \"Mississippi\"), first_name (\"Sigurd\", \"Ruben\", \"Brady\"), city (\"North Adelberttown\", \"East Ila\", \"Kirastad\"), last_name (\"Ullrich\", \"Kshlerin\", \"Kshlerin\"), professional_id (7, 8, 15) | treatments : dog_id (14, 14, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (147, 313, 147), professional_id (9, 9, 5), treatment_id (1, 11, 14), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-13 12:22:58\", \"2018-02-28 17:09:43\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Canines : weight (\"8.96\", \"3.52\", \"1.72\"), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 04:42:14\", \"2018-03-25 10:25:46\"), dog_id (12, 10, 12), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-23 16:02:04\", \"2018-02-27 00:27:57\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-10-16 20:06:21\", \"2017-10-16 20:06:21\"), name (\"Merritt\", \"Narciso\", \"Bessie\"), age (\"4\", \"1\", \"9\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (8, 2, 11), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_of_birth (\"2009-04-12 06:02:48\", \"2013-02-13 05:15:21\", \"2012-01-27 05:11:53\") | owners : home_phone (\"01802479758\", \"01802479758\", \"1-682-845-0116x63235\"), state (\"Vermont\", \"NewYork\", \"Indiana\"), city (\"New Margaretteborough\", \"East Maribelbury\", \"Beerton\"), last_name (\"Rippin\", \"Funk\", \"DuBuque\"), street (\"2417 Keara Stravenue Apt. 146\", \"6950 Katherine Forges Apt. 630\", \"692 Jaskolski Forges\"), owner_id (14, 7, 11), first_name (\"Melisa\", \"Heather\", \"Gay\"), cell_number (\"1-739-421-2225x38148\", \"1-739-421-2225x38148\", \"341.667.8085\"), zip_code (\"86010\", \"78297\", \"93165\"), email_address (\"ybergstrom@example.com\", \"margaretta.runte@example.net\", \"ybergstrom@example.com\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Pooches : weight (\"8.96\", \"3.52\", \"1.72\"), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 04:42:14\", \"2018-03-25 10:25:46\"), dog_id (12, 10, 12), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-23 16:02:04\", \"2018-02-27 00:27:57\"), date_arrived (\"2017-04-15 09:25:31\", \"2017-10-16 20:06:21\", \"2017-10-16 20:06:21\"), name (\"Merritt\", \"Narciso\", \"Bessie\"), age (\"4\", \"1\", \"9\"), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (8, 2, 11), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_of_birth (\"2009-04-12 06:02:48\", \"2013-02-13 05:15:21\", \"2012-01-27 05:11:53\")", + "schema_without_content": "professionals : zip_code , email_address , home_phone , street , role_code , cell_number , state , first_name , city , last_name , professional_id | treatments : dog_id , treatment_type_code , cost_of_treatment , professional_id , treatment_id , date_of_treatment | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_name , breed_code | Canines : weight , date_departed , dog_id , date_adopted , date_arrived , name , age , abandoned_yn , size_code , owner_id , breed_code , gender , date_of_birth | owners : home_phone , state , city , last_name , street , owner_id , first_name , cell_number , zip_code , email_address | charges : charge_id , charge_amount , charge_type | Pooches : weight , date_departed , dog_id , date_adopted , date_arrived , name , age , abandoned_yn , size_code , owner_id , breed_code , gender , date_of_birth", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the dogs": "Dogs.name", + "breed": "Dogs.breed_code", + "treatment dates": "Treatments.date_of_treatment" + } + }, + { + "question": "list the #names of the dogs# of the rarest #breed# and the #treatment dates# of them.", + "db_id": "dog_kennels", + "orig_query": "select t1.name, t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from dogs group by breed_code order by count(*) asc limit 1)", + "schema_with_content": "therapies : cost_of_treatment (139, 428, 656), treatment_id (14, 8, 7), professional_id (4, 4, 14), dog_id (12, 2, 2), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-02-26 09:08:53\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | procedures : cost_of_treatment (139, 428, 656), treatment_id (14, 8, 7), professional_id (4, 4, 14), dog_id (12, 2, 2), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-02-26 09:08:53\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : cell_number (\"559.874.3011x989\", \"633.455.3045x85484\", \"478.978.0729\"), first_name (\"Kade\", \"Jaclyn\", \"Adelle\"), state (\"Pennsylvania\", \"Mississippi\", \"Arkansas\"), email_address (\"marks.gail@example.org\", \"ymaggio@example.com\", \"margaretta.runte@example.net\"), home_phone (\"318-052-6573\", \"916.976.9480x13851\", \"(058)997-7627\"), city (\"Beerton\", \"East Hillardberg\", \"Port Reannamouth\"), street (\"60352 Kayleigh Crossing Suite 700\", \"57382 Yost Ridges\", \"2635 Caitlyn Plains\"), owner_id (9, 3, 1), last_name (\"Haley\", \"Haley\", \"Schmitt\"), zip_code (\"36871\", \"35747\", \"00589\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | professionals : professional_id (15, 9, 1), first_name (\"Vernice\", \"Olaf\", \"Ericka\"), last_name (\"Watsica\", \"Ullrich\", \"Hayes\"), state (\"Mississippi\", \"Montana\", \"Indiana\"), role_code (\"Employee\", \"Veterenarian\"), cell_number (\"962-983-8109x3509\", \"(275)939-2435x80863\", \"1-185-137-1945x409\"), zip_code (\"80775\", \"02281\", \"52476\"), city (\"New Laurytown\", \"Kirastad\", \"McLaughlinfort\"), home_phone (\"1-138-287-3775\", \"320-508-6023\", \"320-508-6023\"), street (\"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), email_address (\"deanna.schuster@example.com\", \"lucile.shanahan@example.org\", \"lourdes.lowe@example.net\") | dogs : weight (\"8.96\", \"8.16\", \"9.48\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2008-05-30 12:51:34\", \"2012-05-03 21:42:25\", \"2012-07-11 17:15:10\"), age (\"5\", \"5\", \"4\"), owner_id (11, 8, 6), date_adopted (\"2018-03-18 15:12:50\", \"2018-02-27 11:54:35\", \"2018-03-25 08:12:51\"), dog_id (2, 4, 3), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 15:05:16\", \"2018-03-25 06:29:10\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Mavis\", \"Jesus\", \"Lyric\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\", \"2017-10-25 00:55:34\"), abandoned_yn (\"1\", \"0\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "therapies : cost_of_treatment , treatment_id , professional_id , dog_id , date_of_treatment , treatment_type_code | procedures : cost_of_treatment , treatment_id , professional_id , dog_id , date_of_treatment , treatment_type_code | treatment_types : treatment_type_code , treatment_type_description | owners : cell_number , first_name , state , email_address , home_phone 997-7627\", city , street , owner_id , last_name , zip_code | charges : charge_type , charge_amount , charge_id | professionals : professional_id , first_name , last_name , state , role_code , cell_number 939-2435x80863\", \"1-185-137-1945x409\", zip_code , city , home_phone , street , email_address | dogs : weight , breed_code , date_of_birth , age , owner_id , date_adopted , dog_id , date_departed , gender , size_code , name , date_arrived , abandoned_yn | breeds : breed_code , breed_name | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of the dogs": "Dogs.name", + "breed": "Dogs.breed_code", + "treatment dates": "Treatments.date_of_treatment" + } + }, + { + "question": "which #dogs# are of the rarest #breed# ? show their #names# and #treatment dates# .", + "db_id": "dog_kennels", + "orig_query": "select t1.name, t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from dogs group by breed_code order by count(*) asc limit 1)", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | professionals : state (\"Indiana\", \"Indiana\", \"Wyoming\"), street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), professional_id (15, 12, 5), zip_code (\"77129\", \"17902\", \"06646\"), first_name (\"Ruben\", \"Velva\", \"Velva\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"+71(6)2898266914\", \"+43(5)1132733868\", \"(230)338-3342x585\"), cell_number (\"00230569697\", \"00230569697\", \"1-185-137-1945x409\"), city (\"East Ila\", \"Baileymouth\", \"McLaughlinfort\"), email_address (\"jacynthe.mclaughlin@example.net\", \"lourdes.lowe@example.net\", \"lourdes.lowe@example.net\"), last_name (\"Frami\", \"Kshlerin\", \"Jacobs\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : zip_code (\"78297\", \"02647\", \"87304\"), home_phone (\"130-796-4589x05454\", \"1-332-849-1908\", \"1-332-849-1908\"), owner_id (14, 14, 6), email_address (\"ymaggio@example.com\", \"marks.gail@example.org\", \"ymaggio@example.com\"), city (\"Port Zackery\", \"South Afton\", \"Lake Valentin\"), state (\"NewYork\", \"Mississippi\", \"Mississippi\"), first_name (\"Melisa\", \"Tre\", \"Gay\"), cell_number (\"(783)271-6744x4507\", \"(783)271-6744x4507\", \"559.874.3011x989\"), street (\"1204 Mae Highway Apt. 107\", \"89011 Kertzmann Spring Suite 642\", \"89011 Kertzmann Spring Suite 642\"), last_name (\"Stoltenberg\", \"Mertz\", \"Rippin\") | Pooches : name (\"Narciso\", \"Kacey\", \"George\"), date_arrived (\"2017-10-16 20:06:21\", \"2017-06-18 19:45:38\", \"2017-07-25 15:19:07\"), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (14, 2, 11), date_of_birth (\"2008-05-30 12:51:34\", \"2018-03-17 04:05:12\", \"2012-10-14 14:44:37\"), gender (\"1\", \"0\"), age (\"6\", \"6\", \"1\"), owner_id (8, 14, 12), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 06:58:44\", \"2018-03-25 06:58:44\"), weight (\"4.01\", \"8.04\", \"9.48\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-21 10:41:18\", \"2018-03-10 15:06:43\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | treatments : date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-16 10:27:36\", \"2018-02-26 09:08:53\"), treatment_id (15, 3, 9), professional_id (10, 4, 6), dog_id (1, 4, 15), cost_of_treatment (668, 313, 407), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | Canines : name (\"Narciso\", \"Kacey\", \"George\"), date_arrived (\"2017-10-16 20:06:21\", \"2017-06-18 19:45:38\", \"2017-07-25 15:19:07\"), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (14, 2, 11), date_of_birth (\"2008-05-30 12:51:34\", \"2018-03-17 04:05:12\", \"2012-10-14 14:44:37\"), gender (\"1\", \"0\"), age (\"6\", \"6\", \"1\"), owner_id (8, 14, 12), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 06:58:44\", \"2018-03-25 06:58:44\"), weight (\"4.01\", \"8.04\", \"9.48\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-21 10:41:18\", \"2018-03-10 15:06:43\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "charges : charge_amount , charge_type , charge_id | professionals : state , street , professional_id , zip_code , first_name , role_code , home_phone 2898266914\", \"+431132733868\", \"338-3342x585\", cell_number , city , email_address , last_name | sizes : size_description , size_code | owners : zip_code , home_phone , owner_id , email_address , city , state , first_name , cell_number 271-6744x4507\", \"271-6744x4507\", \"559.874.3011x989\", street , last_name | Pooches : name , date_arrived , abandoned_yn , breed_code , dog_id , date_of_birth , gender , age , owner_id , size_code , date_departed , weight , date_adopted | treatment_types : treatment_type_description , treatment_type_code | treatments : date_of_treatment , treatment_id , professional_id , dog_id , cost_of_treatment , treatment_type_code | Canines : name , date_arrived , abandoned_yn , breed_code , dog_id , date_of_birth , gender , age , owner_id , size_code , date_departed , weight , date_adopted | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dogs": "Dogs", + "breed": "Dogs.breed_code", + "names": "Dogs.name", + "treatment dates": "Treatments.date_of_treatment" + } + }, + { + "question": "which #dogs# are of the rarest #breed# ? show their #names# and #treatment dates# .", + "db_id": "dog_kennels", + "orig_query": "select t1.name, t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from dogs group by breed_code order by count(*) asc limit 1)", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | therapies : professional_id (9, 5, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (2, 10, 10), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-15 19:10:02\", \"2018-03-23 13:52:10\"), cost_of_treatment (349, 349, 514), treatment_id (6, 2, 9) | owners : first_name (\"Cindy\", \"Nora\", \"Adelle\"), last_name (\"Rippin\", \"Mertz\", \"Hauck\"), street (\"1858 Jan Park\", \"6950 Katherine Forges Apt. 630\", \"2635 Caitlyn Plains\"), zip_code (\"00589\", \"61019\", \"11990\"), state (\"Virginia\", \"Maryland\", \"Arizona\"), cell_number (\"(783)271-6744x4507\", \"341.667.8085\", \"1-739-421-2225x38148\"), email_address (\"angeline99@example.com\", \"pearlie18@example.com\", \"marks.gail@example.org\"), home_phone (\"(094)747-5094x8134\", \"(544)034-1670\", \"318-052-6573\"), owner_id (9, 7, 12), city (\"Port Reannamouth\", \"Lake Tia\", \"Brakusfurt\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | procedures : professional_id (9, 5, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (2, 10, 10), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-15 19:10:02\", \"2018-03-23 13:52:10\"), cost_of_treatment (349, 349, 514), treatment_id (6, 2, 9) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : dog_id (9, 5, 6), date_arrived (\"2017-09-08 20:10:13\", \"2017-10-25 00:55:34\", \"2017-06-25 10:14:05\"), gender (\"1\", \"0\"), age (\"1\", \"9\", \"4\"), weight (\"4.01\", \"4.36\", \"8.95\"), name (\"Merritt\", \"Mavis\", \"Evangeline\"), abandoned_yn (\"1\", \"0\"), owner_id (11, 13, 5), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 02:47:40\", \"2018-03-25 04:50:22\", \"2018-03-25 02:47:40\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-14 08:05:18\", \"2018-03-10 15:06:43\"), date_of_birth (\"2012-05-03 21:42:25\", \"2012-05-03 21:42:25\", \"2012-05-03 21:42:25\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | professionals : first_name (\"Karley\", \"Velva\", \"Domenica\"), email_address (\"jacynthe.mclaughlin@example.net\", \"mekhi.little@example.org\", \"uboehm@example.org\"), professional_id (10, 11, 12), city (\"Borisside\", \"Borisside\", \"West Heidi\"), street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"72532 Hane Course\nLake Berylland, ND 95283\"), cell_number (\"609-405-2990\", \"880-659-7577x736\", \"00230569697\"), last_name (\"Braun\", \"Hayes\", \"Jacobs\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"(920)304-4499x59146\", \"1-609-566-2752x25197\", \"320-508-6023\"), zip_code (\"80775\", \"33020\", \"17902\"), state (\"Wyoming\", \"NewMexico\", \"SouthCarolina\")", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | therapies : professional_id , treatment_type_code , dog_id , date_of_treatment , cost_of_treatment , treatment_id | owners : first_name , last_name , street , zip_code , state , cell_number 271-6744x4507\", \"341.667.8085\", \"1-739-421-2225x38148\", email_address , home_phone 747-5094x8134\", \"034-1670\", \"318-052-6573\", owner_id , city | sizes : size_code , size_description | procedures : professional_id , treatment_type_code , dog_id , date_of_treatment , cost_of_treatment , treatment_id | breeds : breed_code , breed_name | dogs : dog_id , date_arrived , gender , age , weight , name , abandoned_yn , owner_id , breed_code , date_departed , size_code , date_adopted , date_of_birth | charges : charge_id , charge_amount , charge_type | professionals : first_name , email_address , professional_id , city , street , cell_number , last_name , role_code , home_phone 304-4499x59146\", \"1-609-566-2752x25197\", \"320-508-6023\", zip_code , state", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dogs": "Dogs", + "breed": "Dogs.breed_code", + "names": "Dogs.name", + "treatment dates": "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_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t1.state = 'Virginia'", + "schema_with_content": "dogs : dog_id (11, 5, 6), date_arrived (\"2018-01-17 11:44:16\", \"2017-10-24 04:45:13\", \"2017-10-25 00:55:34\"), weight (\"4.36\", \"2.18\", \"9.8\"), age (\"2\", \"1\", \"2\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 06:58:44\", \"2018-03-25 06:46:07\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Jeffrey\", \"Narciso\", \"Troy\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-18 15:12:50\", \"2018-03-13 12:47:15\"), date_of_birth (\"2012-05-31 08:01:36\", \"2009-04-12 06:02:48\", \"2017-09-19 05:39:09\"), abandoned_yn (\"1\", \"0\"), owner_id (11, 10, 10) | professionals : zip_code (\"06646\", \"84515\", \"34041\"), role_code (\"Employee\", \"Veterenarian\"), state (\"California\", \"Connecticut\", \"Utah\"), home_phone (\"022.529.0550x1319\", \"+43(5)1132733868\", \"346.594.3739\"), cell_number (\"1-258-285-4707x8020\", \"889-940-2676\", \"962-983-8109x3509\"), first_name (\"Lesly\", \"Monte\", \"Winfield\"), professional_id (6, 1, 10), last_name (\"Watsica\", \"Frami\", \"Walter\"), city (\"McLaughlinfort\", \"Borisside\", \"Kirastad\"), email_address (\"deanna.schuster@example.com\", \"jerrod.bahringer@example.org\", \"lambert62@example.org\"), street (\"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | treatments : dog_id (12, 1, 14), cost_of_treatment (139, 852, 656), professional_id (5, 7, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-23 13:52:10\", \"2018-03-10 11:45:58\"), treatment_id (6, 13, 8) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Guardians : owner_id (4, 5, 2), last_name (\"Prohaska\", \"Hauck\", \"Hamill\"), zip_code (\"22693\", \"45244\", \"11990\"), email_address (\"edythe62@example.org\", \"edythe62@example.org\", \"ybergstrom@example.com\"), home_phone (\"01802479758\", \"1-332-849-1908\", \"363.948.1090\"), street (\"57382 Yost Ridges\", \"57382 Yost Ridges\", \"1204 Mae Highway Apt. 107\"), cell_number (\"(257)399-3116\", \"+00(2)4323592985\", \"(257)399-3116\"), state (\"Arkansas\", \"Mississippi\", \"NewYork\"), first_name (\"Lorenz\", \"Nora\", \"Cindy\"), city (\"New Margaretteborough\", \"South Daisyfurt\", \"South Afton\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Caretakers : owner_id (4, 5, 2), last_name (\"Prohaska\", \"Hauck\", \"Hamill\"), zip_code (\"22693\", \"45244\", \"11990\"), email_address (\"edythe62@example.org\", \"edythe62@example.org\", \"ybergstrom@example.com\"), home_phone (\"01802479758\", \"1-332-849-1908\", \"363.948.1090\"), street (\"57382 Yost Ridges\", \"57382 Yost Ridges\", \"1204 Mae Highway Apt. 107\"), cell_number (\"(257)399-3116\", \"+00(2)4323592985\", \"(257)399-3116\"), state (\"Arkansas\", \"Mississippi\", \"NewYork\"), first_name (\"Lorenz\", \"Nora\", \"Cindy\"), city (\"New Margaretteborough\", \"South Daisyfurt\", \"South Afton\")", + "schema_without_content": "dogs : dog_id , date_arrived , weight , age , date_departed , size_code , name , breed_code , gender , date_adopted , date_of_birth , abandoned_yn , owner_id | professionals : zip_code , role_code , state , home_phone 1132733868\", \"346.594.3739\", cell_number , first_name , professional_id , last_name , city , email_address , street | charges : charge_id , charge_type , charge_amount | treatments : dog_id , cost_of_treatment , professional_id , treatment_type_code , date_of_treatment , treatment_id | breeds : breed_name , breed_code | Guardians : owner_id , last_name , zip_code , email_address , home_phone , street , cell_number 399-3116\", \"+004323592985\", \"399-3116\", state , first_name , city | sizes : size_description , size_code | treatment_types : treatment_type_description , treatment_type_code | Caretakers : owner_id , last_name , zip_code , email_address , home_phone , street , cell_number 399-3116\", \"+004323592985\", \"399-3116\", state , first_name , city", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "lives in Virginia": "Owners.state", + "owner's first name": "Owners.first_name", + "dog's name": "Dogs.name" + } + }, + { + "question": "which dogs are owned by someone who #lives in virginia# ? list the #owner's first name# and the #dog's name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t1.state = 'Virginia'", + "schema_with_content": "treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | treatments : treatment_id (2, 1, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 5, 6), cost_of_treatment (852, 147, 139), dog_id (7, 13, 13), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-04 20:33:43\", \"2018-03-24 22:25:58\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | Canines : date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 10:25:46\", \"2018-03-25 02:47:40\"), owner_id (3, 10, 3), weight (\"8.96\", \"4.01\", \"2.18\"), name (\"Houston\", \"Houston\", \"Houston\"), gender (\"1\", \"0\"), date_of_birth (\"2015-02-26 21:31:22\", \"2008-10-09 22:38:53\", \"2008-10-09 22:38:53\"), dog_id (15, 8, 7), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-09-08 20:10:13\", \"2017-10-16 20:06:21\", \"2017-10-25 00:55:34\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\"), age (\"8\", \"2\", \"6\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | professionals : role_code (\"Employee\", \"Veterenarian\"), state (\"Montana\", \"Indiana\", \"Alabama\"), city (\"McLaughlinfort\", \"East Ila\", \"South Rockyport\"), cell_number (\"461-801-2600\", \"461-801-2600\", \"00230569697\"), home_phone (\"022.529.0550x1319\", \"(920)304-4499x59146\", \"(230)338-3342x585\"), email_address (\"lucile.shanahan@example.org\", \"jerrod.bahringer@example.org\", \"uboehm@example.org\"), last_name (\"Watsica\", \"Christiansen\", \"Jacobs\"), first_name (\"Taryn\", \"Lesly\", \"Sigurd\"), professional_id (12, 4, 12), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), zip_code (\"84515\", \"43129\", \"02281\") | Pooches : date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 10:25:46\", \"2018-03-25 02:47:40\"), owner_id (3, 10, 3), weight (\"8.96\", \"4.01\", \"2.18\"), name (\"Houston\", \"Houston\", \"Houston\"), gender (\"1\", \"0\"), date_of_birth (\"2015-02-26 21:31:22\", \"2008-10-09 22:38:53\", \"2008-10-09 22:38:53\"), dog_id (15, 8, 7), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-09-08 20:10:13\", \"2017-10-16 20:06:21\", \"2017-10-25 00:55:34\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\"), age (\"8\", \"2\", \"6\") | owners : home_phone (\"363.948.1090\", \"(799)563-0260x454\", \"318-052-6573\"), city (\"East Maribelbury\", \"New Margaretteborough\", \"South Daisyfurt\"), last_name (\"Hauck\", \"Stoltenberg\", \"Ondricka\"), email_address (\"christy49@example.org\", \"christy49@example.org\", \"pearlie18@example.com\"), cell_number (\"739-136-7202\", \"121.381.3316x6535\", \"481-483-9083x37986\"), zip_code (\"25609\", \"00589\", \"00589\"), first_name (\"Melisa\", \"Rachelle\", \"Nora\"), street (\"2635 Caitlyn Plains\", \"692 Jaskolski Forges\", \"6950 Katherine Forges Apt. 630\"), state (\"Indiana\", \"Pennsylvania\", \"Vermont\"), owner_id (15, 8, 15)", + "schema_without_content": "treatment_types : treatment_type_code , treatment_type_description | treatments : treatment_id , treatment_type_code , professional_id , cost_of_treatment , dog_id , date_of_treatment | charges : charge_type , charge_amount , charge_id | Canines : date_departed , owner_id , weight , name , gender , date_of_birth , dog_id , size_code , breed_code , date_arrived , abandoned_yn , date_adopted , age | sizes : size_code , size_description | breeds : breed_code , breed_name | professionals : role_code , state , city , cell_number , home_phone 304-4499x59146\", \"338-3342x585\", email_address , last_name , first_name , professional_id , street , zip_code | Pooches : date_departed , owner_id , weight , name , gender , date_of_birth , dog_id , size_code , breed_code , date_arrived , abandoned_yn , date_adopted , age | owners : home_phone 563-0260x454\", \"318-052-6573\", city , last_name , email_address , cell_number , zip_code , first_name , street , state , owner_id", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "lives in Virginia": "Owners.state", + "owner's first name": "Owners.first_name", + "dog's name": "Dogs.name" + } + }, + { + "question": "find the #first names of owners# living in #virginia# and the #names of dogs# they own.", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t1.state = 'Virginia'", + "schema_with_content": "Caretakers : zip_code (\"61019\", \"93165\", \"35747\"), email_address (\"wpfeffer@example.net\", \"hudson.favian@example.com\", \"zboncak.madonna@example.net\"), last_name (\"Price\", \"Price\", \"Hamill\"), state (\"Mississippi\", \"Maryland\", \"Arkansas\"), home_phone (\"01802479758\", \"1-682-845-0116x63235\", \"(799)563-0260x454\"), street (\"57382 Yost Ridges\", \"692 Jaskolski Forges\", \"6950 Katherine Forges Apt. 630\"), city (\"South Afton\", \"East Hillardberg\", \"South Afton\"), first_name (\"Melisa\", \"Gay\", \"Rolando\"), owner_id (9, 8, 10), cell_number (\"633.455.3045x85484\", \"1-739-421-2225x38148\", \"1-739-421-2225x38148\") | treatments : professional_id (14, 4, 4), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-23 13:52:10\", \"2018-03-04 20:33:43\"), treatment_id (13, 8, 12), cost_of_treatment (313, 668, 429), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (14, 13, 12) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Guardians : zip_code (\"61019\", \"93165\", \"35747\"), email_address (\"wpfeffer@example.net\", \"hudson.favian@example.com\", \"zboncak.madonna@example.net\"), last_name (\"Price\", \"Price\", \"Hamill\"), state (\"Mississippi\", \"Maryland\", \"Arkansas\"), home_phone (\"01802479758\", \"1-682-845-0116x63235\", \"(799)563-0260x454\"), street (\"57382 Yost Ridges\", \"692 Jaskolski Forges\", \"6950 Katherine Forges Apt. 630\"), city (\"South Afton\", \"East Hillardberg\", \"South Afton\"), first_name (\"Melisa\", \"Gay\", \"Rolando\"), owner_id (9, 8, 10), cell_number (\"633.455.3045x85484\", \"1-739-421-2225x38148\", \"1-739-421-2225x38148\") | professionals : email_address (\"delphine29@example.com\", \"west.eula@example.net\", \"delphine29@example.com\"), professional_id (10, 1, 11), home_phone (\"+71(6)2898266914\", \"971.048.3763x9404\", \"246-951-0080x76716\"), cell_number (\"1-258-285-4707x8020\", \"(369)908-7311x065\", \"139-321-7313\"), last_name (\"Braun\", \"Braun\", \"Tillman\"), city (\"Juddton\", \"New Maryjane\", \"East Ila\"), first_name (\"Ruben\", \"Danny\", \"Brady\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), zip_code (\"52476\", \"80775\", \"06646\"), state (\"Alabama\", \"Hawaii\", \"Montana\"), role_code (\"Employee\", \"Veterenarian\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | dogs : weight (\"9.8\", \"5.16\", \"1.39\"), gender (\"1\", \"0\"), date_arrived (\"2017-12-22 05:02:02\", \"2017-10-16 20:06:21\", \"2017-09-08 20:10:13\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"George\", \"Troy\", \"Kacey\"), age (\"3\", \"9\", \"2\"), owner_id (5, 5, 5), dog_id (4, 3, 5), abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\", \"2017-09-19 05:39:09\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 06:46:07\", \"2018-03-25 02:47:40\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-18 15:12:50\", \"2018-03-08 15:03:00\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640)", + "schema_without_content": "Caretakers : zip_code , email_address , last_name , state , home_phone 563-0260x454\", street , city , first_name , owner_id , cell_number | treatments : professional_id , date_of_treatment , treatment_id , cost_of_treatment , treatment_type_code , dog_id | treatment_types : treatment_type_description , treatment_type_code | sizes : size_description , size_code | Guardians : zip_code , email_address , last_name , state , home_phone 563-0260x454\", street , city , first_name , owner_id , cell_number | professionals : email_address , professional_id , home_phone 2898266914\", \"971.048.3763x9404\", \"246-951-0080x76716\", cell_number 908-7311x065\", \"139-321-7313\", last_name , city , first_name , street , zip_code , state , role_code | breeds : breed_code , breed_name | dogs : weight , gender , date_arrived , breed_code , name , age , owner_id , dog_id , abandoned_yn , size_code , date_of_birth , date_departed , date_adopted | charges : charge_type , charge_id , charge_amount", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names of owners": "Owners.first_name", + "Virginia": "Owners.state", + "names of dogs": "Dogs.name" + } + }, + { + "question": "find the #first names of owners# living in #virginia# and the #names of dogs# they own.", + "db_id": "dog_kennels", + "orig_query": "select t1.first_name, t2.name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t1.state = 'Virginia'", + "schema_with_content": "owners : first_name (\"Gay\", \"Cindy\", \"Tre\"), zip_code (\"93165\", \"87304\", \"00589\"), street (\"9212 Rosenbaum Lights\", \"60352 Kayleigh Crossing Suite 700\", \"1858 Jan Park\"), last_name (\"Mertz\", \"Prohaska\", \"Nicolas\"), owner_id (12, 2, 15), cell_number (\"341.667.8085\", \"(783)271-6744x4507\", \"1-739-421-2225x38148\"), home_phone (\"893-862-5295x61709\", \"01802479758\", \"1-682-845-0116x63235\"), city (\"Port Zackery\", \"Lake Valentin\", \"South Afton\"), email_address (\"zboncak.madonna@example.net\", \"hudson.favian@example.com\", \"angeline99@example.com\"), state (\"Arkansas\", \"Maryland\", \"NorthDakota\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatments : treatment_id (7, 6, 2), dog_id (7, 15, 1), professional_id (9, 9, 7), cost_of_treatment (681, 514, 147), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-02-28 17:09:43\", \"2018-03-16 10:27:36\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | professionals : role_code (\"Employee\", \"Veterenarian\"), home_phone (\"325-155-0801x7005\", \"346.594.3739\", \"(230)338-3342x585\"), first_name (\"Brady\", \"Taryn\", \"Monte\"), cell_number (\"011.193.9081x3186\", \"139-321-7313\", \"011.193.9081x3186\"), email_address (\"lucile.shanahan@example.org\", \"marquardt.furman@example.org\", \"marquardt.furman@example.org\"), state (\"NewMexico\", \"Wisconsin\", \"Utah\"), city (\"Jaceton\", \"North Odellfurt\", \"Kirastad\"), zip_code (\"98844\", \"80775\", \"77129\"), last_name (\"Pouros\", \"Jacobs\", \"Murazik\"), professional_id (3, 6, 9), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"72532 Hane Course\nLake Berylland, ND 95283\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Canines : age (\"1\", \"3\", \"8\"), owner_id (14, 11, 6), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-08 15:03:00\", \"2018-03-21 10:41:18\"), dog_id (14, 8, 15), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_of_birth (\"2012-07-11 17:15:10\", \"2008-05-30 12:51:34\", \"2009-04-12 06:02:48\"), weight (\"1.72\", \"9.48\", \"7.57\"), date_arrived (\"2017-06-25 10:14:05\", \"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\"), name (\"Merritt\", \"Mavis\", \"Troy\") | Pooches : age (\"1\", \"3\", \"8\"), owner_id (14, 11, 6), date_departed (\"2018-03-24 19:36:59\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-08 15:03:00\", \"2018-03-21 10:41:18\"), dog_id (14, 8, 15), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), date_of_birth (\"2012-07-11 17:15:10\", \"2008-05-30 12:51:34\", \"2009-04-12 06:02:48\"), weight (\"1.72\", \"9.48\", \"7.57\"), date_arrived (\"2017-06-25 10:14:05\", \"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\"), name (\"Merritt\", \"Mavis\", \"Troy\")", + "schema_without_content": "owners : first_name , zip_code , street , last_name , owner_id , cell_number 271-6744x4507\", \"1-739-421-2225x38148\", home_phone , city , email_address , state | breeds : breed_name , breed_code | charges : charge_amount , charge_id , charge_type | treatments : treatment_id , dog_id , professional_id , cost_of_treatment , date_of_treatment , treatment_type_code | professionals : role_code , home_phone 338-3342x585\", first_name , cell_number , email_address , state , city , zip_code , last_name , professional_id , street | treatment_types : treatment_type_description , treatment_type_code | sizes : size_code , size_description | Canines : age , owner_id , date_departed , abandoned_yn , date_adopted , dog_id , size_code , breed_code , gender , date_of_birth , weight , date_arrived , name | Pooches : age , owner_id , date_departed , abandoned_yn , date_adopted , dog_id , size_code , breed_code , gender , date_of_birth , weight , date_arrived , name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first names of owners": "Owners.first_name", + "Virginia": "Owners.state", + "names of dogs": "Dogs.name" + } + }, + { + "question": "what are the #arriving date# and the #departing date of the dogs# who have gone through a #treatment# ?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.date_arrived, t1.date_departed from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", + "schema_with_content": "owners : email_address (\"edythe62@example.org\", \"fschoen@example.net\", \"edythe62@example.org\"), state (\"Maryland\", \"SouthDakota\", \"Virginia\"), first_name (\"Orlando\", \"Adelle\", \"Rolando\"), street (\"1858 Jan Park\", \"89011 Kertzmann Spring Suite 642\", \"57382 Yost Ridges\"), zip_code (\"61019\", \"45244\", \"86010\"), home_phone (\"(058)997-7627\", \"01802479758\", \"(094)747-5094x8134\"), cell_number (\"559.874.3011x989\", \"762.589.6117x1328\", \"+70(4)9217952551\"), city (\"East Maribelbury\", \"South Daisyfurt\", \"Port Zackery\"), owner_id (14, 1, 5), last_name (\"Fisher\", \"Mertz\", \"Schmitt\") | Pooches : owner_id (3, 6, 2), weight (\"8.16\", \"4.01\", \"9.8\"), gender (\"1\", \"0\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:47:40\", \"2018-03-25 04:42:14\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Merritt\", \"Houston\", \"Troy\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-18 15:12:50\", \"2018-03-18 15:12:50\"), age (\"8\", \"2\", \"2\"), date_of_birth (\"2010-11-11 07:11:53\", \"2009-04-12 06:02:48\", \"2015-02-26 21:31:22\"), dog_id (9, 15, 1), date_arrived (\"2017-05-06 08:03:52\", \"2017-04-20 00:58:55\", \"2017-04-15 09:25:31\"), abandoned_yn (\"1\", \"0\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (313, 407, 514), treatment_id (9, 11, 11), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-13 12:22:58\", \"2018-03-10 11:45:58\"), professional_id (6, 9, 5), dog_id (12, 10, 4) | Canines : owner_id (3, 6, 2), weight (\"8.16\", \"4.01\", \"9.8\"), gender (\"1\", \"0\"), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 02:47:40\", \"2018-03-25 04:42:14\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Merritt\", \"Houston\", \"Troy\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-18 15:12:50\", \"2018-03-18 15:12:50\"), age (\"8\", \"2\", \"2\"), date_of_birth (\"2010-11-11 07:11:53\", \"2009-04-12 06:02:48\", \"2015-02-26 21:31:22\"), dog_id (9, 15, 1), date_arrived (\"2017-05-06 08:03:52\", \"2017-04-20 00:58:55\", \"2017-04-15 09:25:31\"), abandoned_yn (\"1\", \"0\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | professionals : professional_id (13, 13, 10), zip_code (\"02281\", \"43129\", \"34041\"), city (\"North Adelberttown\", \"McLaughlinfort\", \"Borisside\"), last_name (\"Frami\", \"O'Reilly\", \"Frami\"), cell_number (\"011.193.9081x3186\", \"139-321-7313\", \"139-321-7313\"), home_phone (\"022.529.0550x1319\", \"320-508-6023\", \"891.475.2256\"), state (\"Montana\", \"SouthCarolina\", \"Wyoming\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), email_address (\"jacynthe.mclaughlin@example.net\", \"uboehm@example.org\", \"uboehm@example.org\"), role_code (\"Employee\", \"Veterenarian\"), first_name (\"Monte\", \"Olaf\", \"Domenica\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "owners : email_address , state , first_name , street , zip_code , home_phone 997-7627\", \"01802479758\", \"747-5094x8134\", cell_number 9217952551\", city , owner_id , last_name | Pooches : owner_id , weight , gender , date_departed , breed_code , name , size_code , date_adopted , age , date_of_birth , dog_id , date_arrived , abandoned_yn | treatments : treatment_type_code , cost_of_treatment , treatment_id , date_of_treatment , professional_id , dog_id | Canines : owner_id , weight , gender , date_departed , breed_code , name , size_code , date_adopted , age , date_of_birth , dog_id , date_arrived , abandoned_yn | charges : charge_type , charge_amount , charge_id | professionals : professional_id , zip_code , city , last_name , cell_number , home_phone , state , street , email_address , role_code , first_name | sizes : size_code , size_description | treatment_types : treatment_type_description , treatment_type_code | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "arriving date": "Dogs.date_arrived", + "departing date of the dogs": "Dogs.date_departed", + "treatment": "Treatments" + } + }, + { + "question": "what are the #arriving date# and the #departing date of the dogs# who have gone through a #treatment# ?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.date_arrived, t1.date_departed from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", + "schema_with_content": "charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | dogs : date_adopted (\"2018-03-25 08:12:51\", \"2018-02-27 11:54:35\", \"2018-03-21 10:41:18\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 04:42:14\", \"2018-03-25 02:47:40\"), date_arrived (\"2018-01-17 11:44:16\", \"2017-06-18 19:45:38\", \"2018-01-02 03:15:29\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (7, 6, 2), name (\"George\", \"Jeffrey\", \"Hipolito\"), abandoned_yn (\"1\", \"0\"), date_of_birth (\"2012-01-27 05:11:53\", \"2010-11-11 07:11:53\", \"2010-11-11 07:11:53\"), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), weight (\"6.92\", \"7.57\", \"1.72\"), owner_id (8, 7, 3), age (\"6\", \"9\", \"9\") | procedures : cost_of_treatment (429, 429, 668), professional_id (6, 9, 7), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-10 11:45:58\", \"2018-03-11 04:23:15\"), dog_id (2, 10, 13), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (3, 3, 15) | therapies : cost_of_treatment (429, 429, 668), professional_id (6, 9, 7), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-10 11:45:58\", \"2018-03-11 04:23:15\"), dog_id (2, 10, 13), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (3, 3, 15) | owners : zip_code (\"92406\", \"45244\", \"78297\"), cell_number (\"(722)768-5439x484\", \"341.667.8085\", \"(783)271-6744x4507\"), owner_id (2, 9, 14), city (\"Barrettburgh\", \"Lake Carleyborough\", \"Lake Valentin\"), street (\"89011 Kertzmann Spring Suite 642\", \"1204 Mae Highway Apt. 107\", \"0647 Hintz Village Apt. 024\"), first_name (\"Rolando\", \"Jaclyn\", \"Rolando\"), last_name (\"Funk\", \"Feil\", \"Price\"), state (\"NewYork\", \"SouthDakota\", \"SouthDakota\"), email_address (\"lynn81@example.org\", \"fschoen@example.net\", \"pearlie18@example.com\"), home_phone (\"916.976.9480x13851\", \"01802479758\", \"(058)997-7627\") | professionals : cell_number (\"139-321-7313\", \"328.842.3792\", \"461-801-2600\"), state (\"Utah\", \"Alabama\", \"Connecticut\"), zip_code (\"33020\", \"06646\", \"80775\"), first_name (\"Domenica\", \"Winfield\", \"Brady\"), email_address (\"uboehm@example.org\", \"goyette.roosevelt@example.net\", \"deanna.schuster@example.com\"), home_phone (\"+71(6)2898266914\", \"312.216.3352\", \"312.216.3352\"), last_name (\"Jacobs\", \"Kshlerin\", \"Murazik\"), city (\"Borisside\", \"New Maryjane\", \"Jaceton\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \"), role_code (\"Employee\", \"Veterenarian\"), professional_id (4, 3, 6) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\")", + "schema_without_content": "charges : charge_type , charge_amount , charge_id | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_name , breed_code | dogs : date_adopted , date_departed , date_arrived , breed_code , dog_id , name , abandoned_yn , date_of_birth , size_code , gender , weight , owner_id , age | procedures : cost_of_treatment , professional_id , date_of_treatment , dog_id , treatment_type_code , treatment_id | therapies : cost_of_treatment , professional_id , date_of_treatment , dog_id , treatment_type_code , treatment_id | owners : zip_code , cell_number 768-5439x484\", \"341.667.8085\", \"271-6744x4507\", owner_id , city , street , first_name , last_name , state , email_address , home_phone 997-7627\" | professionals : cell_number , state , zip_code , first_name , email_address , home_phone 2898266914\", \"312.216.3352\", \"312.216.3352\", last_name , city , street , role_code , professional_id | sizes : size_description , size_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "arriving date": "Dogs.date_arrived", + "departing date of the dogs": "Dogs.date_departed", + "treatment": "Treatments" + } + }, + { + "question": "find the #arriving date# and the #departing date of the dogs that received a treatment# .", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.date_arrived, t1.date_departed from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", + "schema_with_content": "Canines : age (\"8\", \"9\", \"2\"), owner_id (6, 8, 8), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-02-27 11:54:35\", \"2018-03-07 21:45:43\"), gender (\"1\", \"0\"), weight (\"8.04\", \"8.04\", \"8.16\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-25 13:07:04\", \"2018-03-24 23:48:59\"), name (\"Lyric\", \"Betty\", \"Troy\"), date_of_birth (\"2012-10-14 14:44:37\", \"2012-01-27 05:11:53\", \"2013-02-20 14:50:56\"), date_arrived (\"2017-05-06 08:03:52\", \"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\"), dog_id (6, 4, 2), abandoned_yn (\"1\", \"0\") | Pooches : age (\"8\", \"9\", \"2\"), owner_id (6, 8, 8), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-07 21:45:43\", \"2018-02-27 11:54:35\", \"2018-03-07 21:45:43\"), gender (\"1\", \"0\"), weight (\"8.04\", \"8.04\", \"8.16\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-25 13:07:04\", \"2018-03-24 23:48:59\"), name (\"Lyric\", \"Betty\", \"Troy\"), date_of_birth (\"2012-10-14 14:44:37\", \"2012-01-27 05:11:53\", \"2013-02-20 14:50:56\"), date_arrived (\"2017-05-06 08:03:52\", \"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\"), dog_id (6, 4, 2), abandoned_yn (\"1\", \"0\") | professionals : zip_code (\"54312\", \"77129\", \"67980\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"(920)304-4499x59146\", \"022.529.0550x1319\", \"971.048.3763x9404\"), professional_id (4, 7, 7), first_name (\"Danny\", \"Winfield\", \"Sigurd\"), email_address (\"jerrod.bahringer@example.org\", \"schneider.kathryne@example.org\", \"goyette.roosevelt@example.net\"), state (\"California\", \"Utah\", \"Wyoming\"), cell_number (\"1-185-137-1945x409\", \"1-185-137-1945x409\", \"1-185-137-1945x409\"), last_name (\"Hayes\", \"Hayes\", \"Christiansen\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), city (\"New Maryjane\", \"Borisside\", \"East Ila\") | treatments : date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-11 04:23:15\", \"2018-02-28 17:09:43\"), treatment_id (15, 2, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (428, 139, 945), dog_id (7, 4, 15), professional_id (9, 5, 10) | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | owners : state (\"Wisconsin\", \"Virginia\", \"Virginia\"), home_phone (\"(544)034-1670\", \"(799)563-0260x454\", \"066.264.7885\"), city (\"Brakusfurt\", \"Lake Valentin\", \"Barrettburgh\"), zip_code (\"22693\", \"87304\", \"92406\"), email_address (\"margaretta.runte@example.net\", \"hudson.favian@example.com\", \"hudson.favian@example.com\"), first_name (\"Gay\", \"Orlando\", \"Cindy\"), street (\"1204 Mae Highway Apt. 107\", \"2635 Caitlyn Plains\", \"1204 Mae Highway Apt. 107\"), last_name (\"Hamill\", \"Haley\", \"Prohaska\"), cell_number (\"559.874.3011x989\", \"559.874.3011x989\", \"341.667.8085\"), owner_id (4, 10, 14) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\")", + "schema_without_content": "Canines : age , owner_id , size_code , breed_code , date_adopted , gender , weight , date_departed , name , date_of_birth , date_arrived , dog_id , abandoned_yn | Pooches : age , owner_id , size_code , breed_code , date_adopted , gender , weight , date_departed , name , date_of_birth , date_arrived , dog_id , abandoned_yn | professionals : zip_code , role_code , home_phone 304-4499x59146\", \"022.529.0550x1319\", \"971.048.3763x9404\", professional_id , first_name , email_address , state , cell_number , last_name , street , city | treatments : date_of_treatment , treatment_id , treatment_type_code , cost_of_treatment , dog_id , professional_id | charges : charge_amount , charge_type , charge_id | owners : state , home_phone 034-1670\", \"563-0260x454\", \"066.264.7885\", city , zip_code , email_address , first_name , street , last_name , cell_number , owner_id | sizes : size_description , size_code | breeds : breed_name , breed_code | treatment_types : treatment_type_code , treatment_type_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "arriving date": "Dogs.date_arrived", + "departing date of the dogs that received a treatment": "Dogs.date_departed" + } + }, + { + "question": "find the #arriving date# and the #departing date of the dogs that received a treatment# .", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.date_arrived, t1.date_departed from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", + "schema_with_content": "dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (13, 5, 13), weight (\"8.95\", \"8.04\", \"4.01\"), owner_id (10, 10, 12), age (\"5\", \"8\", \"8\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-25 06:29:10\", \"2018-03-25 04:50:22\"), name (\"George\", \"Jesus\", \"Narciso\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-18 15:12:50\", \"2018-03-05 06:05:23\", \"2018-03-10 15:06:43\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-09-08 20:10:13\", \"2018-01-02 03:15:29\", \"2017-04-20 00:58:55\"), abandoned_yn (\"1\", \"0\"), date_of_birth (\"2010-11-11 07:11:53\", \"2010-11-11 07:11:53\", \"2008-05-30 12:51:34\") | professionals : cell_number (\"962-983-8109x3509\", \"609-405-2990\", \"609-405-2990\"), home_phone (\"1-138-287-3775\", \"325-155-0801x7005\", \"+71(6)2898266914\"), email_address (\"jeichmann@example.com\", \"deanna.schuster@example.com\", \"delphine29@example.com\"), street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"72532 Hane Course\nLake Berylland, ND 95283\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\"), last_name (\"Murazik\", \"Hyatt\", \"Christiansen\"), state (\"Utah\", \"NorthCarolina\", \"Wyoming\"), city (\"New Laurytown\", \"North Odellfurt\", \"Kirastad\"), zip_code (\"06646\", \"52476\", \"77129\"), first_name (\"Domenica\", \"Sigurd\", \"Jayson\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (1, 10, 11) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : owner_id (7, 9, 13), city (\"Beerton\", \"Lake Jennyferfort\", \"New Margaretteborough\"), email_address (\"zboncak.madonna@example.net\", \"angeline99@example.com\", \"wpfeffer@example.net\"), last_name (\"Stoltenberg\", \"Fisher\", \"Funk\"), home_phone (\"01802479758\", \"(058)997-7627\", \"1-332-849-1908\"), zip_code (\"25609\", \"61019\", \"45244\"), cell_number (\"341.667.8085\", \"(722)768-5439x484\", \"+70(4)9217952551\"), state (\"Maryland\", \"Indiana\", \"Vermont\"), street (\"15828 Spencer Extensions\", \"6950 Katherine Forges Apt. 630\", \"0647 Hintz Village Apt. 024\"), first_name (\"Rolando\", \"Gay\", \"Lorenz\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | procedures : cost_of_treatment (147, 428, 349), professional_id (10, 5, 8), dog_id (1, 12, 7), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-19 04:39:54\", \"2018-03-08 05:26:23\"), treatment_id (1, 15, 13), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | therapies : cost_of_treatment (147, 428, 349), professional_id (10, 5, 8), dog_id (1, 12, 7), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-19 04:39:54\", \"2018-03-08 05:26:23\"), treatment_id (1, 15, 13), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\")", + "schema_without_content": "dogs : breed_code , dog_id , weight , owner_id , age , date_departed , name , gender , date_adopted , size_code , date_arrived , abandoned_yn , date_of_birth | professionals : cell_number , home_phone 2898266914\", email_address , street , last_name , state , city , zip_code , first_name , role_code , professional_id | sizes : size_description , size_code | owners : owner_id , city , email_address , last_name , home_phone 997-7627\", \"1-332-849-1908\", zip_code , cell_number 768-5439x484\", \"+709217952551\", state , street , first_name | breeds : breed_name , breed_code | treatment_types : treatment_type_description , treatment_type_code | procedures : cost_of_treatment , professional_id , dog_id , date_of_treatment , treatment_id , treatment_type_code | therapies : cost_of_treatment , professional_id , dog_id , date_of_treatment , treatment_id , treatment_type_code | charges : charge_id , charge_amount , charge_type", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "arriving date": "Dogs.date_arrived", + "departing date of the dogs that received a treatment": "Dogs.date_departed" + } + }, + { + "question": "list the #last name of the owner# owning the #youngest dog# .", + "db_id": "dog_kennels", + "orig_query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = (select max(age) from dogs)", + "schema_with_content": "dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 06:58:44\", \"2018-03-25 06:46:07\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-18 15:12:50\", \"2018-03-23 16:02:04\"), date_arrived (\"2017-07-25 15:19:07\", \"2017-04-15 09:25:31\", \"2017-06-18 19:45:38\"), weight (\"9.48\", \"2.18\", \"8.16\"), name (\"Mavis\", \"Evangeline\", \"Kacey\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (7, 15, 11), date_of_birth (\"2010-11-11 07:11:53\", \"2012-07-11 17:15:10\", \"2012-05-03 21:42:25\"), owner_id (10, 11, 14), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), age (\"3\", \"2\", \"5\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | Caretakers : state (\"SouthDakota\", \"Wisconsin\", \"Maryland\"), zip_code (\"36871\", \"86010\", \"45244\"), city (\"Lake Valentin\", \"West Leonard\", \"New Margaretteborough\"), email_address (\"kturner@example.net\", \"fschoen@example.net\", \"fschoen@example.net\"), street (\"60352 Kayleigh Crossing Suite 700\", \"692 Jaskolski Forges\", \"692 Jaskolski Forges\"), home_phone (\"1-332-849-1908\", \"1-682-845-0116x63235\", \"(799)563-0260x454\"), first_name (\"Melisa\", \"Rolando\", \"Jaclyn\"), owner_id (4, 10, 8), last_name (\"Mertz\", \"Rippin\", \"Prohaska\"), cell_number (\"739-136-7202\", \"762.589.6117x1328\", \"341.667.8085\") | professionals : cell_number (\"1-258-285-4707x8020\", \"(275)939-2435x80863\", \"1-185-137-1945x409\"), role_code (\"Employee\", \"Veterenarian\"), city (\"Raynorfort\", \"McLaughlinfort\", \"West Heidi\"), first_name (\"Olaf\", \"Brady\", \"Monte\"), professional_id (6, 9, 4), home_phone (\"246-951-0080x76716\", \"346.594.3739\", \"+71(6)2898266914\"), zip_code (\"17902\", \"34041\", \"98844\"), street (\"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), last_name (\"Braun\", \"Murazik\", \"Frami\"), email_address (\"jerrod.bahringer@example.org\", \"lucile.shanahan@example.org\", \"jacynthe.mclaughlin@example.net\"), state (\"Hawaii\", \"California\", \"Connecticut\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | treatments : dog_id (2, 7, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-19 04:39:54\", \"2018-03-15 19:10:02\"), professional_id (6, 6, 4), treatment_id (14, 3, 14), cost_of_treatment (567, 514, 313) | Guardians : state (\"SouthDakota\", \"Wisconsin\", \"Maryland\"), zip_code (\"36871\", \"86010\", \"45244\"), city (\"Lake Valentin\", \"West Leonard\", \"New Margaretteborough\"), email_address (\"kturner@example.net\", \"fschoen@example.net\", \"fschoen@example.net\"), street (\"60352 Kayleigh Crossing Suite 700\", \"692 Jaskolski Forges\", \"692 Jaskolski Forges\"), home_phone (\"1-332-849-1908\", \"1-682-845-0116x63235\", \"(799)563-0260x454\"), first_name (\"Melisa\", \"Rolando\", \"Jaclyn\"), owner_id (4, 10, 8), last_name (\"Mertz\", \"Rippin\", \"Prohaska\"), cell_number (\"739-136-7202\", \"762.589.6117x1328\", \"341.667.8085\")", + "schema_without_content": "dogs : breed_code , date_departed , date_adopted , date_arrived , weight , name , size_code , dog_id , date_of_birth , owner_id , abandoned_yn , gender , age | breeds : breed_name , breed_code | sizes : size_description , size_code | Caretakers : state , zip_code , city , email_address , street , home_phone 563-0260x454\", first_name , owner_id , last_name , cell_number | professionals : cell_number 939-2435x80863\", \"1-185-137-1945x409\", role_code , city , first_name , professional_id , home_phone 2898266914\", zip_code , street , last_name , email_address , state | treatment_types : treatment_type_description , treatment_type_code | charges : charge_amount , charge_type , charge_id | treatments : dog_id , treatment_type_code , date_of_treatment , professional_id , treatment_id , cost_of_treatment | Guardians : state , zip_code , city , email_address , street , home_phone 563-0260x454\", first_name , owner_id , last_name , cell_number", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "last name of the owner": "Owners.last_name", + "youngest dog": "Dogs.age" + } + }, + { + "question": "list the #last name of the owner# owning the #youngest dog# .", + "db_id": "dog_kennels", + "orig_query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = (select max(age) from dogs)", + "schema_with_content": "treatments : professional_id (8, 8, 5), cost_of_treatment (656, 349, 428), treatment_id (4, 5, 2), dog_id (12, 1, 13), date_of_treatment (\"2018-03-13 12:22:58\", \"2018-02-28 17:09:43\", \"2018-03-13 12:22:58\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | professionals : role_code (\"Employee\", \"Veterenarian\"), city (\"South Rockyport\", \"North Odellfurt\", \"South Rockyport\"), last_name (\"Pouros\", \"Braun\", \"Frami\"), cell_number (\"499-434-0215x1628\", \"1-258-285-4707x8020\", \"139-321-7313\"), state (\"Wisconsin\", \"Mississippi\", \"NorthCarolina\"), zip_code (\"34041\", \"52476\", \"80775\"), street (\"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\"), first_name (\"Velva\", \"Karley\", \"Jayson\"), email_address (\"marquardt.furman@example.org\", \"goyette.roosevelt@example.net\", \"lucile.shanahan@example.org\"), home_phone (\"325-155-0801x7005\", \"325-155-0801x7005\", \"312.216.3352\"), professional_id (11, 3, 4) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : first_name (\"Johann\", \"Kade\", \"Rachelle\"), email_address (\"wpfeffer@example.net\", \"edythe62@example.org\", \"ymaggio@example.com\"), street (\"60352 Kayleigh Crossing Suite 700\", \"6950 Katherine Forges Apt. 630\", \"9212 Rosenbaum Lights\"), last_name (\"Price\", \"DuBuque\", \"Feil\"), city (\"Lake Valentin\", \"Brakusfurt\", \"Lake Tia\"), state (\"Pennsylvania\", \"Maryland\", \"NorthDakota\"), home_phone (\"01802479758\", \"916.976.9480x13851\", \"066.264.7885\"), owner_id (12, 12, 4), cell_number (\"559.874.3011x989\", \"(722)768-5439x484\", \"739-136-7202\"), zip_code (\"61019\", \"11990\", \"87304\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | Pooches : date_of_birth (\"2012-10-14 14:44:37\", \"2013-02-13 05:15:21\", \"2008-05-30 12:51:34\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"4.01\", \"4.01\", \"4.01\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\", \"2018-03-14 08:05:18\"), owner_id (14, 14, 3), abandoned_yn (\"1\", \"0\"), age (\"1\", \"8\", \"2\"), dog_id (15, 12, 9), date_arrived (\"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\", \"2017-10-16 20:06:21\"), name (\"Jeffrey\", \"Evangeline\", \"Mavis\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 06:58:44\", \"2018-03-25 02:11:32\"), gender (\"1\", \"0\") | Canines : date_of_birth (\"2012-10-14 14:44:37\", \"2013-02-13 05:15:21\", \"2008-05-30 12:51:34\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"4.01\", \"4.01\", \"4.01\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-05 06:05:23\", \"2018-03-14 08:05:18\"), owner_id (14, 14, 3), abandoned_yn (\"1\", \"0\"), age (\"1\", \"8\", \"2\"), dog_id (15, 12, 9), date_arrived (\"2017-04-15 09:25:31\", \"2017-04-20 00:58:55\", \"2017-10-16 20:06:21\"), name (\"Jeffrey\", \"Evangeline\", \"Mavis\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 06:58:44\", \"2018-03-25 02:11:32\"), gender (\"1\", \"0\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "treatments : professional_id , cost_of_treatment , treatment_id , dog_id , date_of_treatment , treatment_type_code | professionals : role_code , city , last_name , cell_number , state , zip_code , street , first_name , email_address , home_phone , professional_id | treatment_types : treatment_type_code , treatment_type_description | owners : first_name , email_address , street , last_name , city , state , home_phone , owner_id , cell_number 768-5439x484\", \"739-136-7202\", zip_code | sizes : size_description , size_code | charges : charge_id , charge_type , charge_amount | Pooches : date_of_birth , size_code , weight , breed_code , date_adopted , owner_id , abandoned_yn , age , dog_id , date_arrived , name , date_departed , gender | Canines : date_of_birth , size_code , weight , breed_code , date_adopted , owner_id , abandoned_yn , age , dog_id , date_arrived , name , date_departed , gender | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "last name of the owner": "Owners.last_name", + "youngest dog": "Dogs.age" + } + }, + { + "question": "who #owns the youngest dog# ? give me his or her #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = (select max(age) from dogs)", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | dogs : date_departed (\"2018-03-24 23:48:59\", \"2018-03-25 02:11:32\", \"2018-03-24 19:12:22\"), weight (\"7.57\", \"4.36\", \"3.52\"), date_of_birth (\"2010-11-11 07:11:53\", \"2012-10-14 14:44:37\", \"2008-10-09 22:38:53\"), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (2, 5, 1), owner_id (8, 14, 1), date_arrived (\"2017-12-29 23:24:13\", \"2017-06-18 19:45:38\", \"2017-04-20 00:58:55\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-25 08:12:51\", \"2018-03-14 08:05:18\"), gender (\"1\", \"0\"), age (\"4\", \"2\", \"2\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Bessie\", \"Jesus\", \"Merritt\") | treatments : treatment_id (3, 4, 4), dog_id (10, 10, 13), cost_of_treatment (567, 945, 945), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-15 20:25:34\", \"2018-03-23 13:52:10\"), professional_id (8, 9, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Guardians : cell_number (\"121.381.3316x6535\", \"762.589.6117x1328\", \"739-136-7202\"), city (\"New Margaretteborough\", \"East Hillardberg\", \"South Afton\"), owner_id (13, 12, 7), home_phone (\"066.264.7885\", \"318-052-6573\", \"085.557.0379x84348\"), state (\"Virginia\", \"Vermont\", \"Arkansas\"), email_address (\"lynn81@example.org\", \"angeline99@example.com\", \"lynn81@example.org\"), street (\"1858 Jan Park\", \"1858 Jan Park\", \"2635 Caitlyn Plains\"), last_name (\"Hauck\", \"Hamill\", \"Nicolas\"), zip_code (\"78297\", \"25609\", \"25609\"), first_name (\"Tre\", \"Cindy\", \"Tre\") | professionals : state (\"Montana\", \"NorthCarolina\", \"Mississippi\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"lucile.shanahan@example.org\", \"mekhi.little@example.org\", \"lourdes.lowe@example.net\"), city (\"New Laurytown\", \"West Heidi\", \"New Laurytown\"), street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), first_name (\"Domenica\", \"Sigurd\", \"Winfield\"), cell_number (\"889-940-2676\", \"1-181-670-9466\", \"1-258-285-4707x8020\"), home_phone (\"(230)338-3342x585\", \"1-138-287-3775\", \"(230)338-3342x585\"), zip_code (\"34041\", \"84515\", \"17902\"), last_name (\"Ullrich\", \"Kshlerin\", \"Jacobs\"), professional_id (8, 9, 7) | Caretakers : cell_number (\"121.381.3316x6535\", \"762.589.6117x1328\", \"739-136-7202\"), city (\"New Margaretteborough\", \"East Hillardberg\", \"South Afton\"), owner_id (13, 12, 7), home_phone (\"066.264.7885\", \"318-052-6573\", \"085.557.0379x84348\"), state (\"Virginia\", \"Vermont\", \"Arkansas\"), email_address (\"lynn81@example.org\", \"angeline99@example.com\", \"lynn81@example.org\"), street (\"1858 Jan Park\", \"1858 Jan Park\", \"2635 Caitlyn Plains\"), last_name (\"Hauck\", \"Hamill\", \"Nicolas\"), zip_code (\"78297\", \"25609\", \"25609\"), first_name (\"Tre\", \"Cindy\", \"Tre\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | dogs : date_departed , weight , date_of_birth , abandoned_yn , breed_code , dog_id , owner_id , date_arrived , date_adopted , gender , age , size_code , name | treatments : treatment_id , dog_id , cost_of_treatment , date_of_treatment , professional_id , treatment_type_code | charges : charge_amount , charge_id , charge_type | Guardians : cell_number , city , owner_id , home_phone , state , email_address , street , last_name , zip_code , first_name | professionals : state , role_code , email_address , city , street , first_name , cell_number , home_phone 338-3342x585\", \"1-138-287-3775\", \"338-3342x585\", zip_code , last_name , professional_id | Caretakers : cell_number , city , owner_id , home_phone , state , email_address , street , last_name , zip_code , first_name | sizes : size_code , size_description | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owns the youngest dog": "Dogs.age", + "last name": "Owners.last_name" + } + }, + { + "question": "who #owns the youngest dog# ? give me his or her #last name# .", + "db_id": "dog_kennels", + "orig_query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = (select max(age) from dogs)", + "schema_with_content": "sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | professionals : state (\"California\", \"Wisconsin\", \"California\"), cell_number (\"328.842.3792\", \"328.842.3792\", \"328.842.3792\"), home_phone (\"+43(5)1132733868\", \"(230)338-3342x585\", \"320-508-6023\"), last_name (\"Jacobs\", \"Braun\", \"Jacobs\"), email_address (\"cole.margarita@example.org\", \"west.eula@example.net\", \"deanna.schuster@example.com\"), first_name (\"Danny\", \"Olaf\", \"Ericka\"), zip_code (\"80775\", \"06646\", \"52476\"), city (\"East Ila\", \"Kirastad\", \"Raynorfort\"), professional_id (1, 8, 11), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"72532 Hane Course\nLake Berylland, ND 95283\"), role_code (\"Employee\", \"Veterenarian\") | Pooches : age (\"5\", \"4\", \"9\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-08 15:03:00\", \"2018-03-06 16:32:11\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Merritt\", \"Narciso\", \"Mavis\"), gender (\"1\", \"0\"), date_of_birth (\"2012-05-31 08:01:36\", \"2008-10-09 22:38:53\", \"2012-07-11 17:15:10\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 10:25:46\", \"2018-03-25 06:46:07\"), weight (\"9.8\", \"4.01\", \"3.52\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-04-20 00:58:55\", \"2017-12-22 05:02:02\", \"2017-04-20 00:58:55\"), owner_id (7, 5, 14), dog_id (3, 13, 5) | Canines : age (\"5\", \"4\", \"9\"), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-08 15:03:00\", \"2018-03-06 16:32:11\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Merritt\", \"Narciso\", \"Mavis\"), gender (\"1\", \"0\"), date_of_birth (\"2012-05-31 08:01:36\", \"2008-10-09 22:38:53\", \"2012-07-11 17:15:10\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 10:25:46\", \"2018-03-25 06:46:07\"), weight (\"9.8\", \"4.01\", \"3.52\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-04-20 00:58:55\", \"2017-12-22 05:02:02\", \"2017-04-20 00:58:55\"), owner_id (7, 5, 14), dog_id (3, 13, 5) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : last_name (\"Ondricka\", \"Prohaska\", \"DuBuque\"), zip_code (\"78297\", \"22731\", \"11990\"), cell_number (\"1-739-421-2225x38148\", \"1-739-421-2225x38148\", \"762.589.6117x1328\"), home_phone (\"893-862-5295x61709\", \"(094)747-5094x8134\", \"130-796-4589x05454\"), first_name (\"Jaclyn\", \"Cindy\", \"Orlando\"), street (\"89011 Kertzmann Spring Suite 642\", \"51934 Treutel Harbor\", \"51934 Treutel Harbor\"), owner_id (11, 14, 15), state (\"Indiana\", \"Virginia\", \"Arkansas\"), email_address (\"ymaggio@example.com\", \"wpfeffer@example.net\", \"margaretta.runte@example.net\"), city (\"Barrettburgh\", \"New Margaretteborough\", \"Port Reannamouth\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | treatments : date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-19 04:39:54\", \"2018-03-04 20:33:43\"), treatment_id (2, 8, 2), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (13, 14, 12), cost_of_treatment (429, 428, 147), professional_id (14, 10, 10)", + "schema_without_content": "sizes : size_code , size_description | treatment_types : treatment_type_description , treatment_type_code | professionals : state , cell_number , home_phone 1132733868\", \"338-3342x585\", \"320-508-6023\", last_name , email_address , first_name , zip_code , city , professional_id , street , role_code | Pooches : age , date_adopted , breed_code , size_code , name , gender , date_of_birth , date_departed , weight , abandoned_yn , date_arrived , owner_id , dog_id | Canines : age , date_adopted , breed_code , size_code , name , gender , date_of_birth , date_departed , weight , abandoned_yn , date_arrived , owner_id , dog_id | breeds : breed_name , breed_code | owners : last_name , zip_code , cell_number , home_phone 747-5094x8134\", \"130-796-4589x05454\", first_name , street , owner_id , state , email_address , city | charges : charge_type , charge_id , charge_amount | treatments : date_of_treatment , treatment_id , treatment_type_code , dog_id , cost_of_treatment , professional_id", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owns the youngest dog": "Dogs.age", + "last name": "Owners.last_name" + } + }, + { + "question": "list the #emails of the professionals# who live in the #state# of hawaii or the state of wisconsin.", + "db_id": "dog_kennels", + "orig_query": "select email_address from professionals where state = 'Hawaii' or state = 'Wisconsin'", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : cost_of_treatment (656, 407, 313), dog_id (12, 15, 10), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 9, 9), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-15 19:10:02\", \"2018-03-23 13:52:10\"), treatment_id (12, 7, 9) | Handlers : email_address (\"uboehm@example.org\", \"lucile.shanahan@example.org\", \"west.eula@example.net\"), home_phone (\"(920)304-4499x59146\", \"+43(5)1132733868\", \"1-138-287-3775\"), role_code (\"Employee\", \"Veterenarian\"), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), state (\"Indiana\", \"Connecticut\", \"Indiana\"), city (\"Jaceton\", \"Borisside\", \"Domenickton\"), zip_code (\"98844\", \"80775\", \"17902\"), cell_number (\"499-434-0215x1628\", \"(275)939-2435x80863\", \"1-185-137-1945x409\"), first_name (\"Danny\", \"Lesly\", \"Winfield\"), last_name (\"Watsica\", \"Hayes\", \"Frami\"), professional_id (4, 1, 14) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : first_name (\"Rachelle\", \"Johann\", \"Heather\"), owner_id (11, 6, 8), street (\"15828 Spencer Extensions\", \"692 Jaskolski Forges\", \"51934 Treutel Harbor\"), cell_number (\"121.381.3316x6535\", \"(783)271-6744x4507\", \"559.874.3011x989\"), city (\"West Leonard\", \"Port Zackery\", \"West Leonard\"), email_address (\"wpfeffer@example.net\", \"margaretta.runte@example.net\", \"pearlie18@example.com\"), home_phone (\"916.976.9480x13851\", \"(544)034-1670\", \"363.948.1090\"), zip_code (\"02647\", \"92406\", \"22693\"), state (\"Arizona\", \"Wisconsin\", \"NorthDakota\"), last_name (\"Mertz\", \"Stoltenberg\", \"Hauck\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Caregivers : email_address (\"uboehm@example.org\", \"lucile.shanahan@example.org\", \"west.eula@example.net\"), home_phone (\"(920)304-4499x59146\", \"+43(5)1132733868\", \"1-138-287-3775\"), role_code (\"Employee\", \"Veterenarian\"), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), state (\"Indiana\", \"Connecticut\", \"Indiana\"), city (\"Jaceton\", \"Borisside\", \"Domenickton\"), zip_code (\"98844\", \"80775\", \"17902\"), cell_number (\"499-434-0215x1628\", \"(275)939-2435x80863\", \"1-185-137-1945x409\"), first_name (\"Danny\", \"Lesly\", \"Winfield\"), last_name (\"Watsica\", \"Hayes\", \"Frami\"), professional_id (4, 1, 14) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | dogs : date_arrived (\"2017-12-29 23:24:13\", \"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (7, 11, 2), age (\"5\", \"5\", \"6\"), name (\"Bessie\", \"Holden\", \"Lyric\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-25 05:07:47\", \"2018-03-25 10:25:46\"), abandoned_yn (\"1\", \"0\"), owner_id (5, 7, 6), date_adopted (\"2018-03-05 06:05:23\", \"2018-03-23 16:02:04\", \"2018-03-06 16:32:11\"), date_of_birth (\"2008-05-19 15:54:49\", \"2012-05-31 08:01:36\", \"2012-05-31 08:01:36\"), weight (\"8.95\", \"1.72\", \"8.95\")", + "schema_without_content": "breeds : breed_code , breed_name | treatments : cost_of_treatment , dog_id , treatment_type_code , professional_id , date_of_treatment , treatment_id | Handlers : email_address , home_phone 304-4499x59146\", \"+431132733868\", \"1-138-287-3775\", role_code , street , state , city , zip_code , cell_number 939-2435x80863\", \"1-185-137-1945x409\", first_name , last_name , professional_id | treatment_types : treatment_type_description , treatment_type_code | owners : first_name , owner_id , street , cell_number 271-6744x4507\", \"559.874.3011x989\", city , email_address , home_phone 034-1670\", \"363.948.1090\", zip_code , state , last_name | charges : charge_id , charge_amount , charge_type | Caregivers : email_address , home_phone 304-4499x59146\", \"+431132733868\", \"1-138-287-3775\", role_code , street , state , city , zip_code , cell_number 939-2435x80863\", \"1-185-137-1945x409\", first_name , last_name , professional_id | sizes : size_code , size_description | dogs : date_arrived , gender , size_code , breed_code , dog_id , age , name , date_departed , abandoned_yn , owner_id , date_adopted , date_of_birth , weight", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "emails of the professionals": "Professionals.email_address", + "state": "Professionals.state" + } + }, + { + "question": "what are the #emails of the professionals# living in either the #state# of hawaii or the state of wisconsin?", + "db_id": "dog_kennels", + "orig_query": "select email_address from professionals where state = 'Hawaii' or state = 'Wisconsin'", + "schema_with_content": "treatments : professional_id (10, 10, 10), cost_of_treatment (428, 266, 147), dog_id (1, 2, 14), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-23 13:52:10\", \"2018-02-28 17:09:43\"), treatment_id (15, 7, 6) | Handlers : last_name (\"Hayes\", \"Tillman\", \"Tillman\"), first_name (\"Monte\", \"Sigurd\", \"Domenica\"), city (\"West Heidi\", \"North Adelberttown\", \"East Ila\"), role_code (\"Employee\", \"Veterenarian\"), state (\"Utah\", \"Hawaii\", \"Montana\"), zip_code (\"84515\", \"54312\", \"34041\"), email_address (\"schneider.kathryne@example.org\", \"jeichmann@example.com\", \"deanna.schuster@example.com\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), cell_number (\"880-659-7577x736\", \"609-405-2990\", \"1-258-285-4707x8020\"), home_phone (\"(920)304-4499x59146\", \"+43(5)1132733868\", \"971.048.3763x9404\"), professional_id (8, 15, 15) | owners : last_name (\"Hamill\", \"Feil\", \"Haley\"), zip_code (\"25609\", \"93165\", \"11990\"), street (\"51934 Treutel Harbor\", \"60352 Kayleigh Crossing Suite 700\", \"1858 Jan Park\"), owner_id (2, 15, 3), email_address (\"edythe62@example.org\", \"ykris@example.com\", \"ymaggio@example.com\"), home_phone (\"130-796-4589x05454\", \"(544)034-1670\", \"916.976.9480x13851\"), cell_number (\"+70(4)9217952551\", \"341.667.8085\", \"559.874.3011x989\"), state (\"Florida\", \"Arizona\", \"Arizona\"), city (\"Lake Tia\", \"South Afton\", \"Port Zackery\"), first_name (\"Heather\", \"Lorenz\", \"Emelie\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : owner_id (6, 6, 12), date_departed (\"2018-03-25 14:15:41\", \"2018-03-25 06:29:10\", \"2018-03-25 15:05:16\"), name (\"Evangeline\", \"Hipolito\", \"George\"), weight (\"3.52\", \"5.16\", \"1.72\"), date_of_birth (\"2012-05-03 21:42:25\", \"2008-05-19 15:54:49\", \"2012-05-31 08:01:36\"), gender (\"1\", \"0\"), age (\"9\", \"1\", \"1\"), abandoned_yn (\"1\", \"0\"), dog_id (6, 5, 1), date_arrived (\"2017-10-25 00:55:34\", \"2017-12-29 23:24:13\", \"2017-07-25 15:19:07\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-21 10:41:18\", \"2018-03-14 08:05:18\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | Caregivers : last_name (\"Hayes\", \"Tillman\", \"Tillman\"), first_name (\"Monte\", \"Sigurd\", \"Domenica\"), city (\"West Heidi\", \"North Adelberttown\", \"East Ila\"), role_code (\"Employee\", \"Veterenarian\"), state (\"Utah\", \"Hawaii\", \"Montana\"), zip_code (\"84515\", \"54312\", \"34041\"), email_address (\"schneider.kathryne@example.org\", \"jeichmann@example.com\", \"deanna.schuster@example.com\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), cell_number (\"880-659-7577x736\", \"609-405-2990\", \"1-258-285-4707x8020\"), home_phone (\"(920)304-4499x59146\", \"+43(5)1132733868\", \"971.048.3763x9404\"), professional_id (8, 15, 15) | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\")", + "schema_without_content": "treatments : professional_id , cost_of_treatment , dog_id , treatment_type_code , date_of_treatment , treatment_id | Handlers : last_name , first_name , city , role_code , state , zip_code , email_address , street , cell_number , home_phone 304-4499x59146\", \"+431132733868\", \"971.048.3763x9404\", professional_id | owners : last_name , zip_code , street , owner_id , email_address , home_phone 034-1670\", \"916.976.9480x13851\", cell_number 9217952551\", \"341.667.8085\", \"559.874.3011x989\", state , city , first_name | sizes : size_description , size_code | dogs : owner_id , date_departed , name , weight , date_of_birth , gender , age , abandoned_yn , dog_id , date_arrived , date_adopted , size_code , breed_code | Caregivers : last_name , first_name , city , role_code , state , zip_code , email_address , street , cell_number , home_phone 304-4499x59146\", \"+431132733868\", \"971.048.3763x9404\", professional_id | charges : charge_id , charge_amount , charge_type | breeds : breed_name , breed_code | treatment_types : treatment_type_code , treatment_type_description", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "emails of the professionals": "Professionals.email_address", + "state": "Professionals.state" + } + }, + { + "question": "which #professionals# live in a #city# containing the substring 'west'? list his or her #role# , #street# , city and #state# .", + "db_id": "dog_kennels", + "orig_query": "select role_code, street, city, state from professionals where city like '%West%'", + "schema_with_content": "owners : last_name (\"Mertz\", \"Prohaska\", \"Fisher\"), zip_code (\"22693\", \"35747\", \"36871\"), city (\"Beerton\", \"South Daisyfurt\", \"East Maribelbury\"), state (\"Florida\", \"Virginia\", \"Arkansas\"), owner_id (6, 7, 13), cell_number (\"1-739-421-2225x38148\", \"(783)271-6744x4507\", \"121.381.3316x6535\"), email_address (\"angeline99@example.com\", \"margaretta.runte@example.net\", \"kturner@example.net\"), first_name (\"Kade\", \"Gay\", \"Gay\"), street (\"68118 Daniel Row\", \"0647 Hintz Village Apt. 024\", \"692 Jaskolski Forges\"), home_phone (\"1-346-655-5842x768\", \"(544)034-1670\", \"916.976.9480x13851\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | treatments : treatment_id (10, 6, 2), dog_id (1, 7, 2), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (349, 428, 147), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-24 22:25:58\", \"2018-03-16 10:27:36\"), professional_id (10, 5, 10) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Caregivers : email_address (\"schneider.kathryne@example.org\", \"jacynthe.mclaughlin@example.net\", \"cole.margarita@example.org\"), first_name (\"Sigurd\", \"Karley\", \"Winfield\"), state (\"Indiana\", \"Mississippi\", \"Indiana\"), cell_number (\"(369)908-7311x065\", \"(275)939-2435x80863\", \"139-321-7313\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"33020\", \"06646\", \"54312\"), city (\"Juddton\", \"West Heidi\", \"South Rockyport\"), last_name (\"O'Reilly\", \"Braun\", \"Walter\"), home_phone (\"+02(1)0259033559\", \"+71(6)2898266914\", \"(920)304-4499x59146\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (8, 11, 6) | dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Holden\", \"Bessie\", \"Bessie\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-07 21:45:43\", \"2018-03-14 08:05:18\"), date_of_birth (\"2013-02-13 05:15:21\", \"2017-09-19 05:39:09\", \"2013-02-13 05:15:21\"), dog_id (12, 7, 8), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-09-08 20:10:13\", \"2017-10-24 04:45:13\", \"2017-06-25 10:14:05\"), age (\"2\", \"2\", \"4\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 14:15:41\", \"2018-03-24 23:48:59\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (13, 7, 8), weight (\"8.95\", \"9.48\", \"8.04\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Handlers : email_address (\"schneider.kathryne@example.org\", \"jacynthe.mclaughlin@example.net\", \"cole.margarita@example.org\"), first_name (\"Sigurd\", \"Karley\", \"Winfield\"), state (\"Indiana\", \"Mississippi\", \"Indiana\"), cell_number (\"(369)908-7311x065\", \"(275)939-2435x80863\", \"139-321-7313\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"33020\", \"06646\", \"54312\"), city (\"Juddton\", \"West Heidi\", \"South Rockyport\"), last_name (\"O'Reilly\", \"Braun\", \"Walter\"), home_phone (\"+02(1)0259033559\", \"+71(6)2898266914\", \"(920)304-4499x59146\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (8, 11, 6)", + "schema_without_content": "owners : last_name , zip_code , city , state , owner_id , cell_number 271-6744x4507\", \"121.381.3316x6535\", email_address , first_name , street , home_phone 034-1670\", \"916.976.9480x13851\" | charges : charge_amount , charge_id , charge_type | treatments : treatment_id , dog_id , treatment_type_code , cost_of_treatment , date_of_treatment , professional_id | sizes : size_code , size_description | Caregivers : email_address , first_name , state , cell_number 908-7311x065\", \"939-2435x80863\", \"139-321-7313\", role_code , zip_code , city , last_name , home_phone 0259033559\", \"+712898266914\", \"304-4499x59146\", street , professional_id | dogs : breed_code , name , date_adopted , date_of_birth , dog_id , gender , abandoned_yn , date_arrived , age , date_departed , size_code , owner_id , weight | breeds : breed_code , breed_name | treatment_types : treatment_type_code , treatment_type_description | Handlers : email_address , first_name , state , cell_number 908-7311x065\", \"939-2435x80863\", \"139-321-7313\", role_code , zip_code , city , last_name , home_phone 0259033559\", \"+712898266914\", \"304-4499x59146\", street , professional_id", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "professionals", + "city": "professionals.city", + "role": "professionals.role_code", + "street": "professionals.street", + "state": "professionals.state" + } + }, + { + "question": "find the #role# , #street# , #city# and st #ate of the professionals l# iving in a city that contains the substring 'west'.", + "db_id": "dog_kennels", + "orig_query": "select role_code, street, city, state from professionals where city like '%West%'", + "schema_with_content": "sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (656, 514, 429), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-24 22:25:58\", \"2018-03-13 12:22:58\"), dog_id (13, 15, 15), professional_id (8, 10, 7), treatment_id (5, 9, 2) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Caregivers : home_phone (\"+43(5)1132733868\", \"346.594.3739\", \"+02(1)0259033559\"), role_code (\"Employee\", \"Veterenarian\"), city (\"New Laurytown\", \"Jaceton\", \"North Odellfurt\"), street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), cell_number (\"(275)939-2435x80863\", \"011.193.9081x3186\", \"1-181-670-9466\"), zip_code (\"43129\", \"84515\", \"07412\"), professional_id (2, 1, 13), email_address (\"schneider.kathryne@example.org\", \"jerrod.bahringer@example.org\", \"lambert62@example.org\"), last_name (\"O'Reilly\", \"Considine\", \"Murazik\"), state (\"Wisconsin\", \"NorthCarolina\", \"Wisconsin\"), first_name (\"Velva\", \"Monte\", \"Brady\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : email_address (\"lynn81@example.org\", \"zboncak.madonna@example.net\", \"ykris@example.com\"), street (\"692 Jaskolski Forges\", \"59509 Mellie Mountain\", \"1858 Jan Park\"), state (\"Mississippi\", \"Vermont\", \"Arkansas\"), first_name (\"Rachelle\", \"Jaclyn\", \"Gay\"), cell_number (\"762.589.6117x1328\", \"341.667.8085\", \"559.874.3011x989\"), city (\"South Daisyfurt\", \"Lake Valentin\", \"Port Reannamouth\"), last_name (\"DuBuque\", \"Price\", \"Haley\"), zip_code (\"11990\", \"92406\", \"61019\"), home_phone (\"1-332-849-1908\", \"363.948.1090\", \"893-862-5295x61709\"), owner_id (2, 3, 11) | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | dogs : date_adopted (\"2018-03-18 07:47:40\", \"2018-03-18 15:12:50\", \"2018-03-21 10:41:18\"), weight (\"2.18\", \"6.92\", \"2.18\"), date_departed (\"2018-03-25 15:05:16\", \"2018-03-24 19:36:59\", \"2018-03-25 15:05:16\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-04-15 09:25:31\", \"2017-06-25 10:14:05\"), size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), age (\"9\", \"3\", \"9\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (14, 6, 7), owner_id (1, 12, 5), date_of_birth (\"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\", \"2009-04-12 06:02:48\"), name (\"Narciso\", \"Bessie\", \"Kacey\") | Handlers : home_phone (\"+43(5)1132733868\", \"346.594.3739\", \"+02(1)0259033559\"), role_code (\"Employee\", \"Veterenarian\"), city (\"New Laurytown\", \"Jaceton\", \"North Odellfurt\"), street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), cell_number (\"(275)939-2435x80863\", \"011.193.9081x3186\", \"1-181-670-9466\"), zip_code (\"43129\", \"84515\", \"07412\"), professional_id (2, 1, 13), email_address (\"schneider.kathryne@example.org\", \"jerrod.bahringer@example.org\", \"lambert62@example.org\"), last_name (\"O'Reilly\", \"Considine\", \"Murazik\"), state (\"Wisconsin\", \"NorthCarolina\", \"Wisconsin\"), first_name (\"Velva\", \"Monte\", \"Brady\")", + "schema_without_content": "sizes : size_code , size_description | treatments : treatment_type_code , cost_of_treatment , date_of_treatment , dog_id , professional_id , treatment_id | breeds : breed_name , breed_code | Caregivers : home_phone 1132733868\", \"346.594.3739\", \"+020259033559\", role_code , city , street , cell_number 939-2435x80863\", \"011.193.9081x3186\", \"1-181-670-9466\", zip_code , professional_id , email_address , last_name , state , first_name | treatment_types : treatment_type_description , treatment_type_code | owners : email_address , street , state , first_name , cell_number , city , last_name , zip_code , home_phone , owner_id | charges : charge_amount , charge_type , charge_id | dogs : date_adopted , weight , date_departed , date_arrived , size_code , abandoned_yn , gender , age , breed_code , dog_id , owner_id , date_of_birth , name | Handlers : home_phone 1132733868\", \"346.594.3739\", \"+020259033559\", role_code , city , street , cell_number 939-2435x80863\", \"011.193.9081x3186\", \"1-181-670-9466\", zip_code , professional_id , email_address , last_name , state , first_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "role": "professionals.role_code", + "street": "professionals.street", + "city": "professionals.city", + "ate of the professionals l": "professionals", + "state": "professionals.state" + } + }, + { + "question": "which owners live in the #state# whose name contains the substring 'north'? list his #first name# , #last name# and #email# .", + "db_id": "dog_kennels", + "orig_query": "select first_name, last_name, email_address from owners where state like '%North%'", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Caretakers : street (\"1858 Jan Park\", \"2417 Keara Stravenue Apt. 146\", \"68118 Daniel Row\"), city (\"Port Zackery\", \"Brakusfurt\", \"East Maribelbury\"), home_phone (\"01802479758\", \"130-796-4589x05454\", \"1-332-849-1908\"), last_name (\"Hauck\", \"Rippin\", \"Rippin\"), cell_number (\"(783)271-6744x4507\", \"1-626-264-7659x1697\", \"762.589.6117x1328\"), owner_id (2, 9, 8), zip_code (\"00589\", \"11990\", \"78297\"), email_address (\"pearlie18@example.com\", \"ykris@example.com\", \"margaretta.runte@example.net\"), state (\"Florida\", \"Wisconsin\", \"Pennsylvania\"), first_name (\"Johann\", \"Orlando\", \"Kade\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : city (\"Baileymouth\", \"West Heidi\", \"Borisside\"), cell_number (\"(369)908-7311x065\", \"889-940-2676\", \"139-321-7313\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"84515\", \"41215\", \"06646\"), home_phone (\"325-155-0801x7005\", \"(920)304-4499x59146\", \"(230)338-3342x585\"), state (\"Mississippi\", \"Connecticut\", \"NorthCarolina\"), professional_id (5, 9, 2), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"72532 Hane Course\nLake Berylland, ND 95283\"), email_address (\"marquardt.furman@example.org\", \"deanna.schuster@example.com\", \"lambert62@example.org\"), last_name (\"Murazik\", \"Hayes\", \"Murazik\"), first_name (\"Monte\", \"Domenica\", \"Taryn\") | treatments : date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-24 22:25:58\", \"2018-03-04 20:33:43\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (2, 10, 10), professional_id (6, 7, 5), cost_of_treatment (681, 349, 407), dog_id (10, 1, 13) | dogs : date_arrived (\"2017-09-08 20:10:13\", \"2017-07-25 15:19:07\", \"2017-04-20 00:58:55\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-02-25 23:45:30\", \"2018-03-13 12:47:15\"), owner_id (11, 10, 2), weight (\"6.92\", \"7.57\", \"9.8\"), dog_id (14, 8, 4), size_code (\"LGE\", \"MED\", \"SML\"), name (\"Bessie\", \"Jeffrey\", \"Houston\"), date_of_birth (\"2013-02-20 14:50:56\", \"2012-07-11 17:15:10\", \"2010-11-11 07:11:53\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 04:50:22\", \"2018-03-25 06:46:07\"), age (\"2\", \"6\", \"8\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Guardians : street (\"1858 Jan Park\", \"2417 Keara Stravenue Apt. 146\", \"68118 Daniel Row\"), city (\"Port Zackery\", \"Brakusfurt\", \"East Maribelbury\"), home_phone (\"01802479758\", \"130-796-4589x05454\", \"1-332-849-1908\"), last_name (\"Hauck\", \"Rippin\", \"Rippin\"), cell_number (\"(783)271-6744x4507\", \"1-626-264-7659x1697\", \"762.589.6117x1328\"), owner_id (2, 9, 8), zip_code (\"00589\", \"11990\", \"78297\"), email_address (\"pearlie18@example.com\", \"ykris@example.com\", \"margaretta.runte@example.net\"), state (\"Florida\", \"Wisconsin\", \"Pennsylvania\"), first_name (\"Johann\", \"Orlando\", \"Kade\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | Caretakers : street , city , home_phone , last_name , cell_number 271-6744x4507\", \"1-626-264-7659x1697\", \"762.589.6117x1328\", owner_id , zip_code , email_address , state , first_name | sizes : size_description , size_code | professionals : city , cell_number 908-7311x065\", \"889-940-2676\", \"139-321-7313\", role_code , zip_code , home_phone 304-4499x59146\", \"338-3342x585\", state , professional_id , street , email_address , last_name , first_name | treatments : date_of_treatment , treatment_type_code , treatment_id , professional_id , cost_of_treatment , dog_id | dogs : date_arrived , date_adopted , owner_id , weight , dog_id , size_code , name , date_of_birth , abandoned_yn , date_departed , age , gender , breed_code | breeds : breed_code , breed_name | charges : charge_amount , charge_id , charge_type | Guardians : street , city , home_phone , last_name , cell_number 271-6744x4507\", \"1-626-264-7659x1697\", \"762.589.6117x1328\", owner_id , zip_code , email_address , state , first_name", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "state": "Owners.state", + "first name": "Owners.first_name", + "last name": "Owners.last_name", + "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_id": "dog_kennels", + "orig_query": "select first_name, last_name, email_address from owners where state like '%North%'", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | Caretakers : home_phone (\"085.557.0379x84348\", \"01802479758\", \"(094)747-5094x8134\"), first_name (\"Gay\", \"Jaclyn\", \"Gay\"), owner_id (2, 10, 6), last_name (\"Funk\", \"Hauck\", \"Prohaska\"), street (\"0647 Hintz Village Apt. 024\", \"51934 Treutel Harbor\", \"2635 Caitlyn Plains\"), email_address (\"ybergstrom@example.com\", \"wpfeffer@example.net\", \"hudson.favian@example.com\"), state (\"Virginia\", \"Washington\", \"Maryland\"), cell_number (\"(722)768-5439x484\", \"739-136-7202\", \"1-626-264-7659x1697\"), zip_code (\"25609\", \"87304\", \"02647\"), city (\"Beerton\", \"Lake Carleyborough\", \"South Afton\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : first_name (\"Winfield\", \"Domenica\", \"Winfield\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"36895 Eli Ferry\nPort Marcelle, FL 45712\"), email_address (\"cole.margarita@example.org\", \"marquardt.furman@example.org\", \"lourdes.lowe@example.net\"), professional_id (9, 6, 8), last_name (\"Jacobs\", \"O'Reilly\", \"Tillman\"), state (\"Utah\", \"California\", \"SouthCarolina\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"246-951-0080x76716\", \"312.216.3352\", \"971.048.3763x9404\"), zip_code (\"77129\", \"54312\", \"52476\"), city (\"North Adelberttown\", \"Raynorfort\", \"New Maryjane\"), cell_number (\"00230569697\", \"139-321-7313\", \"461-801-2600\") | Guardians : home_phone (\"085.557.0379x84348\", \"01802479758\", \"(094)747-5094x8134\"), first_name (\"Gay\", \"Jaclyn\", \"Gay\"), owner_id (2, 10, 6), last_name (\"Funk\", \"Hauck\", \"Prohaska\"), street (\"0647 Hintz Village Apt. 024\", \"51934 Treutel Harbor\", \"2635 Caitlyn Plains\"), email_address (\"ybergstrom@example.com\", \"wpfeffer@example.net\", \"hudson.favian@example.com\"), state (\"Virginia\", \"Washington\", \"Maryland\"), cell_number (\"(722)768-5439x484\", \"739-136-7202\", \"1-626-264-7659x1697\"), zip_code (\"25609\", \"87304\", \"02647\"), city (\"Beerton\", \"Lake Carleyborough\", \"South Afton\") | dogs : age (\"6\", \"3\", \"8\"), gender (\"1\", \"0\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 04:42:14\", \"2018-03-25 04:42:14\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"9.8\", \"9.8\", \"2.18\"), date_of_birth (\"2012-07-11 17:15:10\", \"2015-02-26 21:31:22\", \"2012-05-03 21:42:25\"), date_adopted (\"2018-03-23 16:02:04\", \"2018-03-13 12:47:15\", \"2018-03-10 15:06:43\"), owner_id (6, 1, 1), abandoned_yn (\"1\", \"0\"), date_arrived (\"2017-12-29 23:24:13\", \"2017-10-16 20:06:21\", \"2018-01-17 11:44:16\"), name (\"Kacey\", \"Bessie\", \"Bessie\"), dog_id (14, 8, 2) | treatments : cost_of_treatment (428, 852, 852), dog_id (2, 1, 12), treatment_id (5, 2, 12), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-10 11:45:58\", \"2018-03-15 20:25:34\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (7, 14, 9)", + "schema_without_content": "breeds : breed_code , breed_name | treatment_types : treatment_type_description , treatment_type_code | charges : charge_id , charge_type , charge_amount | Caretakers : home_phone 747-5094x8134\", first_name , owner_id , last_name , street , email_address , state , cell_number 768-5439x484\", \"739-136-7202\", \"1-626-264-7659x1697\", zip_code , city | sizes : size_description , size_code | professionals : first_name , street , email_address , professional_id , last_name , state , role_code , home_phone , zip_code , city , cell_number | Guardians : home_phone 747-5094x8134\", first_name , owner_id , last_name , street , email_address , state , cell_number 768-5439x484\", \"739-136-7202\", \"1-626-264-7659x1697\", zip_code , city | dogs : age , gender , date_departed , size_code , breed_code , weight , date_of_birth , date_adopted , owner_id , abandoned_yn , date_arrived , name , dog_id | treatments : cost_of_treatment , dog_id , treatment_id , date_of_treatment , treatment_type_code , professional_id", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name": "Owners.first_name", + "last name": "Owners.last_name", + "email": "Owners.email_address", + "state": "Owners.state" + } + }, + { + "question": "how many #dogs# have an #age# below the average?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from dogs where age < (select avg(age) from dogs)", + "schema_with_content": "Canines : abandoned_yn (\"1\", \"0\"), dog_id (10, 13, 4), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 06:29:10\", \"2018-03-25 04:50:22\"), owner_id (12, 8, 8), date_adopted (\"2018-02-27 11:54:35\", \"2018-02-25 23:45:30\", \"2018-02-27 11:54:35\"), date_arrived (\"2017-06-18 19:45:38\", \"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\"), age (\"5\", \"1\", \"3\"), name (\"Troy\", \"Bessie\", \"George\"), date_of_birth (\"2012-05-03 21:42:25\", \"2013-02-13 05:15:21\", \"2018-03-17 04:05:12\"), weight (\"3.52\", \"9.48\", \"3.52\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : home_phone (\"(544)034-1670\", \"085.557.0379x84348\", \"1-346-655-5842x768\"), email_address (\"margaretta.runte@example.net\", \"wpfeffer@example.net\", \"edythe62@example.org\"), street (\"51934 Treutel Harbor\", \"2635 Caitlyn Plains\", \"59509 Mellie Mountain\"), last_name (\"Funk\", \"Haley\", \"Schmitt\"), first_name (\"Emelie\", \"Rolando\", \"Tre\"), state (\"Florida\", \"Indiana\", \"Maryland\"), zip_code (\"36871\", \"25609\", \"86010\"), city (\"Lake Tia\", \"Lake Jennyferfort\", \"Lake Carleyborough\"), owner_id (2, 12, 10), cell_number (\"1-739-421-2225x38148\", \"1-626-264-7659x1697\", \"+00(2)4323592985\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (13, 13, 2), cost_of_treatment (567, 139, 668), professional_id (4, 7, 10), dog_id (13, 7, 2), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-23 13:52:10\", \"2018-03-08 05:26:23\") | professionals : first_name (\"Taryn\", \"Domenica\", \"Vernice\"), home_phone (\"(230)338-3342x585\", \"+71(6)2898266914\", \"325-155-0801x7005\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"O'Reilly\", \"Considine\", \"Jacobs\"), cell_number (\"880-659-7577x736\", \"011.193.9081x3186\", \"1-258-285-4707x8020\"), email_address (\"goyette.roosevelt@example.net\", \"lourdes.lowe@example.net\", \"mekhi.little@example.org\"), street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (2, 11, 3), state (\"California\", \"Alabama\", \"Montana\"), zip_code (\"80775\", \"80775\", \"43129\"), city (\"New Maryjane\", \"New Maryjane\", \"New Laurytown\") | Pooches : abandoned_yn (\"1\", \"0\"), dog_id (10, 13, 4), size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 06:29:10\", \"2018-03-25 04:50:22\"), owner_id (12, 8, 8), date_adopted (\"2018-02-27 11:54:35\", \"2018-02-25 23:45:30\", \"2018-02-27 11:54:35\"), date_arrived (\"2017-06-18 19:45:38\", \"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\"), age (\"5\", \"1\", \"3\"), name (\"Troy\", \"Bessie\", \"George\"), date_of_birth (\"2012-05-03 21:42:25\", \"2013-02-13 05:15:21\", \"2018-03-17 04:05:12\"), weight (\"3.52\", \"9.48\", \"3.52\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "Canines : abandoned_yn , dog_id , size_code , gender , breed_code , date_departed , owner_id , date_adopted , date_arrived , age , name , date_of_birth , weight | treatment_types : treatment_type_code , treatment_type_description | owners : home_phone 034-1670\", \"085.557.0379x84348\", \"1-346-655-5842x768\", email_address , street , last_name , first_name , state , zip_code , city , owner_id , cell_number 4323592985\" | breeds : breed_code , breed_name | treatments : treatment_type_code , treatment_id , cost_of_treatment , professional_id , dog_id , date_of_treatment | professionals : first_name , home_phone 338-3342x585\", \"+712898266914\", \"325-155-0801x7005\", role_code , last_name , cell_number , email_address , street , professional_id , state , zip_code , city | Pooches : abandoned_yn , dog_id , size_code , gender , breed_code , date_departed , owner_id , date_adopted , date_arrived , age , name , date_of_birth , weight | charges : charge_type , charge_amount , charge_id | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dogs": "Dogs", + "age": "Dogs.age" + } + }, + { + "question": "count the #number of dogs# of an #age# below the average.", + "db_id": "dog_kennels", + "orig_query": "select count(*) from dogs where age < (select avg(age) from dogs)", + "schema_with_content": "Canines : abandoned_yn (\"1\", \"0\"), date_of_birth (\"2017-09-19 05:39:09\", \"2012-05-03 21:42:25\", \"2008-05-30 12:51:34\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"8\", \"3\", \"2\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-03-25 08:12:51\", \"2018-03-07 21:45:43\"), gender (\"1\", \"0\"), owner_id (5, 8, 1), dog_id (3, 5, 1), name (\"George\", \"Bessie\", \"Evangeline\"), weight (\"1.72\", \"8.95\", \"8.95\"), date_arrived (\"2017-12-22 05:02:02\", \"2018-01-17 11:44:16\", \"2017-12-22 05:02:02\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatments : date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-13 12:22:58\", \"2018-03-13 12:22:58\"), dog_id (14, 7, 15), cost_of_treatment (567, 428, 313), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (14, 7, 7), treatment_id (4, 9, 15) | professionals : professional_id (11, 11, 9), cell_number (\"1-258-285-4707x8020\", \"880-659-7577x736\", \"461-801-2600\"), state (\"NewMexico\", \"Montana\", \"Montana\"), email_address (\"lucile.shanahan@example.org\", \"goyette.roosevelt@example.net\", \"uboehm@example.org\"), home_phone (\"(920)304-4499x59146\", \"971.048.3763x9404\", \"325-155-0801x7005\"), city (\"Domenickton\", \"East Ila\", \"Domenickton\"), first_name (\"Brady\", \"Velva\", \"Brady\"), role_code (\"Employee\", \"Veterenarian\"), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"72532 Hane Course\nLake Berylland, ND 95283\"), zip_code (\"02281\", \"06646\", \"06646\"), last_name (\"Frami\", \"Tillman\", \"Jacobs\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | owners : owner_id (8, 2, 6), last_name (\"Prohaska\", \"DuBuque\", \"Hauck\"), city (\"Port Zackery\", \"South Daisyfurt\", \"East Hillardberg\"), home_phone (\"(058)997-7627\", \"(544)034-1670\", \"(544)034-1670\"), street (\"60352 Kayleigh Crossing Suite 700\", \"1204 Mae Highway Apt. 107\", \"692 Jaskolski Forges\"), state (\"Florida\", \"Pennsylvania\", \"Maryland\"), email_address (\"ymaggio@example.com\", \"edythe62@example.org\", \"ybergstrom@example.com\"), zip_code (\"22693\", \"93165\", \"22693\"), first_name (\"Gay\", \"Rachelle\", \"Nora\"), cell_number (\"478.978.0729\", \"633.455.3045x85484\", \"+00(2)4323592985\") | Pooches : abandoned_yn (\"1\", \"0\"), date_of_birth (\"2017-09-19 05:39:09\", \"2012-05-03 21:42:25\", \"2008-05-30 12:51:34\"), date_departed (\"2018-03-25 04:50:22\", \"2018-03-25 13:07:04\", \"2018-03-25 04:42:14\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"8\", \"3\", \"2\"), size_code (\"LGE\", \"MED\", \"SML\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-03-25 08:12:51\", \"2018-03-07 21:45:43\"), gender (\"1\", \"0\"), owner_id (5, 8, 1), dog_id (3, 5, 1), name (\"George\", \"Bessie\", \"Evangeline\"), weight (\"1.72\", \"8.95\", \"8.95\"), date_arrived (\"2017-12-22 05:02:02\", \"2018-01-17 11:44:16\", \"2017-12-22 05:02:02\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\")", + "schema_without_content": "Canines : abandoned_yn , date_of_birth , date_departed , breed_code , age , size_code , date_adopted , gender , owner_id , dog_id , name , weight , date_arrived | breeds : breed_name , breed_code | treatments : date_of_treatment , dog_id , cost_of_treatment , treatment_type_code , professional_id , treatment_id | professionals : professional_id , cell_number , state , email_address , home_phone 304-4499x59146\", \"971.048.3763x9404\", \"325-155-0801x7005\", city , first_name , role_code , street , zip_code , last_name | charges : charge_type , charge_id , charge_amount | owners : owner_id , last_name , city , home_phone 997-7627\", \"034-1670\", \"034-1670\", street , state , email_address , zip_code , first_name , cell_number 4323592985\" | Pooches : abandoned_yn , date_of_birth , date_departed , breed_code , age , size_code , date_adopted , gender , owner_id , dog_id , name , weight , date_arrived | treatment_types : treatment_type_code , treatment_type_description | sizes : size_code , size_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "number of dogs": "Dogs", + "age": "Dogs.age" + } + }, + { + "question": "how much does the #most recent treatment cost# ?", + "db_id": "dog_kennels", + "orig_query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", + "schema_with_content": "sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | dogs : name (\"Merritt\", \"Holden\", \"Jeffrey\"), age (\"1\", \"6\", \"2\"), dog_id (10, 4, 4), abandoned_yn (\"1\", \"0\"), owner_id (5, 10, 14), date_adopted (\"2018-03-18 07:47:40\", \"2018-02-27 00:27:57\", \"2018-03-21 10:41:18\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_of_birth (\"2012-05-03 21:42:25\", \"2010-11-11 07:11:53\", \"2012-10-14 14:44:37\"), weight (\"8.96\", \"1.39\", \"2.18\"), date_arrived (\"2017-09-08 20:10:13\", \"2017-10-16 20:06:21\", \"2018-01-17 11:44:16\"), gender (\"1\", \"0\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 04:50:22\", \"2018-03-24 19:36:59\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | professionals : professional_id (8, 4, 9), state (\"NorthCarolina\", \"Utah\", \"Montana\"), last_name (\"Murazik\", \"Braun\", \"Considine\"), first_name (\"Ruben\", \"Velva\", \"Ruben\"), email_address (\"lourdes.lowe@example.net\", \"lucile.shanahan@example.org\", \"deanna.schuster@example.com\"), cell_number (\"1-181-670-9466\", \"609-405-2990\", \"(275)939-2435x80863\"), role_code (\"Employee\", \"Veterenarian\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), home_phone (\"022.529.0550x1319\", \"971.048.3763x9404\", \"346.594.3739\"), zip_code (\"41215\", \"80775\", \"02281\"), city (\"New Laurytown\", \"East Ila\", \"Kirastad\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : city (\"Lake Carleyborough\", \"East Hillardberg\", \"Lake Jennyferfort\"), email_address (\"marks.gail@example.org\", \"fschoen@example.net\", \"zboncak.madonna@example.net\"), first_name (\"Melisa\", \"Tre\", \"Emelie\"), state (\"Washington\", \"NorthDakota\", \"Indiana\"), street (\"89011 Kertzmann Spring Suite 642\", \"1858 Jan Park\", \"60352 Kayleigh Crossing Suite 700\"), home_phone (\"(094)747-5094x8134\", \"(544)034-1670\", \"(094)747-5094x8134\"), cell_number (\"633.455.3045x85484\", \"633.455.3045x85484\", \"341.667.8085\"), owner_id (2, 9, 15), zip_code (\"86010\", \"78297\", \"35747\"), last_name (\"Schmitt\", \"Hamill\", \"Price\") | therapies : date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-01 04:14:46\", \"2018-03-23 13:52:10\"), treatment_id (7, 10, 13), dog_id (13, 7, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (945, 313, 349), professional_id (8, 10, 10) | procedures : date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-01 04:14:46\", \"2018-03-23 13:52:10\"), treatment_id (7, 10, 13), dog_id (13, 7, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (945, 313, 349), professional_id (8, 10, 10) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "sizes : size_description , size_code | dogs : name , age , dog_id , abandoned_yn , owner_id , date_adopted , breed_code , date_of_birth , weight , date_arrived , gender , date_departed , size_code | charges : charge_id , charge_amount , charge_type | professionals : professional_id , state , last_name , first_name , email_address , cell_number 939-2435x80863\", role_code , street , home_phone , zip_code , city | treatment_types : treatment_type_code , treatment_type_description | owners : city , email_address , first_name , state , street , home_phone 747-5094x8134\", \"034-1670\", \"747-5094x8134\", cell_number , owner_id , zip_code , last_name | therapies : date_of_treatment , treatment_id , dog_id , treatment_type_code , cost_of_treatment , professional_id | procedures : date_of_treatment , treatment_id , dog_id , treatment_type_code , cost_of_treatment , professional_id | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "most recent treatment cost": "Treatments.cost_of_treatment" + } + }, + { + "question": "show me the #cost of the most recently performed treatment# .", + "db_id": "dog_kennels", + "orig_query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | dogs : age (\"2\", \"6\", \"2\"), gender (\"1\", \"0\"), date_of_birth (\"2017-09-19 05:39:09\", \"2012-10-14 14:44:37\", \"2009-04-12 06:02:48\"), weight (\"7.57\", \"1.39\", \"7.57\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Houston\", \"Hipolito\", \"Lyric\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-25 06:29:10\", \"2018-03-24 19:12:22\"), abandoned_yn (\"1\", \"0\"), owner_id (8, 6, 6), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-05 06:05:23\", \"2018-02-27 11:54:35\"), date_arrived (\"2017-12-29 23:24:13\", \"2017-10-25 00:55:34\", \"2018-01-02 03:15:29\"), dog_id (15, 7, 8), size_code (\"LGE\", \"MED\", \"SML\") | professionals : city (\"Juddton\", \"New Maryjane\", \"South Rockyport\"), state (\"Wyoming\", \"Wyoming\", \"Wyoming\"), first_name (\"Winfield\", \"Velva\", \"Ruben\"), email_address (\"goyette.roosevelt@example.net\", \"goyette.roosevelt@example.net\", \"deanna.schuster@example.com\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), cell_number (\"499-434-0215x1628\", \"962-983-8109x3509\", \"139-321-7313\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"312.216.3352\", \"320-508-6023\", \"+02(1)0259033559\"), last_name (\"Frami\", \"Braun\", \"Hyatt\"), zip_code (\"07412\", \"34041\", \"02281\"), professional_id (8, 1, 8) | therapies : dog_id (1, 2, 1), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 14, 7), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-16 10:27:36\", \"2018-03-16 10:27:36\"), treatment_id (14, 15, 13), cost_of_treatment (139, 313, 349) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | procedures : dog_id (1, 2, 1), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (10, 14, 7), date_of_treatment (\"2018-03-11 04:23:15\", \"2018-03-16 10:27:36\", \"2018-03-16 10:27:36\"), treatment_id (14, 15, 13), cost_of_treatment (139, 313, 349) | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | owners : zip_code (\"25609\", \"02647\", \"22693\"), last_name (\"Funk\", \"DuBuque\", \"Mertz\"), owner_id (6, 14, 5), home_phone (\"(544)034-1670\", \"130-796-4589x05454\", \"(799)563-0260x454\"), first_name (\"Gay\", \"Gay\", \"Lorenz\"), city (\"Port Zackery\", \"Port Reannamouth\", \"Barrettburgh\"), cell_number (\"121.381.3316x6535\", \"762.589.6117x1328\", \"633.455.3045x85484\"), email_address (\"ymaggio@example.com\", \"pearlie18@example.com\", \"fschoen@example.net\"), state (\"SouthDakota\", \"Vermont\", \"Washington\"), street (\"89011 Kertzmann Spring Suite 642\", \"60352 Kayleigh Crossing Suite 700\", \"2417 Keara Stravenue Apt. 146\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | dogs : age , gender , date_of_birth , weight , breed_code , name , date_departed , abandoned_yn , owner_id , date_adopted , date_arrived , dog_id , size_code | professionals : city , state , first_name , email_address , street , cell_number , role_code , home_phone 0259033559\", last_name , zip_code , professional_id | therapies : dog_id , treatment_type_code , professional_id , date_of_treatment , treatment_id , cost_of_treatment | breeds : breed_code , breed_name | procedures : dog_id , treatment_type_code , professional_id , date_of_treatment , treatment_id , cost_of_treatment | charges : charge_id , charge_type , charge_amount | sizes : size_description , size_code | owners : zip_code , last_name , owner_id , home_phone 034-1670\", \"130-796-4589x05454\", \"563-0260x454\", first_name , city , cell_number , email_address , state , street", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "cost of the most recently performed treatment": "Treatments.cost_of_treatment" + } + }, + { + "question": "how many #dogs# have not gone through any #treatment# ?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from dogs where dog_id not in (select dog_id from treatments)", + "schema_with_content": "Canines : date_arrived (\"2017-10-25 00:55:34\", \"2017-10-16 20:06:21\", \"2017-09-08 20:10:13\"), name (\"Troy\", \"Narciso\", \"Evangeline\"), owner_id (3, 1, 3), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 13:07:04\", \"2018-03-24 19:12:22\"), gender (\"1\", \"0\"), weight (\"8.04\", \"3.52\", \"5.16\"), age (\"4\", \"8\", \"6\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (1, 8, 7), date_adopted (\"2018-03-10 15:06:43\", \"2018-03-05 06:05:23\", \"2018-02-27 00:27:57\"), date_of_birth (\"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\", \"2012-07-11 17:15:10\") | professionals : email_address (\"jeichmann@example.com\", \"jeichmann@example.com\", \"schneider.kathryne@example.org\"), city (\"East Ila\", \"Raynorfort\", \"South Rockyport\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"O'Reilly\", \"O'Reilly\", \"Tillman\"), cell_number (\"(275)939-2435x80863\", \"880-659-7577x736\", \"609-405-2990\"), state (\"Wyoming\", \"California\", \"Wisconsin\"), zip_code (\"84515\", \"07412\", \"41215\"), professional_id (10, 8, 15), home_phone (\"891.475.2256\", \"325-155-0801x7005\", \"246-951-0080x76716\"), first_name (\"Winfield\", \"Winfield\", \"Domenica\") | Pooches : date_arrived (\"2017-10-25 00:55:34\", \"2017-10-16 20:06:21\", \"2017-09-08 20:10:13\"), name (\"Troy\", \"Narciso\", \"Evangeline\"), owner_id (3, 1, 3), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 13:07:04\", \"2018-03-24 19:12:22\"), gender (\"1\", \"0\"), weight (\"8.04\", \"3.52\", \"5.16\"), age (\"4\", \"8\", \"6\"), size_code (\"LGE\", \"MED\", \"SML\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), dog_id (1, 8, 7), date_adopted (\"2018-03-10 15:06:43\", \"2018-03-05 06:05:23\", \"2018-02-27 00:27:57\"), date_of_birth (\"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\", \"2012-07-11 17:15:10\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | treatments : professional_id (6, 7, 6), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (349, 349, 656), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-23 13:52:10\", \"2018-03-11 04:23:15\"), dog_id (4, 12, 7), treatment_id (8, 9, 14) | owners : street (\"0647 Hintz Village Apt. 024\", \"15828 Spencer Extensions\", \"57382 Yost Ridges\"), owner_id (9, 12, 15), home_phone (\"066.264.7885\", \"1-346-655-5842x768\", \"916.976.9480x13851\"), first_name (\"Lorenz\", \"Orlando\", \"Johann\"), state (\"Washington\", \"Washington\", \"SouthDakota\"), last_name (\"Rippin\", \"Ondricka\", \"Schmitt\"), cell_number (\"633.455.3045x85484\", \"762.589.6117x1328\", \"121.381.3316x6535\"), email_address (\"kturner@example.net\", \"angeline99@example.com\", \"ybergstrom@example.com\"), zip_code (\"61019\", \"22731\", \"45244\"), city (\"South Daisyfurt\", \"Port Zackery\", \"Port Reannamouth\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\")", + "schema_without_content": "Canines : date_arrived , name , owner_id , abandoned_yn , date_departed , gender , weight , age , size_code , breed_code , dog_id , date_adopted , date_of_birth | professionals : email_address , city , street , role_code , last_name , cell_number 939-2435x80863\", \"880-659-7577x736\", \"609-405-2990\", state , zip_code , professional_id , home_phone , first_name | Pooches : date_arrived , name , owner_id , abandoned_yn , date_departed , gender , weight , age , size_code , breed_code , dog_id , date_adopted , date_of_birth | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | treatments : professional_id , treatment_type_code , cost_of_treatment , date_of_treatment , dog_id , treatment_id | owners : street , owner_id , home_phone , first_name , state , last_name , cell_number , email_address , zip_code , city | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dogs": "Dogs", + "treatment": "Treatments.dog_id" + } + }, + { + "question": "how many #dogs# have not gone through any #treatment# ?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from dogs where dog_id not in (select dog_id from treatments)", + "schema_with_content": "professionals : first_name (\"Lesly\", \"Vernice\", \"Danny\"), state (\"Montana\", \"Hawaii\", \"Wyoming\"), city (\"North Odellfurt\", \"East Ila\", \"West Heidi\"), street (\"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), cell_number (\"499-434-0215x1628\", \"499-434-0215x1628\", \"1-181-670-9466\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"41215\", \"52476\", \"54312\"), email_address (\"jerrod.bahringer@example.org\", \"deanna.schuster@example.com\", \"jerrod.bahringer@example.org\"), home_phone (\"320-508-6023\", \"1-138-287-3775\", \"1-609-566-2752x25197\"), professional_id (2, 8, 7), last_name (\"Braun\", \"Walter\", \"Hayes\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), gender (\"1\", \"0\"), dog_id (10, 13, 14), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-22 05:02:02\", \"2017-06-25 10:14:05\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"2\", \"3\", \"4\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-24 19:12:22\", \"2018-03-25 04:42:14\"), date_adopted (\"2018-03-06 16:32:11\", \"2018-03-10 15:06:43\", \"2018-03-08 15:03:00\"), owner_id (6, 5, 6), weight (\"7.57\", \"7.57\", \"8.16\"), date_of_birth (\"2009-04-12 06:02:48\", \"2012-07-11 17:15:10\", \"2013-02-20 14:50:56\"), name (\"Evangeline\", \"Jeffrey\", \"Jesus\") | procedures : cost_of_treatment (407, 147, 681), treatment_id (7, 6, 2), professional_id (14, 5, 8), dog_id (14, 14, 12), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-15 20:25:34\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | owners : last_name (\"Mertz\", \"Rippin\", \"Hauck\"), zip_code (\"78297\", \"22693\", \"25609\"), owner_id (6, 2, 1), home_phone (\"130-796-4589x05454\", \"(544)034-1670\", \"(799)563-0260x454\"), cell_number (\"559.874.3011x989\", \"1-626-264-7659x1697\", \"(257)399-3116\"), street (\"59509 Mellie Mountain\", \"60352 Kayleigh Crossing Suite 700\", \"9212 Rosenbaum Lights\"), first_name (\"Heather\", \"Lorenz\", \"Lorenz\"), city (\"East Hillardberg\", \"Brakusfurt\", \"East Hillardberg\"), email_address (\"lynn81@example.org\", \"zboncak.madonna@example.net\", \"edythe62@example.org\"), state (\"Florida\", \"Wisconsin\", \"Pennsylvania\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | therapies : cost_of_treatment (407, 147, 681), treatment_id (7, 6, 2), professional_id (14, 5, 8), dog_id (14, 14, 12), date_of_treatment (\"2018-03-14 19:10:40\", \"2018-03-15 20:25:34\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "professionals : first_name , state , city , street , cell_number , role_code , zip_code , email_address , home_phone , professional_id , last_name | dogs : size_code , gender , dog_id , date_arrived , breed_code , age , abandoned_yn , date_departed , date_adopted , owner_id , weight , date_of_birth , name | procedures : cost_of_treatment , treatment_id , professional_id , dog_id , date_of_treatment , treatment_type_code | owners : last_name , zip_code , owner_id , home_phone 034-1670\", \"563-0260x454\", cell_number 399-3116\", street , first_name , city , email_address , state | sizes : size_code , size_description | therapies : cost_of_treatment , treatment_id , professional_id , dog_id , date_of_treatment , treatment_type_code | charges : charge_id , charge_type , charge_amount | treatment_types : treatment_type_description , treatment_type_code | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dogs": "Dogs", + "treatment": "Treatments.dog_id" + } + }, + { + "question": "how many #owners# temporarily #do not have any dogs# ?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from owners where owner_id not in (select owner_id from dogs)", + "schema_with_content": "Caretakers : owner_id (6, 15, 1), home_phone (\"363.948.1090\", \"085.557.0379x84348\", \"1-682-845-0116x63235\"), first_name (\"Heather\", \"Kade\", \"Jaclyn\"), cell_number (\"(257)399-3116\", \"(722)768-5439x484\", \"739-136-7202\"), last_name (\"Stoltenberg\", \"Hamill\", \"Schmitt\"), zip_code (\"45244\", \"25609\", \"00589\"), street (\"9212 Rosenbaum Lights\", \"57382 Yost Ridges\", \"60352 Kayleigh Crossing Suite 700\"), state (\"Vermont\", \"SouthDakota\", \"Virginia\"), email_address (\"wpfeffer@example.net\", \"margaretta.runte@example.net\", \"pearlie18@example.com\"), city (\"Port Zackery\", \"South Afton\", \"Port Reannamouth\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | professionals : cell_number (\"011.193.9081x3186\", \"139-321-7313\", \"889-940-2676\"), last_name (\"Hayes\", \"Hayes\", \"Braun\"), professional_id (1, 9, 4), email_address (\"lambert62@example.org\", \"cole.margarita@example.org\", \"goyette.roosevelt@example.net\"), state (\"California\", \"Alabama\", \"SouthCarolina\"), zip_code (\"98844\", \"84515\", \"07412\"), city (\"Juddton\", \"Domenickton\", \"Domenickton\"), first_name (\"Domenica\", \"Vernice\", \"Ruben\"), role_code (\"Employee\", \"Veterenarian\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\", \"6915 Oberbrunner Point Suite 491\nGleasonville, LA \"), home_phone (\"+02(1)0259033559\", \"312.216.3352\", \"1-138-287-3775\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | dogs : abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 04:50:22\", \"2018-03-25 15:05:16\"), weight (\"3.52\", \"4.36\", \"5.16\"), name (\"Lyric\", \"Houston\", \"Merritt\"), gender (\"1\", \"0\"), date_adopted (\"2018-03-21 10:41:18\", \"2018-03-10 15:06:43\", \"2018-03-14 08:05:18\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_arrived (\"2017-07-25 15:19:07\", \"2017-12-29 06:08:26\", \"2017-12-22 05:02:02\"), dog_id (5, 14, 9), age (\"1\", \"1\", \"4\"), date_of_birth (\"2009-04-12 06:02:48\", \"2015-02-26 21:31:22\", \"2008-10-09 22:38:53\"), size_code (\"LGE\", \"MED\", \"SML\"), owner_id (12, 2, 10) | Guardians : owner_id (6, 15, 1), home_phone (\"363.948.1090\", \"085.557.0379x84348\", \"1-682-845-0116x63235\"), first_name (\"Heather\", \"Kade\", \"Jaclyn\"), cell_number (\"(257)399-3116\", \"(722)768-5439x484\", \"739-136-7202\"), last_name (\"Stoltenberg\", \"Hamill\", \"Schmitt\"), zip_code (\"45244\", \"25609\", \"00589\"), street (\"9212 Rosenbaum Lights\", \"57382 Yost Ridges\", \"60352 Kayleigh Crossing Suite 700\"), state (\"Vermont\", \"SouthDakota\", \"Virginia\"), email_address (\"wpfeffer@example.net\", \"margaretta.runte@example.net\", \"pearlie18@example.com\"), city (\"Port Zackery\", \"South Afton\", \"Port Reannamouth\") | treatments : treatment_id (8, 2, 14), date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-04 20:33:43\", \"2018-03-01 04:14:46\"), professional_id (14, 8, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (12, 4, 10), cost_of_treatment (147, 514, 567) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "Caretakers : owner_id , home_phone , first_name , cell_number 399-3116\", \"768-5439x484\", \"739-136-7202\", last_name , zip_code , street , state , email_address , city | sizes : size_code , size_description | professionals : cell_number , last_name , professional_id , email_address , state , zip_code , city , first_name , role_code , street , home_phone 0259033559\", \"312.216.3352\", \"1-138-287-3775\" | treatment_types : treatment_type_code , treatment_type_description | charges : charge_amount , charge_type , charge_id | dogs : abandoned_yn , date_departed , weight , name , gender , date_adopted , breed_code , date_arrived , dog_id , age , date_of_birth , size_code , owner_id | Guardians : owner_id , home_phone , first_name , cell_number 399-3116\", \"768-5439x484\", \"739-136-7202\", last_name , zip_code , street , state , email_address , city | treatments : treatment_id , date_of_treatment , professional_id , treatment_type_code , dog_id , cost_of_treatment | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owners": "Owners", + "do not have any dogs": "Dogs.owner_id" + } + }, + { + "question": "how many #owners# temporarily #do not have any dogs# ?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from owners where owner_id not in (select owner_id from dogs)", + "schema_with_content": "owners : email_address (\"fschoen@example.net\", \"christy49@example.org\", \"zboncak.madonna@example.net\"), zip_code (\"86010\", \"86010\", \"25609\"), last_name (\"Prohaska\", \"Prohaska\", \"Nicolas\"), cell_number (\"739-136-7202\", \"(257)399-3116\", \"1-739-421-2225x38148\"), first_name (\"Emelie\", \"Gay\", \"Lorenz\"), owner_id (15, 14, 12), home_phone (\"916.976.9480x13851\", \"01802479758\", \"066.264.7885\"), state (\"Arizona\", \"Virginia\", \"Indiana\"), city (\"Lake Tia\", \"Lake Tia\", \"Port Reannamouth\"), street (\"15828 Spencer Extensions\", \"2417 Keara Stravenue Apt. 146\", \"59509 Mellie Mountain\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : street (\"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"68589 Bradly Manor\nNew Audrey, IN 91497\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), first_name (\"Taryn\", \"Olaf\", \"Domenica\"), cell_number (\"00230569697\", \"889-940-2676\", \"499-434-0215x1628\"), city (\"Borisside\", \"West Heidi\", \"Kirastad\"), zip_code (\"54312\", \"54312\", \"98844\"), state (\"Montana\", \"Connecticut\", \"SouthCarolina\"), email_address (\"mekhi.little@example.org\", \"delphine29@example.com\", \"marquardt.furman@example.org\"), last_name (\"Kshlerin\", \"Frami\", \"Christiansen\"), professional_id (15, 11, 13), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"246-951-0080x76716\", \"891.475.2256\", \"891.475.2256\") | treatments : dog_id (1, 7, 15), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (313, 567, 429), professional_id (10, 10, 14), date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-08 05:26:23\", \"2018-03-15 19:10:02\"), treatment_id (15, 12, 11) | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Canines : dog_id (12, 5, 6), date_arrived (\"2017-04-15 09:25:31\", \"2017-07-25 15:19:07\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 05:07:47\", \"2018-03-24 23:48:59\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-02-27 11:54:35\", \"2018-03-21 10:41:18\"), age (\"3\", \"9\", \"8\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (14, 10, 7), gender (\"1\", \"0\"), weight (\"3.52\", \"5.16\", \"9.48\"), name (\"Kacey\", \"Merritt\", \"Mavis\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2017-09-19 05:39:09\", \"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | Pooches : dog_id (12, 5, 6), date_arrived (\"2017-04-15 09:25:31\", \"2017-07-25 15:19:07\", \"2017-10-16 20:06:21\"), abandoned_yn (\"1\", \"0\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 05:07:47\", \"2018-03-24 23:48:59\"), date_adopted (\"2018-02-25 23:45:30\", \"2018-02-27 11:54:35\", \"2018-03-21 10:41:18\"), age (\"3\", \"9\", \"8\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (14, 10, 7), gender (\"1\", \"0\"), weight (\"3.52\", \"5.16\", \"9.48\"), name (\"Kacey\", \"Merritt\", \"Mavis\"), size_code (\"LGE\", \"MED\", \"SML\"), date_of_birth (\"2017-09-19 05:39:09\", \"2015-02-26 21:31:22\", \"2013-02-13 05:15:21\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "owners : email_address , zip_code , last_name , cell_number 399-3116\", \"1-739-421-2225x38148\", first_name , owner_id , home_phone , state , city , street | sizes : size_description , size_code | professionals : street , first_name , cell_number , city , zip_code , state , email_address , last_name , professional_id , role_code , home_phone | treatments : dog_id , treatment_type_code , cost_of_treatment , professional_id , date_of_treatment , treatment_id | charges : charge_amount , charge_id , charge_type | Canines : dog_id , date_arrived , abandoned_yn , date_departed , date_adopted , age , breed_code , owner_id , gender , weight , name , size_code , date_of_birth | breeds : breed_name , breed_code | Pooches : dog_id , date_arrived , abandoned_yn , date_departed , date_adopted , age , breed_code , owner_id , gender , weight , name , size_code , date_of_birth | treatment_types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "owners": "Owners", + "do not have any dogs": "Dogs.owner_id" + } + }, + { + "question": "find the #number of owners# who #do not own any dogs# at this moment.", + "db_id": "dog_kennels", + "orig_query": "select count(*) from owners where owner_id not in (select owner_id from dogs)", + "schema_with_content": "dogs : date_arrived (\"2018-01-17 11:44:16\", \"2017-04-20 00:58:55\", \"2017-07-25 15:19:07\"), dog_id (14, 6, 8), date_of_birth (\"2013-02-13 05:15:21\", \"2012-05-31 08:01:36\", \"2012-05-31 08:01:36\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Narciso\", \"Narciso\", \"Hipolito\"), age (\"2\", \"3\", \"2\"), weight (\"7.57\", \"4.36\", \"5.16\"), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 02:47:40\", \"2018-03-25 04:50:22\"), owner_id (8, 13, 2), gender (\"1\", \"0\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-08 15:03:00\", \"2018-03-10 15:06:43\"), abandoned_yn (\"1\", \"0\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Caretakers : street (\"2417 Keara Stravenue Apt. 146\", \"51934 Treutel Harbor\", \"2635 Caitlyn Plains\"), email_address (\"fschoen@example.net\", \"christy49@example.org\", \"kturner@example.net\"), cell_number (\"+00(2)4323592985\", \"121.381.3316x6535\", \"739-136-7202\"), first_name (\"Nora\", \"Orlando\", \"Adelle\"), state (\"SouthDakota\", \"Mississippi\", \"Arkansas\"), last_name (\"Haley\", \"Ondricka\", \"Funk\"), home_phone (\"(799)563-0260x454\", \"(094)747-5094x8134\", \"085.557.0379x84348\"), zip_code (\"25609\", \"25609\", \"86010\"), city (\"Beerton\", \"Brakusfurt\", \"East Maribelbury\"), owner_id (8, 15, 7) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Guardians : street (\"2417 Keara Stravenue Apt. 146\", \"51934 Treutel Harbor\", \"2635 Caitlyn Plains\"), email_address (\"fschoen@example.net\", \"christy49@example.org\", \"kturner@example.net\"), cell_number (\"+00(2)4323592985\", \"121.381.3316x6535\", \"739-136-7202\"), first_name (\"Nora\", \"Orlando\", \"Adelle\"), state (\"SouthDakota\", \"Mississippi\", \"Arkansas\"), last_name (\"Haley\", \"Ondricka\", \"Funk\"), home_phone (\"(799)563-0260x454\", \"(094)747-5094x8134\", \"085.557.0379x84348\"), zip_code (\"25609\", \"25609\", \"86010\"), city (\"Beerton\", \"Brakusfurt\", \"East Maribelbury\"), owner_id (8, 15, 7) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatments : cost_of_treatment (567, 656, 656), dog_id (12, 13, 7), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-24 22:25:58\", \"2018-03-23 13:52:10\", \"2018-03-16 10:27:36\"), professional_id (7, 10, 8), treatment_id (13, 15, 10) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | professionals : role_code (\"Employee\", \"Veterenarian\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), first_name (\"Lesly\", \"Olaf\", \"Danny\"), home_phone (\"+43(5)1132733868\", \"(230)338-3342x585\", \"1-609-566-2752x25197\"), zip_code (\"77129\", \"17902\", \"02281\"), email_address (\"uboehm@example.org\", \"delphine29@example.com\", \"lourdes.lowe@example.net\"), state (\"Montana\", \"Mississippi\", \"Indiana\"), last_name (\"Murazik\", \"Murazik\", \"Hyatt\"), cell_number (\"880-659-7577x736\", \"1-181-670-9466\", \"(275)939-2435x80863\"), city (\"West Heidi\", \"North Odellfurt\", \"East Ila\"), professional_id (4, 7, 7)", + "schema_without_content": "dogs : date_arrived , dog_id , date_of_birth , breed_code , name , age , weight , size_code , date_departed , owner_id , gender , date_adopted , abandoned_yn | treatment_types : treatment_type_description , treatment_type_code | Caretakers : street , email_address , cell_number 4323592985\", \"121.381.3316x6535\", \"739-136-7202\", first_name , state , last_name , home_phone 563-0260x454\", \"747-5094x8134\", \"085.557.0379x84348\", zip_code , city , owner_id | sizes : size_code , size_description | Guardians : street , email_address , cell_number 4323592985\", \"121.381.3316x6535\", \"739-136-7202\", first_name , state , last_name , home_phone 563-0260x454\", \"747-5094x8134\", \"085.557.0379x84348\", zip_code , city , owner_id | breeds : breed_name , breed_code | treatments : cost_of_treatment , dog_id , treatment_type_code , date_of_treatment , professional_id , treatment_id | charges : charge_type , charge_amount , charge_id | professionals : role_code , street , first_name , home_phone 1132733868\", \"338-3342x585\", \"1-609-566-2752x25197\", zip_code , email_address , state , last_name , cell_number 939-2435x80863\", city , professional_id", + "extra_map": null, + "extra_table_map": { + "owners": [ + "Guardians", + "Caretakers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "number of owners": "Owners.owner_id", + "do not own any dogs": "Dogs.owner_id" + } + }, + { + "question": "find the #number of owners# who #do not own any dogs# at this moment.", + "db_id": "dog_kennels", + "orig_query": "select count(*) from owners where owner_id not in (select owner_id from dogs)", + "schema_with_content": "Pooches : abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"2\", \"4\", \"2\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"8.95\", \"4.01\", \"8.04\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\", \"2017-05-06 08:03:52\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 02:47:40\", \"2018-03-25 13:07:04\"), date_of_birth (\"2015-02-26 21:31:22\", \"2012-10-14 14:44:37\", \"2012-07-11 17:15:10\"), name (\"Troy\", \"Merritt\", \"Lyric\"), dog_id (4, 6, 7), gender (\"1\", \"0\"), owner_id (10, 14, 5), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-05 06:05:23\", \"2018-03-06 16:32:11\") | treatments : cost_of_treatment (407, 668, 313), dog_id (12, 12, 12), treatment_id (15, 7, 6), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-10 11:45:58\", \"2018-03-13 12:22:58\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (7, 5, 5) | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Canines : abandoned_yn (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"2\", \"4\", \"2\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), weight (\"8.95\", \"4.01\", \"8.04\"), date_arrived (\"2018-01-02 03:15:29\", \"2017-06-25 10:14:05\", \"2017-05-06 08:03:52\"), date_departed (\"2018-03-25 13:07:04\", \"2018-03-25 02:47:40\", \"2018-03-25 13:07:04\"), date_of_birth (\"2015-02-26 21:31:22\", \"2012-10-14 14:44:37\", \"2012-07-11 17:15:10\"), name (\"Troy\", \"Merritt\", \"Lyric\"), dog_id (4, 6, 7), gender (\"1\", \"0\"), owner_id (10, 14, 5), date_adopted (\"2018-03-07 21:45:43\", \"2018-03-05 06:05:23\", \"2018-03-06 16:32:11\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : professional_id (5, 5, 4), state (\"SouthCarolina\", \"Mississippi\", \"NorthCarolina\"), street (\"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\"), city (\"Raynorfort\", \"Raynorfort\", \"North Odellfurt\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"84515\", \"52476\", \"41215\"), cell_number (\"139-321-7313\", \"880-659-7577x736\", \"011.193.9081x3186\"), last_name (\"Murazik\", \"Ullrich\", \"Ullrich\"), email_address (\"delphine29@example.com\", \"delphine29@example.com\", \"cole.margarita@example.org\"), home_phone (\"1-138-287-3775\", \"+02(1)0259033559\", \"312.216.3352\"), first_name (\"Lesly\", \"Vernice\", \"Lesly\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : cell_number (\"(722)768-5439x484\", \"481-483-9083x37986\", \"+00(2)4323592985\"), home_phone (\"318-052-6573\", \"(094)747-5094x8134\", \"(799)563-0260x454\"), state (\"Indiana\", \"Maryland\", \"SouthDakota\"), owner_id (12, 1, 15), email_address (\"hudson.favian@example.com\", \"christy49@example.org\", \"ybergstrom@example.com\"), zip_code (\"92406\", \"11990\", \"35747\"), last_name (\"DuBuque\", \"Funk\", \"Rippin\"), street (\"6950 Katherine Forges Apt. 630\", \"692 Jaskolski Forges\", \"51934 Treutel Harbor\"), first_name (\"Nora\", \"Orlando\", \"Jaclyn\"), city (\"South Daisyfurt\", \"West Leonard\", \"South Afton\")", + "schema_without_content": "Pooches : abandoned_yn , size_code , age , breed_code , weight , date_arrived , date_departed , date_of_birth , name , dog_id , gender , owner_id , date_adopted | treatments : cost_of_treatment , dog_id , treatment_id , date_of_treatment , treatment_type_code , professional_id | breeds : breed_code , breed_name | charges : charge_id , charge_amount , charge_type | Canines : abandoned_yn , size_code , age , breed_code , weight , date_arrived , date_departed , date_of_birth , name , dog_id , gender , owner_id , date_adopted | sizes : size_description , size_code | professionals : professional_id , state , street , city , role_code , zip_code , cell_number , last_name , email_address , home_phone 0259033559\", \"312.216.3352\", first_name | treatment_types : treatment_type_code , treatment_type_description | owners : cell_number 768-5439x484\", \"481-483-9083x37986\", \"+004323592985\", home_phone 747-5094x8134\", \"563-0260x454\", state , owner_id , email_address , zip_code , last_name , street , first_name , city", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "number of owners": "Owners.owner_id", + "do not own any dogs": "Dogs.owner_id" + } + }, + { + "question": "how many #professionals# did not #operate any treatment# on dogs?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from professionals where professional_id not in (select professional_id from treatments)", + "schema_with_content": "Caregivers : professional_id (6, 1, 4), zip_code (\"67980\", \"54312\", \"07412\"), first_name (\"Ruben\", \"Karley\", \"Ericka\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), city (\"North Adelberttown\", \"Domenickton\", \"Baileymouth\"), home_phone (\"+43(5)1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\"), email_address (\"goyette.roosevelt@example.net\", \"cole.margarita@example.org\", \"schneider.kathryne@example.org\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Tillman\", \"Murazik\", \"Ullrich\"), state (\"NorthCarolina\", \"Wisconsin\", \"Mississippi\"), cell_number (\"609-405-2990\", \"962-983-8109x3509\", \"1-258-285-4707x8020\") | dogs : owner_id (5, 13, 5), date_arrived (\"2017-10-25 00:55:34\", \"2018-01-02 03:15:29\", \"2017-10-24 04:45:13\"), name (\"Kacey\", \"Hipolito\", \"Jeffrey\"), weight (\"1.39\", \"4.01\", \"3.52\"), date_of_birth (\"2015-02-26 21:31:22\", \"2017-09-19 05:39:09\", \"2009-04-12 06:02:48\"), age (\"3\", \"1\", \"5\"), gender (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 04:42:14\", \"2018-03-25 06:29:10\", \"2018-03-25 10:25:46\"), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (5, 12, 13), date_adopted (\"2018-03-21 10:41:18\", \"2018-03-08 15:03:00\", \"2018-02-27 00:27:57\"), abandoned_yn (\"1\", \"0\") | treatments : date_of_treatment (\"2018-03-01 04:14:46\", \"2018-03-19 04:39:54\", \"2018-03-23 13:52:10\"), professional_id (14, 8, 10), treatment_id (13, 2, 6), dog_id (4, 10, 12), cost_of_treatment (147, 313, 668), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | owners : home_phone (\"1-346-655-5842x768\", \"318-052-6573\", \"916.976.9480x13851\"), city (\"Lake Carleyborough\", \"Lake Carleyborough\", \"Lake Carleyborough\"), state (\"SouthDakota\", \"Vermont\", \"Washington\"), last_name (\"DuBuque\", \"Stoltenberg\", \"Prohaska\"), owner_id (4, 11, 5), first_name (\"Kade\", \"Nora\", \"Rolando\"), street (\"57382 Yost Ridges\", \"57382 Yost Ridges\", \"2417 Keara Stravenue Apt. 146\"), cell_number (\"762.589.6117x1328\", \"121.381.3316x6535\", \"559.874.3011x989\"), email_address (\"fschoen@example.net\", \"angeline99@example.com\", \"pearlie18@example.com\"), zip_code (\"22731\", \"22731\", \"22693\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Handlers : professional_id (6, 1, 4), zip_code (\"67980\", \"54312\", \"07412\"), first_name (\"Ruben\", \"Karley\", \"Ericka\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), city (\"North Adelberttown\", \"Domenickton\", \"Baileymouth\"), home_phone (\"+43(5)1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\"), email_address (\"goyette.roosevelt@example.net\", \"cole.margarita@example.org\", \"schneider.kathryne@example.org\"), role_code (\"Employee\", \"Veterenarian\"), last_name (\"Tillman\", \"Murazik\", \"Ullrich\"), state (\"NorthCarolina\", \"Wisconsin\", \"Mississippi\"), cell_number (\"609-405-2990\", \"962-983-8109x3509\", \"1-258-285-4707x8020\")", + "schema_without_content": "Caregivers : professional_id , zip_code , first_name , street , city , home_phone 1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\", email_address , role_code , last_name , state , cell_number | dogs : owner_id , date_arrived , name , weight , date_of_birth , age , gender , breed_code , date_departed , size_code , dog_id , date_adopted , abandoned_yn | treatments : date_of_treatment , professional_id , treatment_id , dog_id , cost_of_treatment , treatment_type_code | sizes : size_code , size_description | breeds : breed_code , breed_name | owners : home_phone , city , state , last_name , owner_id , first_name , street , cell_number , email_address , zip_code | treatment_types : treatment_type_code , treatment_type_description | charges : charge_id , charge_amount , charge_type | Handlers : professional_id , zip_code , first_name , street , city , home_phone 1132733868\", \"246-951-0080x76716\", \"1-609-566-2752x25197\", email_address , role_code , last_name , state , cell_number", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "operate any treatment": "Treatments.professional_id" + } + }, + { + "question": "how many #professionals# did not #operate any treatment# on dogs?", + "db_id": "dog_kennels", + "orig_query": "select count(*) from professionals where professional_id not in (select professional_id from treatments)", + "schema_with_content": "breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | owners : street (\"68118 Daniel Row\", \"2635 Caitlyn Plains\", \"57382 Yost Ridges\"), email_address (\"lynn81@example.org\", \"marks.gail@example.org\", \"zboncak.madonna@example.net\"), zip_code (\"45244\", \"93165\", \"78297\"), last_name (\"Stoltenberg\", \"Haley\", \"DuBuque\"), cell_number (\"121.381.3316x6535\", \"1-739-421-2225x38148\", \"+70(4)9217952551\"), state (\"Florida\", \"Vermont\", \"Florida\"), first_name (\"Emelie\", \"Johann\", \"Emelie\"), home_phone (\"(094)747-5094x8134\", \"318-052-6573\", \"(544)034-1670\"), city (\"New Margaretteborough\", \"Barrettburgh\", \"Lake Valentin\"), owner_id (3, 15, 15) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (8, 5, 6), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-18 07:47:40\", \"2018-03-08 15:03:00\"), weight (\"4.36\", \"2.18\", \"8.16\"), abandoned_yn (\"1\", \"0\"), age (\"4\", \"6\", \"6\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-25 15:05:16\", \"2018-03-25 05:07:47\"), dog_id (3, 2, 2), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-10-24 04:45:13\", \"2017-10-25 00:55:34\"), name (\"Houston\", \"Troy\", \"Hipolito\"), date_of_birth (\"2008-10-09 22:38:53\", \"2008-05-19 15:54:49\", \"2013-02-20 14:50:56\") | charges : charge_amount (98, 322, 640), charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | procedures : professional_id (9, 10, 8), dog_id (15, 15, 7), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-15 19:10:02\", \"2018-02-28 17:09:43\"), cost_of_treatment (147, 668, 945), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (14, 13, 2) | therapies : professional_id (9, 10, 8), dog_id (15, 15, 7), date_of_treatment (\"2018-03-04 20:33:43\", \"2018-03-15 19:10:02\", \"2018-02-28 17:09:43\"), cost_of_treatment (147, 668, 945), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), treatment_id (14, 13, 2) | professionals : cell_number (\"499-434-0215x1628\", \"889-940-2676\", \"011.193.9081x3186\"), role_code (\"Employee\", \"Veterenarian\"), city (\"Baileymouth\", \"Baileymouth\", \"McLaughlinfort\"), last_name (\"O'Reilly\", \"Murazik\", \"Frami\"), email_address (\"jacynthe.mclaughlin@example.net\", \"jacynthe.mclaughlin@example.net\", \"goyette.roosevelt@example.net\"), professional_id (12, 14, 9), street (\"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), first_name (\"Ericka\", \"Winfield\", \"Ericka\"), state (\"SouthCarolina\", \"NewMexico\", \"SouthCarolina\"), home_phone (\"022.529.0550x1319\", \"(230)338-3342x585\", \"+43(5)1132733868\"), zip_code (\"67980\", \"52476\", \"41215\")", + "schema_without_content": "breeds : breed_code , breed_name | sizes : size_code , size_description | owners : street , email_address , zip_code , last_name , cell_number 9217952551\", state , first_name , home_phone 747-5094x8134\", \"318-052-6573\", \"034-1670\", city , owner_id | treatment_types : treatment_type_code , treatment_type_description | dogs : breed_code , owner_id , date_adopted , weight , abandoned_yn , age , date_departed , dog_id , gender , size_code , date_arrived , name , date_of_birth | charges : charge_amount , charge_id , charge_type | procedures : professional_id , dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , treatment_id | therapies : professional_id , dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , treatment_id | professionals : cell_number , role_code , city , last_name , email_address , professional_id , street , first_name , state , home_phone 338-3342x585\", \"+431132733868\", zip_code", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "operate any treatment": "Treatments.professional_id" + } + }, + { + "question": "find the number of #professionals# who have not #treated# any #dogs# .", + "db_id": "dog_kennels", + "orig_query": "select count(*) from professionals where professional_id not in (select professional_id from treatments)", + "schema_with_content": "Handlers : cell_number (\"1-258-285-4707x8020\", \"011.193.9081x3186\", \"1-185-137-1945x409\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (15, 2, 12), zip_code (\"77129\", \"41215\", \"34041\"), home_phone (\"+71(6)2898266914\", \"320-508-6023\", \"312.216.3352\"), last_name (\"O'Reilly\", \"Considine\", \"Tillman\"), city (\"Baileymouth\", \"Juddton\", \"New Laurytown\"), first_name (\"Ericka\", \"Ruben\", \"Domenica\"), state (\"Connecticut\", \"Utah\", \"Utah\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jeichmann@example.com\", \"lourdes.lowe@example.net\", \"uboehm@example.org\") | Caregivers : cell_number (\"1-258-285-4707x8020\", \"011.193.9081x3186\", \"1-185-137-1945x409\"), street (\"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), professional_id (15, 2, 12), zip_code (\"77129\", \"41215\", \"34041\"), home_phone (\"+71(6)2898266914\", \"320-508-6023\", \"312.216.3352\"), last_name (\"O'Reilly\", \"Considine\", \"Tillman\"), city (\"Baileymouth\", \"Juddton\", \"New Laurytown\"), first_name (\"Ericka\", \"Ruben\", \"Domenica\"), state (\"Connecticut\", \"Utah\", \"Utah\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"jeichmann@example.com\", \"lourdes.lowe@example.net\", \"uboehm@example.org\") | owners : home_phone (\"(799)563-0260x454\", \"01802479758\", \"363.948.1090\"), cell_number (\"121.381.3316x6535\", \"(722)768-5439x484\", \"739-136-7202\"), owner_id (14, 5, 1), street (\"1204 Mae Highway Apt. 107\", \"60352 Kayleigh Crossing Suite 700\", \"9212 Rosenbaum Lights\"), state (\"Mississippi\", \"Mississippi\", \"Maryland\"), city (\"Beerton\", \"Port Zackery\", \"South Daisyfurt\"), first_name (\"Lorenz\", \"Cindy\", \"Kade\"), last_name (\"Price\", \"Prohaska\", \"Feil\"), email_address (\"fschoen@example.net\", \"kturner@example.net\", \"fschoen@example.net\"), zip_code (\"36871\", \"02647\", \"78297\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), age (\"1\", \"9\", \"1\"), owner_id (7, 11, 11), gender (\"1\", \"0\"), dog_id (8, 3, 1), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Jeffrey\", \"Troy\", \"Bessie\"), date_arrived (\"2017-12-29 06:08:26\", \"2017-04-20 00:58:55\", \"2017-06-25 10:14:05\"), abandoned_yn (\"1\", \"0\"), weight (\"8.96\", \"7.57\", \"6.92\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-13 12:47:15\", \"2018-03-13 12:47:15\"), date_of_birth (\"2012-05-03 21:42:25\", \"2012-07-11 17:15:10\", \"2010-11-11 07:11:53\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-24 19:12:22\", \"2018-03-25 02:47:40\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatments : treatment_id (12, 7, 8), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), dog_id (15, 15, 15), date_of_treatment (\"2018-03-24 22:25:58\", \"2018-02-28 17:09:43\", \"2018-03-04 20:33:43\"), professional_id (4, 5, 7), cost_of_treatment (514, 139, 514) | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\")", + "schema_without_content": "Handlers : cell_number , street , professional_id , zip_code , home_phone 2898266914\", \"320-508-6023\", \"312.216.3352\", last_name , city , first_name , state , role_code , email_address | Caregivers : cell_number , street , professional_id , zip_code , home_phone 2898266914\", \"320-508-6023\", \"312.216.3352\", last_name , city , first_name , state , role_code , email_address | owners : home_phone 563-0260x454\", \"01802479758\", \"363.948.1090\", cell_number 768-5439x484\", \"739-136-7202\", owner_id , street , state , city , first_name , last_name , email_address , zip_code | dogs : size_code , age , owner_id , gender , dog_id , breed_code , name , date_arrived , abandoned_yn , weight , date_adopted , date_of_birth , date_departed | sizes : size_description , size_code | treatments : treatment_id , treatment_type_code , dog_id , date_of_treatment , professional_id , cost_of_treatment | treatment_types : treatment_type_code , treatment_type_description | breeds : breed_name , breed_code | charges : charge_id , charge_amount , charge_type", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "treated": "Treatments.professional_id", + "dogs": "Dogs", + "professional_id": "Professionals.professional_id" + } + }, + { + "question": "find the number of #professionals# who have not #treated# any #dogs# .", + "db_id": "dog_kennels", + "orig_query": "select count(*) from professionals where professional_id not in (select professional_id from treatments)", + "schema_with_content": "dogs : date_of_birth (\"2017-09-19 05:39:09\", \"2008-05-19 15:54:49\", \"2012-05-31 08:01:36\"), abandoned_yn (\"1\", \"0\"), weight (\"6.92\", \"4.36\", \"6.92\"), date_arrived (\"2017-12-22 05:02:02\", \"2017-06-18 19:45:38\", \"2017-06-25 10:14:05\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-21 10:41:18\", \"2018-03-05 06:05:23\"), name (\"Evangeline\", \"Holden\", \"Troy\"), dog_id (11, 3, 4), breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), owner_id (12, 2, 3), age (\"6\", \"8\", \"4\"), date_departed (\"2018-03-25 02:11:32\", \"2018-03-25 15:05:16\", \"2018-03-24 23:48:59\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : street (\"36895 Eli Ferry\nPort Marcelle, FL 45712\", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\", \"68589 Bradly Manor\nNew Audrey, IN 91497\"), email_address (\"lucile.shanahan@example.org\", \"jacynthe.mclaughlin@example.net\", \"lambert62@example.org\"), last_name (\"Hayes\", \"Braun\", \"O'Reilly\"), first_name (\"Olaf\", \"Taryn\", \"Jayson\"), zip_code (\"54312\", \"52476\", \"98844\"), city (\"New Maryjane\", \"East Ila\", \"McLaughlinfort\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"312.216.3352\", \"1-609-566-2752x25197\", \"346.594.3739\"), professional_id (15, 12, 10), cell_number (\"328.842.3792\", \"1-185-137-1945x409\", \"139-321-7313\"), state (\"NewMexico\", \"Wisconsin\", \"California\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | owners : email_address (\"edythe62@example.org\", \"kturner@example.net\", \"ybergstrom@example.com\"), owner_id (4, 4, 4), last_name (\"Rippin\", \"Fisher\", \"Ondricka\"), state (\"Arkansas\", \"Virginia\", \"NorthDakota\"), first_name (\"Nora\", \"Cindy\", \"Melisa\"), cell_number (\"(722)768-5439x484\", \"1-739-421-2225x38148\", \"559.874.3011x989\"), city (\"Brakusfurt\", \"Lake Tia\", \"Barrettburgh\"), street (\"68118 Daniel Row\", \"2417 Keara Stravenue Apt. 146\", \"2635 Caitlyn Plains\"), home_phone (\"085.557.0379x84348\", \"363.948.1090\", \"318-052-6573\"), zip_code (\"22731\", \"25609\", \"36871\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | procedures : treatment_id (9, 15, 8), cost_of_treatment (567, 428, 266), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-13 12:22:58\", \"2018-03-16 10:27:36\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 9), dog_id (7, 12, 12) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | therapies : treatment_id (9, 15, 8), cost_of_treatment (567, 428, 266), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-13 12:22:58\", \"2018-03-16 10:27:36\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (8, 14, 9), dog_id (7, 12, 12)", + "schema_without_content": "dogs : date_of_birth , abandoned_yn , weight , date_arrived , date_adopted , name , dog_id , breed_code , gender , owner_id , age , date_departed , size_code | professionals : street , email_address , last_name , first_name , zip_code , city , role_code , home_phone , professional_id , cell_number , state | sizes : size_description , size_code | treatment_types : treatment_type_code , treatment_type_description | owners : email_address , owner_id , last_name , state , first_name , cell_number 768-5439x484\", \"1-739-421-2225x38148\", \"559.874.3011x989\", city , street , home_phone , zip_code | charges : charge_type , charge_amount , charge_id | procedures : treatment_id , cost_of_treatment , date_of_treatment , treatment_type_code , professional_id , dog_id | breeds : breed_name , breed_code | therapies : treatment_id , cost_of_treatment , date_of_treatment , treatment_type_code , professional_id , dog_id", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "professionals": "Professionals", + "treated": "Treatments.professional_id", + "dogs": "Dogs", + "professional_id": "Professionals.professional_id" + } + }, + { + "question": "list the #dog name# , #age# and w #eight of the dogs# who have been #abandoned# ? 1 stands for yes, and 0 stands for no.", + "db_id": "dog_kennels", + "orig_query": "select name, age, weight from dogs where abandoned_yn = 1", + "schema_with_content": "treatments : dog_id (2, 4, 4), professional_id (9, 10, 4), treatment_id (6, 2, 2), cost_of_treatment (313, 668, 428), date_of_treatment (\"2018-03-13 12:22:58\", \"2018-03-23 13:52:10\", \"2018-03-08 05:26:23\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\") | owners : cell_number (\"+70(4)9217952551\", \"1-739-421-2225x38148\", \"633.455.3045x85484\"), street (\"15828 Spencer Extensions\", \"0647 Hintz Village Apt. 024\", \"2635 Caitlyn Plains\"), first_name (\"Cindy\", \"Orlando\", \"Tre\"), owner_id (6, 14, 3), city (\"Lake Tia\", \"Brakusfurt\", \"New Margaretteborough\"), zip_code (\"78297\", \"11990\", \"61019\"), email_address (\"zboncak.madonna@example.net\", \"marks.gail@example.org\", \"christy49@example.org\"), state (\"Maryland\", \"Washington\", \"Arizona\"), home_phone (\"130-796-4589x05454\", \"893-862-5295x61709\", \"363.948.1090\"), last_name (\"Haley\", \"Feil\", \"Hauck\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640), charge_id (1, 2, 3) | Canines : date_departed (\"2018-03-25 04:50:22\", \"2018-03-24 19:36:59\", \"2018-03-25 05:07:47\"), date_of_birth (\"2013-02-13 05:15:21\", \"2008-05-30 12:51:34\", \"2015-02-26 21:31:22\"), weight (\"3.52\", \"9.8\", \"5.16\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"6\", \"6\", \"1\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-07 21:45:43\", \"2018-03-23 16:02:04\"), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (7, 3, 7), name (\"Jesus\", \"Hipolito\", \"Kacey\"), dog_id (12, 1, 15), date_arrived (\"2017-07-25 15:19:07\", \"2017-10-16 20:06:21\", \"2017-12-29 23:24:13\") | professionals : cell_number (\"1-185-137-1945x409\", \"1-181-670-9466\", \"461-801-2600\"), last_name (\"Tillman\", \"Walter\", \"Considine\"), first_name (\"Taryn\", \"Ruben\", \"Danny\"), home_phone (\"1-609-566-2752x25197\", \"325-155-0801x7005\", \"+71(6)2898266914\"), street (\"72532 Hane Course\nLake Berylland, ND 95283\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), role_code (\"Employee\", \"Veterenarian\"), email_address (\"uboehm@example.org\", \"schneider.kathryne@example.org\", \"jerrod.bahringer@example.org\"), state (\"NewMexico\", \"Hawaii\", \"SouthCarolina\"), professional_id (9, 10, 2), city (\"East Ila\", \"South Rockyport\", \"West Heidi\"), zip_code (\"54312\", \"07412\", \"52476\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | Pooches : date_departed (\"2018-03-25 04:50:22\", \"2018-03-24 19:36:59\", \"2018-03-25 05:07:47\"), date_of_birth (\"2013-02-13 05:15:21\", \"2008-05-30 12:51:34\", \"2015-02-26 21:31:22\"), weight (\"3.52\", \"9.8\", \"5.16\"), gender (\"1\", \"0\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"6\", \"6\", \"1\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-03-07 21:45:43\", \"2018-03-23 16:02:04\"), abandoned_yn (\"1\", \"0\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), owner_id (7, 3, 7), name (\"Jesus\", \"Hipolito\", \"Kacey\"), dog_id (12, 1, 15), date_arrived (\"2017-07-25 15:19:07\", \"2017-10-16 20:06:21\", \"2017-12-29 23:24:13\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "treatments : dog_id , professional_id , treatment_id , cost_of_treatment , date_of_treatment , treatment_type_code | owners : cell_number 9217952551\", \"1-739-421-2225x38148\", \"633.455.3045x85484\", street , first_name , owner_id , city , zip_code , email_address , state , home_phone , last_name | sizes : size_description , size_code | charges : charge_type , charge_amount , charge_id | Canines : date_departed , date_of_birth , weight , gender , size_code , age , date_adopted , abandoned_yn , breed_code , owner_id , name , dog_id , date_arrived | professionals : cell_number , last_name , first_name , home_phone 2898266914\", street , role_code , email_address , state , professional_id , city , zip_code | treatment_types : treatment_type_description , treatment_type_code | Pooches : date_departed , date_of_birth , weight , gender , size_code , age , date_adopted , abandoned_yn , breed_code , owner_id , name , dog_id , date_arrived | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dog name": "Dogs.name", + "age": "Dogs.age", + "eight of the dogs": "Dogs", + "abandoned": "Dogs.abandoned_yn", + "weight": "Dogs.weight" + } + }, + { + "question": "what are the #dog name# , #age# and w #eight of the dogs# that were #abandoned# ? note that 1 stands for yes, and 0 stands for no in the tables.", + "db_id": "dog_kennels", + "orig_query": "select name, age, weight from dogs where abandoned_yn = 1", + "schema_with_content": "treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | treatments : dog_id (7, 12, 1), professional_id (7, 10, 5), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-02-28 17:09:43\", \"2018-03-15 19:10:02\", \"2018-03-15 19:10:02\"), cost_of_treatment (349, 514, 567), treatment_id (9, 12, 3) | Pooches : abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-02-27 11:54:35\", \"2018-03-18 15:12:50\"), gender (\"1\", \"0\"), date_of_birth (\"2008-05-19 15:54:49\", \"2017-09-19 05:39:09\", \"2012-10-14 14:44:37\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"9\", \"4\", \"3\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"4.36\", \"8.16\", \"4.01\"), owner_id (8, 13, 14), date_arrived (\"2017-06-25 10:14:05\", \"2017-05-06 08:03:52\", \"2017-05-06 08:03:52\"), dog_id (8, 5, 5), name (\"Houston\", \"Bessie\", \"Jeffrey\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-24 23:48:59\", \"2018-03-25 05:07:47\") | Canines : abandoned_yn (\"1\", \"0\"), date_adopted (\"2018-02-27 00:27:57\", \"2018-02-27 11:54:35\", \"2018-03-18 15:12:50\"), gender (\"1\", \"0\"), date_of_birth (\"2008-05-19 15:54:49\", \"2017-09-19 05:39:09\", \"2012-10-14 14:44:37\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), age (\"9\", \"4\", \"3\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"4.36\", \"8.16\", \"4.01\"), owner_id (8, 13, 14), date_arrived (\"2017-06-25 10:14:05\", \"2017-05-06 08:03:52\", \"2017-05-06 08:03:52\"), dog_id (8, 5, 5), name (\"Houston\", \"Bessie\", \"Jeffrey\"), date_departed (\"2018-03-24 19:12:22\", \"2018-03-24 23:48:59\", \"2018-03-25 05:07:47\") | sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"07073 Brenna Ways Suite 089\nLowehaven, KY 93275-96\", \"09615 McKenzie Stravenue Apt. 128\nWest Elliottview\"), last_name (\"Jacobs\", \"Pouros\", \"Jacobs\"), state (\"Utah\", \"California\", \"Alabama\"), email_address (\"uboehm@example.org\", \"lourdes.lowe@example.net\", \"lambert62@example.org\"), city (\"New Maryjane\", \"East Ila\", \"New Maryjane\"), first_name (\"Winfield\", \"Winfield\", \"Danny\"), zip_code (\"33020\", \"43129\", \"07412\"), role_code (\"Employee\", \"Veterenarian\"), home_phone (\"346.594.3739\", \"312.216.3352\", \"320-508-6023\"), cell_number (\"139-321-7313\", \"461-801-2600\", \"609-405-2990\"), professional_id (9, 9, 14) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | owners : first_name (\"Nora\", \"Orlando\", \"Adelle\"), zip_code (\"36871\", \"36871\", \"92406\"), home_phone (\"1-682-845-0116x63235\", \"130-796-4589x05454\", \"1-346-655-5842x768\"), email_address (\"ymaggio@example.com\", \"marks.gail@example.org\", \"zboncak.madonna@example.net\"), city (\"East Hillardberg\", \"Brakusfurt\", \"Lake Jennyferfort\"), owner_id (5, 9, 8), street (\"1204 Mae Highway Apt. 107\", \"2417 Keara Stravenue Apt. 146\", \"59509 Mellie Mountain\"), state (\"Vermont\", \"Arkansas\", \"Virginia\"), cell_number (\"762.589.6117x1328\", \"+70(4)9217952551\", \"121.381.3316x6535\"), last_name (\"Stoltenberg\", \"Schmitt\", \"Hauck\")", + "schema_without_content": "treatment_types : treatment_type_description , treatment_type_code | treatments : dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment , treatment_id | Pooches : abandoned_yn , date_adopted , gender , date_of_birth , breed_code , age , size_code , weight , owner_id , date_arrived , dog_id , name , date_departed | Canines : abandoned_yn , date_adopted , gender , date_of_birth , breed_code , age , size_code , weight , owner_id , date_arrived , dog_id , name , date_departed | sizes : size_description , size_code | professionals : street , last_name , state , email_address , city , first_name , zip_code , role_code , home_phone , cell_number , professional_id | charges : charge_type , charge_id , charge_amount | breeds : breed_name , breed_code | owners : first_name , zip_code , home_phone , email_address , city , owner_id , street , state , cell_number 9217952551\", \"121.381.3316x6535\", last_name", + "extra_map": null, + "extra_table_map": { + "dogs": [ + "Canines", + "Pooches" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "dog name": "Dogs.name", + "age": "Dogs.age", + "eight of the dogs": "Dogs", + "abandoned": "Dogs.abandoned_yn", + "weight": "Dogs.weight" + } + }, + { + "question": "list the #first name of all the professionals# along with the #description of the treatment# they have done.", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "sizes : size_description (\"Small\", \"Medium\", \"Large\"), size_code (\"LGE\", \"MED\", \"SML\") | professionals : cell_number (\"461-801-2600\", \"1-258-285-4707x8020\", \"(275)939-2435x80863\"), email_address (\"cole.margarita@example.org\", \"deanna.schuster@example.com\", \"goyette.roosevelt@example.net\"), first_name (\"Danny\", \"Winfield\", \"Brady\"), professional_id (2, 9, 7), last_name (\"Frami\", \"O'Reilly\", \"Kshlerin\"), state (\"Indiana\", \"Montana\", \"NewMexico\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \"), zip_code (\"98844\", \"52476\", \"84515\"), role_code (\"Employee\", \"Veterenarian\"), city (\"McLaughlinfort\", \"North Adelberttown\", \"New Maryjane\"), home_phone (\"325-155-0801x7005\", \"312.216.3352\", \"+02(1)0259033559\") | treatments : professional_id (7, 14, 14), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (266, 349, 852), date_of_treatment (\"2018-03-19 04:39:54\", \"2018-03-15 19:10:02\", \"2018-03-15 19:10:02\"), treatment_id (9, 7, 3), dog_id (12, 10, 2) | dogs : date_arrived (\"2018-01-02 03:15:29\", \"2017-04-20 00:58:55\", \"2017-12-22 05:02:02\"), date_departed (\"2018-03-25 06:29:10\", \"2018-03-24 19:12:22\", \"2018-03-25 02:47:40\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), weight (\"3.52\", \"8.95\", \"8.16\"), dog_id (8, 14, 15), age (\"3\", \"1\", \"5\"), date_of_birth (\"2017-09-19 05:39:09\", \"2012-05-03 21:42:25\", \"2013-02-20 14:50:56\"), abandoned_yn (\"1\", \"0\"), name (\"Evangeline\", \"Bessie\", \"Lyric\"), date_adopted (\"2018-03-18 07:47:40\", \"2018-02-27 11:54:35\", \"2018-03-18 07:47:40\"), owner_id (12, 7, 14), gender (\"1\", \"0\") | Therapy_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | Care_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : street (\"15828 Spencer Extensions\", \"15828 Spencer Extensions\", \"57382 Yost Ridges\"), city (\"Port Reannamouth\", \"South Daisyfurt\", \"Lake Valentin\"), zip_code (\"36871\", \"22693\", \"00589\"), home_phone (\"916.976.9480x13851\", \"085.557.0379x84348\", \"893-862-5295x61709\"), last_name (\"Hauck\", \"Haley\", \"Schmitt\"), owner_id (7, 4, 9), state (\"Florida\", \"Virginia\", \"Arkansas\"), cell_number (\"478.978.0729\", \"481-483-9083x37986\", \"(257)399-3116\"), email_address (\"kturner@example.net\", \"lynn81@example.org\", \"margaretta.runte@example.net\"), first_name (\"Cindy\", \"Tre\", \"Cindy\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\")", + "schema_without_content": "sizes : size_description , size_code | professionals : cell_number 939-2435x80863\", email_address , first_name , professional_id , last_name , state , street , zip_code , role_code , city , home_phone 0259033559\" | treatments : professional_id , treatment_type_code , cost_of_treatment , date_of_treatment , treatment_id , dog_id | dogs : date_arrived , date_departed , breed_code , size_code , weight , dog_id , age , date_of_birth , abandoned_yn , name , date_adopted , owner_id , gender | Therapy_Types : treatment_type_description , treatment_type_code | charges : charge_id , charge_type , charge_amount | Care_Types : treatment_type_description , treatment_type_code | owners : street , city , zip_code , home_phone , last_name , owner_id , state , cell_number 399-3116\", email_address , first_name | breeds : breed_name , breed_code", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "first name of all the professionals": "Professionals.first_name", + "description of the treatment": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "list the #first name of all the professionals# along with the #description of the treatment# they have done.", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | Caregivers : first_name (\"Ruben\", \"Sigurd\", \"Karley\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"80775\", \"33020\", \"17902\"), email_address (\"goyette.roosevelt@example.net\", \"delphine29@example.com\", \"goyette.roosevelt@example.net\"), professional_id (13, 10, 1), last_name (\"Braun\", \"Hayes\", \"Pouros\"), state (\"Connecticut\", \"Wyoming\", \"Montana\"), cell_number (\"(369)908-7311x065\", \"139-321-7313\", \"962-983-8109x3509\"), city (\"Juddton\", \"New Maryjane\", \"Raynorfort\"), street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), home_phone (\"1-138-287-3775\", \"971.048.3763x9404\", \"1-138-287-3775\") | Handlers : first_name (\"Ruben\", \"Sigurd\", \"Karley\"), role_code (\"Employee\", \"Veterenarian\"), zip_code (\"80775\", \"33020\", \"17902\"), email_address (\"goyette.roosevelt@example.net\", \"delphine29@example.com\", \"goyette.roosevelt@example.net\"), professional_id (13, 10, 1), last_name (\"Braun\", \"Hayes\", \"Pouros\"), state (\"Connecticut\", \"Wyoming\", \"Montana\"), cell_number (\"(369)908-7311x065\", \"139-321-7313\", \"962-983-8109x3509\"), city (\"Juddton\", \"New Maryjane\", \"Raynorfort\"), street (\"68589 Bradly Manor\nNew Audrey, IN 91497\", \"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"188 VonRueden Tunnel Suite 630\nNorth Macibury, NV \"), home_phone (\"1-138-287-3775\", \"971.048.3763x9404\", \"1-138-287-3775\") | treatments : treatment_id (9, 9, 11), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-23 13:52:10\", \"2018-03-08 05:26:23\", \"2018-03-04 20:33:43\"), cost_of_treatment (514, 567, 514), professional_id (6, 4, 9), dog_id (12, 1, 1) | charges : charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3), charge_amount (98, 322, 640) | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | dogs : weight (\"9.48\", \"1.72\", \"2.18\"), date_of_birth (\"2013-02-13 05:15:21\", \"2012-05-03 21:42:25\", \"2017-09-19 05:39:09\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"1\", \"9\", \"8\"), abandoned_yn (\"1\", \"0\"), owner_id (10, 12, 1), dog_id (12, 13, 1), date_arrived (\"2017-10-25 00:55:34\", \"2017-12-22 05:02:02\", \"2017-04-20 00:58:55\"), gender (\"1\", \"0\"), name (\"Narciso\", \"Kacey\", \"Jeffrey\"), date_adopted (\"2018-03-25 08:12:51\", \"2018-03-13 12:47:15\", \"2018-03-08 15:03:00\"), date_departed (\"2018-03-25 10:25:46\", \"2018-03-25 13:07:04\", \"2018-03-24 23:48:59\") | owners : owner_id (8, 12, 15), street (\"89011 Kertzmann Spring Suite 642\", \"2417 Keara Stravenue Apt. 146\", \"6950 Katherine Forges Apt. 630\"), zip_code (\"22693\", \"22693\", \"36871\"), city (\"Lake Jennyferfort\", \"East Maribelbury\", \"East Maribelbury\"), cell_number (\"633.455.3045x85484\", \"(783)271-6744x4507\", \"341.667.8085\"), last_name (\"Price\", \"Stoltenberg\", \"Funk\"), state (\"Virginia\", \"Pennsylvania\", \"Wisconsin\"), email_address (\"zboncak.madonna@example.net\", \"margaretta.runte@example.net\", \"ybergstrom@example.com\"), home_phone (\"318-052-6573\", \"(799)563-0260x454\", \"066.264.7885\"), first_name (\"Heather\", \"Johann\", \"Melisa\")", + "schema_without_content": "sizes : size_code , size_description | Caregivers : first_name , role_code , zip_code , email_address , professional_id , last_name , state , cell_number 908-7311x065\", \"139-321-7313\", \"962-983-8109x3509\", city , street , home_phone | Handlers : first_name , role_code , zip_code , email_address , professional_id , last_name , state , cell_number 908-7311x065\", \"139-321-7313\", \"962-983-8109x3509\", city , street , home_phone | treatments : treatment_id , treatment_type_code , date_of_treatment , cost_of_treatment , professional_id , dog_id | charges : charge_type , charge_id , charge_amount | treatment_types : treatment_type_description , treatment_type_code | breeds : breed_name , breed_code | dogs : weight , date_of_birth , breed_code , size_code , age , abandoned_yn , owner_id , dog_id , date_arrived , gender , name , date_adopted , date_departed | owners : owner_id , street , zip_code , city , cell_number 271-6744x4507\", \"341.667.8085\", last_name , state , email_address , home_phone 563-0260x454\", \"066.264.7885\", first_name", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name of all the professionals": "Professionals.first_name", + "description of the treatment": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "list the #first name of all the professionals# along with the #description of the treatment# they have done.", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "charges : charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_id (1, 2, 3) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | therapies : dog_id (13, 12, 2), professional_id (7, 5, 6), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-15 20:25:34\", \"2018-03-13 12:22:58\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 514, 139), treatment_id (1, 3, 14) | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | procedures : dog_id (13, 12, 2), professional_id (7, 5, 6), date_of_treatment (\"2018-03-10 11:45:58\", \"2018-03-15 20:25:34\", \"2018-03-13 12:22:58\"), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), cost_of_treatment (514, 514, 139), treatment_id (1, 3, 14) | professionals : cell_number (\"328.842.3792\", \"00230569697\", \"00230569697\"), last_name (\"Ullrich\", \"Kshlerin\", \"Considine\"), professional_id (13, 12, 8), home_phone (\"(920)304-4499x59146\", \"+71(6)2898266914\", \"346.594.3739\"), email_address (\"lourdes.lowe@example.net\", \"marquardt.furman@example.org\", \"delphine29@example.com\"), first_name (\"Taryn\", \"Monte\", \"Brady\"), street (\"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"44234 Marvin Shoals Suite 659\nNorth Frances, AL 23\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\"), state (\"Hawaii\", \"Wisconsin\", \"Indiana\"), zip_code (\"54312\", \"98844\", \"54312\"), city (\"Juddton\", \"West Heidi\", \"Domenickton\"), role_code (\"Employee\", \"Veterenarian\") | dogs : breed_code (\"ESK\", \"BUL\", \"HUS\"), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), date_arrived (\"2018-01-17 11:44:16\", \"2018-01-17 11:44:16\", \"2017-12-29 23:24:13\"), owner_id (7, 11, 10), name (\"Evangeline\", \"Troy\", \"George\"), date_adopted (\"2018-02-27 11:54:35\", \"2018-03-05 06:05:23\", \"2018-03-23 16:02:04\"), weight (\"1.39\", \"6.92\", \"4.01\"), date_departed (\"2018-03-25 06:46:07\", \"2018-03-25 06:46:07\", \"2018-03-25 06:29:10\"), date_of_birth (\"2015-02-26 21:31:22\", \"2012-07-11 17:15:10\", \"2012-05-03 21:42:25\"), size_code (\"LGE\", \"MED\", \"SML\"), age (\"4\", \"9\", \"8\"), dog_id (5, 8, 10) | owners : email_address (\"ykris@example.com\", \"angeline99@example.com\", \"ymaggio@example.com\"), home_phone (\"(544)034-1670\", \"916.976.9480x13851\", \"1-682-845-0116x63235\"), owner_id (7, 5, 14), state (\"Virginia\", \"Washington\", \"Indiana\"), last_name (\"Schmitt\", \"Price\", \"Mertz\"), cell_number (\"+70(4)9217952551\", \"481-483-9083x37986\", \"121.381.3316x6535\"), zip_code (\"22693\", \"45244\", \"22693\"), city (\"East Maribelbury\", \"East Hillardberg\", \"Lake Valentin\"), first_name (\"Gay\", \"Gay\", \"Melisa\"), street (\"51934 Treutel Harbor\", \"68118 Daniel Row\", \"89011 Kertzmann Spring Suite 642\")", + "schema_without_content": "charges : charge_amount , charge_type , charge_id | sizes : size_code , size_description | therapies : dog_id , professional_id , date_of_treatment , treatment_type_code , cost_of_treatment , treatment_id | breeds : breed_name , breed_code | treatment_types : treatment_type_code , treatment_type_description | procedures : dog_id , professional_id , date_of_treatment , treatment_type_code , cost_of_treatment , treatment_id | professionals : cell_number , last_name , professional_id , home_phone 304-4499x59146\", \"+712898266914\", \"346.594.3739\", email_address , first_name , street , state , zip_code , city , role_code | dogs : breed_code , gender , abandoned_yn , date_arrived , owner_id , name , date_adopted , weight , date_departed , date_of_birth , size_code , age , dog_id | owners : email_address , home_phone 034-1670\", \"916.976.9480x13851\", \"1-682-845-0116x63235\", owner_id , state , last_name , cell_number 9217952551\", \"481-483-9083x37986\", \"121.381.3316x6535\", zip_code , city , first_name , street", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "first name of all the professionals": "Professionals.first_name", + "description of the treatment": "Treatment_Types.treatment_type_description" + } + }, + { + "question": "what are each #professional's first name# and #description of the treatment# they have performed?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | professionals : city (\"McLaughlinfort\", \"McLaughlinfort\", \"Domenickton\"), role_code (\"Employee\", \"Veterenarian\"), professional_id (15, 12, 10), zip_code (\"52476\", \"77129\", \"52476\"), cell_number (\"609-405-2990\", \"00230569697\", \"00230569697\"), street (\"7783 Abraham Alley\nPort Madelynhaven, KY 59172-273\", \"92912 Langworth Valleys Apt. 743\nThompsonborough, \", \"88665 Terence Lodge Apt. 904\nCorneliusfort, NC 194\"), email_address (\"lambert62@example.org\", \"lambert62@example.org\", \"deanna.schuster@example.com\"), first_name (\"Karley\", \"Jayson\", \"Domenica\"), last_name (\"Kshlerin\", \"Braun\", \"Frami\"), state (\"Connecticut\", \"Mississippi\", \"Alabama\"), home_phone (\"1-609-566-2752x25197\", \"320-508-6023\", \"+71(6)2898266914\") | treatments : treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-03-15 20:25:34\", \"2018-03-08 05:26:23\", \"2018-03-08 05:26:23\"), cost_of_treatment (514, 428, 567), treatment_id (10, 6, 2), professional_id (4, 4, 9), dog_id (14, 15, 12) | owners : email_address (\"edythe62@example.org\", \"fschoen@example.net\", \"hudson.favian@example.com\"), street (\"1858 Jan Park\", \"6950 Katherine Forges Apt. 630\", \"1858 Jan Park\"), last_name (\"Ondricka\", \"Schmitt\", \"Price\"), home_phone (\"(544)034-1670\", \"01802479758\", \"1-682-845-0116x63235\"), state (\"NewYork\", \"Mississippi\", \"Arizona\"), first_name (\"Adelle\", \"Lorenz\", \"Johann\"), zip_code (\"00589\", \"36871\", \"93165\"), city (\"South Daisyfurt\", \"South Daisyfurt\", \"Lake Carleyborough\"), owner_id (11, 12, 15), cell_number (\"+70(4)9217952551\", \"+00(2)4323592985\", \"+70(4)9217952551\") | dogs : size_code (\"LGE\", \"MED\", \"SML\"), abandoned_yn (\"1\", \"0\"), gender (\"1\", \"0\"), date_of_birth (\"2012-01-27 05:11:53\", \"2018-03-17 04:05:12\", \"2012-05-03 21:42:25\"), owner_id (2, 8, 6), date_departed (\"2018-03-24 19:12:22\", \"2018-03-24 19:36:59\", \"2018-03-24 19:36:59\"), breed_code (\"ESK\", \"BUL\", \"HUS\"), name (\"Betty\", \"George\", \"Holden\"), dog_id (10, 4, 14), date_adopted (\"2018-02-27 00:27:57\", \"2018-03-18 15:12:50\", \"2018-03-14 08:05:18\"), age (\"6\", \"4\", \"8\"), date_arrived (\"2017-06-25 10:14:05\", \"2017-12-29 06:08:26\", \"2017-06-18 19:45:38\"), weight (\"2.18\", \"3.52\", \"9.8\") | Therapy_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | Care_Types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\")", + "schema_without_content": "sizes : size_code , size_description | breeds : breed_name , breed_code | professionals : city , role_code , professional_id , zip_code , cell_number , street , email_address , first_name , last_name , state , home_phone 2898266914\" | treatments : treatment_type_code , date_of_treatment , cost_of_treatment , treatment_id , professional_id , dog_id | owners : email_address , street , last_name , home_phone 034-1670\", \"01802479758\", \"1-682-845-0116x63235\", state , first_name , zip_code , city , owner_id , cell_number 9217952551\", \"+004323592985\", \"+709217952551\" | dogs : size_code , abandoned_yn , gender , date_of_birth , owner_id , date_departed , breed_code , name , dog_id , date_adopted , age , date_arrived , weight | Therapy_Types : treatment_type_description , treatment_type_code | charges : charge_id , charge_amount , charge_type | Care_Types : treatment_type_description , treatment_type_code", + "extra_map": null, + "extra_table_map": { + "treatment_types": [ + "Therapy_Types", + "Care_Types" + ] + }, + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_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" + ], + "Therapy_Types": [ + "treatment_type_code", + "treatment_type_description" + ], + "Care_Types": [ + "treatment_type_code", + "treatment_type_description" + ] + }, + "column_linking_gt": { + "description of the treatment": "Treatment_Types.treatment_type_description", + "professional's first name": "Professionals.first_name" + } + }, + { + "question": "what are each #professional's first name# and #description of the treatment# they have performed?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "owners : home_phone (\"916.976.9480x13851\", \"(094)747-5094x8134\", \"(799)563-0260x454\"), street (\"692 Jaskolski Forges\", \"1204 Mae Highway Apt. 107\", \"692 Jaskolski Forges\"), email_address (\"kturner@example.net\", \"ybergstrom@example.com\", \"pearlie18@example.com\"), last_name (\"Rippin\", \"Funk\", \"Prohaska\"), state (\"Florida\", \"Mississippi\", \"Pennsylvania\"), cell_number (\"+00(2)4323592985\", \"559.874.3011x989\", \"1-626-264-7659x1697\"), first_name (\"Johann\", \"Kade\", \"Lorenz\"), city (\"South Daisyfurt\", \"South Afton\", \"South Daisyfurt\"), owner_id (5, 8, 4), zip_code (\"25609\", \"87304\", \"36871\") | Handlers : first_name (\"Ericka\", \"Velva\", \"Karley\"), state (\"Indiana\", \"California\", \"California\"), street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), home_phone (\"1-609-566-2752x25197\", \"+02(1)0259033559\", \"022.529.0550x1319\"), cell_number (\"139-321-7313\", \"499-434-0215x1628\", \"880-659-7577x736\"), zip_code (\"52476\", \"52476\", \"43129\"), email_address (\"jerrod.bahringer@example.org\", \"delphine29@example.com\", \"deanna.schuster@example.com\"), city (\"Kirastad\", \"Jaceton\", \"Raynorfort\"), professional_id (9, 4, 1), last_name (\"Braun\", \"Pouros\", \"Watsica\"), role_code (\"Employee\", \"Veterenarian\") | charges : charge_id (1, 2, 3), charge_amount (98, 322, 640), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\") | breeds : breed_name (\"Eskimo\", \"Husky\", \"Bulldog\"), breed_code (\"BUL\", \"ESK\", \"HUS\") | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatments : treatment_id (5, 10, 5), dog_id (7, 13, 10), date_of_treatment (\"2018-03-15 19:10:02\", \"2018-03-23 13:52:10\", \"2018-03-16 10:27:36\"), cost_of_treatment (514, 407, 429), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), professional_id (4, 7, 5) | dogs : weight (\"4.01\", \"1.72\", \"8.96\"), owner_id (2, 10, 11), size_code (\"LGE\", \"MED\", \"SML\"), dog_id (11, 3, 14), breed_code (\"ESK\", \"BUL\", \"HUS\"), date_departed (\"2018-03-25 06:58:44\", \"2018-03-25 02:47:40\", \"2018-03-25 10:25:46\"), date_of_birth (\"2010-11-11 07:11:53\", \"2012-01-27 05:11:53\", \"2012-01-27 05:11:53\"), date_adopted (\"2018-03-13 12:47:15\", \"2018-02-27 00:27:57\", \"2018-03-05 06:05:23\"), age (\"5\", \"3\", \"9\"), name (\"Hipolito\", \"Narciso\", \"Lyric\"), gender (\"1\", \"0\"), date_arrived (\"2017-10-24 04:45:13\", \"2017-07-25 15:19:07\", \"2017-06-18 19:45:38\"), abandoned_yn (\"1\", \"0\") | treatment_types : treatment_type_code (\"EXAM\", \"VAC\", \"WALK\"), treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\") | Caregivers : first_name (\"Ericka\", \"Velva\", \"Karley\"), state (\"Indiana\", \"California\", \"California\"), street (\"7284 Torphy Flats Apt. 610\nDiannaburgh, SC 78560\", \"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\"), home_phone (\"1-609-566-2752x25197\", \"+02(1)0259033559\", \"022.529.0550x1319\"), cell_number (\"139-321-7313\", \"499-434-0215x1628\", \"880-659-7577x736\"), zip_code (\"52476\", \"52476\", \"43129\"), email_address (\"jerrod.bahringer@example.org\", \"delphine29@example.com\", \"deanna.schuster@example.com\"), city (\"Kirastad\", \"Jaceton\", \"Raynorfort\"), professional_id (9, 4, 1), last_name (\"Braun\", \"Pouros\", \"Watsica\"), role_code (\"Employee\", \"Veterenarian\")", + "schema_without_content": "owners : home_phone 747-5094x8134\", \"563-0260x454\", street , email_address , last_name , state , cell_number 4323592985\", \"559.874.3011x989\", \"1-626-264-7659x1697\", first_name , city , owner_id , zip_code | Handlers : first_name , state , street , home_phone 0259033559\", \"022.529.0550x1319\", cell_number , zip_code , email_address , city , professional_id , last_name , role_code | charges : charge_id , charge_amount , charge_type | breeds : breed_name , breed_code | sizes : size_code , size_description | treatments : treatment_id , dog_id , date_of_treatment , cost_of_treatment , treatment_type_code , professional_id | dogs : weight , owner_id , size_code , dog_id , breed_code , date_departed , date_of_birth , date_adopted , age , name , gender , date_arrived , abandoned_yn | treatment_types : treatment_type_code , treatment_type_description | Caregivers : first_name , state , street , home_phone 0259033559\", \"022.529.0550x1319\", cell_number , zip_code , email_address , city , professional_id , last_name , role_code", + "extra_map": null, + "extra_table_map": { + "professionals": [ + "Handlers", + "Caregivers" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description of the treatment": "Treatment_Types.treatment_type_description", + "professional's first name": "Professionals.first_name" + } + }, + { + "question": "what are each #professional's first name# and #description of the treatment# they have performed?", + "db_id": "dog_kennels", + "orig_query": "select distinct t1.first_name, t3.treatment_type_description from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id join treatment_types as t3 on t2.treatment_type_code = t3.treatment_type_code", + "schema_with_content": "procedures : cost_of_treatment (514, 429, 514), treatment_id (13, 1, 5), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-08 05:26:23\", \"2018-02-26 09:08:53\"), professional_id (7, 5, 9), dog_id (13, 14, 15) | therapies : cost_of_treatment (514, 429, 514), treatment_id (13, 1, 5), treatment_type_code (\"WALK\", \"VAC\", \"EXAM\"), date_of_treatment (\"2018-02-26 09:08:53\", \"2018-03-08 05:26:23\", \"2018-02-26 09:08:53\"), professional_id (7, 5, 9), dog_id (13, 14, 15) | charges : charge_id (1, 2, 3), charge_type (\"Daily Accommodation\", \"Drugs\", \"Health Check\"), charge_amount (98, 322, 640) | sizes : size_code (\"LGE\", \"MED\", \"SML\"), size_description (\"Small\", \"Medium\", \"Large\") | treatment_types : treatment_type_description (\"Physical examination\", \"Vaccination\", \"Take for a Walk\"), treatment_type_code (\"EXAM\", \"VAC\", \"WALK\") | owners : state (\"Maryland\", \"Arizona\", \"Virginia\"), first_name (\"Tre\", \"Melisa\", \"Cindy\"), city (\"Brakusfurt\", \"Lake Carleyborough\", \"Barrettburgh\"), street (\"0647 Hintz Village Apt. 024\", \"692 Jaskolski Forges\", \"89011 Kertzmann Spring Suite 642\"), zip_code (\"45244\", \"45244\", \"22731\"), owner_id (13, 15, 2), cell_number (\"1-739-421-2225x38148\", \"(783)271-6744x4507\", \"(783)271-6744x4507\"), home_phone (\"916.976.9480x13851\", \"1-332-849-1908\", \"085.557.0379x84348\"), email_address (\"kturner@example.net\", \"ymaggio@example.com\", \"lynn81@example.org\"), last_name (\"Prohaska\", \"DuBuque\", \"Schmitt\") | professionals : email_address (\"marquardt.furman@example.org\", \"mekhi.little@example.org\", \"deanna.schuster@example.com\"), professional_id (8, 8, 3), city (\"Domenickton\", \"North Adelberttown\", \"South Rockyport\"), zip_code (\"80775\", \"17902\", \"77129\"), state (\"California\", \"NewMexico\", \"Alabama\"), first_name (\"Sigurd\", \"Ruben\", \"Domenica\"), role_code (\"Employee\", \"Veterenarian\"), street (\"63949 Keeling Landing Apt. 502\nJohnsview, SD 06780\", \"17286 Waters Green\nEast Bernadinefort, CA 89573\", \"390 Bryce Drive\nNorth Dock, LA 65357-7228\"), home_phone (\"+02(1)0259033559\", \"246-951-0080x76716\", \"+02(1)0259033559\"), cell_number (\"1-181-670-9466\", \"328.842.3792\", \"880-659-7577x736\"), last_name (\"Kshlerin\", \"Pouros\", \"Kshlerin\") | dogs : age (\"2\", \"4\", \"3\"), gender (\"1\", \"0\"), abandoned_yn (\"1\", \"0\"), dog_id (14, 10, 14), size_code (\"LGE\", \"MED\", \"SML\"), date_departed (\"2018-03-25 05:07:47\", \"2018-03-25 06:58:44\", \"2018-03-25 06:58:44\"), weight (\"8.16\", \"9.48\", \"1.39\"), date_of_birth (\"2012-10-14 14:44:37\", \"2010-11-11 07:11:53\", \"2008-05-19 15:54:49\"), date_adopted (\"2018-03-14 08:05:18\", \"2018-03-21 10:41:18\", \"2018-03-14 08:05:18\"), owner_id (2, 6, 11), date_arrived (\"2017-05-06 08:03:52\", \"2017-12-29 23:24:13\", \"2017-10-24 04:45:13\"), name (\"Narciso\", \"Narciso\", \"Narciso\"), breed_code (\"ESK\", \"BUL\", \"HUS\") | breeds : breed_code (\"BUL\", \"ESK\", \"HUS\"), breed_name (\"Eskimo\", \"Husky\", \"Bulldog\")", + "schema_without_content": "procedures : cost_of_treatment , treatment_id , treatment_type_code , date_of_treatment , professional_id , dog_id | therapies : cost_of_treatment , treatment_id , treatment_type_code , date_of_treatment , professional_id , dog_id | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_description , treatment_type_code | owners : state , first_name , city , street , zip_code , owner_id , cell_number 271-6744x4507\", \"271-6744x4507\", home_phone , email_address , last_name | professionals : email_address , professional_id , city , zip_code , state , first_name , role_code , street , home_phone 0259033559\", \"246-951-0080x76716\", \"+020259033559\", cell_number , last_name | dogs : age , gender , abandoned_yn , dog_id , size_code , date_departed , weight , date_of_birth , date_adopted , owner_id , date_arrived , name , breed_code | breeds : breed_code , breed_name", + "extra_map": null, + "extra_table_map": { + "treatments": [ + "procedures", + "therapies" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "description of the treatment": "Treatment_Types.treatment_type_description", + "professional's first name": "Professionals.first_name" + } + }, + { + "question": "list the #name of singers# in ascending order of #net worth# .", + "db_id": "singer", + "orig_query": "select name from singer order by net_worth_millions asc", + "schema_with_content": "musician : citizenship (\"United States\", \"Chile\", \"Germany\"), singer_id (5, 5, 2), name (\"Gina Rinehart\", \"Gina Rinehart\", \"Abigail Johnson\"), birth_year (1953.0, 1953.0, 1962.0), net_worth_millions (12.7, 28.8, 28.8) | song : song_id (3, 4, 4), singer_id (7, 5, 4), highest_position (1.0, 3.0), title (\"All This Time\", \"Yeah\", \"Cha Cha Slide\"), sales (300000.0, 300000.0, 552407.0) | vocalist : citizenship (\"United States\", \"Chile\", \"Germany\"), singer_id (5, 5, 2), name (\"Gina Rinehart\", \"Gina Rinehart\", \"Abigail Johnson\"), birth_year (1953.0, 1953.0, 1962.0), net_worth_millions (12.7, 28.8, 28.8)", + "schema_without_content": "musician : citizenship , singer_id , name , birth_year , net_worth_millions | song : song_id , singer_id , highest_position , title , sales | vocalist : citizenship , singer_id , name , birth_year , net_worth_millions", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of singers": "singer.Name", + "net worth": "singer.Net_Worth_Millions" + } + }, + { + "question": "what are the #names of singers# ordered by ascending #net worth# ?", + "db_id": "singer", + "orig_query": "select name from singer order by net_worth_millions asc", + "schema_with_content": "vocalist : birth_year (1949.0, 1961.0, 1962.0), name (\"Abigail Johnson\", \"Liliane Bettencourt\", \"Iris Fontbona\"), singer_id (4, 8, 8), net_worth_millions (12.7, 14.3, 26.3), citizenship (\"Germany\", \"France\", \"Chile\") | song : title (\"Left Outside Alone\", \"Mysterious Girl\", \"F**k It (I Don't Want You Back)\"), song_id (6, 6, 1), highest_position (1.0, 3.0), singer_id (6, 1, 2), sales (552407.0, 351421.0, 552407.0) | musician : birth_year (1949.0, 1961.0, 1962.0), name (\"Abigail Johnson\", \"Liliane Bettencourt\", \"Iris Fontbona\"), singer_id (4, 8, 8), net_worth_millions (12.7, 14.3, 26.3), citizenship (\"Germany\", \"France\", \"Chile\")", + "schema_without_content": "vocalist : birth_year , name , singer_id , net_worth_millions , citizenship | song : title \", song_id , highest_position , singer_id , sales | musician : birth_year , name , singer_id , net_worth_millions , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "net worth": "singer.Net_Worth_Millions" + } + }, + { + "question": "list the #name of singers# whose #citizenship# is not \"france\".", + "db_id": "singer", + "orig_query": "select name from singer where citizenship != \"France\"", + "schema_with_content": "song : highest_position (1.0, 3.0), song_id (8, 4, 7), singer_id (5, 7, 6), title (\"Cha Cha Slide\", \"Do They Know It's Christmas\", \"Cha Cha Slide\"), sales (300000.0, 275000.0, 292000.0) | vocalist : singer_id (4, 8, 3), name (\"Abigail Johnson\", \"Gina Rinehart\", \"Gina Rinehart\"), net_worth_millions (14.3, 17.4, 12.7), birth_year (1940.0, 1962.0, 1940.0), citizenship (\"France\", \"Chile\", \"Chile\") | musician : singer_id (4, 8, 3), name (\"Abigail Johnson\", \"Gina Rinehart\", \"Gina Rinehart\"), net_worth_millions (14.3, 17.4, 12.7), birth_year (1940.0, 1962.0, 1940.0), citizenship (\"France\", \"Chile\", \"Chile\")", + "schema_without_content": "song : highest_position , song_id , singer_id , title , sales | vocalist : singer_id , name , net_worth_millions , birth_year , citizenship | musician : singer_id , name , net_worth_millions , birth_year , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of singers": "singer.Name", + "citizenship": "singer.Citizenship" + } + }, + { + "question": "what are the #names of the singers# who are not #french citizens# ?", + "db_id": "singer", + "orig_query": "select name from singer where citizenship != \"France\"", + "schema_with_content": "musician : citizenship (\"Chile\", \"United States\", \"Australia\"), birth_year (1962.0, 1948.0, 1953.0), name (\"Gina Rinehart\", \"Iris Fontbona\", \"Jacqueline Mars\"), singer_id (2, 4, 2), net_worth_millions (17.4, 14.3, 30.0) | vocalist : citizenship (\"Chile\", \"United States\", \"Australia\"), birth_year (1962.0, 1948.0, 1953.0), name (\"Gina Rinehart\", \"Iris Fontbona\", \"Jacqueline Mars\"), singer_id (2, 4, 2), net_worth_millions (17.4, 14.3, 30.0) | song : highest_position (1.0, 3.0), sales (292000.0, 335000.0, 261000.0), song_id (3, 8, 7), singer_id (1, 7, 4), title (\"F**k It (I Don't Want You Back)\", \"Left Outside Alone\", \"Yeah\")", + "schema_without_content": "musician : citizenship , birth_year , name , singer_id , net_worth_millions | vocalist : citizenship , birth_year , name , singer_id , net_worth_millions | song : highest_position , sales , song_id , singer_id , title \", \"Left Outside Alone\", \"Yeah\"", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "French citizens": "singer.Citizenship" + } + }, + { + "question": "show the #name of singers# whose #birth year# is either 1948 or 1949?", + "db_id": "singer", + "orig_query": "select name from singer where birth_year = 1948 or birth_year = 1949", + "schema_with_content": "vocalist : net_worth_millions (17.8, 30.0, 28.8), singer_id (3, 4, 6), name (\"Jacqueline Mars\", \"Jacqueline Mars\", \"Liliane Bettencourt\"), birth_year (1948.0, 1962.0, 1953.0), citizenship (\"Australia\", \"Germany\", \"France\") | song : highest_position (1.0, 3.0), sales (261000.0, 300000.0, 292000.0), singer_id (4, 6, 6), song_id (6, 3, 6), title (\"Left Outside Alone\", \"Call on Me\", \"Mysterious Girl\") | musician : net_worth_millions (17.8, 30.0, 28.8), singer_id (3, 4, 6), name (\"Jacqueline Mars\", \"Jacqueline Mars\", \"Liliane Bettencourt\"), birth_year (1948.0, 1962.0, 1953.0), citizenship (\"Australia\", \"Germany\", \"France\")", + "schema_without_content": "vocalist : net_worth_millions , singer_id , name , birth_year , citizenship | song : highest_position , sales , singer_id , song_id , title | musician : net_worth_millions , singer_id , name , birth_year , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of singers": "singer.Name", + "birth year": "singer.Birth_Year" + } + }, + { + "question": "what are the #names of the singers# whose #birth years# are either 1948 or 1949?", + "db_id": "singer", + "orig_query": "select name from singer where birth_year = 1948 or birth_year = 1949", + "schema_with_content": "vocalist : citizenship (\"Germany\", \"Chile\", \"France\"), net_worth_millions (17.4, 17.4, 17.4), name (\"Gina Rinehart\", \"Abigail Johnson\", \"Alice Walton\"), birth_year (1962.0, 1942.0, 1942.0), singer_id (6, 3, 3) | musician : citizenship (\"Germany\", \"Chile\", \"France\"), net_worth_millions (17.4, 17.4, 17.4), name (\"Gina Rinehart\", \"Abigail Johnson\", \"Alice Walton\"), birth_year (1962.0, 1942.0, 1942.0), singer_id (6, 3, 3) | song : singer_id (6, 2, 1), song_id (2, 5, 3), highest_position (1.0, 3.0), sales (292000.0, 300000.0, 552407.0), title (\"Cha Cha Slide\", \"All This Time\", \"Yeah\")", + "schema_without_content": "vocalist : citizenship , net_worth_millions , name , birth_year , singer_id | musician : citizenship , net_worth_millions , name , birth_year , singer_id | song : singer_id , song_id , highest_position , sales , title", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "birth years": "singer.Birth_Year" + } + }, + { + "question": "what is the #name of the singer# with the largest #net worth# ?", + "db_id": "singer", + "orig_query": "select name from singer order by net_worth_millions desc limit 1", + "schema_with_content": "song : sales (552407.0, 300000.0, 300000.0), singer_id (6, 4, 6), title (\"Cha Cha Slide\", \"Cha Cha Slide\", \"All This Time\"), song_id (6, 6, 8), highest_position (1.0, 3.0) | musician : net_worth_millions (28.8, 28.8, 17.4), citizenship (\"France\", \"Chile\", \"France\"), birth_year (1953.0, 1948.0, 1944.0), name (\"Iris Fontbona\", \"Alice Walton\", \"Gina Rinehart\"), singer_id (8, 8, 2) | vocalist : net_worth_millions (28.8, 28.8, 17.4), citizenship (\"France\", \"Chile\", \"France\"), birth_year (1953.0, 1948.0, 1944.0), name (\"Iris Fontbona\", \"Alice Walton\", \"Gina Rinehart\"), singer_id (8, 8, 2)", + "schema_without_content": "song : sales , singer_id , title , song_id , highest_position | musician : net_worth_millions , citizenship , birth_year , name , singer_id | vocalist : net_worth_millions , citizenship , birth_year , name , singer_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the singer": "singer.Name", + "net worth": "singer.Net_Worth_Millions" + } + }, + { + "question": "what is the #name of the singer# who is #worth# the most?", + "db_id": "singer", + "orig_query": "select name from singer order by net_worth_millions desc limit 1", + "schema_with_content": "song : title (\"Call on Me\", \"Call on Me\", \"Cha Cha Slide\"), sales (335000.0, 261000.0, 552407.0), song_id (8, 6, 2), highest_position (1.0, 3.0), singer_id (7, 5, 7) | vocalist : singer_id (1, 6, 1), net_worth_millions (26.3, 14.3, 17.0), birth_year (1953.0, 1942.0, 1961.0), citizenship (\"Chile\", \"France\", \"United States\"), name (\"Susanne Klatten\", \"Christy Walton\", \"Susanne Klatten\") | musician : singer_id (1, 6, 1), net_worth_millions (26.3, 14.3, 17.0), birth_year (1953.0, 1942.0, 1961.0), citizenship (\"Chile\", \"France\", \"United States\"), name (\"Susanne Klatten\", \"Christy Walton\", \"Susanne Klatten\")", + "schema_without_content": "song : title , sales , song_id , highest_position , singer_id | vocalist : singer_id , net_worth_millions , birth_year , citizenship , name | musician : singer_id , net_worth_millions , birth_year , citizenship , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of the singer": "singer.Name", + "worth": "singer.Net_Worth_Millions" + } + }, + { + "question": "show different #citizenship of singers# and the number of #singers of each citizenship# .", + "db_id": "singer", + "orig_query": "select citizenship, count(*) from singer group by citizenship", + "schema_with_content": "vocalist : name (\"Susanne Klatten\", \"Christy Walton\", \"Iris Fontbona\"), net_worth_millions (17.8, 17.4, 17.0), birth_year (1962.0, 1942.0, 1944.0), singer_id (5, 5, 2), citizenship (\"Australia\", \"Germany\", \"United States\") | song : song_id (1, 4, 2), singer_id (4, 6, 6), highest_position (1.0, 3.0), sales (335000.0, 300000.0, 292000.0), title (\"Do They Know It's Christmas\", \"Yeah\", \"Call on Me\") | musician : name (\"Susanne Klatten\", \"Christy Walton\", \"Iris Fontbona\"), net_worth_millions (17.8, 17.4, 17.0), birth_year (1962.0, 1942.0, 1944.0), singer_id (5, 5, 2), citizenship (\"Australia\", \"Germany\", \"United States\")", + "schema_without_content": "vocalist : name , net_worth_millions , birth_year , singer_id , citizenship | song : song_id , singer_id , highest_position , sales , title | musician : name , net_worth_millions , birth_year , singer_id , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenship of singers": "singer.Citizenship", + "singers of each citizenship": "singer.Citizenship" + } + }, + { + "question": "for each #citizenship# , how many #singers# are from that country?", + "db_id": "singer", + "orig_query": "select citizenship, count(*) from singer group by citizenship", + "schema_with_content": "musician : name (\"Susanne Klatten\", \"Abigail Johnson\", \"Gina Rinehart\"), singer_id (4, 5, 5), birth_year (1948.0, 1948.0, 1961.0), citizenship (\"United States\", \"France\", \"France\"), net_worth_millions (17.8, 14.3, 17.4) | vocalist : name (\"Susanne Klatten\", \"Abigail Johnson\", \"Gina Rinehart\"), singer_id (4, 5, 5), birth_year (1948.0, 1948.0, 1961.0), citizenship (\"United States\", \"France\", \"France\"), net_worth_millions (17.8, 14.3, 17.4) | song : singer_id (2, 1, 5), title (\"Yeah\", \"Do They Know It's Christmas\", \"Cha Cha Slide\"), song_id (7, 7, 4), sales (275000.0, 275000.0, 335000.0), highest_position (1.0, 3.0)", + "schema_without_content": "musician : name , singer_id , birth_year , citizenship , net_worth_millions | vocalist : name , singer_id , birth_year , citizenship , net_worth_millions | song : singer_id , title , song_id , sales , highest_position", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenship": "singer.Citizenship", + "singers": "singer" + } + }, + { + "question": "please show the most common #citizenship of singers# .", + "db_id": "singer", + "orig_query": "select citizenship from singer group by citizenship order by count(*) desc limit 1", + "schema_with_content": "song : sales (335000.0, 261000.0, 552407.0), highest_position (1.0, 3.0), singer_id (1, 7, 7), title (\"Left Outside Alone\", \"Left Outside Alone\", \"Call on Me\"), song_id (7, 7, 8) | vocalist : singer_id (5, 3, 2), citizenship (\"Australia\", \"United States\", \"Germany\"), net_worth_millions (17.8, 14.3, 17.4), birth_year (1944.0, 1953.0, 1962.0), name (\"Liliane Bettencourt\", \"Alice Walton\", \"Gina Rinehart\") | musician : singer_id (5, 3, 2), citizenship (\"Australia\", \"United States\", \"Germany\"), net_worth_millions (17.8, 14.3, 17.4), birth_year (1944.0, 1953.0, 1962.0), name (\"Liliane Bettencourt\", \"Alice Walton\", \"Gina Rinehart\")", + "schema_without_content": "song : sales , highest_position , singer_id , title , song_id | vocalist : singer_id , citizenship , net_worth_millions , birth_year , name | musician : singer_id , citizenship , net_worth_millions , birth_year , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenship of singers": "singer.Citizenship" + } + }, + { + "question": "show different #citizenships# and the #maximum net worth of singers# of each citizenship.", + "db_id": "singer", + "orig_query": "select citizenship, max(net_worth_millions) from singer group by citizenship", + "schema_with_content": "vocalist : citizenship (\"Germany\", \"Chile\", \"Germany\"), birth_year (1949.0, 1949.0, 1940.0), net_worth_millions (17.8, 17.4, 17.4), singer_id (3, 5, 3), name (\"Susanne Klatten\", \"Abigail Johnson\", \"Jacqueline Mars\") | musician : citizenship (\"Germany\", \"Chile\", \"Germany\"), birth_year (1949.0, 1949.0, 1940.0), net_worth_millions (17.8, 17.4, 17.4), singer_id (3, 5, 3), name (\"Susanne Klatten\", \"Abigail Johnson\", \"Jacqueline Mars\") | song : highest_position (1.0, 3.0), singer_id (7, 7, 1), title (\"All This Time\", \"Left Outside Alone\", \"Do They Know It's Christmas\"), song_id (4, 3, 2), sales (552407.0, 552407.0, 351421.0)", + "schema_without_content": "vocalist : citizenship , birth_year , net_worth_millions , singer_id , name | musician : citizenship , birth_year , net_worth_millions , singer_id , name | song : highest_position , singer_id , title , song_id , sales", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenships": "singer.Citizenship", + "maximum net worth of singers": "singer.Net_Worth_Millions" + } + }, + { + "question": "for each #citizenship# , what is the #maximum net worth# ?", + "db_id": "singer", + "orig_query": "select citizenship, max(net_worth_millions) from singer group by citizenship", + "schema_with_content": "vocalist : net_worth_millions (28.8, 30.0, 26.3), singer_id (2, 5, 1), citizenship (\"France\", \"France\", \"United States\"), birth_year (1948.0, 1953.0, 1944.0), name (\"Christy Walton\", \"Christy Walton\", \"Gina Rinehart\") | song : sales (335000.0, 552407.0, 292000.0), singer_id (4, 7, 6), title (\"Mysterious Girl\", \"Left Outside Alone\", \"Mysterious Girl\"), highest_position (1.0, 3.0), song_id (1, 3, 2) | musician : net_worth_millions (28.8, 30.0, 26.3), singer_id (2, 5, 1), citizenship (\"France\", \"France\", \"United States\"), birth_year (1948.0, 1953.0, 1944.0), name (\"Christy Walton\", \"Christy Walton\", \"Gina Rinehart\")", + "schema_without_content": "vocalist : net_worth_millions , singer_id , citizenship , birth_year , name | song : sales , singer_id , title , highest_position , song_id | musician : net_worth_millions , singer_id , citizenship , birth_year , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenship": "singer.Citizenship", + "maximum net worth": "singer.Net_Worth_Millions" + } + }, + { + "question": "show #titles of songs# and #names of singers# .", + "db_id": "singer", + "orig_query": "select t2.title, t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id", + "schema_with_content": "musician : net_worth_millions (14.3, 12.7, 17.0), birth_year (1953.0, 1948.0, 1942.0), citizenship (\"Australia\", \"United States\", \"Germany\"), singer_id (5, 4, 7), name (\"Iris Fontbona\", \"Alice Walton\", \"Christy Walton\") | vocalist : net_worth_millions (14.3, 12.7, 17.0), birth_year (1953.0, 1948.0, 1942.0), citizenship (\"Australia\", \"United States\", \"Germany\"), singer_id (5, 4, 7), name (\"Iris Fontbona\", \"Alice Walton\", \"Christy Walton\") | song : song_id (4, 6, 2), singer_id (2, 1, 4), title (\"Yeah\", \"Cha Cha Slide\", \"Yeah\"), highest_position (1.0, 3.0), sales (261000.0, 275000.0, 292000.0)", + "schema_without_content": "musician : net_worth_millions , birth_year , citizenship , singer_id , name | vocalist : net_worth_millions , birth_year , citizenship , singer_id , name | song : song_id , singer_id , title , highest_position , sales", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "titles of songs": "song.Title", + "names of singers": "singer.Name" + } + }, + { + "question": "show #titles of songs# and #names of singers# .", + "db_id": "singer", + "orig_query": "select t2.title, t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id", + "schema_with_content": "composition : sales (261000.0, 351421.0, 275000.0), title (\"Yeah\", \"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\"), singer_id (2, 6, 7), highest_position (1.0, 3.0), song_id (1, 8, 5) | track : sales (261000.0, 351421.0, 275000.0), title (\"Yeah\", \"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\"), singer_id (2, 6, 7), highest_position (1.0, 3.0), song_id (1, 8, 5) | singer : name (\"Liliane Bettencourt\", \"Gina Rinehart\", \"Christy Walton\"), citizenship (\"United States\", \"Chile\", \"Australia\"), singer_id (7, 1, 1), net_worth_millions (28.8, 28.8, 28.8), birth_year (1948.0, 1962.0, 1942.0)", + "schema_without_content": "composition : sales , title \", \"F**k It \", singer_id , highest_position , song_id | track : sales , title \", \"F**k It \", singer_id , highest_position , song_id | singer : name , citizenship , singer_id , net_worth_millions , birth_year", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "titles of songs": "song.Title", + "names of singers": "singer.Name" + } + }, + { + "question": "what are the #song titles# and #singer names# ?", + "db_id": "singer", + "orig_query": "select t2.title, t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id", + "schema_with_content": "musician : name (\"Alice Walton\", \"Iris Fontbona\", \"Iris Fontbona\"), singer_id (6, 5, 5), citizenship (\"Germany\", \"France\", \"United States\"), net_worth_millions (28.8, 17.0, 26.3), birth_year (1944.0, 1953.0, 1944.0) | song : song_id (1, 1, 3), title (\"F**k It (I Don't Want You Back)\", \"Left Outside Alone\", \"Left Outside Alone\"), singer_id (6, 4, 6), highest_position (1.0, 3.0), sales (552407.0, 300000.0, 275000.0) | vocalist : name (\"Alice Walton\", \"Iris Fontbona\", \"Iris Fontbona\"), singer_id (6, 5, 5), citizenship (\"Germany\", \"France\", \"United States\"), net_worth_millions (28.8, 17.0, 26.3), birth_year (1944.0, 1953.0, 1944.0)", + "schema_without_content": "musician : name , singer_id , citizenship , net_worth_millions , birth_year | song : song_id , title \", \"Left Outside Alone\", \"Left Outside Alone\", singer_id , highest_position , sales | vocalist : name , singer_id , citizenship , net_worth_millions , birth_year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "song titles": "song.Title", + "singer names": "singer.Name" + } + }, + { + "question": "what are the #song titles# and #singer names# ?", + "db_id": "singer", + "orig_query": "select t2.title, t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id", + "schema_with_content": "singer : citizenship (\"United States\", \"France\", \"Australia\"), birth_year (1949.0, 1944.0, 1940.0), name (\"Iris Fontbona\", \"Jacqueline Mars\", \"Jacqueline Mars\"), net_worth_millions (30.0, 30.0, 26.3), singer_id (3, 8, 5) | composition : highest_position (1.0, 3.0), song_id (2, 4, 7), title (\"Do They Know It's Christmas\", \"Call on Me\", \"All This Time\"), sales (261000.0, 552407.0, 261000.0), singer_id (7, 2, 6) | track : highest_position (1.0, 3.0), song_id (2, 4, 7), title (\"Do They Know It's Christmas\", \"Call on Me\", \"All This Time\"), sales (261000.0, 552407.0, 261000.0), singer_id (7, 2, 6)", + "schema_without_content": "singer : citizenship , birth_year , name , net_worth_millions , singer_id | composition : highest_position , song_id , title , sales , singer_id | track : highest_position , song_id , title , sales , singer_id", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "song titles": "song.Title", + "singer names": "singer.Name" + } + }, + { + "question": "show distinct #names of singers# that have #songs with sales# more than 300000.", + "db_id": "singer", + "orig_query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", + "schema_with_content": "musician : birth_year (1949.0, 1940.0, 1942.0), singer_id (6, 2, 1), citizenship (\"Germany\", \"Chile\", \"Germany\"), name (\"Jacqueline Mars\", \"Jacqueline Mars\", \"Abigail Johnson\"), net_worth_millions (26.3, 12.7, 30.0) | song : song_id (8, 7, 6), highest_position (1.0, 3.0), title (\"Cha Cha Slide\", \"All This Time\", \"All This Time\"), sales (335000.0, 351421.0, 300000.0), singer_id (7, 2, 7) | vocalist : birth_year (1949.0, 1940.0, 1942.0), singer_id (6, 2, 1), citizenship (\"Germany\", \"Chile\", \"Germany\"), name (\"Jacqueline Mars\", \"Jacqueline Mars\", \"Abigail Johnson\"), net_worth_millions (26.3, 12.7, 30.0)", + "schema_without_content": "musician : birth_year , singer_id , citizenship , name , net_worth_millions | song : song_id , highest_position , title , sales , singer_id | vocalist : birth_year , singer_id , citizenship , name , net_worth_millions", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "songs with sales": "song.Sales" + } + }, + { + "question": "show distinct #names of singers# that have #songs with sales# more than 300000.", + "db_id": "singer", + "orig_query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", + "schema_with_content": "singer : singer_id (7, 5, 1), net_worth_millions (17.0, 26.3, 17.8), name (\"Jacqueline Mars\", \"Gina Rinehart\", \"Alice Walton\"), birth_year (1949.0, 1944.0, 1940.0), citizenship (\"United States\", \"Germany\", \"Chile\") | track : title (\"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\", \"All This Time\"), sales (292000.0, 1094000.0, 552407.0), song_id (7, 8, 3), singer_id (1, 1, 4), highest_position (1.0, 3.0) | composition : title (\"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\", \"All This Time\"), sales (292000.0, 1094000.0, 552407.0), song_id (7, 8, 3), singer_id (1, 1, 4), highest_position (1.0, 3.0)", + "schema_without_content": "singer : singer_id , net_worth_millions , name , birth_year , citizenship | track : title \", \"F**k It \", \"All This Time\", sales , song_id , singer_id , highest_position | composition : title \", \"F**k It \", \"All This Time\", sales , song_id , singer_id , highest_position", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "songs with sales": "song.Sales" + } + }, + { + "question": "what are the different #names of the singers# that have #sales# more than 300000?", + "db_id": "singer", + "orig_query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", + "schema_with_content": "song : singer_id (5, 7, 4), title (\"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\", \"Mysterious Girl\"), song_id (2, 6, 6), sales (1094000.0, 300000.0, 335000.0), highest_position (1.0, 3.0) | musician : singer_id (7, 7, 4), net_worth_millions (14.3, 12.7, 17.0), name (\"Alice Walton\", \"Iris Fontbona\", \"Gina Rinehart\"), birth_year (1940.0, 1949.0, 1949.0), citizenship (\"United States\", \"United States\", \"France\") | vocalist : singer_id (7, 7, 4), net_worth_millions (14.3, 12.7, 17.0), name (\"Alice Walton\", \"Iris Fontbona\", \"Gina Rinehart\"), birth_year (1940.0, 1949.0, 1949.0), citizenship (\"United States\", \"United States\", \"France\")", + "schema_without_content": "song : singer_id , title \", \"F**k It \", \"Mysterious Girl\", song_id , sales , highest_position | musician : singer_id , net_worth_millions , name , birth_year , citizenship | vocalist : singer_id , net_worth_millions , name , birth_year , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "sales": "song.Sales" + } + }, + { + "question": "what are the different #names of the singers# that have #sales# more than 300000?", + "db_id": "singer", + "orig_query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", + "schema_with_content": "track : title (\"F**k It (I Don't Want You Back)\", \"Left Outside Alone\", \"All This Time\"), song_id (5, 7, 3), singer_id (7, 4, 5), sales (1094000.0, 1094000.0, 1094000.0), highest_position (1.0, 3.0) | singer : singer_id (2, 8, 5), birth_year (1949.0, 1948.0, 1949.0), net_worth_millions (28.8, 17.8, 30.0), citizenship (\"Australia\", \"Germany\", \"France\"), name (\"Gina Rinehart\", \"Jacqueline Mars\", \"Gina Rinehart\") | composition : title (\"F**k It (I Don't Want You Back)\", \"Left Outside Alone\", \"All This Time\"), song_id (5, 7, 3), singer_id (7, 4, 5), sales (1094000.0, 1094000.0, 1094000.0), highest_position (1.0, 3.0)", + "schema_without_content": "track : title \", \"Left Outside Alone\", \"All This Time\", song_id , singer_id , sales , highest_position | singer : singer_id , birth_year , net_worth_millions , citizenship , name | composition : title \", \"Left Outside Alone\", \"All This Time\", song_id , singer_id , sales , highest_position", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "sales": "song.Sales" + } + }, + { + "question": "show the #names of singers# that have more than one #song# .", + "db_id": "singer", + "orig_query": "select t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name having count(*) > 1", + "schema_with_content": "song : sales (351421.0, 292000.0, 300000.0), highest_position (1.0, 3.0), singer_id (1, 2, 4), title (\"F**k It (I Don't Want You Back)\", \"Call on Me\", \"F**k It (I Don't Want You Back)\"), song_id (8, 1, 2) | musician : singer_id (6, 7, 6), citizenship (\"Australia\", \"Australia\", \"Australia\"), birth_year (1962.0, 1948.0, 1961.0), net_worth_millions (28.8, 17.0, 17.4), name (\"Liliane Bettencourt\", \"Alice Walton\", \"Gina Rinehart\") | vocalist : singer_id (6, 7, 6), citizenship (\"Australia\", \"Australia\", \"Australia\"), birth_year (1962.0, 1948.0, 1961.0), net_worth_millions (28.8, 17.0, 17.4), name (\"Liliane Bettencourt\", \"Alice Walton\", \"Gina Rinehart\")", + "schema_without_content": "song : sales , highest_position , singer_id , title \", \"Call on Me\", \"F**k It \", song_id | musician : singer_id , citizenship , birth_year , net_worth_millions , name | vocalist : singer_id , citizenship , birth_year , net_worth_millions , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "song": "song" + } + }, + { + "question": "show the #names of singers# that have more than one #song# .", + "db_id": "singer", + "orig_query": "select t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name having count(*) > 1", + "schema_with_content": "track : highest_position (1.0, 3.0), title (\"Call on Me\", \"Left Outside Alone\", \"Cha Cha Slide\"), song_id (4, 1, 5), singer_id (6, 1, 7), sales (292000.0, 292000.0, 261000.0) | composition : highest_position (1.0, 3.0), title (\"Call on Me\", \"Left Outside Alone\", \"Cha Cha Slide\"), song_id (4, 1, 5), singer_id (6, 1, 7), sales (292000.0, 292000.0, 261000.0) | singer : net_worth_millions (28.8, 17.4, 26.3), name (\"Susanne Klatten\", \"Susanne Klatten\", \"Liliane Bettencourt\"), birth_year (1940.0, 1944.0, 1953.0), citizenship (\"Australia\", \"Australia\", \"Chile\"), singer_id (4, 6, 1)", + "schema_without_content": "track : highest_position , title , song_id , singer_id , sales | composition : highest_position , title , song_id , singer_id , sales | singer : net_worth_millions , name , birth_year , citizenship , singer_id", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "song": "song" + } + }, + { + "question": "what are the #names of the singers# that have more than one #songs# ?", + "db_id": "singer", + "orig_query": "select t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name having count(*) > 1", + "schema_with_content": "song : highest_position (1.0, 3.0), song_id (5, 4, 3), singer_id (2, 6, 7), title (\"All This Time\", \"Mysterious Girl\", \"Yeah\"), sales (335000.0, 335000.0, 1094000.0) | musician : citizenship (\"Germany\", \"United States\", \"United States\"), name (\"Alice Walton\", \"Liliane Bettencourt\", \"Susanne Klatten\"), singer_id (3, 2, 1), net_worth_millions (12.7, 12.7, 28.8), birth_year (1942.0, 1962.0, 1944.0) | vocalist : citizenship (\"Germany\", \"United States\", \"United States\"), name (\"Alice Walton\", \"Liliane Bettencourt\", \"Susanne Klatten\"), singer_id (3, 2, 1), net_worth_millions (12.7, 12.7, 28.8), birth_year (1942.0, 1962.0, 1944.0)", + "schema_without_content": "song : highest_position , song_id , singer_id , title , sales | musician : citizenship , name , singer_id , net_worth_millions , birth_year | vocalist : citizenship , name , singer_id , net_worth_millions , birth_year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "songs": "song" + } + }, + { + "question": "what are the #names of the singers# that have more than one #songs# ?", + "db_id": "singer", + "orig_query": "select t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name having count(*) > 1", + "schema_with_content": "composition : title (\"Do They Know It's Christmas\", \"Mysterious Girl\", \"Do They Know It's Christmas\"), song_id (6, 6, 7), singer_id (4, 1, 1), sales (552407.0, 261000.0, 261000.0), highest_position (1.0, 3.0) | singer : citizenship (\"United States\", \"France\", \"Chile\"), singer_id (8, 1, 8), net_worth_millions (14.3, 26.3, 14.3), name (\"Liliane Bettencourt\", \"Susanne Klatten\", \"Alice Walton\"), birth_year (1944.0, 1944.0, 1940.0) | track : title (\"Do They Know It's Christmas\", \"Mysterious Girl\", \"Do They Know It's Christmas\"), song_id (6, 6, 7), singer_id (4, 1, 1), sales (552407.0, 261000.0, 261000.0), highest_position (1.0, 3.0)", + "schema_without_content": "composition : title , song_id , singer_id , sales , highest_position | singer : citizenship , singer_id , net_worth_millions , name , birth_year | track : title , song_id , singer_id , sales , highest_position", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "names of the singers": "singer.Name", + "songs": "song" + } + }, + { + "question": "show the #names of singers# and the #total sales of their songs# .", + "db_id": "singer", + "orig_query": "select t1.name, sum(t2.sales) from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name", + "schema_with_content": "musician : birth_year (1953.0, 1949.0, 1940.0), singer_id (5, 7, 8), net_worth_millions (12.7, 14.3, 28.8), name (\"Christy Walton\", \"Alice Walton\", \"Liliane Bettencourt\"), citizenship (\"Germany\", \"Germany\", \"Chile\") | song : singer_id (7, 1, 4), song_id (8, 5, 8), sales (351421.0, 552407.0, 292000.0), title (\"F**k It (I Don't Want You Back)\", \"Left Outside Alone\", \"F**k It (I Don't Want You Back)\"), highest_position (1.0, 3.0) | vocalist : birth_year (1953.0, 1949.0, 1940.0), singer_id (5, 7, 8), net_worth_millions (12.7, 14.3, 28.8), name (\"Christy Walton\", \"Alice Walton\", \"Liliane Bettencourt\"), citizenship (\"Germany\", \"Germany\", \"Chile\")", + "schema_without_content": "musician : birth_year , singer_id , net_worth_millions , name , citizenship | song : singer_id , song_id , sales , title \", \"Left Outside Alone\", \"F**k It \", highest_position | vocalist : birth_year , singer_id , net_worth_millions , name , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "total sales of their songs": "song.Sales" + } + }, + { + "question": "show the #names of singers# and the #total sales of their songs# .", + "db_id": "singer", + "orig_query": "select t1.name, sum(t2.sales) from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name", + "schema_with_content": "singer : birth_year (1942.0, 1962.0, 1948.0), net_worth_millions (17.8, 14.3, 30.0), citizenship (\"France\", \"United States\", \"Chile\"), singer_id (2, 2, 6), name (\"Alice Walton\", \"Liliane Bettencourt\", \"Susanne Klatten\") | composition : title (\"Call on Me\", \"Mysterious Girl\", \"Left Outside Alone\"), sales (1094000.0, 261000.0, 261000.0), singer_id (4, 5, 1), song_id (5, 7, 3), highest_position (1.0, 3.0) | track : title (\"Call on Me\", \"Mysterious Girl\", \"Left Outside Alone\"), sales (1094000.0, 261000.0, 261000.0), singer_id (4, 5, 1), song_id (5, 7, 3), highest_position (1.0, 3.0)", + "schema_without_content": "singer : birth_year , net_worth_millions , citizenship , singer_id , name | composition : title , sales , singer_id , song_id , highest_position | track : title , sales , singer_id , song_id , highest_position", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "names of singers": "singer.Name", + "total sales of their songs": "song.Sales" + } + }, + { + "question": "for each #singer name# , what is the #total sales# for their #songs# ?", + "db_id": "singer", + "orig_query": "select t1.name, sum(t2.sales) from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name", + "schema_with_content": "song : singer_id (1, 5, 5), song_id (6, 3, 6), sales (292000.0, 1094000.0, 351421.0), title (\"Cha Cha Slide\", \"Yeah\", \"Cha Cha Slide\"), highest_position (1.0, 3.0) | vocalist : singer_id (6, 2, 8), name (\"Christy Walton\", \"Susanne Klatten\", \"Abigail Johnson\"), net_worth_millions (14.3, 26.3, 17.0), citizenship (\"Germany\", \"Chile\", \"Australia\"), birth_year (1953.0, 1949.0, 1949.0) | musician : singer_id (6, 2, 8), name (\"Christy Walton\", \"Susanne Klatten\", \"Abigail Johnson\"), net_worth_millions (14.3, 26.3, 17.0), citizenship (\"Germany\", \"Chile\", \"Australia\"), birth_year (1953.0, 1949.0, 1949.0)", + "schema_without_content": "song : singer_id , song_id , sales , title , highest_position | vocalist : singer_id , name , net_worth_millions , citizenship , birth_year | musician : singer_id , name , net_worth_millions , citizenship , birth_year", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "singer name": "singer.Name", + "total sales": "song.Sales", + "songs": "song" + } + }, + { + "question": "for each #singer name# , what is the #total sales# for their #songs# ?", + "db_id": "singer", + "orig_query": "select t1.name, sum(t2.sales) from singer as t1 join song as t2 on t1.singer_id = t2.singer_id group by t1.name", + "schema_with_content": "composition : song_id (2, 1, 4), highest_position (1.0, 3.0), singer_id (2, 5, 7), sales (261000.0, 275000.0, 275000.0), title (\"F**k It (I Don't Want You Back)\", \"Call on Me\", \"Left Outside Alone\") | track : song_id (2, 1, 4), highest_position (1.0, 3.0), singer_id (2, 5, 7), sales (261000.0, 275000.0, 275000.0), title (\"F**k It (I Don't Want You Back)\", \"Call on Me\", \"Left Outside Alone\") | singer : singer_id (3, 6, 2), birth_year (1961.0, 1940.0, 1949.0), net_worth_millions (12.7, 12.7, 17.0), citizenship (\"United States\", \"Germany\", \"France\"), name (\"Liliane Bettencourt\", \"Alice Walton\", \"Jacqueline Mars\")", + "schema_without_content": "composition : song_id , highest_position , singer_id , sales , title \", \"Call on Me\", \"Left Outside Alone\" | track : song_id , highest_position , singer_id , sales , title \", \"Call on Me\", \"Left Outside Alone\" | singer : singer_id , birth_year , net_worth_millions , citizenship , name", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "singer name": "singer.Name", + "total sales": "song.Sales", + "songs": "song" + } + }, + { + "question": "list the #name of singers# that do not have any #song# .", + "db_id": "singer", + "orig_query": "select name from singer where singer_id not in (select singer_id from song)", + "schema_with_content": "song : title (\"Mysterious Girl\", \"Yeah\", \"F**k It (I Don't Want You Back)\"), singer_id (4, 5, 4), highest_position (1.0, 3.0), sales (1094000.0, 300000.0, 300000.0), song_id (5, 7, 3) | vocalist : name (\"Liliane Bettencourt\", \"Iris Fontbona\", \"Iris Fontbona\"), birth_year (1949.0, 1962.0, 1944.0), net_worth_millions (17.4, 17.4, 12.7), singer_id (5, 2, 6), citizenship (\"Chile\", \"Germany\", \"Australia\") | musician : name (\"Liliane Bettencourt\", \"Iris Fontbona\", \"Iris Fontbona\"), birth_year (1949.0, 1962.0, 1944.0), net_worth_millions (17.4, 17.4, 12.7), singer_id (5, 2, 6), citizenship (\"Chile\", \"Germany\", \"Australia\")", + "schema_without_content": "song : title \", singer_id , highest_position , sales , song_id | vocalist : name , birth_year , net_worth_millions , singer_id , citizenship | musician : name , birth_year , net_worth_millions , singer_id , citizenship", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "name of singers": "singer.Name", + "song": "song" + } + }, + { + "question": "list the #name of singers# that do not have any #song# .", + "db_id": "singer", + "orig_query": "select name from singer where singer_id not in (select singer_id from song)", + "schema_with_content": "track : title (\"Cha Cha Slide\", \"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\"), highest_position (1.0, 3.0), song_id (7, 4, 6), sales (335000.0, 351421.0, 351421.0), singer_id (4, 5, 4) | composition : title (\"Cha Cha Slide\", \"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\"), highest_position (1.0, 3.0), song_id (7, 4, 6), sales (335000.0, 351421.0, 351421.0), singer_id (4, 5, 4) | singer : name (\"Liliane Bettencourt\", \"Jacqueline Mars\", \"Alice Walton\"), citizenship (\"Australia\", \"Chile\", \"Chile\"), singer_id (6, 3, 8), birth_year (1948.0, 1949.0, 1942.0), net_worth_millions (26.3, 12.7, 17.0)", + "schema_without_content": "track : title \", \"F**k It \", highest_position , song_id , sales , singer_id | composition : title \", \"F**k It \", highest_position , song_id , sales , singer_id | singer : name , citizenship , singer_id , birth_year , net_worth_millions", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "name of singers": "singer.Name", + "song": "song" + } + }, + { + "question": "what is the #sname# of every #sing# that does not have any #song# ?", + "db_id": "singer", + "orig_query": "select name from singer where singer_id not in (select singer_id from song)", + "schema_with_content": "song : singer_id (7, 5, 4), title (\"Do They Know It's Christmas\", \"Call on Me\", \"All This Time\"), sales (335000.0, 292000.0, 351421.0), highest_position (1.0, 3.0), song_id (4, 7, 2) | musician : singer_id (2, 6, 1), birth_year (1961.0, 1953.0, 1949.0), citizenship (\"France\", \"France\", \"United States\"), net_worth_millions (12.7, 17.0, 17.4), name (\"Liliane Bettencourt\", \"Christy Walton\", \"Christy Walton\") | vocalist : singer_id (2, 6, 1), birth_year (1961.0, 1953.0, 1949.0), citizenship (\"France\", \"France\", \"United States\"), net_worth_millions (12.7, 17.0, 17.4), name (\"Liliane Bettencourt\", \"Christy Walton\", \"Christy Walton\")", + "schema_without_content": "song : singer_id , title , sales , highest_position , song_id | musician : singer_id , birth_year , citizenship , net_worth_millions , name | vocalist : singer_id , birth_year , citizenship , net_worth_millions , name", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "sname": "singer.Name", + "sing": "singer", + "song": "song" + } + }, + { + "question": "what is the #sname# of every #sing# that does not have any #song# ?", + "db_id": "singer", + "orig_query": "select name from singer where singer_id not in (select singer_id from song)", + "schema_with_content": "track : sales (275000.0, 275000.0, 292000.0), singer_id (6, 4, 7), highest_position (1.0, 3.0), song_id (2, 6, 6), title (\"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\", \"Do They Know It's Christmas\") | singer : name (\"Jacqueline Mars\", \"Iris Fontbona\", \"Susanne Klatten\"), citizenship (\"France\", \"Chile\", \"Chile\"), net_worth_millions (17.0, 30.0, 17.0), birth_year (1948.0, 1944.0, 1940.0), singer_id (2, 2, 1) | composition : sales (275000.0, 275000.0, 292000.0), singer_id (6, 4, 7), highest_position (1.0, 3.0), song_id (2, 6, 6), title (\"F**k It (I Don't Want You Back)\", \"F**k It (I Don't Want You Back)\", \"Do They Know It's Christmas\")", + "schema_without_content": "track : sales , singer_id , highest_position , song_id , title \", \"F**k It \", \"Do They Know It's Christmas\" | singer : name , citizenship , net_worth_millions , birth_year , singer_id | composition : sales , singer_id , highest_position , song_id , title \", \"F**k It \", \"Do They Know It's Christmas\"", + "extra_map": null, + "extra_table_map": { + "song": [ + "track", + "composition" + ] + }, + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "column_linking_gt": { + "sname": "singer.Name", + "sing": "singer", + "song": "song" + } + }, + { + "question": "show the #citizenship# shared by #singers with birth year# before 1945 and after 1955.", + "db_id": "singer", + "orig_query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", + "schema_with_content": "musician : citizenship (\"Australia\", \"France\", \"Chile\"), singer_id (1, 1, 8), net_worth_millions (30.0, 17.0, 17.4), name (\"Susanne Klatten\", \"Abigail Johnson\", \"Jacqueline Mars\"), birth_year (1953.0, 1962.0, 1940.0) | vocalist : citizenship (\"Australia\", \"France\", \"Chile\"), singer_id (1, 1, 8), net_worth_millions (30.0, 17.0, 17.4), name (\"Susanne Klatten\", \"Abigail Johnson\", \"Jacqueline Mars\"), birth_year (1953.0, 1962.0, 1940.0) | song : singer_id (6, 4, 2), highest_position (1.0, 3.0), sales (275000.0, 1094000.0, 335000.0), title (\"Cha Cha Slide\", \"Left Outside Alone\", \"F**k It (I Don't Want You Back)\"), song_id (5, 1, 2)", + "schema_without_content": "musician : citizenship , singer_id , net_worth_millions , name , birth_year | vocalist : citizenship , singer_id , net_worth_millions , name , birth_year | song : singer_id , highest_position , sales , title \", song_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenship": "singer.Citizenship", + "singers with birth year": "singer.Birth_Year" + } + }, + { + "question": "what are the #citizenships# that are shared by #singers with a birth year# before 1945 and after 1955?", + "db_id": "singer", + "orig_query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", + "schema_with_content": "song : highest_position (1.0, 3.0), song_id (8, 7, 6), sales (335000.0, 292000.0, 1094000.0), title (\"Do They Know It's Christmas\", \"Cha Cha Slide\", \"Mysterious Girl\"), singer_id (2, 1, 2) | vocalist : net_worth_millions (14.3, 12.7, 30.0), birth_year (1948.0, 1949.0, 1961.0), name (\"Abigail Johnson\", \"Liliane Bettencourt\", \"Susanne Klatten\"), citizenship (\"Chile\", \"Germany\", \"Australia\"), singer_id (1, 8, 7) | musician : net_worth_millions (14.3, 12.7, 30.0), birth_year (1948.0, 1949.0, 1961.0), name (\"Abigail Johnson\", \"Liliane Bettencourt\", \"Susanne Klatten\"), citizenship (\"Chile\", \"Germany\", \"Australia\"), singer_id (1, 8, 7)", + "schema_without_content": "song : highest_position , song_id , sales , title , singer_id | vocalist : net_worth_millions , birth_year , name , citizenship , singer_id | musician : net_worth_millions , birth_year , name , citizenship , singer_id", + "extra_map": null, + "extra_table_map": { + "singer": [ + "vocalist", + "musician" + ] + }, + "db_schema": { + "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" + ] + }, + "column_linking_gt": { + "citizenships": "singer.Citizenship", + "singers with a birth year": "singer.Birth_Year" + } + }, + { + "question": "what is the #feature# type name of feature aircon?", + "db_id": "real_estate_properties", + "orig_query": "select t2.feature_type_name from other_available_features as t1 join ref_feature_types as t2 on t1.feature_type_code = t2.feature_type_code where t1.feature_name = \"AirCon\"", + "schema_with_content": "other_available_features : feature_type_code (\"Amenity\", \"Security\"), feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_id (2, 3, 4), feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\") | Property_Features : feature_type_code (\"Amenity\", \"Security\"), feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\") | ref_property_types : property_type_code (\"Apartment\", \"Field\", \"Field\"), property_type_description (\"House, Bungalow, etc.\", \"Other, to be determined.\", \"Other, to be determined.\") | properties : apt_feature_3 (None), vendor_requested_price (77172926.3, 192374065.8, 77172926.3), shp_feature_2 (None), shp_feature_3 (None), buyer_offered_price (10.1067, 27537286, 0), hse_feature_2 (None), hse_feature_1 (None), room_count (6, 2, 5), fld_feature_1 (None), oth_feature_1 (None), property_type_code (\"Field\", \"House\", \"Other\"), other_property_details (None), date_sold (\"1973-02-24 02:56:06\", \"1998-09-15 05:26:22\", \"2001-11-09 04:37:33\"), property_address (\"4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682\", \"107 Roob Courts\nErdmanburgh, IA 42926-0873\", \"084 Lakin Vista Apt. 394\nFishertown, MA 16876\"), fld_feature_2 (None), shp_feature_1 (None), oth_feature_3 (None), property_id (7, 13, 15), property_name (\"park\", \"prism\", \"wall street\"), oth_feature_2 (None), apt_feature_2 (\"sit\", \"culpa\", \"suscipit\"), agreed_selling_price (4514.807, 244353758.1824, 476919.3), date_on_market (\"2003-12-25 16:13:19\", \"1976-06-10 20:25:38\", \"1994-02-14 02:27:13\"), apt_feature_1 (\"ut\", \"nesciunt\", \"sed\"), hse_feature_3 (None), fld_feature_3 (None) | other_property_features : feature_id (3, 4, 2), property_id (14, 3, 13), property_feature_description (\"odio\", \"ad\", \"illo\") | Feature_Type_Reference : feature_type_code (\"Amenity\", \"Security\"), feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\")", + "schema_without_content": "other_available_features : feature_type_code , feature_name , feature_id , feature_description | Property_Features : feature_type_code , feature_type_name | ref_property_types : property_type_code , property_type_description | properties : apt_feature_3 , vendor_requested_price , shp_feature_2 , shp_feature_3 , buyer_offered_price , hse_feature_2 , hse_feature_1 , room_count , fld_feature_1 , oth_feature_1 , property_type_code , other_property_details , date_sold , property_address , fld_feature_2 , shp_feature_1 , oth_feature_3 , property_id , property_name , oth_feature_2 , apt_feature_2 , agreed_selling_price , date_on_market , apt_feature_1 , hse_feature_3 , fld_feature_3 | other_property_features : feature_id , property_id , property_feature_description | Feature_Type_Reference : feature_type_code , feature_type_name", + "extra_map": null, + "extra_table_map": { + "ref_feature_types": [ + "Feature_Type_Reference", + "Property_Features" + ] + }, + "db_schema": { + "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" + ], + "Feature_Type_Reference": [ + "feature_type_code", + "feature_type_name" + ], + "Property_Features": [ + "feature_type_code", + "feature_type_name" + ] + }, + "column_linking_gt": { + "feature": "Other_Available_Features.feature_name", + "feature type name": "Ref_Feature_Types.feature_type_name" + } + }, + { + "question": "what is the #feature# type name of feature aircon?", + "db_id": "real_estate_properties", + "orig_query": "select t2.feature_type_name from other_available_features as t1 join ref_feature_types as t2 on t1.feature_type_code = t2.feature_type_code where t1.feature_name = \"AirCon\"", + "schema_with_content": "Extra_Property_Features : feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\"), feature_id (2, 3, 4), feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_type_code (\"Amenity\", \"Security\") | ref_property_types : property_type_code (\"House\", \"Apartment\", \"Shop\"), property_type_description (\"Other, to be determined.\", \"Apartment, Flat, Condo, etc.\", \"Apartment, Flat, Condo, etc.\") | Additional_Features : feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\"), feature_id (2, 3, 4), feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_type_code (\"Amenity\", \"Security\") | other_property_features : property_feature_description (\"odio\", \"modi\", \"cumque\"), feature_id (3, 4, 2), property_id (6, 9, 13) | properties : property_type_code (\"Other\", \"Other\", \"Other\"), property_id (4, 10, 15), fld_feature_2 (None), oth_feature_2 (None), date_sold (\"1979-05-13 16:58:06\", \"1979-05-13 16:58:06\", \"2001-11-09 04:37:33\"), room_count (6, 3, 3), apt_feature_1 (\"ut\", \"nesciunt\", \"et\"), other_property_details (None), shp_feature_2 (None), oth_feature_3 (None), vendor_requested_price (983.8596, 192374065.8, 150045.7568), property_address (\"062 Micaela Court Apt. 707\nMargretville, WV 51628-3617\", \"49578 Ayden Mountains\nNew Russellhaven, UT 46626\", \"2765 Schulist Stream\nLindmouth, UT 03391-3817\"), fld_feature_3 (None), buyer_offered_price (296733, 1.68, 15.17), shp_feature_3 (None), hse_feature_2 (None), property_name (\"high line\", \"high line\", \"prism\"), date_on_market (\"1991-06-21 23:52:10\", \"1976-06-10 20:25:38\", \"2017-09-14 15:49:23\"), agreed_selling_price (456840888.16, 456840888.16, 3344706.5755), shp_feature_1 (None), apt_feature_3 (None), hse_feature_3 (None), apt_feature_2 (\"aut\", \"eos\", \"odio\"), oth_feature_1 (None), hse_feature_1 (None), fld_feature_1 (None) | ref_feature_types : feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\"), feature_type_code (\"Amenity\", \"Security\")", + "schema_without_content": "Extra_Property_Features : feature_description , feature_id , feature_name , feature_type_code | ref_property_types : property_type_code , property_type_description | Additional_Features : feature_description , feature_id , feature_name , feature_type_code | other_property_features : property_feature_description , feature_id , property_id | properties : property_type_code , property_id , fld_feature_2 , oth_feature_2 , date_sold , room_count , apt_feature_1 , other_property_details , shp_feature_2 , oth_feature_3 , vendor_requested_price , property_address , fld_feature_3 , buyer_offered_price , shp_feature_3 , hse_feature_2 , property_name , date_on_market , agreed_selling_price , shp_feature_1 , apt_feature_3 , hse_feature_3 , apt_feature_2 , oth_feature_1 , hse_feature_1 , fld_feature_1 | ref_feature_types : feature_type_name , feature_type_code", + "extra_map": null, + "extra_table_map": { + "other_available_features": [ + "Additional_Features", + "Extra_Property_Features" + ] + }, + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_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" + ] + }, + "column_linking_gt": { + "feature": "Other_Available_Features.feature_name", + "feature type name": "Ref_Feature_Types.feature_type_name" + } + }, + { + "question": "show the #property type descriptions of properties# belonging to that #code# .", + "db_id": "real_estate_properties", + "orig_query": "select t2.property_type_description from properties as t1 join ref_property_types as t2 on t1.property_type_code = t2.property_type_code group by t1.property_type_code", + "schema_with_content": "other_property_features : feature_id (3, 4, 2), property_id (7, 6, 12), property_feature_description (\"odio\", \"et\", \"doloribus\") | ref_feature_types : feature_type_code (\"Amenity\", \"Security\"), feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\") | property_classification : property_type_description (\"Shop, Retail Outlet.\", \"House, Bungalow, etc.\", \"Other, to be determined.\"), property_type_code (\"Field\", \"Other\", \"Shop\") | property_categories : property_type_description (\"Shop, Retail Outlet.\", \"House, Bungalow, etc.\", \"Other, to be determined.\"), property_type_code (\"Field\", \"Other\", \"Shop\") | properties : hse_feature_1 (None), vendor_requested_price (2219.6778, 192374065.8, 2573), apt_feature_2 (\"vero\", \"odio\", \"et\"), agreed_selling_price (2574, 3344706.5755, 4201.8), oth_feature_3 (None), property_address (\"49578 Ayden Mountains\nNew Russellhaven, UT 46626\", \"743 Ephraim Greens\nAnniemouth, HI 47084-3853\", \"60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258\"), hse_feature_3 (None), hse_feature_2 (None), apt_feature_1 (\"est\", \"ut\", \"ut\"), oth_feature_2 (None), buyer_offered_price (1.68, 3520911.5258, 27537286), shp_feature_2 (None), property_name (\"wall street\", \"renoir\", \"longacre\"), shp_feature_3 (None), oth_feature_1 (None), fld_feature_1 (None), fld_feature_2 (None), room_count (1, 2, 9), property_id (4, 3, 14), property_type_code (\"Shop\", \"Other\", \"Apartment\"), apt_feature_3 (None), fld_feature_3 (None), other_property_details (None), date_on_market (\"1978-05-15 10:53:37\", \"2017-09-14 15:49:23\", \"2003-12-25 16:13:19\"), shp_feature_1 (None), date_sold (\"2012-08-19 07:36:57\", \"2001-11-09 04:37:33\", \"1971-04-14 03:23:49\") | other_available_features : feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\"), feature_type_code (\"Amenity\", \"Security\"), feature_id (2, 3, 4)", + "schema_without_content": "other_property_features : feature_id , property_id , property_feature_description | ref_feature_types : feature_type_code , feature_type_name | property_classification : property_type_description , property_type_code | property_categories : property_type_description , property_type_code | properties : hse_feature_1 , vendor_requested_price , apt_feature_2 , agreed_selling_price , oth_feature_3 , property_address , hse_feature_3 , hse_feature_2 , apt_feature_1 , oth_feature_2 , buyer_offered_price , shp_feature_2 , property_name , shp_feature_3 , oth_feature_1 , fld_feature_1 , fld_feature_2 , room_count , property_id , property_type_code , apt_feature_3 , fld_feature_3 , other_property_details , date_on_market , shp_feature_1 , date_sold | other_available_features : feature_name , feature_description , feature_type_code , feature_id", + "extra_map": null, + "extra_table_map": { + "ref_property_types": [ + "property_classification", + "property_categories" + ] + }, + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "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" + ], + "property_classification": [ + "property_type_code", + "property_type_description" + ], + "property_categories": [ + "property_type_code", + "property_type_description" + ] + }, + "column_linking_gt": { + "property type descriptions of properties": "Ref_Property_Types.property_type_description", + "code": "Properties.property_type_code" + } + }, + { + "question": "show the #property type descriptions of properties# belonging to that #code# .", + "db_id": "real_estate_properties", + "orig_query": "select t2.property_type_description from properties as t1 join ref_property_types as t2 on t1.property_type_code = t2.property_type_code group by t1.property_type_code", + "schema_with_content": "ref_property_types : property_type_code (\"Other\", \"Other\", \"Apartment\"), property_type_description (\"House, Bungalow, etc.\", \"Field, Meadow.\", \"Field, Meadow.\") | Estates : oth_feature_1 (None), agreed_selling_price (21769471.8328, 4514.807, 170766.472), apt_feature_1 (\"sed\", \"quos\", \"qui\"), hse_feature_1 (None), oth_feature_2 (None), shp_feature_2 (None), apt_feature_2 (\"adipisci\", \"adipisci\", \"odio\"), shp_feature_3 (None), shp_feature_1 (None), oth_feature_3 (None), other_property_details (None), property_address (\"1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097\", \"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\", \"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\"), hse_feature_2 (None), property_id (6, 4, 7), room_count (3, 2, 6), vendor_requested_price (1337, 6713620.9, 78.7208), fld_feature_2 (None), buyer_offered_price (27537286, 13991131.434, 1.68), fld_feature_1 (None), hse_feature_3 (None), property_name (\"parc coliseum\", \"avalon\", \"ten tower\"), apt_feature_3 (None), date_on_market (\"2000-08-07 06:59:14\", \"2003-12-25 16:13:19\", \"2016-05-06 16:53:39\"), property_type_code (\"Other\", \"Shop\", \"Field\"), date_sold (\"2012-08-19 07:36:57\", \"2012-08-19 07:36:57\", \"1990-11-14 19:16:38\"), fld_feature_3 (None) | other_property_features : property_id (14, 7, 3), feature_id (3, 4, 2), property_feature_description (\"hic\", \"autem\", \"dolorem\") | other_available_features : feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\"), feature_id (2, 3, 4), feature_type_code (\"Amenity\", \"Security\") | ref_feature_types : feature_type_code (\"Amenity\", \"Security\"), feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\") | Real_Estate_Listings : oth_feature_1 (None), agreed_selling_price (21769471.8328, 4514.807, 170766.472), apt_feature_1 (\"sed\", \"quos\", \"qui\"), hse_feature_1 (None), oth_feature_2 (None), shp_feature_2 (None), apt_feature_2 (\"adipisci\", \"adipisci\", \"odio\"), shp_feature_3 (None), shp_feature_1 (None), oth_feature_3 (None), other_property_details (None), property_address (\"1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097\", \"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\", \"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\"), hse_feature_2 (None), property_id (6, 4, 7), room_count (3, 2, 6), vendor_requested_price (1337, 6713620.9, 78.7208), fld_feature_2 (None), buyer_offered_price (27537286, 13991131.434, 1.68), fld_feature_1 (None), hse_feature_3 (None), property_name (\"parc coliseum\", \"avalon\", \"ten tower\"), apt_feature_3 (None), date_on_market (\"2000-08-07 06:59:14\", \"2003-12-25 16:13:19\", \"2016-05-06 16:53:39\"), property_type_code (\"Other\", \"Shop\", \"Field\"), date_sold (\"2012-08-19 07:36:57\", \"2012-08-19 07:36:57\", \"1990-11-14 19:16:38\"), fld_feature_3 (None)", + "schema_without_content": "ref_property_types : property_type_code , property_type_description | Estates : oth_feature_1 , agreed_selling_price , apt_feature_1 , hse_feature_1 , oth_feature_2 , shp_feature_2 , apt_feature_2 , shp_feature_3 , shp_feature_1 , oth_feature_3 , other_property_details , property_address , hse_feature_2 , property_id , room_count , vendor_requested_price , fld_feature_2 , buyer_offered_price , fld_feature_1 , hse_feature_3 , property_name , apt_feature_3 , date_on_market , property_type_code , date_sold , fld_feature_3 | other_property_features : property_id , feature_id , property_feature_description | other_available_features : feature_name , feature_description , feature_id , feature_type_code | ref_feature_types : feature_type_code , feature_type_name | Real_Estate_Listings : oth_feature_1 , agreed_selling_price , apt_feature_1 , hse_feature_1 , oth_feature_2 , shp_feature_2 , apt_feature_2 , shp_feature_3 , shp_feature_1 , oth_feature_3 , other_property_details , property_address , hse_feature_2 , property_id , room_count , vendor_requested_price , fld_feature_2 , buyer_offered_price , fld_feature_1 , hse_feature_3 , property_name , apt_feature_3 , date_on_market , property_type_code , date_sold , fld_feature_3", + "extra_map": null, + "extra_table_map": { + "properties": [ + "Estates", + "Real_Estate_Listings" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "property type descriptions of properties": "Ref_Property_Types.property_type_description", + "code": "Properties.property_type_code" + } + }, + { + "question": "what are the #names of properties# that are either #houses# or #apartments with more than 1 room# ?", + "db_id": "real_estate_properties", + "orig_query": "select property_name from properties where property_type_code = \"House\" union select property_name from properties where property_type_code = \"Apartment\" and room_count > 1", + "schema_with_content": "Real_Estate_Listings : oth_feature_1 (None), apt_feature_2 (\"sequi\", \"odio\", \"aut\"), hse_feature_1 (None), oth_feature_2 (None), agreed_selling_price (456840888.16, 4201.8, 21769471.8328), property_id (9, 5, 5), hse_feature_3 (None), apt_feature_1 (\"et\", \"ut\", \"et\"), shp_feature_3 (None), buyer_offered_price (13991131.434, 296733, 3520911.5258), room_count (1, 9, 5), property_address (\"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\", \"092 Paucek Highway Apt. 772\nEast Erika, IA 61358\", \"60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258\"), vendor_requested_price (661536468.4429, 983.8596, 2573), date_sold (\"1998-09-15 05:26:22\", \"1987-12-07 07:41:27\", \"1987-12-07 07:41:27\"), fld_feature_1 (None), oth_feature_3 (None), date_on_market (\"1986-12-31 10:05:32\", \"2017-09-14 15:49:23\", \"1993-08-04 10:49:04\"), fld_feature_3 (None), hse_feature_2 (None), property_name (\"park\", \"ten tower\", \"murray hill\"), other_property_details (None), shp_feature_1 (None), apt_feature_3 (None), property_type_code (\"Field\", \"Shop\", \"Shop\"), shp_feature_2 (None), fld_feature_2 (None) | other_available_features : feature_description (\"Air Conditioning.\", \"Swimming Pool.\", \"Burglar Alarm\"), feature_name (\"AirCon\", \"Pool\", \"BurglarAlarm\"), feature_id (2, 3, 4), feature_type_code (\"Amenity\", \"Security\") | Estates : oth_feature_1 (None), apt_feature_2 (\"sequi\", \"odio\", \"aut\"), hse_feature_1 (None), oth_feature_2 (None), agreed_selling_price (456840888.16, 4201.8, 21769471.8328), property_id (9, 5, 5), hse_feature_3 (None), apt_feature_1 (\"et\", \"ut\", \"et\"), shp_feature_3 (None), buyer_offered_price (13991131.434, 296733, 3520911.5258), room_count (1, 9, 5), property_address (\"098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537\", \"092 Paucek Highway Apt. 772\nEast Erika, IA 61358\", \"60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258\"), vendor_requested_price (661536468.4429, 983.8596, 2573), date_sold (\"1998-09-15 05:26:22\", \"1987-12-07 07:41:27\", \"1987-12-07 07:41:27\"), fld_feature_1 (None), oth_feature_3 (None), date_on_market (\"1986-12-31 10:05:32\", \"2017-09-14 15:49:23\", \"1993-08-04 10:49:04\"), fld_feature_3 (None), hse_feature_2 (None), property_name (\"park\", \"ten tower\", \"murray hill\"), other_property_details (None), shp_feature_1 (None), apt_feature_3 (None), property_type_code (\"Field\", \"Shop\", \"Shop\"), shp_feature_2 (None), fld_feature_2 (None) | ref_feature_types : feature_type_code (\"Amenity\", \"Security\"), feature_type_name (\"Amenity, eg Pool.\", \"Securiyt, eg Burglar Alarm.\") | other_property_features : property_id (4, 7, 12), property_feature_description (\"hic\", \"hic\", \"ad\"), feature_id (3, 4, 2) | ref_property_types : property_type_code (\"Shop\", \"Shop\", \"Apartment\"), property_type_description (\"Field, Meadow.\", \"Field, Meadow.\", \"Apartment, Flat, Condo, etc.\")", + "schema_without_content": "Real_Estate_Listings : oth_feature_1 , apt_feature_2 , hse_feature_1 , oth_feature_2 , agreed_selling_price , property_id , hse_feature_3 , apt_feature_1 , shp_feature_3 , buyer_offered_price , room_count , property_address , vendor_requested_price , date_sold , fld_feature_1 , oth_feature_3 , date_on_market , fld_feature_3 , hse_feature_2 , property_name , other_property_details , shp_feature_1 , apt_feature_3 , property_type_code , shp_feature_2 , fld_feature_2 | other_available_features : feature_description , feature_name , feature_id , feature_type_code | Estates : oth_feature_1 , apt_feature_2 , hse_feature_1 , oth_feature_2 , agreed_selling_price , property_id , hse_feature_3 , apt_feature_1 , shp_feature_3 , buyer_offered_price , room_count , property_address , vendor_requested_price , date_sold , fld_feature_1 , oth_feature_3 , date_on_market , fld_feature_3 , hse_feature_2 , property_name , other_property_details , shp_feature_1 , apt_feature_3 , property_type_code , shp_feature_2 , fld_feature_2 | ref_feature_types : feature_type_code , feature_type_name | other_property_features : property_id , property_feature_description , feature_id | ref_property_types : property_type_code , property_type_description", + "extra_map": null, + "extra_table_map": { + "properties": [ + "Estates", + "Real_Estate_Listings" + ] + }, + "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" + ], + "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" + ] + }, + "column_linking_gt": { + "names of properties": "Properties.property_name", + "houses": "Properties.property_type_code", + "apartments with more than 1 room": "Properties.property_type_code" + } + } +] \ No newline at end of file