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 \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mens singles\u00a0with\u00a0mens doubles\u00a0being kaj lindfors kaj osterberg"
},
{
"role": "assistant",
"content": "SELECT \"mens_singles\" FROM \"past_winners\" WHERE \"mens_doubles\"='Kaj Lindfors Kaj Osterberg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"islands_over_square_miles_km\" (\n \"rank\" real,\n \"islands_name\" text,\n \"area_sqmi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: How big (in sq mi) is the island that's 4065 km2?"
},
{
"role": "assistant",
"content": "SELECT \"area_sqmi\" FROM \"islands_over_square_miles_km\" WHERE \"area_km_2\"=4065;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"islands_over_square_miles_km\" (\n \"rank\" real,\n \"islands_name\" text,\n \"area_sqmi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: What is the smallest rank number of those used to rank the islands? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"islands_over_square_miles_km\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"islands_over_square_miles_km\" (\n \"rank\" real,\n \"islands_name\" text,\n \"area_sqmi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: What's the name is the island with a population of just 64?"
},
{
"role": "assistant",
"content": "SELECT \"islands_name\" FROM \"islands_over_square_miles_km\" WHERE \"population_2000\"='64';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0tries against\u00a0with\u00a0try bonus\u00a0being 10"
},
{
"role": "assistant",
"content": "SELECT \"tries_against\" FROM \"2007_2008_table\" WHERE \"try_bonus\"='10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0points\u00a0with\u00a0played\u00a0being 22 and\u00a0points against\u00a0being 319"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"2007_2008_table\" WHERE \"played\"='22' AND \"points_against\"='319';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0losing bonus\u00a0with\u00a0played\u00a0being 22 and\u00a0tries against\u00a0being 38"
},
{
"role": "assistant",
"content": "SELECT \"losing_bonus\" FROM \"2007_2008_table\" WHERE \"played\"='22' AND \"tries_against\"='38';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0try bonus\u00a0with\u00a0club\u00a0being abercwmboi rfc"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"2007_2008_table\" WHERE \"club\"='Abercwmboi RFC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0points for\u00a0with\u00a0points against\u00a0being 556"
},
{
"role": "assistant",
"content": "SELECT \"points_for\" FROM \"2007_2008_table\" WHERE \"points_against\"='556';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0won\u00a0with\u00a0points against\u00a0being 304"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2007_2008_table\" WHERE \"points_against\"='304';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"award_ceremonies\" (\n \"episode\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text,\n \"presenter\" text,\n \"location\" text\n);\n\nQuestion: Where was held the ceremony for the 12th Pride of Britain Awards?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"award_ceremonies\" WHERE \"episode\"='12th Pride of Britain Awards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"award_ceremonies\" (\n \"episode\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text,\n \"presenter\" text,\n \"location\" text\n);\n\nQuestion: What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"award_ceremonies\" WHERE \"viewers_millions\"='6.06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"award_ceremonies\" (\n \"episode\" text,\n \"original_air_date\" text,\n \"viewers_millions\" text,\n \"presenter\" text,\n \"location\" text\n);\n\nQuestion: How much audience did the 7th Pride of Britain Awards ceremony have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"viewers_millions\") FROM \"award_ceremonies\" WHERE \"episode\"='7th Pride of Britain Awards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0vineyard surface (2010)\u00a0with\u00a0grand cru\u00a0being bienvenues-b\u00e2tard-montrachet"
},
{
"role": "assistant",
"content": "SELECT \"vineyard_surface_2010\" FROM \"list_of_grand_crus\" WHERE \"grand_cru\"='Bienvenues-B\u00e2tard-Montrachet';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0village\u00a0with\u00a0wine style\u00a0being red wine and\u00a0vineyard surface (2010)\u00a0being hectares (acres)"
},
{
"role": "assistant",
"content": "SELECT \"village\" FROM \"list_of_grand_crus\" WHERE \"wine_style\"='Red wine' AND \"vineyard_surface_2010\"='hectares (acres)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0village\u00a0with\u00a0wine style\u00a0being red wine and\u00a0vineyard surface (2010)\u00a0being hectares (acres)"
},
{
"role": "assistant",
"content": "SELECT \"village\" FROM \"list_of_grand_crus\" WHERE \"wine_style\"='Red wine' AND \"vineyard_surface_2010\"='hectares (acres)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0wine style\u00a0with\u00a0grand cru\u00a0being roman\u00e9e-conti"
},
{
"role": "assistant",
"content": "SELECT \"wine_style\" FROM \"list_of_grand_crus\" WHERE \"grand_cru\"='Roman\u00e9e-Conti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0wine style\u00a0with\u00a0grand cru\u00a0being roman\u00e9e-conti"
},
{
"role": "assistant",
"content": "SELECT \"wine_style\" FROM \"list_of_grand_crus\" WHERE \"grand_cru\"='Roman\u00e9e-Conti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_grand_crus\" (\n \"grand_cru\" text,\n \"region\" text,\n \"village\" text,\n \"wine_style\" text,\n \"vineyard_surface_2010\" text\n);\n\nQuestion: what's the\u00a0wine style\u00a0with\u00a0village\u00a0being puligny-montrachet [d ]"
},
{
"role": "assistant",
"content": "SELECT \"wine_style\" FROM \"list_of_grand_crus\" WHERE \"village\"='Puligny-Montrachet [d ]';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_13967239_2\" (\n \"subject\" text,\n \"freshman_grade_7\" text,\n \"sophomore_grade_8\" text,\n \"junior_3rd_year\" text,\n \"senior_4th_year\" text\n);\n\nQuestion: How many classes between senior and junior year for world history"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"senior_4th_year\") FROM \"table1_13967239_2\" WHERE \"junior_3rd_year\"='World History';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_13967239_2\" (\n \"subject\" text,\n \"freshman_grade_7\" text,\n \"sophomore_grade_8\" text,\n \"junior_3rd_year\" text,\n \"senior_4th_year\" text\n);\n\nQuestion: What is after intermediate algebra"
},
{
"role": "assistant",
"content": "SELECT \"senior_4th_year\" FROM \"table1_13967239_2\" WHERE \"sophomore_grade_8\"='Intermediate Algebra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"prod_code\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the maximum\u00a0#\u00a0with\u00a0original airdate\u00a0being march 14, 2001"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"season_2\" WHERE \"original_airdate\"='March 14, 2001';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"prod_code\" text,\n \"original_airdate\" text\n);\n\nQuestion: how many\u00a0original airdate\u00a0with\u00a0writer(s)\u00a0being becky hartman edwards and\u00a0director\u00a0being adam nimoy"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_airdate\") FROM \"season_2\" WHERE \"writer_s\"='Becky Hartman Edwards' AND \"director\"='Adam Nimoy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"prod_code\" text,\n \"original_airdate\" text\n);\n\nQuestion: who is the the\u00a0writer(s)\u00a0with\u00a0original airdate\u00a0being february 7, 2001"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_2\" WHERE \"original_airdate\"='February 7, 2001';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" text,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"height_m_ft\" text,\n \"fcc_info\" text,\n \"notes\" text\n);\n\nQuestion: what's the\u00a0frequency mhz\u00a0with\u00a0city of license\u00a0being chattanooga, tennessee"
},
{
"role": "assistant",
"content": "SELECT \"frequency_m_hz\" FROM \"translators\" WHERE \"city_of_license\"='Chattanooga, Tennessee';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" text,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"height_m_ft\" text,\n \"fcc_info\" text,\n \"notes\" text\n);\n\nQuestion: how many\u00a0height m ( ft )\u00a0with\u00a0frequency mhz\u00a0being 100.1"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height_m_ft\") FROM \"translators\" WHERE \"frequency_m_hz\"='100.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" text,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"height_m_ft\" text,\n \"fcc_info\" text,\n \"notes\" text\n);\n\nQuestion: what's the\u00a0fcc info\u00a0with\u00a0call sign\u00a0being w221aw"
},
{
"role": "assistant",
"content": "SELECT \"fcc_info\" FROM \"translators\" WHERE \"call_sign\"='W221AW';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" text,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"height_m_ft\" text,\n \"fcc_info\" text,\n \"notes\" text\n);\n\nQuestion: how many\u00a0height m ( ft )\u00a0with\u00a0notes\u00a0being via wccv; formerly w236aj"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height_m_ft\") FROM \"translators\" WHERE \"notes\"='via WCCV; formerly W236AJ';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" text,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"height_m_ft\" text,\n \"fcc_info\" text,\n \"notes\" text\n);\n\nQuestion: what's the\u00a0fcc info\u00a0with\u00a0call sign\u00a0being w265av"
},
{
"role": "assistant",
"content": "SELECT \"fcc_info\" FROM \"translators\" WHERE \"call_sign\"='W265AV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: what's the\u00a0capacity\u00a0with\u00a0team\u00a0being berwick rangers"
},
{
"role": "assistant",
"content": "SELECT \"capacity\" FROM \"stadia_and_attendances\" WHERE \"team\"='Berwick Rangers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: what's the\u00a0team\u00a0with\u00a0stadium\u00a0being borough briggs"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"stadia_and_attendances\" WHERE \"stadium\"='Borough Briggs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: what is the maximum\u00a0lowest\u00a0with\u00a0average\u00a0being 734"
},
{
"role": "assistant",
"content": "SELECT MAX(\"lowest\") FROM \"stadia_and_attendances\" WHERE \"average\"=734;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: how many\u00a0highest\u00a0with\u00a0team\u00a0being forfar athletic"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"highest\") FROM \"stadia_and_attendances\" WHERE \"team\"='Forfar Athletic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0bleeding time\u00a0with\u00a0condition\u00a0being factor v deficiency"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Factor V deficiency';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0bleeding time\u00a0with\u00a0condition\u00a0being liver failure, end-stage"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Liver failure, end-stage';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0bleeding time\u00a0with\u00a0platelet count\u00a0being decreased or unaffected"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='Decreased or unaffected';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0condition\u00a0with\u00a0bleeding time\u00a0being unaffected and\u00a0prothrombin time\u00a0being prolonged"
},
{
"role": "assistant",
"content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"bleeding_time\"='Unaffected' AND \"prothrombin_time\"='Prolonged';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0bleeding time\u00a0with\u00a0platelet count\u00a0being decreased and\u00a0prothrombin time\u00a0being prolonged"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='Decreased' AND \"prothrombin_time\"='Prolonged';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: what's the\u00a0bleeding time\u00a0with\u00a0partial thromboplastin time\u00a0being unaffected and\u00a0condition\u00a0being liver failure , early"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='Unaffected' AND \"condition\"='Liver failure , early';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_howard_county_del\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: How many of the elected officials are on the Economic Matters committee?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"first_elected\") FROM \"current_members_of_the_howard_county_del\" WHERE \"committee\"='Economic Matters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_howard_county_del\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: Name the delegate first elected in 2003?"
},
{
"role": "assistant",
"content": "SELECT \"delegate\" FROM \"current_members_of_the_howard_county_del\" WHERE \"first_elected\"=2003;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_howard_county_del\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: What are the counties represented in District 12.1 12a?"
},
{
"role": "assistant",
"content": "SELECT \"counties_represented\" FROM \"current_members_of_the_howard_county_del\" WHERE \"district\"='12.1 12A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_howard_county_del\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: Which country has a delegate who was first elected in 2006?"
},
{
"role": "assistant",
"content": "SELECT \"counties_represented\" FROM \"current_members_of_the_howard_county_del\" WHERE \"first_elected\"=2006;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: Who are the foreign players representing Ekaterinburg?"
},
{
"role": "assistant",
"content": "SELECT \"foreign_players_max_2\" FROM \"teams\" WHERE \"town\"='Ekaterinburg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: What town is Volleyball Sportiv Complex (3 500) located in?"
},
{
"role": "assistant",
"content": "SELECT \"town\" FROM \"teams\" WHERE \"arena_capacity\"='Volleyball Sportiv Complex (3 500)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: What arena was season 6 played at?"
},
{
"role": "assistant",
"content": "SELECT \"arena_capacity\" FROM \"teams\" WHERE \"previous_season\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: Who was the head coach in season 2?"
},
{
"role": "assistant",
"content": "SELECT \"head_coach\" FROM \"teams\" WHERE \"previous_season\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: On what circuit was the City of Ipswich 400 race held?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"race_calendar\" WHERE \"race_title\"='City of Ipswich 400';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: Who was the winner on the Symmons Plains Raceway?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"circuit\"='Symmons Plains Raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: What were the dates for Round 8?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"rd\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: What was the number of rounds on the Hidden Valley Raceway?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rd\") FROM \"race_calendar\" WHERE \"circuit\"='Hidden Valley Raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: What round was held at the Queensland Raceway?"
},
{
"role": "assistant",
"content": "SELECT \"rd\" FROM \"race_calendar\" WHERE \"circuit\"='Queensland Raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_defensive_players_of_the_year\" (\n \"year\" real,\n \"player_name\" text,\n \"nfl_team\" text,\n \"position\" text,\n \"team_defense_rank\" real,\n \"team_performance\" text\n);\n\nQuestion: what the highest number for the opposite of offense for the green bay packers"
},
{
"role": "assistant",
"content": "SELECT MAX(\"team_defense_rank\") FROM \"nfl_defensive_players_of_the_year\" WHERE \"nfl_team\"='Green Bay Packers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404414_2\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: How many counties have an area of 1,205.4 km2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"code\") FROM \"table1_1404414_2\" WHERE \"area_km_2\"='1,205.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404414_2\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: What capital has a population of 596268?"
},
{
"role": "assistant",
"content": "SELECT \"capital\" FROM \"table1_1404414_2\" WHERE \"population_census_2009\"=596268;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: what's the\u00a0capital\u00a0with\u00a0area (km 2 )\u00a0being 12,245.9"
},
{
"role": "assistant",
"content": "SELECT \"capital\" FROM \"table1_1404456_1\" WHERE \"area_km_2\"='12,245.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: what's the\u00a0former province\u00a0with\u00a0area (km 2 )\u00a0being 12,245.9"
},
{
"role": "assistant",
"content": "SELECT \"former_province\" FROM \"table1_1404456_1\" WHERE \"area_km_2\"='12,245.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: how many\u00a0capital\u00a0with\u00a0population census 2009\u00a0being 284657"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"capital\") FROM \"table1_1404456_1\" WHERE \"population_census_2009\"=284657;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: what's the\u00a0area (km 2 )\u00a0with\u00a0population census 2009\u00a0being 939370"
},
{
"role": "assistant",
"content": "SELECT \"area_km_2\" FROM \"table1_1404456_1\" WHERE \"population_census_2009\"=939370;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: what is the minimum\u00a0code\u00a0with\u00a0area (km 2 )\u00a0being 12,245.9"
},
{
"role": "assistant",
"content": "SELECT MIN(\"code\") FROM \"table1_1404456_1\" WHERE \"area_km_2\"='12,245.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1404456_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: what's the\u00a0county\u00a0with\u00a0code\u00a0being 2"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"table1_1404456_1\" WHERE \"code\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1405704_1\" (\n \"season\" real,\n \"race_name\" text,\n \"winning_driver\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"team\" text\n);\n\nQuestion: In what year did Tom Sneva win a race?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_1405704_1\" WHERE \"winning_driver\"='Tom Sneva';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1405704_1\" (\n \"season\" real,\n \"race_name\" text,\n \"winning_driver\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"team\" text\n);\n\nQuestion: What kind of chassis did a winning car with a Foyt engine have in 1979?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"table1_1405704_1\" WHERE \"season\"=1979 AND \"engine\"='Foyt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1405704_1\" (\n \"season\" real,\n \"race_name\" text,\n \"winning_driver\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"team\" text\n);\n\nQuestion: What team does Al Unser drive for?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_1405704_1\" WHERE \"winning_driver\"='Al Unser';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1405704_1\" (\n \"season\" real,\n \"race_name\" text,\n \"winning_driver\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"team\" text\n);\n\nQuestion: What team has a vehicle with an Offenhauser engine and a McLaren chassis?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_1405704_1\" WHERE \"chassis\"='McLaren' AND \"engine\"='Offenhauser';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1405704_1\" (\n \"season\" real,\n \"race_name\" text,\n \"winning_driver\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"team\" text\n);\n\nQuestion: What team raced with a Foyt engine in the Texas Grand Prix?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_1405704_1\" WHERE \"race_name\"='Texas Grand Prix' AND \"engine\"='Foyt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: What network is virtual channel 9.1 linked to?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"broadcast\" WHERE \"virtual_channel\"='9.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: Who owns the station on channel 33.3?"
},
{
"role": "assistant",
"content": "SELECT \"station_ownership\" FROM \"broadcast\" WHERE \"virtual_channel\"='33.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: What is JCTV's digital channel?"
},
{
"role": "assistant",
"content": "SELECT \"digital_channel\" FROM \"broadcast\" WHERE \"network\"='JCTV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: What is channel 33.7's official call sign?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"broadcast\" WHERE \"virtual_channel\"='33.7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: What is HSN's official virtual channel in Minneapolis-St. Paul?"
},
{
"role": "assistant",
"content": "SELECT \"virtual_channel\" FROM \"broadcast\" WHERE \"network\"='HSN';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast\" (\n \"call_sign\" text,\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"virtual_channel\" text,\n \"network\" text,\n \"station_ownership\" text\n);\n\nQuestion: How many stations own Bounce TV?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"station_ownership\") FROM \"broadcast\" WHERE \"network\"='Bounce TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many points were made when the tries for was 83?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"2009_2010_table\" WHERE \"tries_for\"='83';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many points are there when the lost is 7?"
},
{
"role": "assistant",
"content": "SELECT \"points_for\" FROM \"2009_2010_table\" WHERE \"lost\"='7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the losing bonus when the points are 24?"
},
{
"role": "assistant",
"content": "SELECT \"losing_bonus\" FROM \"2009_2010_table\" WHERE \"points\"='24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many losing points does Llandudno RFC have?"
},
{
"role": "assistant",
"content": "SELECT \"losing_bonus\" FROM \"2009_2010_table\" WHERE \"club\"='Llandudno RFC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the try bonus for Ruthin RFC?"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"2009_2010_table\" WHERE \"club\"='Ruthin RFC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: how many\u00a0tries against\u00a0with\u00a0lost\u00a0being 11"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tries_against\") FROM \"2008_2009_table\" WHERE \"lost\"='11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0won\u00a0with\u00a0try bonus\u00a0being 12"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2008_2009_table\" WHERE \"try_bonus\"='12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0drawn\u00a0with\u00a0lost\u00a0being 4"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2008_2009_table\" WHERE \"lost\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0points against\u00a0with\u00a0lost\u00a0being 13"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"lost\"='13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0points against\u00a0with\u00a0won\u00a0being 11"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"won\"='11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0drawn\u00a0with\u00a0points for\u00a0being 350"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2008_2009_table\" WHERE \"points_for\"='350';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: how many\u00a0points for\u00a0with\u00a0points against\u00a0being 177"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_for\") FROM \"2007_2008_table\" WHERE \"points_against\"='177';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0lost\u00a0with\u00a0club\u00a0being colwyn bay rfc"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"2007_2008_table\" WHERE \"club\"='Colwyn Bay RFC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0won\u00a0with\u00a0tries for\u00a0being 84"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2007_2008_table\" WHERE \"tries_for\"='84';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0won\u00a0with\u00a0points for\u00a0being 596"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2007_2008_table\" WHERE \"points_for\"='596';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0points for\u00a0with\u00a0lost\u00a0being 4"
},
{
"role": "assistant",
"content": "SELECT \"points_for\" FROM \"2007_2008_table\" WHERE \"lost\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what's the\u00a0won\u00a0with\u00a0points for\u00a0being 643"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2007_2008_table\" WHERE \"points_for\"='643';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"num\" real,\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: What is the Telugu word for \u0445\u043e\u043d\u0433\u043e\u0440\u0446\u043e\u0433 in Mongolian?"
},
{
"role": "assistant",
"content": "SELECT \"telugu\" FROM \"names_in_modern_languages\" WHERE \"mongolian\"='\u0425\u043e\u043d\u0433\u043e\u0440\u0446\u043e\u0433';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"num\" real,\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: What is the Malayalam word for punarvasu \u0caa\u0cc1\u0ca8\u0cb0\u0ccd\u0cb5\u0cb8\u0cc1 in Kannada?"
},
{
"role": "assistant",
"content": "SELECT \"malayalam\" FROM \"names_in_modern_languages\" WHERE \"kannada\"='Punarvasu \u0caa\u0cc1\u0ca8\u0cb0\u0ccd\u0cb5\u0cb8\u0cc1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"num\" real,\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: What is the Malayalam word that is listed as #10 in the table?"
},
{
"role": "assistant",
"content": "SELECT \"malayalam\" FROM \"names_in_modern_languages\" WHERE \"num\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: tell the score when the times gone was 75"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"tries_against\"='75';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: was the the score when the tries was 743"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"points_for\"='743';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: tell how many wins there was when the score was 490"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"won\") FROM \"2008_2009_table\" WHERE \"points_for\"='490';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: how many extra points were there when the score was 48"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"2008_2009_table\" WHERE \"points\"='48';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what was the extra score when the overall score was 52"
},
{
"role": "assistant",
"content": "SELECT \"losing_bonus\" FROM \"2008_2009_table\" WHERE \"tries_for\"='52';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what was the score when the extras were 6"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"2008_2009_table\" WHERE \"try_bonus\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14098_1\" (\n \"country_or_territory_with_flag\" text,\n \"area_km_per_sqmi\" text,\n \"population_july_2009_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What country's capital is buenos aires?"
},
{
"role": "assistant",
"content": "SELECT \"country_or_territory_with_flag\" FROM \"table1_14098_1\" WHERE \"capital\"='Buenos Aires';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14098_1\" (\n \"country_or_territory_with_flag\" text,\n \"area_km_per_sqmi\" text,\n \"population_july_2009_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What unit of measurement for uruguay?"
},
{
"role": "assistant",
"content": "SELECT \"area_km_per_sqmi\" FROM \"table1_14098_1\" WHERE \"country_or_territory_with_flag\"='Uruguay';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.