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 \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?"
},
{
"role": "assistant",
"content": "SELECT \"memory\" FROM \"45_nm\" WHERE \"turbo\"='2/2/4/5' AND \"release_date\"='may 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What Model number has the sSpec numebr of SLBJG(B1)?"
},
{
"role": "assistant",
"content": "SELECT \"model_number\" FROM \"45_nm\" WHERE \"s_spec_number\"='slbjg(b1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What Turbo has the Release price (USD) of $583?"
},
{
"role": "assistant",
"content": "SELECT \"turbo\" FROM \"45_nm\" WHERE \"release_price_usd\"='$583';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the lowest prominence for a peak with elevation of 3,615 meters?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"prominence_m\") FROM \"list_of_ultras_of_africa\" WHERE \"elevation_m\"='3,615';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the Col entry for the peak with an elevation of 2,308 meters?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"col_m\") FROM \"list_of_ultras_of_africa\" WHERE \"elevation_m\"='2,308';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"various\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: who is the actor that played rachel mckenna?"
},
{
"role": "assistant",
"content": "SELECT \"actor\" FROM \"various\" WHERE \"character\"='rachel mckenna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"various\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: who is the actor for shortland street for the years 1993\u20131999, 2001\u20132003, 2007, 2009\u2014?"
},
{
"role": "assistant",
"content": "SELECT \"actor\" FROM \"various\" WHERE \"soap_opera\"='shortland street' AND \"years\"='1993\u20131999, 2001\u20132003, 2007, 2009\u2014';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"various\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: what is the soap opera when the years are 2000\u20132004, 2005\u2014?"
},
{
"role": "assistant",
"content": "SELECT \"soap_opera\" FROM \"various\" WHERE \"years\"='2000\u20132004, 2005\u2014';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"various\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: what is the character with the duration of 11 years?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"various\" WHERE \"duration\"='11 years';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"various\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: what is the soap opera for elin sogn?"
},
{
"role": "assistant",
"content": "SELECT \"soap_opera\" FROM \"various\" WHERE \"actor\"='elin sogn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What station was owned since 2011, and a channel (tv/rf) of 27?"
},
{
"role": "assistant",
"content": "SELECT \"station\" FROM \"television_stations\" WHERE \"owned_since\"=2011 AND \"channel_tv_rf\"='27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What affiliation has an owned since larger than 1991, and also has a channel (tv/rf) of 42?"
},
{
"role": "assistant",
"content": "SELECT \"affiliation\" FROM \"television_stations\" WHERE \"owned_since\">1991 AND \"channel_tv_rf\"='42';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license_market\" FROM \"television_stations\" WHERE \"owned_since\"<2011 AND \"affiliation\"='abc' AND \"channel_tv_rf\"='9 (22)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial guinea ( bioko )?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"col_m\") FROM \"list_of_ultras_of_africa\" WHERE \"elevation_m\"='3,011' AND \"country\"='equatorial guinea ( bioko )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: COunt the sum of Prominence (m) of an Elevation (m) of 2,024?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"prominence_m\") FROM \"list_of_ultras_of_africa\" WHERE \"elevation_m\"='2,024';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Count the Prominence (m) of Col (m) smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"prominence_m\") FROM \"list_of_ultras_of_africa\" WHERE \"col_m\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ultras_of_africa\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Name the lowest Col (m) with a Peak of pico basil\u00e9, and a Prominence (m) smaller than 3,011?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"col_m\") FROM \"list_of_ultras_of_africa\" WHERE \"peak\"='pico basil\u00e9' AND \"prominence_m\"<'3,011';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Week of the game with TV Time of Fox 4:15ET?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"tv_time\"='fox 4:15et';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the TV Time of the game on December 27, 2003?"
},
{
"role": "assistant",
"content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"date\"='december 27, 2003';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Opponent at the game with Attendance of 68,436?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='68,436';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Attendance at the game against the Cincinnati Bengals?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='cincinnati bengals';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Opponent of the game after Week 3 with a Result of L 10\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\">3 AND \"result\"='l 10\u20136';"
}
]
|
[
{
"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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Date of the Game with a Result of w 22\u201316 in TV Time of CBS 1:00ET?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"tv_time\"='cbs 1:00et' AND \"result\"='w 22\u201316';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: At what Venue was the Attendance 47,678?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"tests\" WHERE \"attendance\"='47,678';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Attendance of New Zealand Scores in bold?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"tests\" WHERE \"date\"='new zealand scores in bold';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the number of lost games when 2 were drawn, and there were 6 bonus points?"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"table\" WHERE \"drawn\"='2' AND \"bonus_points\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the number of bonus points when there are 4 drawn?"
},
{
"role": "assistant",
"content": "SELECT \"bonus_points\" FROM \"table\" WHERE \"drawn\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the number of bonus points when there are 2 drawn and the points against is 599?"
},
{
"role": "assistant",
"content": "SELECT \"bonus_points\" FROM \"table\" WHERE \"drawn\"='2' AND \"points_against\"='599';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the lost number when the team played 26 games and there were 83 points?"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"table\" WHERE \"played\"='26' AND \"points\"='83';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the lost number for the team with 2 drawn games, and 572 points against?"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"table\" WHERE \"drawn\"='2' AND \"points_against\"='572';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the number of bonus points for the team with 2 drawn games and 475 points?"
},
{
"role": "assistant",
"content": "SELECT \"bonus_points\" FROM \"table\" WHERE \"drawn\"='2' AND \"points_for\"='475';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What is the transfer fee for Helguera?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"in\" WHERE \"name\"='helguera';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What was the transfer fee when the moving from was celta de Vigo?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"in\" WHERE \"moving_from\"='celta de vigo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What was the transfer window with a moving from of fenerbah\u00e7e?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_window\" FROM \"in\" WHERE \"moving_from\"='fenerbah\u00e7e';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What nation had a moving from of espanyol?"
},
{
"role": "assistant",
"content": "SELECT \"nat\" FROM \"in\" WHERE \"moving_from\"='espanyol';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What was the transfer fee for the player with an ends of 2007?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"in\" WHERE \"ends\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1946\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text\n);\n\nQuestion: What is the Series of the Filmography with a Release date of 1946-03-16?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"1946\" WHERE \"release_date\"='1946-03-16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1946\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text\n);\n\nQuestion: Who is the Director of the Filmography with Production Number of 11-14?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"1946\" WHERE \"production_number\"='11-14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1946\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text\n);\n\nQuestion: What is the Series of the Filmography with Release date of 1946-01-05?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"1946\" WHERE \"release_date\"='1946-01-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1946\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text\n);\n\nQuestion: What is the Series of the Filmography with a Production Number of M-4-15?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"1946\" WHERE \"production_number\"='m-4-15';"
}
]
|
[
{
"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: What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='4-0' AND \"competition\"='2002 tiger cup';"
}
]
|
[
{
"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: What competition has a score of 1-3?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"score\"='1-3';"
}
]
|
[
{
"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: What competition listed is dated November 17, 2003?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='november 17, 2003';"
}
]
|
[
{
"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: What venue listed is dated February 22, 2003?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='february 22, 2003';"
}
]
|
[
{
"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: What venue is listed as having a competition titled Friendly?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"competition\"='friendly';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_4\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"time_sec\" real,\n \"notes\" text\n);\n\nQuestion: Which Notes have a Time larger than 23.34, and a Rank of 8?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"heat_4\" WHERE \"time_sec\">23.34 AND \"rank\"=8;"
}
]
|
[
{
"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: In what week was the December 21, 1969 game?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"date\"='december 21, 1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which Opposing Team has a Venue of rectory ground, devonport?"
},
{
"role": "assistant",
"content": "SELECT \"opposing_team\" FROM \"matches\" WHERE \"venue\"='rectory ground, devonport';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: When has an Opposing Team of mid-districts?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"matches\" WHERE \"opposing_team\"='mid-districts';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"early_broad_gauge_locomotives_for_all_tr\" (\n \"class_old_to_1868\" text,\n \"railway_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: Can you tell me the Class (old) to 1868 that has the Quantity larger than 8?"
},
{
"role": "assistant",
"content": "SELECT \"class_old_to_1868\" FROM \"early_broad_gauge_locomotives_for_all_tr\" WHERE \"quantity\">8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"more_than_one_country\" (\n \"player\" text,\n \"int_l_debut\" text,\n \"year\" text,\n \"cross_code_debut\" text,\n \"date\" text,\n \"position\" text\n);\n\nQuestion: What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"more_than_one_country\" WHERE \"year\"='2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"more_than_one_country\" (\n \"player\" text,\n \"int_l_debut\" text,\n \"year\" text,\n \"cross_code_debut\" text,\n \"date\" text,\n \"position\" text\n);\n\nQuestion: What was the Int'l Debut for a player in the back position, that also had a Cross Code Debut of RU Australia v Wales?"
},
{
"role": "assistant",
"content": "SELECT \"int_l_debut\" FROM \"more_than_one_country\" WHERE \"position\"='back' AND \"cross_code_debut\"='ru australia v wales';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"more_than_one_country\" (\n \"player\" text,\n \"int_l_debut\" text,\n \"year\" text,\n \"cross_code_debut\" text,\n \"date\" text,\n \"position\" text\n);\n\nQuestion: What year did Coenraad Breytenbach have their Int'l Debut?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"more_than_one_country\" WHERE \"player\"='coenraad breytenbach';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"more_than_one_country\" (\n \"player\" text,\n \"int_l_debut\" text,\n \"year\" text,\n \"cross_code_debut\" text,\n \"date\" text,\n \"position\" text\n);\n\nQuestion: What is the Cross Code Debut for a player that had their Int'l Debut of RU test New Zealand v Australia?"
},
{
"role": "assistant",
"content": "SELECT \"cross_code_debut\" FROM \"more_than_one_country\" WHERE \"int_l_debut\"='ru test new zealand v australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gallup_poll_2012\" (\n \"result\" text,\n \"barack_obama\" text,\n \"george_h_w_bush\" text,\n \"ronald_reagan\" text,\n \"jimmy_carter\" text,\n \"gerald_ford\" text,\n \"richard_nixon\" text\n);\n\nQuestion: What percent of respondents had no opinion on George H.W. Bush?"
},
{
"role": "assistant",
"content": "SELECT \"george_h_w_bush\" FROM \"gallup_poll_2012\" WHERE \"result\"='no opinion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What was Christian Kubusch's lane when the heat was more than 2 and time was DNS?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"lane\") FROM \"heats\" WHERE \"time\"='dns' AND \"name\"='christian kubusch' AND \"heat\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's Bulgaria's lane?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"lane\") FROM \"heats\" WHERE \"nationality\"='bulgaria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's Great Britain's lane with a heat less than 3?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"lane\") FROM \"heats\" WHERE \"nationality\"='great britain' AND \"heat\"<3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's Spain's lane with a heat less than 4?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"lane\") FROM \"heats\" WHERE \"nationality\"='spain' AND \"heat\"<4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's the heat in the lane less than 3 with a time of 14:48.39?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"heat\") FROM \"heats\" WHERE \"lane\"<3 AND \"time\"='14:48.39';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What's China's heat for Zhang Lin in a lane after 6?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"heat\") FROM \"heats\" WHERE \"nationality\"='china' AND \"name\"='zhang lin' AND \"lane\">6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"world_championships_men\" (\n \"year\" real,\n \"place\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text\n);\n\nQuestion: Who won bronze in 1994?"
},
{
"role": "assistant",
"content": "SELECT \"bronze\" FROM \"world_championships_men\" WHERE \"year\"=1994;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eighth_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which position was picked before 63, for Oklahoma College?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"eighth_round\" WHERE \"pick\"<63 AND \"college\"='oklahoma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"eighth_round\" (\n \"pick\" real,\n \"team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which College has a Position of Offensive Tackle?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"eighth_round\" WHERE \"position\"='offensive tackle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"centuries_in_the_friends_life_t20\" (\n \"rank\" real,\n \"player\" text,\n \"team\" text,\n \"runs\" text,\n \"balls\" real,\n \"year\" real,\n \"against\" text\n);\n\nQuestion: Which player had 50 balls?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"centuries_in_the_friends_life_t20\" WHERE \"balls\"=50;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1959\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text\n);\n\nQuestion: What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"1959\" WHERE \"director\"='friz freleng' AND \"production_number\">1496 AND \"series\"='mm' AND \"title\"='apes of wrath';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1959\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text\n);\n\nQuestion: What is the production number directed by Robert McKimson in series mm titled People Are Bunny?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"production_number\") FROM \"1959\" WHERE \"director\"='robert mckimson' AND \"series\"='mm' AND \"title\"='people are bunny';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1959\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text\n);\n\nQuestion: What was the series of the episode directed by Abe Levitow released on 1959-06-27?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"1959\" WHERE \"director\"='abe levitow' AND \"release_date\"='1959-06-27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1959\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text\n);\n\nQuestion: What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"1959\" WHERE \"production_number\"<1495 AND \"director\"='robert mckimson' AND \"title\"='mouse-placed kitten';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which Player has a Round larger than 8?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"amateur_draft\" WHERE \"round\">8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is tom cassidy's nationality?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"amateur_draft\" WHERE \"player\"='tom cassidy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team\" FROM \"amateur_draft\" WHERE \"pick\">70 AND \"round\"<7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which Player has a Round larger than 8?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"amateur_draft\" WHERE \"round\">8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which County has a Location of edinburgh?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"indiana_high_school_athletics_conference\" WHERE \"location\"='edinburgh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: COunt the average Enrollment in hope?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"enrollment\") FROM \"indiana_high_school_athletics_conference\" WHERE \"location\"='hope';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?"
},
{
"role": "assistant",
"content": "SELECT \"mascot\" FROM \"indiana_high_school_athletics_conference\" WHERE \"ihsaa_class\"='aa' AND \"enrollment\">369;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"league_goals\") FROM \"appearances_and_goals\" WHERE \"league_apps\"='1' AND \"fa_cup_goals\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: what is the highest fa cup goals when the total goals is more than 3 and total apps is 31 (1)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"fa_cup_goals\") FROM \"appearances_and_goals\" WHERE \"total_goals\">3 AND \"total_apps\"='31 (1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?"
},
{
"role": "assistant",
"content": "SELECT \"league_goals\" FROM \"appearances_and_goals\" WHERE \"fa_cup_goals\">0 AND \"fa_cup_apps\"='2' AND \"league_apps\"='45';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_goals\") FROM \"appearances_and_goals\" WHERE \"total_apps\"='1' AND \"name\"='bob mountain' AND \"fa_cup_goals\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_premier_league\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the highest attendance for the match against west ham united at the venue of a?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"fa_premier_league\" WHERE \"venue\"='a' AND \"opponent\"='west ham united';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Country has a Score of 67?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"first_round\" WHERE \"score\"=67;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which To par has a Player of momoko ueda?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"player\"='momoko ueda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which To par has a Player of johanna head?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"player\"='johanna head';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_2\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the notes for the team from Denmark?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"semifinal_a_b_2\" WHERE \"country\"='denmark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"quarterfinal_2\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Which athlete had a rank of 6 and notes of sc/d?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"quarterfinal_2\" WHERE \"notes\"='sc/d' AND \"rank\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"quarterfinal_2\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Which country is the athlete latt shwe zin with notes of sc/d from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"quarterfinal_2\" WHERE \"notes\"='sc/d' AND \"athlete\"='latt shwe zin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What's the HR number when the LMS number is 14758?"
},
{
"role": "assistant",
"content": "SELECT \"hr_no\" FROM \"numbers_and_names\" WHERE \"lms_no\"=14758;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"cr_no\") FROM \"numbers_and_names\" WHERE \"works\"='hawthorn leslie 3100' AND \"lms_no\"<14761;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What's the HR Number when the LMS number is 14757 and has a built of 9/1915?"
},
{
"role": "assistant",
"content": "SELECT \"hr_no\" FROM \"numbers_and_names\" WHERE \"built\"='9/1915' AND \"lms_no\"=14757;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What's the built date when the CR number is more than 940 and the LMS number is 14760?"
},
{
"role": "assistant",
"content": "SELECT \"built\" FROM \"numbers_and_names\" WHERE \"cr_no\">940 AND \"lms_no\"=14760;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"round\" real,\n \"date\" text,\n \"home\" text,\n \"result\" text,\n \"visitor\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"game_log\" WHERE \"visitor\"='modo hockey' AND \"date\"='thursday, december 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is the traditional Chinese name for the record titled Sunrise?"
},
{
"role": "assistant",
"content": "SELECT \"chinese_traditional\" FROM \"studio\" WHERE \"english_title\"='sunrise';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What would be the traditional Chinese name tat is simplified as \u5d07\u62dc?"
},
{
"role": "assistant",
"content": "SELECT \"chinese_traditional\" FROM \"studio\" WHERE \"chinese_simplified\"='\u5d07\u62dc';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What traditional Chinese name would the Rock Records release Grown up Overnight be given?"
},
{
"role": "assistant",
"content": "SELECT \"chinese_traditional\" FROM \"studio\" WHERE \"label\"='rock records' AND \"english_title\"='grown up overnight';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is the traditional Chinese name for the record Beautiful?"
},
{
"role": "assistant",
"content": "SELECT \"chinese_traditional\" FROM \"studio\" WHERE \"english_title\"='beautiful';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is the album number for the record \u60c5\u6b4c\u6ca1\u6709\u544a\u8bc9\u4f60, simplified from the traditional Chinese name?"
},
{
"role": "assistant",
"content": "SELECT \"albumnum\" FROM \"studio\" WHERE \"chinese_simplified\"='\u60c5\u6b4c\u6ca1\u6709\u544a\u8bc9\u4f60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is the simplified Chinese name for the 9th album?"
},
{
"role": "assistant",
"content": "SELECT \"chinese_simplified\" FROM \"studio\" WHERE \"albumnum\"='9th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Which Eliminated has a Tag Team of jindrak and cade?"
},
{
"role": "assistant",
"content": "SELECT \"eliminated_by\" FROM \"tag_team_turmoil_match\" WHERE \"tag_team\"='jindrak and cade';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Which Eliminated has an Entered smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT \"eliminated_by\" FROM \"tag_team_turmoil_match\" WHERE \"entered\"<2;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.