messages
listlengths 3
3
|
---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14115168_4 (school VARCHAR, national_titles VARCHAR)",
"role": "system"
},
{
"content": "which school has 14 large championships",
"role": "user"
},
{
"content": "SELECT school FROM table_14115168_4 WHERE national_titles = 14",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?",
"role": "user"
},
{
"content": "SELECT laps FROM table_name_7 WHERE constructor = \"renault\" AND driver = \"fernando alonso\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the Time/Retired for brabham - climax, on Grid of 10?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_89 WHERE constructor = \"brabham - climax\" AND grid = 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (winner VARCHAR, winning_song VARCHAR)",
"role": "system"
},
{
"content": "Who won with the song kemenangan cinta?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_1 WHERE winning_song = \"kemenangan cinta\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR)",
"role": "system"
},
{
"content": "What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?",
"role": "user"
},
{
"content": "SELECT n° FROM table_15887683_5 WHERE package_option = \"Sky Cinema\" AND content = \"cinema\" AND television_service = \"Sky Cinema\" + 24",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Where was the location for Arras Paul Arras?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_24 WHERE opponent = \"arras paul arras\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_77 WHERE score = \"7–5, 6–3\" AND date = \"27 july 2003\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, chassis VARCHAR, engine VARCHAR, class VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the driver with a rotax max engine, in the rotax heavy class, with arrow as chassis and on the TWR Raceline Seating team?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_32 WHERE engine = \"rotax max\" AND class = \"rotax heavy\" AND chassis = \"arrow\" AND team = \"twr raceline seating\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1429629_1 (broadcast_date VARCHAR, run_time VARCHAR)",
"role": "system"
},
{
"content": "How many episodes had a broadcast date and run time of 24:43?",
"role": "user"
},
{
"content": "SELECT COUNT(broadcast_date) FROM table_1429629_1 WHERE run_time = \"24:43\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6?",
"role": "user"
},
{
"content": "SELECT SUM(pick) FROM table_name_61 WHERE position = \"n/a\" AND player = \"greg wendt\" AND round < 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (pepe_michinoku VARCHAR, ryuji_hijikata VARCHAR)",
"role": "system"
},
{
"content": "What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?",
"role": "user"
},
{
"content": "SELECT pepe_michinoku FROM table_name_28 WHERE ryuji_hijikata = \"sabin (12:33)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (kemmerode VARCHAR, gersdorf VARCHAR)",
"role": "system"
},
{
"content": "What Kemmerode has a Gersforf of 39?",
"role": "user"
},
{
"content": "SELECT kemmerode FROM table_name_68 WHERE gersdorf = \"39\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (film_title_used_in_nomination VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What title did the film from Colombia use in its nomination?",
"role": "user"
},
{
"content": "SELECT film_title_used_in_nomination FROM table_name_33 WHERE country = \"colombia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR); CREATE TABLE furniture (Furniture_ID VARCHAR, num_of_component INTEGER)",
"role": "system"
},
{
"content": "Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.",
"role": "user"
},
{
"content": "SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (winner VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the winner in 2007?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_49 WHERE date = 2007",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (sets_lost INTEGER, loss VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many sets lost have a loss smaller than 3 and a rank larger than 1?",
"role": "user"
},
{
"content": "SELECT SUM(sets_lost) FROM table_name_26 WHERE loss < 3 AND rank > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (driver VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "Which driver for Maserati has more laps than 23 and a grid greater than 7?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_61 WHERE constructor = \"maserati\" AND laps > 23 AND grid > 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (name VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What tour was cancelled?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_14 WHERE date = \"cancelled\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (floors INTEGER, street_address VARCHAR)",
"role": "system"
},
{
"content": "There is a building at 800 Boylston Street, how many floors does it have?",
"role": "user"
},
{
"content": "SELECT SUM(floors) FROM table_name_81 WHERE street_address = \"800 boylston street\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16893837_4 (date VARCHAR, opponents VARCHAR)",
"role": "system"
},
{
"content": "Name the date for margalita chakhnashvili salome devidze",
"role": "user"
},
{
"content": "SELECT date FROM table_16893837_4 WHERE opponents = \"Margalita Chakhnashvili Salome Devidze\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (position VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What position does Jamar Chaney play?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_45 WHERE name = \"jamar chaney\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Documents (project_id VARCHAR)",
"role": "system"
},
{
"content": "Show project ids and the number of documents in each project.",
"role": "user"
},
{
"content": "SELECT project_id, COUNT(*) FROM Documents GROUP BY project_id",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29250534_1 (manager VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Who is the manager for the fc inter club?",
"role": "user"
},
{
"content": "SELECT manager FROM table_29250534_1 WHERE club = \"FC Inter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (school_club_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which school did Dahntay Jones graduate from?",
"role": "user"
},
{
"content": "SELECT school_club_team FROM table_name_24 WHERE player = \"dahntay jones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What is the date for the grass surface final against Nathan Healey?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_41 WHERE surface = \"grass\" AND opponent_in_the_final = \"nathan healey\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27539272_7 (points INTEGER, score VARCHAR)",
"role": "system"
},
{
"content": "What are the most points scored in a game where the score was 1-2?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_27539272_7 WHERE score = \"1-2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (winning_team VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "Who was the winning team for circuit zolder?",
"role": "user"
},
{
"content": "SELECT winning_team FROM table_name_46 WHERE circuit = \"circuit zolder\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28046929_2 (driver VARCHAR, entrant VARCHAR, co_driver VARCHAR)",
"role": "system"
},
{
"content": "who is the person that is part of the belgian vw club that works with frédéric miclotte",
"role": "user"
},
{
"content": "SELECT driver FROM table_28046929_2 WHERE entrant = \"Belgian VW Club\" AND co_driver = \"Frédéric Miclotte\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2140071_13 (episode VARCHAR, coach VARCHAR)",
"role": "system"
},
{
"content": "What is the summary for the episode with a coach named Rebecca Star?",
"role": "user"
},
{
"content": "SELECT episode AS Summary FROM table_2140071_13 WHERE coach = \"Rebecca Star\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28846752_5 (Id VARCHAR)",
"role": "system"
},
{
"content": "what is the minimumfor 5wi?",
"role": "user"
},
{
"content": "SELECT MIN(5 AS wi) FROM table_28846752_5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (date VARCHAR, results¹ VARCHAR)",
"role": "system"
},
{
"content": "On what Date was the Results¹ 1:2?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_76 WHERE results¹ = \"1:2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (week VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which week was the game on December 14, 1967?",
"role": "user"
},
{
"content": "SELECT week FROM table_name_27 WHERE date = \"december 14, 1967\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1818471_1 (value VARCHAR, mitchell VARCHAR)",
"role": "system"
},
{
"content": "What is every value when Mitchell is 676?",
"role": "user"
},
{
"content": "SELECT value FROM table_1818471_1 WHERE mitchell = 676",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (player VARCHAR, pick VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What player had a pick higher than 53, and a position of defensive tackle?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_35 WHERE pick > 53 AND position = \"defensive tackle\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (caps VARCHAR, scotland_career VARCHAR)",
"role": "system"
},
{
"content": "Which caps was in scotland in 1920–1923?",
"role": "user"
},
{
"content": "SELECT caps FROM table_name_20 WHERE scotland_career = \"1920–1923\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Years that has the Group, Method Fest Independent Film Festival?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_45 WHERE group = \"method fest independent film festival\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)",
"role": "system"
},
{
"content": "What is the year with a kurtis kraft 500a chassis?",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_86 WHERE chassis = \"kurtis kraft 500a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23670057_6 (height__f_ VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Name the height for steffen hamann",
"role": "user"
},
{
"content": "SELECT height__f_ FROM table_23670057_6 WHERE player = \"Steffen Hamann\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)",
"role": "system"
},
{
"content": "Find the name of the club that has the most female students.",
"role": "user"
},
{
"content": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (tonnage VARCHAR, date VARCHAR, ship VARCHAR)",
"role": "system"
},
{
"content": "Name Tonnage on 27 september 1941 and a Ship of hmsspringbank?",
"role": "user"
},
{
"content": "SELECT tonnage FROM table_name_81 WHERE date = \"27 september 1941\" AND ship = \"hmsspringbank\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE teacher (Hometown VARCHAR)",
"role": "system"
},
{
"content": "Show different hometown of teachers and the number of teachers from each hometown.",
"role": "user"
},
{
"content": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR)",
"role": "system"
},
{
"content": "Which champion has sentosa golf club as the tournament location?",
"role": "user"
},
{
"content": "SELECT champion FROM table_name_55 WHERE tournament_location = \"sentosa golf club\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (year INTEGER, lok_sabha VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Year, when Lok Sabha is \"4th Lok Sabha\"?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_53 WHERE lok_sabha = \"4th lok sabha\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (res VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Did he win or lose rof 32: respect?",
"role": "user"
},
{
"content": "SELECT res FROM table_name_47 WHERE event = \"rof 32: respect\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of laps when the Time/Retired is differential?",
"role": "user"
},
{
"content": "SELECT MAX(laps) FROM table_name_76 WHERE time_retired = \"differential\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (score VARCHAR, partner VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_59 WHERE partner = \"ksenia lykina\" AND tournament = \"kurume\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the home team's score for the game at Junction Oval?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_42 WHERE venue = \"junction oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (ifop_5_11_09 VARCHAR, opinionway_5_11_09 VARCHAR, ipsos_3_14_09 VARCHAR)",
"role": "system"
},
{
"content": "Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%",
"role": "user"
},
{
"content": "SELECT ifop_5_11_09 FROM table_name_23 WHERE opinionway_5_11_09 = \"2%\" AND ipsos_3_14_09 = \"2%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11960610_7 (team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What team were the Bulls hosted by on December 7?",
"role": "user"
},
{
"content": "SELECT team FROM table_11960610_7 WHERE date = \"December 7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_37 WHERE opponents = \"sv werder bremen\" AND score = \"1-2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (iata VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "Name the IATA of wmkk",
"role": "user"
},
{
"content": "SELECT iata FROM table_name_20 WHERE icao = \"wmkk\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?",
"role": "user"
},
{
"content": "SELECT performer_4 FROM table_name_76 WHERE performer_1 = \"greg proops\" AND date = \"25 august 1995\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (route INTEGER, rank VARCHAR, elevation VARCHAR)",
"role": "system"
},
{
"content": "On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?",
"role": "user"
},
{
"content": "SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = \"11,312 feet 3448 m\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (league_cup_apps VARCHAR, league_goals INTEGER)",
"role": "system"
},
{
"content": "What's the total number of league cup apps when the league goals were less than 0?",
"role": "user"
},
{
"content": "SELECT COUNT(league_cup_apps) FROM table_name_15 WHERE league_goals < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (roman_equivalent VARCHAR)",
"role": "system"
},
{
"content": "what is the \"normalized\" transliteration for Roman i",
"role": "user"
},
{
"content": "SELECT \"normalised\" AS _transliteration FROM table_name_9 WHERE roman_equivalent = \"i\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Which Democratic incumbent was first elected in 1998?",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_name_18 WHERE party = \"democratic\" AND first_elected = 1998",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (lost VARCHAR, played INTEGER)",
"role": "system"
},
{
"content": "What is the total number of Lost, when Played is less than 34?",
"role": "user"
},
{
"content": "SELECT COUNT(lost) FROM table_name_91 WHERE played < 34",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18207285_2 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who was the game attended by 60425 people played against?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_18207285_2 WHERE attendance = 60425",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24004949_1 (finish INTEGER, driver VARCHAR)",
"role": "system"
},
{
"content": "Name the least finish for larry dickson",
"role": "user"
},
{
"content": "SELECT MIN(finish) FROM table_24004949_1 WHERE driver = \"Larry Dickson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE course (dept_name VARCHAR)",
"role": "system"
},
{
"content": "Find the names of the top 3 departments that provide the largest amount of courses?",
"role": "user"
},
{
"content": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (set_2 VARCHAR, set_3 VARCHAR)",
"role": "system"
},
{
"content": "Which Set 2 has a Set 3 of 20–25?",
"role": "user"
},
{
"content": "SELECT set_2 FROM table_name_70 WHERE set_3 = \"20–25\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR)",
"role": "system"
},
{
"content": "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?",
"role": "user"
},
{
"content": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Opponent has a Score of 2–6?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_64 WHERE score = \"2–6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (enrollment INTEGER, founded VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "what is the least enrollment when founded after 1809 and the institution is university of michigan?",
"role": "user"
},
{
"content": "SELECT MIN(enrollment) FROM table_name_60 WHERE founded > 1809 AND institution = \"university of michigan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR)",
"role": "system"
},
{
"content": "What year for the legatum institute?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_79 WHERE organization = \"legatum institute\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_178242_7 (winner VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "How many won the prize when Regina was the runner-up?",
"role": "user"
},
{
"content": "SELECT COUNT(winner) FROM table_178242_7 WHERE runner_up = \"Regina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (height__ft_ VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "How high is Macedonia's highest point?",
"role": "user"
},
{
"content": "SELECT height__ft_ FROM table_name_53 WHERE country = \"macedonia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12226390_7 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "Who was the writters for the episode directed by Richard L. Bare, no. 8 in season?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_12226390_7 WHERE directed_by = \"Richard L. Bare\" AND no_in_season = 8",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (dates VARCHAR, location VARCHAR, grade VARCHAR)",
"role": "system"
},
{
"content": "What were the dates for Honolulu, Hawaii in Kindergarten?",
"role": "user"
},
{
"content": "SELECT dates FROM table_name_89 WHERE location = \"honolulu, hawaii\" AND grade = \"kindergarten\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (d_43 VARCHAR, d_45 VARCHAR)",
"role": "system"
},
{
"content": "Name the D 43 when it has D 45 of d 25",
"role": "user"
},
{
"content": "SELECT d_43 FROM table_name_45 WHERE d_45 = \"d 25\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (winning_team VARCHAR, sport VARCHAR)",
"role": "system"
},
{
"content": "What winning team has volleyball as the sport?",
"role": "user"
},
{
"content": "SELECT winning_team FROM table_name_91 WHERE sport = \"volleyball\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (sing_pres VARCHAR, sing_pret VARCHAR, subj_pres VARCHAR)",
"role": "system"
},
{
"content": "What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?",
"role": "user"
},
{
"content": "SELECT sing_pres FROM table_name_51 WHERE sing_pret = \"ou\" AND subj_pres = \"ie\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (attendance INTEGER, away VARCHAR)",
"role": "system"
},
{
"content": "What was the highest attendance against Real Juventud?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_14 WHERE away = \"real juventud\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12547903_3 (branding VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What was the branding in Dagupan?",
"role": "user"
},
{
"content": "SELECT branding FROM table_12547903_3 WHERE location = \"Dagupan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_274117_5 (seasons_by_team VARCHAR, position VARCHAR, number VARCHAR)",
"role": "system"
},
{
"content": "What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? ",
"role": "user"
},
{
"content": "SELECT seasons_by_team FROM table_274117_5 WHERE position = \"OL\" AND number = 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (club VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which club is associated with Hafiz Abu Sujad?",
"role": "user"
},
{
"content": "SELECT club FROM table_name_80 WHERE name = \"hafiz abu sujad\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (year_joined VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "In what year did the team from the Western school join the conference?",
"role": "user"
},
{
"content": "SELECT year_joined FROM table_name_10 WHERE school = \"western\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16225511_2 (wins INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What's the largest amount of wins Texas has? ",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_16225511_2 WHERE school = \"Texas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (tie_no VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Which Tie number had Fulham as the away team?",
"role": "user"
},
{
"content": "SELECT tie_no FROM table_name_79 WHERE away_team = \"fulham\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "In what League is Left Wing Yanick Dupre?",
"role": "user"
},
{
"content": "SELECT college_junior_club_team__league_ FROM table_name_94 WHERE position = \"left wing\" AND player = \"yanick dupre\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the 2011 value with nms in 2008?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_54 WHERE 2008 = \"nms\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the 2003 value with 1r in 2009 at the Australian Open?",
"role": "user"
},
{
"content": "SELECT 2003 FROM table_name_16 WHERE 2009 = \"1r\" AND tournament = \"australian open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20190834_1 (enrollment INTEGER, team_name VARCHAR)",
"role": "system"
},
{
"content": "What is the minimum enrollment of the cyclones?",
"role": "user"
},
{
"content": "SELECT MIN(enrollment) FROM table_20190834_1 WHERE team_name = \"Cyclones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the high grid for osella - alfa romeo, and a Laps larger than 61?",
"role": "user"
},
{
"content": "SELECT MAX(grid) FROM table_name_56 WHERE constructor = \"osella - alfa romeo\" AND laps > 61",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Who was Carlton's away team opponents?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_16 WHERE home_team = \"carlton\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (district VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What district has abhayapuri south as the name?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_41 WHERE name = \"abhayapuri south\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (round_of_32 VARCHAR, _number_of_bids INTEGER)",
"role": "system"
},
{
"content": "What Round 32 had a # of bids smaller than 2?",
"role": "user"
},
{
"content": "SELECT round_of_32 FROM table_name_31 WHERE _number_of_bids < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR)",
"role": "system"
},
{
"content": "Which date has a Surface of carpet (i)?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_44 WHERE surface = \"carpet (i)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17371135_30 (college_junior_club_team__league_ VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "The player who plays left wing is from what college/junior/club team? ",
"role": "user"
},
{
"content": "SELECT college_junior_club_team__league_ FROM table_17371135_30 WHERE position = \"Left Wing\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (home_team VARCHAR)",
"role": "system"
},
{
"content": "What is fitzroy's score as the home team?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_49 WHERE home_team = \"fitzroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR)",
"role": "system"
},
{
"content": "What is the home team score of the Ghantoot Racing and Polo Club Ground?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_25 WHERE ground = \"ghantoot racing and polo club\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20884160_1 (report VARCHAR, race_title VARCHAR)",
"role": "system"
},
{
"content": "Was the result of the supercheap auto bathurst 1000 reported?",
"role": "user"
},
{
"content": "SELECT report FROM table_20884160_1 WHERE race_title = \"Supercheap Auto Bathurst 1000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR)",
"role": "system"
},
{
"content": "What is the date for the release with a catalogue number of WARPCDD333?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_73 WHERE catalogue_number = \"warpcdd333\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (place VARCHAR, score VARCHAR, to_par VARCHAR)",
"role": "system"
},
{
"content": "What place had a score smaller than 74 and a par of e?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_43 WHERE score < 74 AND to_par = \"e\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22860698_2 (surface VARCHAR, championship VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the surface when the us open is the championship in the year 1979?",
"role": "user"
},
{
"content": "SELECT surface FROM table_22860698_2 WHERE championship = \"US Open\" AND year = 1979",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (guest VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the guest at Stadion Prljanije?",
"role": "user"
},
{
"content": "SELECT guest FROM table_name_16 WHERE venue = \"stadion prljanije\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (rank INTEGER, played INTEGER)",
"role": "system"
},
{
"content": "What is the rank for less than 6 plays?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_47 WHERE played < 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (type VARCHAR, issued VARCHAR)",
"role": "system"
},
{
"content": "What type was issued in 1964?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_1 WHERE issued = 1964",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (event VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What bombing happened in Brighton, UK?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_98 WHERE location = \"brighton, uk\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (date_of_appointment VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "When was the appointment date for VFL Wolfsburg?",
"role": "user"
},
{
"content": "SELECT date_of_appointment FROM table_name_72 WHERE team = \"vfl wolfsburg\"",
"role": "assistant"
}
] |