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 \"canada\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which service does the network of atn urdu offer?"
},
{
"role": "assistant",
"content": "SELECT \"service\" FROM \"canada\" WHERE \"network\"='atn urdu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?"
},
{
"role": "assistant",
"content": "SELECT \"origin_of_programming\" FROM \"canada\" WHERE \"genre\"='general' AND \"network\"='ntv bangla' AND \"service\"='cogeco cable';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which service has a hindi language, general genre and zee tv network?"
},
{
"role": "assistant",
"content": "SELECT \"service\" FROM \"canada\" WHERE \"language\"='hindi' AND \"genre\"='general' AND \"network\"='zee tv';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which network has an origina of Programming in India, a general genre, a service of bell fibe tv, and tamil as its language?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"canada\" WHERE \"origin_of_programming\"='india' AND \"genre\"='general' AND \"service\"='bell fibe tv' AND \"language\"='tamil';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"canada\" WHERE \"origin_of_programming\"='india' AND \"genre\"='general' AND \"network\"='ptc punjabi' AND \"service\"='bell fibe tv';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"rank\"<11 AND \"nation\"='trinidad and tobago' AND \"total\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and ranked below 10?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"gold\") FROM \"medal_table\" WHERE \"silver\"=1 AND \"bronze\"<2 AND \"total\"=1 AND \"rank\"<10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_officers\" (\n \"name\" text,\n \"date_of_birth\" text,\n \"actual_rank\" text,\n \"appointment_date\" text,\n \"allegiance\" text\n);\n\nQuestion: Who did Winfield Scott have an allegiance with?"
},
{
"role": "assistant",
"content": "SELECT \"allegiance\" FROM \"line_officers\" WHERE \"name\"='winfield scott';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"listing\" (\n \"rank\" real,\n \"name\" text,\n \"population_2011_census\" real,\n \"percent_of_national_population\" text,\n \"pct_growth_2006_11\" text,\n \"land_area_km\" real,\n \"population_density_km_2\" real,\n \"house_of_commons_seats\" real,\n \"house_of_commons_seats_pct\" text,\n \"2013_population_july_est\" real\n);\n\nQuestion: What was the July 2013 population estimate of the location which had a population density larger than 14.1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"2013_population_july_est\") FROM \"listing\" WHERE \"population_density_km_2\">14.1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"listing\" (\n \"rank\" real,\n \"name\" text,\n \"population_2011_census\" real,\n \"percent_of_national_population\" text,\n \"pct_growth_2006_11\" text,\n \"land_area_km\" real,\n \"population_density_km_2\" real,\n \"house_of_commons_seats\" real,\n \"house_of_commons_seats_pct\" text,\n \"2013_population_july_est\" real\n);\n\nQuestion: What was the lowest rank of an area with a 2011 Census population larger than 3,645,257, a House of Commons seat percentage of 11.7% and a July 2013 population estimate over 4,581,978?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"listing\" WHERE \"population_2011_census\">'3,645,257' AND \"house_of_commons_seats_pct\"='11.7%' AND \"2013_population_july_est\">'4,581,978';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"listing\" (\n \"rank\" real,\n \"name\" text,\n \"population_2011_census\" real,\n \"percent_of_national_population\" text,\n \"pct_growth_2006_11\" text,\n \"land_area_km\" real,\n \"population_density_km_2\" real,\n \"house_of_commons_seats\" real,\n \"house_of_commons_seats_pct\" text,\n \"2013_population_july_est\" real\n);\n\nQuestion: What was the highest rank of an area with a population density larger than 5.7 and a 2006\u20132011 percentage growth of 5.7%?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"listing\" WHERE \"population_density_km_2\">5.7 AND \"pct_growth_2006_11\"='5.7%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"listing\" (\n \"rank\" real,\n \"name\" text,\n \"population_2011_census\" real,\n \"percent_of_national_population\" text,\n \"pct_growth_2006_11\" text,\n \"land_area_km\" real,\n \"population_density_km_2\" real,\n \"house_of_commons_seats\" real,\n \"house_of_commons_seats_pct\" text,\n \"2013_population_july_est\" real\n);\n\nQuestion: What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km\u00b2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_2011_census\") FROM \"listing\" WHERE \"land_area_km\">'908,607.67';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1971_isle_of_man_junior_tt_350cc_final_s\" (\n \"place\" real,\n \"rider\" text,\n \"country\" text,\n \"machine\" text,\n \"speed\" text,\n \"time\" text,\n \"points\" real\n);\n\nQuestion: Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"1971_isle_of_man_junior_tt_350cc_final_s\" WHERE \"speed\"='86.15mph';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1971_isle_of_man_junior_tt_350cc_final_s\" (\n \"place\" real,\n \"rider\" text,\n \"country\" text,\n \"machine\" text,\n \"speed\" text,\n \"time\" text,\n \"points\" real\n);\n\nQuestion: Which rider had a points score equal to 10?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"1971_isle_of_man_junior_tt_350cc_final_s\" WHERE \"points\"=10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_tries\" (\n \"player\" text,\n \"span\" text,\n \"start\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text\n);\n\nQuestion: Which Start has a 0 Conv, 0 Pens and 8 Tries?"
},
{
"role": "assistant",
"content": "SELECT \"start\" FROM \"most_tries\" WHERE \"conv\"='0' AND \"pens\"='0' AND \"tries\"='8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_tries\" (\n \"player\" text,\n \"span\" text,\n \"start\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text\n);\n\nQuestion: Which Player has 0 Pens and 12 Starts?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"most_tries\" WHERE \"pens\"='0' AND \"start\"='12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_tries\" (\n \"player\" text,\n \"span\" text,\n \"start\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text\n);\n\nQuestion: Which Start has 8 Tries and 0 Convs?"
},
{
"role": "assistant",
"content": "SELECT \"start\" FROM \"most_tries\" WHERE \"tries\"='8' AND \"conv\"='0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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 for the game at Victoria Park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_12\" WHERE \"venue\"='victoria park';"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was round 7's lowest overall?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"nfl_draft\" WHERE \"round\"=7;"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who had the smallest overall under 22?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"overall\"<22;"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was Cal State-Los Angeles' position with an Overall above 22?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"overall\">22 AND \"school_club_team\"='cal state-los angeles';"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who played for Memphis State?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"school_club_team\"='memphis state';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 largest crowd for the St Kilda as the away team?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_17\" WHERE \"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_17\" (\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 crowd size when Essendon was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_17\" 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_17\" (\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: Which venue had a crowd larger than 20,000?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_17\" WHERE \"crowd\">'20,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\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: Which away team played at Lake Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_17\" WHERE \"venue\"='lake oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 date was the crowd more numerous than 10,800 when the home team score was 7.13 (55)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_17\" WHERE \"crowd\">'10,800' AND \"home_team_score\"='7.13 (55)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 total number of the crowd at Glenferrie Oval?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_17\" WHERE \"venue\"='glenferrie oval';"
}
] |
[
{
"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: The Western Oval venue has what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_6\" WHERE \"venue\"='western oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"kickoff\" text,\n \"attendance\" text\n);\n\nQuestion: What is the kickoff time for the Miami Dolphins?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff\" FROM \"regular_season\" WHERE \"opponent\"='miami dolphins';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"kickoff\" text,\n \"attendance\" text\n);\n\nQuestion: What was the final of the New England Patriots game?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"regular_season\" WHERE \"opponent\"='new england patriots';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the largest attendance on august 10, 1963, and a week larger than 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"exhibition_schedule\" WHERE \"date\"='august 10, 1963' AND \"week\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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 date was the game when the away team scored 9.5 (59)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_8\" WHERE \"away_team_score\"='9.5 (59)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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: Where was the game played when the home team scored 17.7 (109)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_8\" WHERE \"home_team_score\"='17.7 (109)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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 away team when the home team was south melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_8\" WHERE \"home_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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 smallest crowd at princes park?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_8\" WHERE \"venue\"='princes park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest ranked nation with 15 silver medals and no more than 47 total?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"medal_table\" WHERE \"silver\"=15 AND \"total\"<47;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"average\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" real\n);\n\nQuestion: What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank_by_average\") FROM \"average\" WHERE \"average\"=25.3 AND \"number_of_dances\">10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verb_derivations_using_the_root_qet_the_\" (\n \"type\" text,\n \"suffix\" text,\n \"valency_change\" text,\n \"example\" text,\n \"meaning\" text\n);\n\nQuestion: What is the example with the associative type?"
},
{
"role": "assistant",
"content": "SELECT \"example\" FROM \"verb_derivations_using_the_root_qet_the_\" WHERE \"type\"='associative';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verb_derivations_using_the_root_qet_the_\" (\n \"type\" text,\n \"suffix\" text,\n \"valency_change\" text,\n \"example\" text,\n \"meaning\" text\n);\n\nQuestion: What is the Suffix of the intensive and valency change of 0?"
},
{
"role": "assistant",
"content": "SELECT \"suffix\" FROM \"verb_derivations_using_the_root_qet_the_\" WHERE \"valency_change\"='0' AND \"type\"='intensive';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verb_derivations_using_the_root_qet_the_\" (\n \"type\" text,\n \"suffix\" text,\n \"valency_change\" text,\n \"example\" text,\n \"meaning\" text\n);\n\nQuestion: WHat is the Valency change of associative type?"
},
{
"role": "assistant",
"content": "SELECT \"valency_change\" FROM \"verb_derivations_using_the_root_qet_the_\" WHERE \"type\"='associative';"
}
] |
[
{
"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: Who is the home team when hawthorn is the away side?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_6\" 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_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: Who is the away side that scores 9.8 (62)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"away_team_score\"='9.8 (62)';"
}
] |
[
{
"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: What is the largest crowd that has the away side scoring 10.14 (74)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_6\" WHERE \"away_team_score\"='10.14 (74)';"
}
] |
[
{
"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 away team that played at Windy Hill?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_3\" 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_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 home team at the match when the away team scored 6.14 (50)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_3\" WHERE \"away_team_score\"='6.14 (50)';"
}
] |
[
{
"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 away team at the match where the crowd was larger than 30,000?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_3\" WHERE \"crowd\">'30,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_9\" (\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 venue when the away side scores 11.20 (86)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_9\" WHERE \"away_team_score\"='11.20 (86)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_9\" (\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 smallest crowd when richmond is away?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_9\" WHERE \"away_team\"='richmond';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_9\" (\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 melbourne's home team score?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_9\" WHERE \"home_team\"='melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"year\" real,\n \"network\" text,\n \"host\" text,\n \"pre_race_analyst\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text\n);\n\nQuestion: Who is the color commentator in 2008?"
},
{
"role": "assistant",
"content": "SELECT \"color_commentator_s\" FROM \"television_broadcasters\" WHERE \"year\"=2008;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"in_office\" text\n);\n\nQuestion: Which member of the National Party is from the Hinkler electorate?"
},
{
"role": "assistant",
"content": "SELECT \"member\" FROM \"see_also\" WHERE \"party\"='national' AND \"electorate\"='hinkler';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"in_office\" text\n);\n\nQuestion: Which member is from the state of SA and the grey electorate?"
},
{
"role": "assistant",
"content": "SELECT \"member\" FROM \"see_also\" WHERE \"state\"='sa' AND \"electorate\"='grey';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"in_office\" text\n);\n\nQuestion: In which state is the Petrie electorate?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"see_also\" WHERE \"electorate\"='petrie';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2002_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What round was the draft pick of tight end with an Overall larger than 21?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"2002_new_england_patriots_draft_selectio\" WHERE \"position\"='tight end' AND \"overall\">21;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2002_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player is a wide receiver picked in round 7?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2002_new_england_patriots_draft_selectio\" WHERE \"position\"='wide receiver' AND \"round\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2002_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the name of the running back pick?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2002_new_england_patriots_draft_selectio\" WHERE \"position\"='running back';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\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 did the VFL pay at Victoria Park?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_4\" WHERE \"venue\"='victoria park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\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 did South Melbourne play as the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_4\" WHERE \"away_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\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 home team Essendon's opponents score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_4\" 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_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 date did the home team have a score of 9.18 (72)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_15\" WHERE \"home_team_score\"='9.18 (72)';"
}
] |
[
{
"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 did the away team score when the home team scored 9.18 (72)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"home_team_score\"='9.18 (72)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_100_chinese_motion_pictures\" (\n \"rank\" real,\n \"title\" text,\n \"year\" real,\n \"region\" text,\n \"director_s\" text\n);\n\nQuestion: When was The Love Eterne released?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"best_100_chinese_motion_pictures\" WHERE \"title\"='the love eterne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text\n);\n\nQuestion: How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"heat\") FROM \"heats\" WHERE \"lane\"=5 AND \"rank\">110 AND \"nationality\"='honduras';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text\n);\n\nQuestion: How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"heat\") FROM \"heats\" WHERE \"lane\"=2 AND \"rank\">75 AND \"nationality\"='madagascar';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text\n);\n\nQuestion: What is the sum of every heat for the nationality of Macedonia with a rank less than 114?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"heat\") FROM \"heats\" WHERE \"nationality\"='macedonia' AND \"rank\"<114;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text\n);\n\nQuestion: What was the least number of heats with more than 8 lanes for the Nationality of Germany?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"heat\") FROM \"heats\" WHERE \"nationality\"='germany' AND \"lane\">8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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 VFL played Victoria Park what was the home team score?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_12\" WHERE \"venue\"='victoria park';"
}
] |
[
{
"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 \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: What driver has over 19 points and a grid of over 2?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"race\" WHERE \"points\">19 AND \"grid\">2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\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 for the away team when geelong was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_14\" WHERE \"home_team\"='geelong';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\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 they played footscray?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" WHERE \"away_team\"='footscray';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\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: Where was the game played when the away team scored 9.14 (68)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_14\" WHERE \"away_team_score\"='9.14 (68)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\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 for the home team of essendon?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" 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_16\" (\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 for the Essendon home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_16\" 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_16\" (\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 for the Richmond home team?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_16\" 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_16\" (\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 largest crowd at the Brunswick Street Oval?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_16\" WHERE \"venue\"='brunswick street 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: Who was the home team when VFL played at Windy Hill?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" 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: What was the attendance when the VFL played Glenferrie Oval?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_15\" WHERE \"venue\"='glenferrie 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 was the attendance when North Melbourne was the away team?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_15\" 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_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: When did Essendon play as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_15\" 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 \"the_stages\" (\n \"approximate_age\" text,\n \"virtues\" text,\n \"psycho_social_crisis\" text,\n \"significant_relationship\" text,\n \"existential_question_not_in_citation_given\" text,\n \"examples\" text\n);\n\nQuestion: Can you give me the age of the Virtues of Wisdom?"
},
{
"role": "assistant",
"content": "SELECT \"approximate_age\" FROM \"the_stages\" WHERE \"virtues\"='wisdom';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_stages\" (\n \"approximate_age\" text,\n \"virtues\" text,\n \"psycho_social_crisis\" text,\n \"significant_relationship\" text,\n \"existential_question_not_in_citation_given\" text,\n \"examples\" text\n);\n\nQuestion: What Virtue looks at the intimacy vs. isolation crisis?"
},
{
"role": "assistant",
"content": "SELECT \"virtues\" FROM \"the_stages\" WHERE \"psycho_social_crisis\"='intimacy vs. isolation';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_stages\" (\n \"approximate_age\" text,\n \"virtues\" text,\n \"psycho_social_crisis\" text,\n \"significant_relationship\" text,\n \"existential_question_not_in_citation_given\" text,\n \"examples\" text\n);\n\nQuestion: Can you give me the age of the Significant Relationship of Family?"
},
{
"role": "assistant",
"content": "SELECT \"approximate_age\" FROM \"the_stages\" WHERE \"significant_relationship\"='family';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_stages\" (\n \"approximate_age\" text,\n \"virtues\" text,\n \"psycho_social_crisis\" text,\n \"significant_relationship\" text,\n \"existential_question_not_in_citation_given\" text,\n \"examples\" text\n);\n\nQuestion: The Significant Relationship of Parents belongs with what Virtue?"
},
{
"role": "assistant",
"content": "SELECT \"virtues\" FROM \"the_stages\" WHERE \"significant_relationship\"='parents';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_18\" (\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 away side at windy hill?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_18\" 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_18\" (\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 side when the away side scores 11.15 (81)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_18\" WHERE \"away_team_score\"='11.15 (81)';"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many drafts featured fred hoaglin?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"overall\") FROM \"nfl_draft\" WHERE \"player\"='fred hoaglin';"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What round did the player from delta st. get picked?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"nfl_draft\" WHERE \"school_club_team\"='delta st.';"
}
] |
[
{
"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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the highest overall number for someone from round 16?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"overall\") FROM \"nfl_draft\" WHERE \"round\"=16;"
}
] |
[
{
"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 average crowd size when Melbourne was the home team?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_15\" WHERE \"home_team\"='melbourne';"
}
] |
[
{
"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 North Melbourne's score when they were the home team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_15\" 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 \"history\" (\n \"year\" text,\n \"1st_position\" text,\n \"2nd_position\" text,\n \"9th_position\" text,\n \"10th_position\" text\n);\n\nQuestion: What is in the ninth position where the tenth position is rabat ajax?"
},
{
"role": "assistant",
"content": "SELECT \"9th_position\" FROM \"history\" WHERE \"10th_position\"='rabat ajax';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"1st_position\" text,\n \"2nd_position\" text,\n \"9th_position\" text,\n \"10th_position\" text\n);\n\nQuestion: In what year is the tenth position xghajra?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"history\" WHERE \"10th_position\"='xghajra';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"1st_position\" text,\n \"2nd_position\" text,\n \"9th_position\" text,\n \"10th_position\" text\n);\n\nQuestion: In what year is the 9th position balzan?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"history\" WHERE \"9th_position\"='balzan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"1st_position\" text,\n \"2nd_position\" text,\n \"9th_position\" text,\n \"10th_position\" text\n);\n\nQuestion: Where there is a tenth position of gozo, what is the first position?"
},
{
"role": "assistant",
"content": "SELECT \"1st_position\" FROM \"history\" WHERE \"10th_position\"='gozo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"1st_position\" text,\n \"2nd_position\" text,\n \"9th_position\" text,\n \"10th_position\" text\n);\n\nQuestion: In what year is the 9th position rabat ajax?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"history\" WHERE \"9th_position\"='rabat ajax';"
}
] |
[
{
"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 Hawthorn's score as the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_10\" 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_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: Who was the away team that scored 7.6 (48)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_10\" WHERE \"away_team_score\"='7.6 (48)';"
}
] |
[
{
"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: Who was the away team at the game at Lake Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_10\" WHERE \"venue\"='lake 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: Who was the home team that scored 8.7 (55)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"home_team_score\"='8.7 (55)';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.