Dataset Viewer
Auto-converted to Parquet
conversations
listlengths
2
2
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/territory, Text/background colour, Format, Current slogan, Current series, Notes\n###Question: Tell me what the notes are for South Australia " }, { "from": "gpt", "value": "SELECT Notes FROM table WHERE Current slogan = SOUTH AUSTRALIA" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/territory, Text/background colour, Format, Current slogan, Current series, Notes\n###Question: What is the current series where the new series began in June 2011?" }, { "from": "gpt", "value": "SELECT Current series FROM table WHERE Notes = New series began in June 2011" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/territory, Text/background colour, Format, Current slogan, Current series, Notes\n###Question: What is the format for South Australia?" }, { "from": "gpt", "value": "SELECT Format FROM table WHERE State/territory = South Australia" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/territory, Text/background colour, Format, Current slogan, Current series, Notes\n###Question: Name the background colour for the Australian Capital Territory" }, { "from": "gpt", "value": "SELECT Text/background colour FROM table WHERE State/territory = Australian Capital Territory" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: how many times is the fuel propulsion is cng?" }, { "from": "gpt", "value": "SELECT COUNT Fleet Series (Quantity) FROM table WHERE Fuel Propulsion = CNG" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?" }, { "from": "gpt", "value": "SELECT Fuel Propulsion FROM table WHERE Fleet Series (Quantity) = 310-329 (20)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: who is the manufacturer for the order year 1998?" }, { "from": "gpt", "value": "SELECT Manufacturer FROM table WHERE Order Year = 1998" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: how many times is the model ge40lfr?" }, { "from": "gpt", "value": "SELECT COUNT Manufacturer FROM table WHERE Model = GE40LFR" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: how many times is the fleet series (quantity) is 468-473 (6)?" }, { "from": "gpt", "value": "SELECT COUNT Order Year FROM table WHERE Fleet Series (Quantity) = 468-473 (6)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Order Year, Manufacturer, Model, Fleet Series (Quantity), Powertrain (Engine/Transmission), Fuel Propulsion\n###Question: what is the powertrain (engine/transmission) when the order year is 2000?" }, { "from": "gpt", "value": "SELECT Powertrain (Engine/Transmission) FROM table WHERE Order Year = 2000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Aircraft, Description, Max Gross Weight, Total disk area, Max disk Loading\n###Question: What if the description of a ch-47d chinook?" }, { "from": "gpt", "value": "SELECT Description FROM table WHERE Aircraft = CH-47D Chinook" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Aircraft, Description, Max Gross Weight, Total disk area, Max disk Loading\n###Question: What is the max gross weight of the Robinson R-22?" }, { "from": "gpt", "value": "SELECT Max Gross Weight FROM table WHERE Aircraft = Robinson R-22" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What school did player number 6 come from?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE No. = 6" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What school did the player that has been in Toronto from 2012-present come from?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Years in Toronto = 2012-present" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What school did the player that has been in Toronto from 2010-2012 go to?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Years in Toronto = 2010-2012" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What position did the player from Baylor play?" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE School/Club Team = Baylor" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Who played in the Toronto Raptors from 1995-96?" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE Years in Toronto = 1995-96" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which number was Patrick O'Bryant?" }, { "from": "gpt", "value": "SELECT No. FROM table WHERE Player = Patrick O'Bryant" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What school did Patrick O'Bryant play for?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Player = Patrick O'Bryant" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: How many number does Fordham school have?" }, { "from": "gpt", "value": "SELECT COUNT No. FROM table WHERE School/Club Team = Fordham" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which school was in Toronto in 2001-02?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Years in Toronto = 2001-02" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which school did the player that played 2004-05 attend?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Years in Toronto = 2004-05" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which position does Loren Woods play?" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE Player = Loren Woods" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What number is the player that played 1998-2001" }, { "from": "gpt", "value": "SELECT MIN No. FROM table WHERE Years in Toronto = 1998-2001" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which country is the player that went to Georgetown from?" }, { "from": "gpt", "value": "SELECT Nationality FROM table WHERE School/Club Team = Georgetown" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which school did Herb Williams go to?" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Player = Herb Williams" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: When did the player from Hawaii play for Toronto?" }, { "from": "gpt", "value": "SELECT Years in Toronto FROM table WHERE School/Club Team = Hawaii" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: During what period did Dell Curry play for Toronto?" }, { "from": "gpt", "value": "SELECT Years in Toronto FROM table WHERE Player = Dell Curry" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What's the number of the player from Boise State?" }, { "from": "gpt", "value": "SELECT No. FROM table WHERE School/Club Team = Boise State" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What's Dell Curry nationality?" }, { "from": "gpt", "value": "SELECT Nationality FROM table WHERE Player = Dell Curry" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: which player is from georgia" }, { "from": "gpt", "value": "SELECT Player FROM table WHERE School/Club Team = Georgia" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: what school is rudy gay from" }, { "from": "gpt", "value": "SELECT School/Club Team FROM table WHERE Player = Rudy Gay" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: what nationality is the player who played from 1997-98" }, { "from": "gpt", "value": "SELECT Nationality FROM table WHERE Years in Toronto = 1997-98" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: what position did the player from connecticut play" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE School/Club Team = Connecticut" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: During which years was Marcus Banks in Toronto?" }, { "from": "gpt", "value": "SELECT Years in Toronto FROM table WHERE Player = Marcus Banks" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: Which positions were in Toronto in 2004?" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE Years in Toronto = 2004" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What nationality is the player Muggsy Bogues?" }, { "from": "gpt", "value": "SELECT Nationality FROM table WHERE Player = Muggsy Bogues" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: What years was the player Lonny Baxter in Toronto?" }, { "from": "gpt", "value": "SELECT Years in Toronto FROM table WHERE Player = Lonny Baxter" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, No., Nationality, Position, Years in Toronto, School/Club Team\n###Question: How many players were with the school or club team La Salle?" }, { "from": "gpt", "value": "SELECT COUNT Player FROM table WHERE School/Club Team = La Salle" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Tournaments played, Cuts made*, Wins, 2nd, Top 10s, Best finish, Earnings ($), Money list rank, Scoring average, Scoring rank\n###Question: When the scoring rank was 117, what was the best finish?" }, { "from": "gpt", "value": "SELECT Best finish FROM table WHERE Scoring rank = 117" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Tournaments played, Cuts made*, Wins, 2nd, Top 10s, Best finish, Earnings ($), Money list rank, Scoring average, Scoring rank\n###Question: When the best finish was T69, how many people came in 2nd?" }, { "from": "gpt", "value": "SELECT 2nd FROM table WHERE Best finish = T69" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Tournaments played, Cuts made*, Wins, 2nd, Top 10s, Best finish, Earnings ($), Money list rank, Scoring average, Scoring rank\n###Question: How many wins were there when the money list rank was 183?" }, { "from": "gpt", "value": "SELECT COUNT Wins FROM table WHERE Money list rank = 183" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Tournaments played, Cuts made*, Wins, 2nd, Top 10s, Best finish, Earnings ($), Money list rank, Scoring average, Scoring rank\n###Question: When the money list rank was n/a, what was the scoring average?" }, { "from": "gpt", "value": "SELECT Scoring average FROM table WHERE Money list rank = n/a" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Tournaments played, Cuts made*, Wins, 2nd, Top 10s, Best finish, Earnings ($), Money list rank, Scoring average, Scoring rank\n###Question: What time was the highest for 2nd finishers?" }, { "from": "gpt", "value": "SELECT MAX 2nd FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Player, Position, Nationality, Team, Draft Pick #, Draft Class, College\n###Question: When did the Metrostars have their first Rookie of the Year winner?" }, { "from": "gpt", "value": "SELECT MIN Season FROM table WHERE Team = MetroStars" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Player, Position, Nationality, Team, Draft Pick #, Draft Class, College\n###Question: What college did the Rookie of the Year from the Columbus Crew attend?" }, { "from": "gpt", "value": "SELECT College FROM table WHERE Team = Columbus Crew" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Player, Position, Nationality, Team, Draft Pick #, Draft Class, College\n###Question: How many teams had a #1 draft pick that won the Rookie of the Year Award?" }, { "from": "gpt", "value": "SELECT COUNT Team FROM table WHERE Draft Pick # = 1" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Player, Position, Nationality, Team, Draft Pick #, Draft Class, College\n###Question: What position did the #10 draft pick play?" }, { "from": "gpt", "value": "SELECT Position FROM table WHERE Draft Pick # = 10" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what's the years played with singles w-l of 3–2" }, { "from": "gpt", "value": "SELECT Years Played FROM table WHERE Singles W-L = 3–2" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what's the doubles w-l for player seol jae-min (none)" }, { "from": "gpt", "value": "SELECT Doubles W-L FROM table WHERE Player = Seol Jae-Min (none)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what's the singles w-l for kim doo-hwan" }, { "from": "gpt", "value": "SELECT Singles W-L FROM table WHERE Player = Kim Doo-Hwan" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1" }, { "from": "gpt", "value": "SELECT COUNT Singles W-L FROM table WHERE Doubles W-L = 0–0 AND Total W-L = 3–1" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what's the doubles w-l with years played value of 1 (1968)" }, { "from": "gpt", "value": "SELECT Doubles W-L FROM table WHERE Years Played = 1 (1968)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Player, Years Played, Total W-L, Singles W-L, Doubles W-L\n###Question: what years are played for player  im chung-yang" }, { "from": "gpt", "value": "SELECT Years Played FROM table WHERE Player = Im Chung-Yang" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Canton, Height (meters), Crest length (meters), Type, Year of construction, Name of the Lake\n###Question: What is the name of the 375 crest length?" }, { "from": "gpt", "value": "SELECT Name FROM table WHERE Crest length (meters) = 375" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Canton, Height (meters), Crest length (meters), Type, Year of construction, Name of the Lake\n###Question: What is year of construction of spitallamm?" }, { "from": "gpt", "value": "SELECT MIN Year of construction FROM table WHERE Name = Spitallamm" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Canton, Height (meters), Crest length (meters), Type, Year of construction, Name of the Lake\n###Question: What is the canton of grande dixence?" }, { "from": "gpt", "value": "SELECT Canton FROM table WHERE Name = Grande Dixence" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Canton, Height (meters), Crest length (meters), Type, Year of construction, Name of the Lake\n###Question: What is the name where lago di luzzone is?" }, { "from": "gpt", "value": "SELECT Name FROM table WHERE Name of the Lake = Lago di Luzzone" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: What is the guardian mātṛkā for the guardian whose consort is Svāhā?" }, { "from": "gpt", "value": "SELECT Guardian Mātṛkā FROM table WHERE Consort = Svāhā" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: Where the mantra is \"oṃ yaṃ vāyuve namaḥ\", what is the direction of the guardian?" }, { "from": "gpt", "value": "SELECT Direction FROM table WHERE Mantra = Oṃ Yaṃ Vāyuve Namaḥ" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: What weapon is used by the guardian whose consort is śacī?" }, { "from": "gpt", "value": "SELECT Weapon FROM table WHERE Consort = Śacī" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: What are the directions for the guardian whose weapon is khaḍga (sword)?" }, { "from": "gpt", "value": "SELECT Direction FROM table WHERE Weapon = Khaḍga (sword)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: What are the weapons used by guardians for the direction East?" }, { "from": "gpt", "value": "SELECT Weapon FROM table WHERE Direction = East" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Name, Direction, Mantra, Weapon, Consort, Graha (Planet), Guardian Mātṛkā\n###Question: What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?" }, { "from": "gpt", "value": "SELECT Direction FROM table WHERE Graha (Planet) = Bṛhaspati (Jupiter)" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Member, Headquarters, Classification, Chapters, Founded, UCCFS\n###Question: What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?" }, { "from": "gpt", "value": "SELECT MAX Chapters FROM table WHERE Classification = Fraternity AND Headquarters = Austin, Texas" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Member, Headquarters, Classification, Chapters, Founded, UCCFS\n###Question: What are the members listed with the sorority classification" }, { "from": "gpt", "value": "SELECT Member FROM table WHERE Classification = Sorority" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Member, Headquarters, Classification, Chapters, Founded, UCCFS\n###Question: Name the member that has 12 chapters" }, { "from": "gpt", "value": "SELECT Member FROM table WHERE Chapters = 12" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Member, Headquarters, Classification, Chapters, Founded, UCCFS\n###Question: Where is the headquarters of Alpha Nu Omega" }, { "from": "gpt", "value": "SELECT Headquarters FROM table WHERE Member = Alpha Nu Omega" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Typhus, Typhoid fever, Relapsing fever, Smallpox, Malaria\n###Question: what is the number of relapsing fever when malaria is 3000" }, { "from": "gpt", "value": "SELECT MIN Relapsing fever FROM table WHERE Malaria = 3000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Typhus, Typhoid fever, Relapsing fever, Smallpox, Malaria\n###Question: what is the typhoid fever number for the year 1934" }, { "from": "gpt", "value": "SELECT Typhoid fever FROM table WHERE Year = 1934" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Typhus, Typhoid fever, Relapsing fever, Smallpox, Malaria\n###Question: What are all the typhus number when smallpox is 4" }, { "from": "gpt", "value": "SELECT Typhus FROM table WHERE Smallpox = 4" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Typhus, Typhoid fever, Relapsing fever, Smallpox, Malaria\n###Question: what is the number of smallpox when typhoid fever is 293" }, { "from": "gpt", "value": "SELECT MAX Smallpox FROM table WHERE Typhoid fever = 293" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Year, Typhus, Typhoid fever, Relapsing fever, Smallpox, Malaria\n###Question: what is the typhoid fever number for the year 1929" }, { "from": "gpt", "value": "SELECT Typhoid fever FROM table WHERE Year = 1929" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference\n###Question: How many schools are in Bloomington, IN?" }, { "from": "gpt", "value": "SELECT COUNT Founded FROM table WHERE Location = Bloomington, IN" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference\n###Question: How many of the schools are designated private/Presbyterian?" }, { "from": "gpt", "value": "SELECT COUNT Location FROM table WHERE Affiliation = Private/Presbyterian" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference\n###Question: In what year was Lindenwood University founded?" }, { "from": "gpt", "value": "SELECT MIN Founded FROM table WHERE School = Lindenwood University" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: School, Location, Founded, Affiliation, Enrollment, Team Nickname, Primary conference\n###Question: How many of the schools listed are in Ames, IA?" }, { "from": "gpt", "value": "SELECT COUNT Primary conference FROM table WHERE Location = Ames, IA" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)\n###Question: What is the capital (endonym) where Douglas is the Capital (exonym)?" }, { "from": "gpt", "value": "SELECT Capital ( endonym ) FROM table WHERE Capital ( exonym ) = Douglas" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)\n###Question: How many countries (endonym) has the capital (endonym) of Jakarta?" }, { "from": "gpt", "value": "SELECT COUNT Country ( endonym ) FROM table WHERE Capital ( endonym ) = Jakarta" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)\n###Question: What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?" }, { "from": "gpt", "value": "SELECT Country ( exonym ) FROM table WHERE Official or native language(s) (alphabet/script) = Icelandic" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)\n###Question: In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?" }, { "from": "gpt", "value": "SELECT Country ( endonym ) FROM table WHERE Official or native language(s) (alphabet/script) = Irish English" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Country ( exonym ), Capital ( exonym ), Country ( endonym ), Capital ( endonym ), Official or native language(s) (alphabet/script)\n###Question: Which country (exonym) is the country (endonym) isle of man ellan vannin?" }, { "from": "gpt", "value": "SELECT Country ( exonym ) FROM table WHERE Country ( endonym ) = Isle of Man Ellan Vannin" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Network, Season premiere, Season finale, TV season, Ranking, Viewers (in millions)\n###Question: The season premiere aired on September 11, 2000 aired on how many networks? " }, { "from": "gpt", "value": "SELECT COUNT Network FROM table WHERE Season premiere = September 11, 2000" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Network, Season premiere, Season finale, TV season, Ranking, Viewers (in millions)\n###Question: What was the ranking of the season finale aired on May 8, 2006? " }, { "from": "gpt", "value": "SELECT Ranking FROM table WHERE Season finale = May 8, 2006" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Regional County Municipality (RCM), Population Canada 2011 Census, Land Area, Density (pop. per km2), Seat of RCM\n###Question: what is the minimum population canada 2011 census with seat of rcm being cowansville" }, { "from": "gpt", "value": "SELECT MIN Population Canada 2011 Census FROM table WHERE Seat of RCM = Cowansville" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Regional County Municipality (RCM), Population Canada 2011 Census, Land Area, Density (pop. per km2), Seat of RCM\n###Question: what's the land area with seat of rcm being granby" }, { "from": "gpt", "value": "SELECT Land Area FROM table WHERE Seat of RCM = Granby" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: What is the population for County Mayo with the English Name Carrowteige?" }, { "from": "gpt", "value": "SELECT Population FROM table WHERE County = County Mayo AND English name = Carrowteige" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: What is the Irish name listed with 62% Irish speakers?" }, { "from": "gpt", "value": "SELECT Irish name FROM table WHERE Irish speakers = 62%" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: What is the population for the Irish Name Leitir mealláin?" }, { "from": "gpt", "value": "SELECT Population FROM table WHERE Irish name = Leitir Mealláin" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: What is the county for the Irish name Carna?" }, { "from": "gpt", "value": "SELECT County FROM table WHERE Irish name = Carna" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: How many County Kerry have 53% Irish speakers?" }, { "from": "gpt", "value": "SELECT COUNT English name FROM table WHERE Irish speakers = 53% AND County = County Kerry" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: County, English name, Irish name, Population, Irish speakers\n###Question: What is the population for the English name Spiddal?" }, { "from": "gpt", "value": "SELECT Population FROM table WHERE English name = Spiddal" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/Territory, Asian American Population (2010 Census), Chinese, Filipino, Indian, Japanese, Korean, Vietnamese, Other Asian\n###Question: What is the the Chinese population for the state that has a Filipino population of 1474707?" }, { "from": "gpt", "value": "SELECT MIN Chinese FROM table WHERE Filipino = 1474707" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/Territory, Asian American Population (2010 Census), Chinese, Filipino, Indian, Japanese, Korean, Vietnamese, Other Asian\n###Question: How many States have an Indian population of 30947?" }, { "from": "gpt", "value": "SELECT COUNT Filipino FROM table WHERE Indian = 30947" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: State/Territory, Asian American Population (2010 Census), Chinese, Filipino, Indian, Japanese, Korean, Vietnamese, Other Asian\n###Question: What is the highest Indian population?" }, { "from": "gpt", "value": "SELECT MAX Indian FROM table" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: UN Operation name, UN Operation title, Location, Dates of Australian involvement, Number of Australians involved, Australian role\n###Question: What is Australia's role in the UN operation Unama?" }, { "from": "gpt", "value": "SELECT Australian role FROM table WHERE UN Operation name = UNAMA" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: UN Operation name, UN Operation title, Location, Dates of Australian involvement, Number of Australians involved, Australian role\n###Question: What is the UN operation title with the UN operation name, Uncok?" }, { "from": "gpt", "value": "SELECT UN Operation title FROM table WHERE UN Operation name = UNCOK" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: UN Operation name, UN Operation title, Location, Dates of Australian involvement, Number of Australians involved, Australian role\n###Question: How many Australians were in the UN commission on Korea?" }, { "from": "gpt", "value": "SELECT COUNT Number of Australians involved FROM table WHERE UN Operation title = UN Commission on Korea" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: UN Operation name, UN Operation title, Location, Dates of Australian involvement, Number of Australians involved, Australian role\n###Question: When was it where 65 Australians were involved in the UN?" }, { "from": "gpt", "value": "SELECT Dates of Australian involvement FROM table WHERE Number of Australians involved = 65" } ]
[ { "from": "human", "value": "Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. \n###Database Schema: Season, Timeslot ( ET ), Season premiere, Season finale, TV season, Rank, Viewers (millions)\n###Question: What year is the season with the 10.73 million views?" }, { "from": "gpt", "value": "SELECT TV season FROM table WHERE Viewers (millions) = 10.73" } ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
126