conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (death VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "When did elisabeth of valois die?"
},
{
"from": "gpt",
"value": "SELECT death FROM table_name_45 WHERE name = \"elisabeth of valois\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "Who is entered earlier than 1975 and has a Lotus 20 chassis?"
},
{
"from": "gpt",
"value": "SELECT entrant FROM table_name_14 WHERE year < 1975 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (engine VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "Which engine has a Lotus 49c chassis?"
},
{
"from": "gpt",
"value": "SELECT engine FROM table_name_41 WHERE chassis = \"lotus 49c\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?"
},
{
"from": "gpt",
"value": "SELECT ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "How many points are there for a Mclaren m23 chassis later than 1972?"
},
{
"from": "gpt",
"value": "SELECT COUNT(points) FROM table_name_20 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (change___percentage_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)"
},
{
"from": "human",
"value": "What is the average change to have a land area of 546.74 and a population density greater than 0.5?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (finish VARCHAR, start VARCHAR, year VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What was the result after 1994 for team MB2 and 31 starts?"
},
{
"from": "gpt",
"value": "SELECT finish FROM table_name_64 WHERE year ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR)"
},
{
"from": "human",
"value": "What team has 33 starts?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_22 WHERE start = \"33\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (team VARCHAR, finish VARCHAR, year VARCHAR, manufacturer VARCHAR)"
},
{
"from": "human",
"value": "What team finished 35 in a ford before 1997?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_90 WHERE year < 1997 AN... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (score INTEGER, venue VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What was the sum of the scores before the year 2002, that had the venue of Halmstad?"
},
{
"from": "gpt",
"value": "SELECT SUM(score) FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What was France's highest score when the venue was Bokskogens?"
},
{
"from": "gpt",
"value": "SELECT MAX(score) FROM table_name_1 WHERE country = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (year INTEGER, winner VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the earliest year during which the winner was Matthew King, and during which the score was higher than 270?"
},
{
"from": "gpt",
"value": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (year INTEGER, score VARCHAR)"
},
{
"from": "human",
"value": "What was the average year during which the score was 270?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_7 WHERE score = 270"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (score VARCHAR, winner VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What were the total number scores after 2005, when the winner was David Patrick?"
},
{
"from": "gpt",
"value": "SELECT COUNT(score) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the average year that the venue was Bokskogens?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_16 WHERE venue = \"bokskogens\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (opponent VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Who did the Toronto Blue Jays play against where the score was 4 - 2?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_66 WHERE score = \"4 - 2\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who did the Blue Jays play against on April 11?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_52 WHERE date = \"april 11\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who did the Blue Jays play against on April 24?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_44 WHERE date = \"april 24\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR)"
},
{
"from": "human",
"value": "What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Rev... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was lar... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (value__ INTEGER, rank VARCHAR, revenue__$m_ VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What was the sum of Value ($M), when the Revenue ($M) was less than 307, the Team was Valencia, and the Rank was smaller than 19?"
},
{... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (value__ VARCHAR, rank VARCHAR, _percentage_change_on_year VARCHAR)"
},
{
"from": "human",
"value": "What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (revenue__ INTEGER, debt_as__percentageof_value VARCHAR, operating_income_$m_ VARCHAR)"
},
{
"from": "human",
"value": "What was the sum of Revenue ($M), when the Debt as % of value was higher than 27, and the Operating income($m) was 77?"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (screening_completed VARCHAR, screening_started VARCHAR)"
},
{
"from": "human",
"value": "Name the screening completed for screening started 23 january 2006"
},
{
"from": "gpt",
"value": "SELECT screening_completed FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (screening_started VARCHAR, screening_completed VARCHAR)"
},
{
"from": "human",
"value": "Name the screening started when it was completed 3 may 2006"
},
{
"from": "gpt",
"value": "SELECT screening_started FROM table_name_40 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (award VARCHAR, result VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What award was Trent Tesoro nominated for in 2007?"
},
{
"from": "gpt",
"value": "SELECT award FROM table_name_2 WHERE result = \"nominated\" AND yea... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What is the score for the team that has a record of 80-64?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_43 WHERE record = \"80-64\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (finish VARCHAR, engine VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What position did team scandia finish when their engine was cosworth?"
},
{
"from": "gpt",
"value": "SELECT finish FROM table_name_72 WHERE engine ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (finish VARCHAR, engine VARCHAR, start VARCHAR)"
},
{
"from": "human",
"value": "What was the position of the team that used an oldsmobile engine and DNQ?"
},
{
"from": "gpt",
"value": "SELECT finish FROM table_name_10 WHERE en... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (bronze INTEGER, gold VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "what is the least bronze when gold is more than 0 for russia?"
},
{
"from": "gpt",
"value": "SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (rank INTEGER, nation VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "what is the highest rank for italy when gold is more than 1?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_19 WHERE nation = \"ital... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (total INTEGER, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "what is the total when bronze is more than 1 and gold smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT SUM(total) FROM table_name_1 WHERE bronze... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (avg_seek_time_ VARCHAR, ms VARCHAR, device INTEGER)"
},
{
"from": "human",
"value": "What is the avg seek time for a device that is less than 3231?"
},
{
"from": "gpt",
"value": "SELECT avg_seek_time_[ms] FROM table_name_26 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (kb_s VARCHAR, avg_transfer_rate_ INTEGER, device VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest transfer rate for a 3243 device?"
},
{
"from": "gpt",
"value": "SELECT MIN(avg_transfer_rate_)[kb_s] FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (entrant VARCHAR, year INTEGER)"
},
{
"from": "human",
"value": "Which entrant has a year after 1955?"
},
{
"from": "gpt",
"value": "SELECT entrant FROM table_name_59 WHERE year > 1955"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (draws INTEGER, club VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "How many draws has a Club of real valladolid that was played less than 38?"
},
{
"from": "gpt",
"value": "SELECT MAX(draws) FROM table_name_35 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (losses VARCHAR, goals_against VARCHAR, goal_difference VARCHAR, draws VARCHAR)"
},
{
"from": "human",
"value": "How many losses are there with 5 goal differences, drew more than 10 times, and 43 goals against?"
},
{
"from": "gpt",... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (award_show VARCHAR, year VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "On which award show was Bad Girls nominated for Most Popular Drama in 2004?"
},
{
"from": "gpt",
"value": "SELECT award_show FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "Who was the recipient when the show was nominated for Most Popular Drama after 2004?"
},
{
"from": "gpt",
"value": "SELECT r... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (award_show VARCHAR, category VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "In what award show was Bad Girls nominated for Best Loved Drama in 2002?"
},
{
"from": "gpt",
"value": "SELECT award_show FROM table_name_53 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7?"
},
{
"from": "gpt",
"value": "SELECT AVG(tot... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (rank INTEGER, nation VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest rank of Ukraine with fewer than 14 silver medals, fewer than 3 bronze medals, and a total of 4 medals?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (bronze VARCHAR, total VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the total of bronze medals from nations with more than 16 total medals and ranks larger than 3?"
},
{
"from": "gpt",
"value": "SELECT COUNT(... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (bronze VARCHAR, total VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of bronze medals with a total of 4 medals and 1 gold medal?"
},
{
"from": "gpt",
"value": "SELECT COUNT(bronze) FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (qual VARCHAR, laps VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What was the qualification with more than 162 laps in 1953?"
},
{
"from": "gpt",
"value": "SELECT qual FROM table_name_35 WHERE laps > 162 AND year = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (qual VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "What was the qualification with more than 585 laps?"
},
{
"from": "gpt",
"value": "SELECT qual FROM table_name_16 WHERE laps = 585"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (laps VARCHAR, qual VARCHAR)"
},
{
"from": "human",
"value": "How many laps had a qualification of 136.168?"
},
{
"from": "gpt",
"value": "SELECT COUNT(laps) FROM table_name_50 WHERE qual = \"136.168\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR)"
},
{
"from": "human",
"value": "Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905?"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR)"
},
{
"from": "human",
"value": "What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861?"
},
{
"from": "gpt",
"value": "SELECT gdp__billio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (member_countries VARCHAR, population VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the member country that has a Population of 1,341,664?"
},
{
"from": "gpt",
"value": "SELECT member_countries FROM table_name_7... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (population VARCHAR, gdp_per_capita__us$_ VARCHAR)"
},
{
"from": "human",
"value": "What is the total population of the country that has a GDP per capita (US$) of 15,054?"
},
{
"from": "gpt",
"value": "SELECT population FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (member_countries VARCHAR, area__km²_ VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the country that has an Area (km²) of 49,036?"
},
{
"from": "gpt",
"value": "SELECT member_countries FROM table_name_47 WHERE a... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (gdp__billion_us$_ VARCHAR, area__km²_ VARCHAR)"
},
{
"from": "human",
"value": "What is the GDP (billion US$) of the country that has an Area (km²) of 316?"
},
{
"from": "gpt",
"value": "SELECT gdp__billion_us$_ FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (gdp_per_capita__us$_ VARCHAR, population VARCHAR)"
},
{
"from": "human",
"value": "What is the GDP per capita (US$) of the country that has a Population of 2,011,473?"
},
{
"from": "gpt",
"value": "SELECT gdp_per_capita__us$_ ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (original_title VARCHAR, language VARCHAR)"
},
{
"from": "human",
"value": "What is the original title for the Korean language film?"
},
{
"from": "gpt",
"value": "SELECT original_title FROM table_name_24 WHERE language = \"kor... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR)"
},
{
"from": "human",
"value": "What language is the film La Diagonale du Fou in?"
},
{
"from": "gpt",
"value": "SELECT language FROM table_name_24 WHERE original_title = \"la diagona... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (original_title VARCHAR, language VARCHAR)"
},
{
"from": "human",
"value": "What was the original title of the Hindi film?"
},
{
"from": "gpt",
"value": "SELECT original_title FROM table_name_88 WHERE language = \"hindi\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (language VARCHAR, original_title VARCHAR)"
},
{
"from": "human",
"value": "What language is the film Karnal in?"
},
{
"from": "gpt",
"value": "SELECT language FROM table_name_22 WHERE original_title = \"karnal\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What was the film title nominated from the Netherlands?"
},
{
"from": "gpt",
"value": "SELECT film_title_used_in_nomination FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (film_title_used_in_nomination VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What was the film title nominated from the Sweden?"
},
{
"from": "gpt",
"value": "SELECT film_title_used_in_nomination FROM table_name_16... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "On the Date of 15 June 1992 what is the Score that is listed?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_73 WHERE date = \"15 june 1992\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (crimean_war INTEGER, second_afghan_war VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and porter's school, cork?"
},
{
"from":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (venue VARCHAR, sport VARCHAR)"
},
{
"from": "human",
"value": "What Venue has Basketball as a Sport?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_92 WHERE sport = \"basketball\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (venue VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "What Venue has Spartak St. Petersburg Club?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_71 WHERE club = \"spartak st. petersburg\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (sport VARCHAR, established VARCHAR, league VARCHAR)"
},
{
"from": "human",
"value": "What League of VSL Sport was Established in 1935?"
},
{
"from": "gpt",
"value": "SELECT sport FROM table_name_40 WHERE established = 1935 AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (club VARCHAR, league VARCHAR, established VARCHAR)"
},
{
"from": "human",
"value": "What Club Established in 2010 has a League of MHL?"
},
{
"from": "gpt",
"value": "SELECT club FROM table_name_13 WHERE league = \"mhl\" AND es... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (attendance INTEGER, week VARCHAR)"
},
{
"from": "human",
"value": "What was the highest attendance week 12?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_64 WHERE week = 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (record VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What is the record for the result w 33-3?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_4 WHERE result = \"w 33-3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (committee VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What Committee has the First Elected of 1993?"
},
{
"from": "gpt",
"value": "SELECT committee FROM table_name_98 WHERE first_elected = 1993"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (counties_represented VARCHAR, first_elected VARCHAR, committee VARCHAR)"
},
{
"from": "human",
"value": "What counties represented have a First Elected of 2006 and a Ways and Means Committee?"
},
{
"from": "gpt",
"value": "SEL... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (venue VARCHAR, year VARCHAR, competition VARCHAR)"
},
{
"from": "human",
"value": "What is the venue when the year is after 2001 for the summer olympics?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_56 WHERE yea... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "What is the total attendance for the August 8 game?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_48 WHERE date = \"august 8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which opponent led to a 56-59 record?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_53 WHERE record = \"56-59\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "Where did they play that the score was 22-12?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_21 WHERE result = \"22-12\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (language VARCHAR, year VARCHAR, role VARCHAR)"
},
{
"from": "human",
"value": "What language is spoken after 2007 for the role of urvashi mathur?"
},
{
"from": "gpt",
"value": "SELECT language FROM table_name_56 WHERE year > 2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (role VARCHAR, language VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What role is spoken in hindi in 2011?"
},
{
"from": "gpt",
"value": "SELECT role FROM table_name_26 WHERE language = \"hindi\" AND year = 2011"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (notes VARCHAR, language VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What is the note section for the role with a language of hindi and a title of miley naa miley hum?"
},
{
"from": "gpt",
"value": "SELECT notes FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (title VARCHAR, english_translation VARCHAR)"
},
{
"from": "human",
"value": "What is the title of the song that has a translation of Without Me?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_38 WHERE english_tran... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR)"
},
{
"from": "human",
"value": "what is the molecules when the percent mass is 1.0?"
},
{
"from": "gpt",
"value": "SELECT molecules FROM table_name_8 WHERE percent_of_mass = \"1.0\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR)"
},
{
"from": "human",
"value": "what is the mol.weight (daltons) when the percent of mass is 1.5?"
},
{
"from": "gpt",
"value": "SELECT molweight__daltons_ FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (percent_of_mass VARCHAR, molecules VARCHAR)"
},
{
"from": "human",
"value": "what is the perfect of mass when the molecules is 1.74e14*?"
},
{
"from": "gpt",
"value": "SELECT percent_of_mass FROM table_name_58 WHERE molecules ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR)"
},
{
"from": "human",
"value": "what is the percent of mass when the mol.weight (daltons) is 1e11?"
},
{
"from": "gpt",
"value": "SELECT percent_of_mass FROM table_name_21... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (round VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the round when the home team was chornomorets odessa?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_55 WHERE home_team = \"chornomorets ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (rank VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What is the rank when the game was at dnipro stadium , kremenchuk?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_55 WHERE location = \"dnipro stadiu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (points INTEGER, engine VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?"
},
{
"from": "gpt",
"value": "SELECT MIN(po... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (chassis VARCHAR, year VARCHAR, engine VARCHAR)"
},
{
"from": "human",
"value": "What is the Chassis from before 1997 with a Lamborghini v12 engine?"
},
{
"from": "gpt",
"value": "SELECT chassis FROM table_name_98 WHERE year < ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (year INTEGER, chassis VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is the total of the year with a point larger than 0 or the Chassis of Minardi m190?"
},
{
"from": "gpt",
"value": "SELECT SUM(year) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (points INTEGER, year VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "What are the lowest points from 1992 with a Chassis of Minardi m192?"
},
{
"from": "gpt",
"value": "SELECT MIN(points) FROM table_name_89 WHERE ye... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (entrant VARCHAR, points VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What Entrant has 0 points and from 1997?"
},
{
"from": "gpt",
"value": "SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 1997"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)"
},
{
"from": "human",
"value": "What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (years VARCHAR, decile VARCHAR, area VARCHAR)"
},
{
"from": "human",
"value": "What year has a decile more than 6, in the Waikouaiti area?"
},
{
"from": "gpt",
"value": "SELECT years FROM table_name_78 WHERE decile > 6 AND area... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What place did the Nashville Metros place in the 1994/95 Season?"
},
{
"from": "gpt",
"value": "SELECT regular_season FROM table_name_64 WHERE year = \"199... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (year VARCHAR, league VARCHAR)"
},
{
"from": "human",
"value": "What years did the Nashville Metros have Usisl Indoor League?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_63 WHERE league = \"usisl indoor\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (round VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Which Round has kim eun-ha as an Opponent?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_37 WHERE opponent = \"kim eun-ha\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (edition VARCHAR, surface VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent?"
},
{
"from": "gpt",
"value": "SELECT edition FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "What is the highest gold number count where a county had over 9 golds and 10 silvers?"
},
{
"from": "gpt",
"value": "SELECT MAX(gold) FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (bronze INTEGER, total VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "How many bronze medals did the country with 7 medals and over 5 silver medals receive?"
},
{
"from": "gpt",
"value": "SELECT SUM(bronze) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Name the date for venue of lord's"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_78 WHERE venue = \"lord's\""
}
] | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.