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 \"expansion_draft_selections\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: What was the college team of the player whose former WNBA team was the Cleveland Rockers?"
},
{
"role": "assistant",
"content": "SELECT \"college_country_team\" FROM \"expansion_draft_selections\" WHERE \"former_wnba_team\"='cleveland rockers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expansion_draft_selections\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: What nationality was the player whose college team was Georgia Tech?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"expansion_draft_selections\" WHERE \"college_country_team\"='georgia tech';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expansion_draft_selections\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: What was the new WNBA team of the player selected with a pick over 7?"
},
{
"role": "assistant",
"content": "SELECT \"new_wnba_team\" FROM \"expansion_draft_selections\" WHERE \"pick\">7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expansion_draft_selections\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"expansion_draft_selections\" WHERE \"pick\"<6 AND \"new_wnba_team\"='minnesota lynx';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Billy Ray Brown plays for what country?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='billy ray brown';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: The country of Spain has what score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='spain';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: The golfer from the United states with a score of 72-70-69=211 is in what place?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"score\"='72-70-69=211';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: The golfer Jeff Sluman golfs for what country?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='jeff sluman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Mike Reid from the United States has what score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='mike reid';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player has 71-72-66=209 as the score?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='71-72-66=209';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What to par has 7 as the place?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"place\"='7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player has 72-67-71=210 as the score?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='72-67-71=210';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What to par has t5 as the place, with larry mize as the player?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"place\"='t5' AND \"player\"='larry mize';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player has t5 as the place?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What score has fred couples as the player?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='fred couples';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: On what Date in Stade Leopold Senghor, Dakar was the Score 4\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"score\"='4\u20130' AND \"venue\"='stade leopold senghor, dakar';"
}
] |
[
{
"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 has the highest assists on april 28?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='april 28';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_indoor_tournament\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What was the name of the player from Olympiacos in 2008?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"men_s_indoor_tournament\" WHERE \"2008_club\"='olympiacos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_indoor_tournament\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: Who played for Olympiacos in 2008?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"men_s_indoor_tournament\" WHERE \"2008_club\"='olympiacos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_3_results_summary\" (\n \"season\" real,\n \"series\" text,\n \"points\" text,\n \"position\" text,\n \"driver\" text\n);\n\nQuestion: What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"formula_3_results_summary\" WHERE \"series\"='queensland formula ford championship' AND \"position\"='1st';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_3_results_summary\" (\n \"season\" real,\n \"series\" text,\n \"points\" text,\n \"position\" text,\n \"driver\" text\n);\n\nQuestion: What is Driver, when Position is 2nd, and when Season is 2001?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"formula_3_results_summary\" WHERE \"position\"='2nd' AND \"season\"=2001;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_3_results_summary\" (\n \"season\" real,\n \"series\" text,\n \"points\" text,\n \"position\" text,\n \"driver\" text\n);\n\nQuestion: What is Position, when Series is Queensland Formula Ford Championship, when Season is after 2001, and when Points is 234?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"formula_3_results_summary\" WHERE \"series\"='queensland formula ford championship' AND \"season\">2001 AND \"points\"='234';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formula_3_results_summary\" (\n \"season\" real,\n \"series\" text,\n \"points\" text,\n \"position\" text,\n \"driver\" text\n);\n\nQuestion: What is Series, when Season is 2007?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"formula_3_results_summary\" WHERE \"season\"=2007;"
}
] |
[
{
"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\" real\n);\n\nQuestion: What was the Attendance on September 26, 1971?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"date\"='september 26, 1971';"
}
] |
[
{
"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: Who was the opponent before week 12, on November 11, 1990?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"<12 AND \"date\"='november 11, 1990';"
}
] |
[
{
"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: Which date had an attendance of 76,518?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='76,518';"
}
] |
[
{
"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: What was the attendance of the game that ended with L 31-0"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"result\"='l 31-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current\" (\n \"continent\" text,\n \"structure\" text,\n \"height\" text,\n \"year\" real,\n \"country\" text\n);\n\nQuestion: What is the year for the country of Morocco?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"current\" WHERE \"country\"='morocco';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current\" (\n \"continent\" text,\n \"structure\" text,\n \"height\" text,\n \"year\" real,\n \"country\" text\n);\n\nQuestion: What is the year for the United Arab Emirates?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"current\" WHERE \"country\"='united arab emirates';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current\" (\n \"continent\" text,\n \"structure\" text,\n \"height\" text,\n \"year\" real,\n \"country\" text\n);\n\nQuestion: What year was the Mercury City Tower?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"current\" WHERE \"structure\"='mercury city tower';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current\" (\n \"continent\" text,\n \"structure\" text,\n \"height\" text,\n \"year\" real,\n \"country\" text\n);\n\nQuestion: What structure is in Chile?"
},
{
"role": "assistant",
"content": "SELECT \"structure\" FROM \"current\" WHERE \"country\"='chile';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What 2007-08 season has marcianise as the city?"
},
{
"role": "assistant",
"content": "SELECT \"2007_08_season\" FROM \"girone_b\" WHERE \"city\"='marcianise';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What is the highest capacity that has serie c2/c champions for the 2007-08 season?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"capacity\") FROM \"girone_b\" WHERE \"2007_08_season\"='serie c2/c champions';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What is the average capacity that has foligno as the city?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"capacity\") FROM \"girone_b\" WHERE \"city\"='foligno';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What is the highest capacity that has stadio marcello torre as the stadium?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"capacity\") FROM \"girone_b\" WHERE \"stadium\"='stadio marcello torre';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the score for the game where Birmingham City was the home team on 10 March 1984?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"date\"='10 march 1984' AND \"home_team\"='birmingham city';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who played the away team Derby County?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"sixth_round_proper\" WHERE \"away_team\"='derby county';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team that tied no 2?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"sixth_round_proper\" WHERE \"tie_no\"='2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the score of the game when Sheffield Wednesday was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"home_team\"='sheffield wednesday';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which years did the player from Providence play for the Grizzlies as small forward?"
},
{
"role": "assistant",
"content": "SELECT \"years_for_grizzlies\" FROM \"s\" WHERE \"position\"='small forward' AND \"school_club_team\"='providence';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of Stromile Swift?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"s\" WHERE \"player\"='stromile swift';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which years did the player from Providence play for Memphis?"
},
{
"role": "assistant",
"content": "SELECT \"years_for_grizzlies\" FROM \"s\" WHERE \"school_club_team\"='providence';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Which team has a record of 7-1?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='7-1';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What game number was the first game played at the Summit this season?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"location\"='the summit';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the final score for the game played against the New York Knicks?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='new york knicks';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"location\"='boston garden' AND \"score\"='118-110';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Finish, when Year(s) Won is \"1962 , 1967\"?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1962 , 1967';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Player, when To Par is greater than 6, and when Year(s) Won is \"1962 , 1967\"?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"to_par\">6 AND \"year_s_won\"='1962 , 1967';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Finish, when To Par is less than 14, and when Year(s) Won is \"1952 , 1963\"?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"to_par\"<14 AND \"year_s_won\"='1952 , 1963';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the highest To Par, when Year(s) Won is \"1962 , 1967\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"to_par\") FROM \"made_the_cut\" WHERE \"year_s_won\"='1962 , 1967';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the Total, when To Par is less than 14, when Finish is T12, and when Player is \"Julius Boros\"?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"made_the_cut\" WHERE \"to_par\"<14 AND \"finish\"='t12' AND \"player\"='julius boros';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_hip_hop_albums_which_received_un\" (\n \"number\" real,\n \"artist\" text,\n \"album\" text,\n \"average_score\" real,\n \"number_of_reviews\" text\n);\n\nQuestion: What is the highest number of artists on Scarface?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"number\") FROM \"list_of_hip_hop_albums_which_received_un\" WHERE \"artist\"='scarface';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_hip_hop_albums_which_received_un\" (\n \"number\" real,\n \"artist\" text,\n \"album\" text,\n \"average_score\" real,\n \"number_of_reviews\" text\n);\n\nQuestion: What is the average number for Black Milk?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"number\") FROM \"list_of_hip_hop_albums_which_received_un\" WHERE \"artist\"='black milk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_hip_hop_albums_which_received_un\" (\n \"number\" real,\n \"artist\" text,\n \"album\" text,\n \"average_score\" real,\n \"number_of_reviews\" text\n);\n\nQuestion: What is the lowest average for number 2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"average_score\") FROM \"list_of_hip_hop_albums_which_received_un\" WHERE \"number\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_hip_hop_albums_which_received_un\" (\n \"number\" real,\n \"artist\" text,\n \"album\" text,\n \"average_score\" real,\n \"number_of_reviews\" text\n);\n\nQuestion: What is the highest score for Black Milk?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"average_score\") FROM \"list_of_hip_hop_albums_which_received_un\" WHERE \"artist\"='black milk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_doubles_11_5_6\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What surface was played on when Piet Norval was a partner?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"mixed_doubles_11_5_6\" WHERE \"partner\"='piet norval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_doubles_11_5_6\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the surface played on when they were a runner-up in 2007?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"mixed_doubles_11_5_6\" WHERE \"outcome\"='runner-up' AND \"year\"=2007;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What is Goals, when Assists is greater than 28, and when Player is Steve Walker?"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"regular_season\" WHERE \"assists\">28 AND \"player\"='steve walker';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What is the average Games, when Player is Robert Hock, and when Goals is less than 24?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"games\") FROM \"regular_season\" WHERE \"player\"='robert hock' AND \"goals\"<24;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What is the average Assists, when Club is Iserlohn Roosters,when Points is 71, and when Goals is greater than 44?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"assists\") FROM \"regular_season\" WHERE \"club\"='iserlohn roosters' AND \"points\"=71 AND \"goals\">44;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What is the average Goals, when Club is Iserlohn Roosters, and when Games is less than 56?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"goals\") FROM \"regular_season\" WHERE \"club\"='iserlohn roosters' AND \"games\"<56;"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the location of the game with a 115-105 score?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"game_log\" WHERE \"score\"='115-105';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the record of the game with a 110-106 score?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='110-106';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the record of game 48?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=48;"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the record of the game with a 110-106 score?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='110-106';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What is the score at the forum location?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"location\"='the forum';"
}
] |
[
{
"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 \"location\" text\n);\n\nQuestion: What is Method, when Location is \"Tokyo , Japan\", and when Event is \"Rings: Millennium Combine 2\"?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"location\"='tokyo , japan' AND \"event\"='rings: millennium combine 2';"
}
] |
[
{
"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 \"location\" text\n);\n\nQuestion: What is Method, when Opponent is \"Chalid Arrab\"?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='chalid arrab';"
}
] |
[
{
"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 \"location\" text\n);\n\nQuestion: What is the sum of Round, when Record is \"19-25-5\"?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"record\"='19-25-5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which region has Stanford University as host?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"first_and_second_rounds\" WHERE \"host\"='stanford university';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which state contains the University of Iowa in the mideast region?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"first_and_second_rounds\" WHERE \"region\"='mideast' AND \"host\"='university of iowa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which state includes the city of Storrs?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"first_and_second_rounds\" WHERE \"city\"='storrs';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which state includes the Harry A. Gampel Pavilion venue?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"first_and_second_rounds\" WHERE \"venue\"='harry a. gampel pavilion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which city is in Georgia?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"first_and_second_rounds\" WHERE \"state\"='georgia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What is the total number of rounds that had Jason Missiaen?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"draft_picks\" WHERE \"player\"='jason missiaen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What player is from Russia?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"nationality\"='russia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What nationality is the pick from round 7?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"official_versions\" (\n \"version\" text,\n \"length\" text,\n \"album\" text,\n \"remixed_by\" text,\n \"year\" real\n);\n\nQuestion: what is the album when the year is later than 2008?"
},
{
"role": "assistant",
"content": "SELECT \"album\" FROM \"official_versions\" WHERE \"year\">2008;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: What is the Championship Game that has 4 Bids and a .600 Win %?"
},
{
"role": "assistant",
"content": "SELECT \"championship_game\" FROM \"record_by_conference\" WHERE \"num_of_bids\"=4 AND \"win_pct\"='.600';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the team 2 with cobreloa as team 1?"
},
{
"role": "assistant",
"content": "SELECT \"team_2\" FROM \"round_of_16\" WHERE \"team_1\"='cobreloa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the team 1 with a 3-0 2nd leg?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"round_of_16\" WHERE \"2nd_leg\"='3-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the team 1 with a 2-1 2nd leg?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"round_of_16\" WHERE \"2nd_leg\"='2-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many picks had a round smaller than 6 and an overall bigger than 153?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"round\"<6 AND \"overall\">153;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_09_partick_thistle_f_c_season\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance on 31 January 2009 when the opponent was Airdrie United?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"2008_09_partick_thistle_f_c_season\" WHERE \"opponent\"='airdrie united' AND \"date\"='31 january 2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_09_partick_thistle_f_c_season\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: In what venue was the event held on 14 February 2009?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"2008_09_partick_thistle_f_c_season\" WHERE \"date\"='14 february 2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_09_partick_thistle_f_c_season\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the event on 20 September 2008, held at the Firhill venue, at which more than 3,303 were in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"2008_09_partick_thistle_f_c_season\" WHERE \"attendance\">'3,303' AND \"venue\"='firhill' AND \"date\"='20 september 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_09_partick_thistle_f_c_season\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the average attendance for all events held at Palmerston Park venue?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"2008_09_partick_thistle_f_c_season\" WHERE \"venue\"='palmerston park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_with_other_technologies\" (\n \"technology\" text,\n \"pct\" real,\n \"v_oc_v\" text,\n \"i_sc_a\" text,\n \"w_m\" text,\n \"t_m\" real\n);\n\nQuestion: What is the total number of t (\u00b5m), when Technology is u c-si?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"t_m\") FROM \"comparison_with_other_technologies\" WHERE \"technology\"='u c-si';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_with_other_technologies\" (\n \"technology\" text,\n \"pct\" real,\n \"v_oc_v\" text,\n \"i_sc_a\" text,\n \"w_m\" text,\n \"t_m\" real\n);\n\nQuestion: What is the V OC (V), when t (\u00b5m) is greater than 5, and when I SC (A) is 0.8?"
},
{
"role": "assistant",
"content": "SELECT \"v_oc_v\" FROM \"comparison_with_other_technologies\" WHERE \"t_m\">5 AND \"i_sc_a\"='0.8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_with_other_technologies\" (\n \"technology\" text,\n \"pct\" real,\n \"v_oc_v\" text,\n \"i_sc_a\" text,\n \"w_m\" text,\n \"t_m\" real\n);\n\nQuestion: What is the sum of t (\u00b5m), when Technology is MJ?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"t_m\") FROM \"comparison_with_other_technologies\" WHERE \"technology\"='mj';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_with_other_technologies\" (\n \"technology\" text,\n \"pct\" real,\n \"v_oc_v\" text,\n \"i_sc_a\" text,\n \"w_m\" text,\n \"t_m\" real\n);\n\nQuestion: What is W/m\u00b2, when \u03b7 (%) is greater than 16.5, and when Technology is MJ?"
},
{
"role": "assistant",
"content": "SELECT \"w_m\" FROM \"comparison_with_other_technologies\" WHERE \"pct\">16.5 AND \"technology\"='mj';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text,\n \"type\" text\n);\n\nQuestion: What type of Bridge is in Stanley?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"references\" WHERE \"location\"='stanley';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text,\n \"type\" text\n);\n\nQuestion: What type of bridge is Colton's Crossing Bridge?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"references\" WHERE \"name\"='colton''s crossing bridge';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text,\n \"type\" text\n);\n\nQuestion: What bridge is a pratt pony through truss tyoe bridge?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"references\" WHERE \"type\"='pratt pony through truss';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text,\n \"type\" text\n);\n\nQuestion: What type of bridge is in Cooperstown?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"references\" WHERE \"location\"='cooperstown';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text,\n \"type\" text\n);\n\nQuestion: What bridge is in Mcville?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"references\" WHERE \"location\"='mcville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"free_open_source_floss\" (\n \"name\" text,\n \"platform\" text,\n \"supported_databases\" text,\n \"tracking_method\" text,\n \"latest_stable_release\" text,\n \"license\" text\n);\n\nQuestion: Which tracking method supports MySQL databases and is named Open Web Analytics?"
},
{
"role": "assistant",
"content": "SELECT \"tracking_method\" FROM \"free_open_source_floss\" WHERE \"supported_databases\"='mysql' AND \"name\"='open web analytics';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"free_open_source_floss\" (\n \"name\" text,\n \"platform\" text,\n \"supported_databases\" text,\n \"tracking_method\" text,\n \"latest_stable_release\" text,\n \"license\" text\n);\n\nQuestion: Which tracking method has a latest stable release of 2.23-05?"
},
{
"role": "assistant",
"content": "SELECT \"tracking_method\" FROM \"free_open_source_floss\" WHERE \"latest_stable_release\"='2.23-05';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"free_open_source_floss\" (\n \"name\" text,\n \"platform\" text,\n \"supported_databases\" text,\n \"tracking_method\" text,\n \"latest_stable_release\" text,\n \"license\" text\n);\n\nQuestion: What is the latest stable release date for Crawltrack?"
},
{
"role": "assistant",
"content": "SELECT \"latest_stable_release\" FROM \"free_open_source_floss\" WHERE \"name\"='crawltrack';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"free_open_source_floss\" (\n \"name\" text,\n \"platform\" text,\n \"supported_databases\" text,\n \"tracking_method\" text,\n \"latest_stable_release\" text,\n \"license\" text\n);\n\nQuestion: Which tracking method has a latest stable release of 6.0?"
},
{
"role": "assistant",
"content": "SELECT \"tracking_method\" FROM \"free_open_source_floss\" WHERE \"latest_stable_release\"='6.0';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.