chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"race\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"tyre\" text,\n \"report\" text\n);\n\nQuestion: What is the report for the race of Argentine Grand Prix?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"season_review\" WHERE \"race\"='argentine grand prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"race\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"tyre\" text,\n \"report\" text\n);\n\nQuestion: What is the Tyre when Jerry Hoyt was the pole position?" }, { "role": "assistant", "content": "SELECT \"tyre\" FROM \"season_review\" WHERE \"pole_position\"='jerry hoyt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"race\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"tyre\" text,\n \"report\" text\n);\n\nQuestion: Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"tyre\"='c' AND \"pole_position\"='eugenio castellotti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"race\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"tyre\" text,\n \"report\" text\n);\n\nQuestion: What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"season_review\" WHERE \"constructor\"='mercedes' AND \"race\"='british grand prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the High points in the game with High rebounds by Nick Collison (14)?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_rebounds\"='nick collison (14)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is henry transfer fee at fcbarcelona.cat in fra?" }, { "role": "assistant", "content": "SELECT \"transfer_fee\" FROM \"in\" WHERE \"source\"='fcbarcelona.cat' AND \"country\"='fra' AND \"name\"='henry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What was the Grid with a hydraulics time/required?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"time_retired\"='hydraulics';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the grid with a Toyota constructor and +1:09.718 as time/retired?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"constructor\"='toyota' AND \"time_retired\"='+1:09.718';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the grid with 71 laps and the driver, Allan McNish." }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"laps\"='71' AND \"driver\"='allan mcnish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: How many laps did Jacques Villeneuve have?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"race\" WHERE \"driver\"='jacques villeneuve';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the constructor of the driver Heinz-Harald Frentzen?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"race\" WHERE \"driver\"='heinz-harald frentzen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics\" (\n \"index\" text,\n \"organization\" text,\n \"year\" text,\n \"rank\" real,\n \"out_of\" real\n);\n\nQuestion: Tell me the rank for year of 2012 and out of larger than 176" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"politics\" WHERE \"year\"='2012' AND \"out_of\">176;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics\" (\n \"index\" text,\n \"organization\" text,\n \"year\" text,\n \"rank\" real,\n \"out_of\" real\n);\n\nQuestion: Tell me the year for rank more than 35 and out of 167" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"politics\" WHERE \"rank\">35 AND \"out_of\"=167;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_classification\" (\n \"cyclist\" text,\n \"country\" text,\n \"team\" text,\n \"time\" text,\n \"uci_points\" text\n);\n\nQuestion: How many UCI points did Rabobank score?" }, { "role": "assistant", "content": "SELECT \"uci_points\" FROM \"general_classification\" WHERE \"team\"='rabobank';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_classification\" (\n \"cyclist\" text,\n \"country\" text,\n \"team\" text,\n \"time\" text,\n \"uci_points\" text\n);\n\nQuestion: What team in France had 15 UCi points?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"general_classification\" WHERE \"country\"='france' AND \"uci_points\"='15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: Which country has assets of x, an inception of 2007, and an abbreviation of adic?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"largest_sovereign_wealth_funds\" WHERE \"assets_us_billion\"='x' AND \"inception\"='2007' AND \"abbreviation\"='adic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: What's the abbreviation for libya?" }, { "role": "assistant", "content": "SELECT \"abbreviation\" FROM \"largest_sovereign_wealth_funds\" WHERE \"country\"='libya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: What's the origin for the country abbreviated atf?" }, { "role": "assistant", "content": "SELECT \"origin\" FROM \"largest_sovereign_wealth_funds\" WHERE \"abbreviation\"='atf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?" }, { "role": "assistant", "content": "SELECT \"inception\" FROM \"largest_sovereign_wealth_funds\" WHERE \"assets_us_billion\"='25.5' AND \"abbreviation\"='psf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: Which country has an abbreviation of kia?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"largest_sovereign_wealth_funds\" WHERE \"abbreviation\"='kia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"largest_sovereign_wealth_funds\" (\n \"country\" text,\n \"abbreviation\" text,\n \"assets_us_billion\" text,\n \"inception\" text,\n \"origin\" text\n);\n\nQuestion: What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?" }, { "role": "assistant", "content": "SELECT \"abbreviation\" FROM \"largest_sovereign_wealth_funds\" WHERE \"inception\"='1999' AND \"assets_us_billion\"='7.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the opponent of the home team of essendon?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_1\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How big was the crowd in a game that had a home team score of 15.15 (105)?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_1\" WHERE \"home_team_score\"='15.15 (105)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of the home team when the opposing team had a score of 9.11 (65)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_1\" WHERE \"away_team_score\"='9.11 (65)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_film_serials_by_studio\" (\n \"serial_title\" text,\n \"year\" text,\n \"chapters\" text,\n \"director\" text,\n \"cast\" text\n);\n\nQuestion: Tell me the cast for b. reeves eason and joseph kane" }, { "role": "assistant", "content": "SELECT \"cast\" FROM \"list_of_film_serials_by_studio\" WHERE \"director\"='b. reeves eason and joseph kane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_film_serials_by_studio\" (\n \"serial_title\" text,\n \"year\" text,\n \"chapters\" text,\n \"director\" text,\n \"cast\" text\n);\n\nQuestion: I want the director for heroes of the wild" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"list_of_film_serials_by_studio\" WHERE \"serial_title\"='heroes of the wild';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_film_serials_by_studio\" (\n \"serial_title\" text,\n \"year\" text,\n \"chapters\" text,\n \"director\" text,\n \"cast\" text\n);\n\nQuestion: I want the year for the three musketeers" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"list_of_film_serials_by_studio\" WHERE \"serial_title\"='the three musketeers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_film_serials_by_studio\" (\n \"serial_title\" text,\n \"year\" text,\n \"chapters\" text,\n \"director\" text,\n \"cast\" text\n);\n\nQuestion: I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes" }, { "role": "assistant", "content": "SELECT \"cast\" FROM \"list_of_film_serials_by_studio\" WHERE \"director\"='colbert clark and armand schaefer' AND \"serial_title\"='burn ''em up barnes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is North Melbourne's Away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"away_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How large was the crowd at the Kardinia Park venue games?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_3\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of the Home team that played against Carlton's Away game?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_3\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was the pick number when mark hayes was drafted?" }, { "role": "assistant", "content": "SELECT \"pick\" FROM \"nfl_draft\" WHERE \"player\"='mark hayes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which team had a pick of 63?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"pick\"=63;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which team had a position of linebacker with a pick smaller of 288?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"position\"='linebacker' AND \"pick\"<288;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What player did louisville pick when the round was below 8?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"round\"<8 AND \"school_club_team\"='louisville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_19\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome of the game that had a score of 3\u20136, 6\u20133, 6\u20130?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"itf_singles_finals_19\" WHERE \"score\"='3\u20136, 6\u20133, 6\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_19\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: On 27 July 2003 what was the outcome of the game that resulted in a score of 7\u20135, 6\u20133?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"itf_singles_finals_19\" WHERE \"score\"='7\u20135, 6\u20133' AND \"date\"='27 july 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_19\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the final score of the game against Lenka Novotn\u00e1?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"itf_singles_finals_19\" WHERE \"opponent_in_the_final\"='lenka novotn\u00e1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_19\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: In the surface of clay who was the opponent in the game resulting in a score of 6\u20134, 6\u20134?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"itf_singles_finals_19\" WHERE \"surface\"='clay' AND \"score\"='6\u20134, 6\u20134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_19\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the final score of the game against opponent Ana Ivanovic?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"itf_singles_finals_19\" WHERE \"opponent_in_the_final\"='ana ivanovic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?" }, { "role": "assistant", "content": "SELECT SUM(\"grid\") FROM \"race\" WHERE \"time_retired\"='+58.182' AND \"laps\"<67;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"horses\" (\n \"name_of_horse\" text,\n \"year_inducted\" real,\n \"year_foaled\" text,\n \"sire\" text,\n \"broodmare_sire\" text,\n \"discipline\" text\n);\n\nQuestion: What horse was induced in 2011 with a sire of cowboy p-12?" }, { "role": "assistant", "content": "SELECT \"name_of_horse\" FROM \"horses\" WHERE \"year_inducted\"=2011 AND \"broodmare_sire\"='cowboy p-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team that played against hawthorn?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"away_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team playing against collingwood?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the biggest crowd at punt road oval?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_13\" WHERE \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team based at windy hill?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"historical_list_of_staff_and_faculty\" (\n \"year\" text,\n \"president\" text,\n \"chair_of_global_ministries\" text,\n \"chair_of_pastoral\" text,\n \"chair_of_music\" text,\n \"dean_of_students\" text,\n \"dean_of_men\" text,\n \"dean_of_women\" text,\n \"assistant_dean_of_men\" text,\n \"assistant_dean_of_women\" text\n);\n\nQuestion: Who was the Assistant Dean of Men when Autumn Teele was the Assistant Dean of Women?" }, { "role": "assistant", "content": "SELECT \"assistant_dean_of_men\" FROM \"historical_list_of_staff_and_faculty\" WHERE \"assistant_dean_of_women\"='autumn teele';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?" }, { "role": "assistant", "content": "SELECT MIN(\"gold\") FROM \"medal_count\" WHERE \"silver\"<23 AND \"rank\">5 AND \"bronze\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the high silver total for nations with 3 golds and under 5 bronzes?" }, { "role": "assistant", "content": "SELECT MAX(\"silver\") FROM \"medal_count\" WHERE \"gold\"=3 AND \"bronze\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many silvers for nations with over 3 golds and under 6 bronzes?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"medal_count\" WHERE \"bronze\"<6 AND \"gold\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the crowd number for the event that has a score of 8.25 (73) for the Away team?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_19\" WHERE \"away_team_score\"='8.25 (73)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the away team has a total score of 13.9 (87), what is the name of the away team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_19\" WHERE \"away_team_score\"='13.9 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date that featured a score of 8.8 (56) for the away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_19\" WHERE \"away_team_score\"='8.8 (56)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team had a score of 13.19 (97), what was the score of the away team?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_19\" WHERE \"home_team_score\"='13.19 (97)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the smallest crowd in games at the corio oval?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_10\" WHERE \"venue\"='corio oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: In the match where Melbourne was the away team, how much did they score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_10\" WHERE \"away_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On what day did a home team score 8.18 (66)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_10\" WHERE \"home_team_score\"='8.18 (66)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who had the decision when buffalo was the visitor?" }, { "role": "assistant", "content": "SELECT \"decision\" FROM \"october\" WHERE \"visitor\"='buffalo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Tell me the venue for north melbourne" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_13\" WHERE \"away_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What name has a listed of 03/31/1989 in spartanburg county?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"superfund_sites\" WHERE \"listed\"='03/31/1989' AND \"county\"='spartanburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What date was proposed when the listed date was 12/16/1994 in the County of beaufort?" }, { "role": "assistant", "content": "SELECT \"proposed\" FROM \"superfund_sites\" WHERE \"listed\"='12/16/1994' AND \"county\"='beaufort';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What name was listed 02/21/1990, and a CERCLIS ID of scd980844005?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"superfund_sites\" WHERE \"listed\"='02/21/1990' AND \"cerclis_id\"='scd980844005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What county has a CERCLIS ID of scd037405362?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"superfund_sites\" WHERE \"cerclis_id\"='scd037405362';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What is the name for Charleston County with a CERCLIS ID of scd980711279?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"superfund_sites\" WHERE \"county\"='charleston' AND \"cerclis_id\"='scd980711279';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superfund_sites\" (\n \"cerclis_id\" text,\n \"name\" text,\n \"county\" text,\n \"proposed\" text,\n \"listed\" text\n);\n\nQuestion: What is the name for the listed date of 11/21/1989?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"superfund_sites\" WHERE \"listed\"='11/21/1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"original_broadway_production\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominee\" text,\n \"result\" text\n);\n\nQuestion: Which category was Gene Barry nominated in?" }, { "role": "assistant", "content": "SELECT \"category\" FROM \"original_broadway_production\" WHERE \"result\"='nominated' AND \"nominee\"='gene barry';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"original_broadway_production\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominee\" text,\n \"result\" text\n);\n\nQuestion: What year was the Drama Desk award won by nominee George Hearn?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"original_broadway_production\" WHERE \"award\"='drama desk award' AND \"result\"='won' AND \"nominee\"='george hearn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the time/retired for grid 5?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"grid\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"recent_results_and_forthcoming_fixtures\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"score\" text,\n \"competition\" text\n);\n\nQuestion: When was the event that had Liberia as an opponent and resulted in a 1-0 score?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"recent_results_and_forthcoming_fixtures\" WHERE \"opponent\"='liberia' AND \"score\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"recent_results_and_forthcoming_fixtures\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"score\" text,\n \"competition\" text\n);\n\nQuestion: When was the 2014 World Cup Qualification in Kampala that had Angola as an opponent" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"recent_results_and_forthcoming_fixtures\" WHERE \"competition\"='2014 world cup qualification' AND \"location\"='kampala' AND \"opponent\"='angola';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: Who was the Europe/Africa group i's opponent?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"fed_cup_singles_performances_9\" WHERE \"zone\"='europe/africa group i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?" }, { "role": "assistant", "content": "SELECT \"zone\" FROM \"fed_cup_singles_performances_9\" WHERE \"round\"='semifinal' AND \"against\"='israel' AND \"opponent\"='anna smashnova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fed_cup_singles_performances_9\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: What surface was played on against Shahar Pe'er?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"fed_cup_singles_performances_9\" WHERE \"opponent\"='shahar pe''er';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"multiple_winners\" (\n \"athlete\" text,\n \"country\" text,\n \"wins\" real,\n \"years\" text,\n \"distance\" text\n);\n\nQuestion: I want the years for marathon distance and wins of 3" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"multiple_winners\" WHERE \"distance\"='marathon' AND \"wins\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"multiple_winners\" (\n \"athlete\" text,\n \"country\" text,\n \"wins\" real,\n \"years\" text,\n \"distance\" text\n);\n\nQuestion: Name the country for athlete of ziedonis za\u013ckalns" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"multiple_winners\" WHERE \"athlete\"='ziedonis za\u013ckalns';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: I want the attendance which has a result of l 49\u201321" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"result\"='l 49\u201321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Tell me the attendance with a result of l 26\u20133" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"result\"='l 26\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: I want to know the lowest week with a date of december 19, 2004" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"date\"='december 19, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the attendance of the location where New Orleans's team plays?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='new orleans';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which team has the high points of Raymond Felton (26)?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_points\"='raymond felton (26)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the time of the driver on grid 7?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"race\" WHERE \"grid\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which Constructor has grid 2?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"race\" WHERE \"grid\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the highest grid that has 55 laps?" }, { "role": "assistant", "content": "SELECT MAX(\"grid\") FROM \"race\" WHERE \"laps\"=55;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was Richmond's away team opponent?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"home_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away score at VFL Park?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"venue\"='vfl park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Tell me the home team score for richmond home team" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_6\" WHERE \"home_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Tell me the venue for 8 june 1931 for st kilda away team" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_6\" WHERE \"date\"='8 june 1931' AND \"away_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When fitzroy was the home team, how much did the away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_22\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: In the game where the home team scored 15.11 (101) and carlton was away, where was the venue?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_22\" WHERE \"home_team_score\"='15.11 (101)' AND \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When essendon was the home team, how much did they score?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_22\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What is shintaro ishiwatari's time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='shintaro ishiwatari';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: How many rounds have an Opponent of sakae kasuya?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='sakae kasuya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: Which time has a Method of decision(majority), and an Opponent of keisuke yamada?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='decision(majority)' AND \"opponent\"='keisuke yamada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='shooto' AND \"round\"=2 AND \"opponent\"='issei tamura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team that played at punt road oval?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score that played at windy hill?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_15\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How big was the crowd at the game the away team geelong played at?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_15\" WHERE \"away_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which constructor has a race called I News of the World Trophy?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"race_name\"='i news of the world trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which Constructor has the goodwood circuit?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"circuit\"='goodwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What driver won the VII Rand Grand Prix?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"race_name\"='vii rand grand prix';" } ]