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 \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the record for the Argonauts on September 7?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='September 7';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is he smallest numbered week?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"week\") FROM \"schedule\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"suggested_string_section_sizes\" (\n \"reference\" text,\n \"author\" text,\n \"section_size\" text,\n \"violins\" real,\n \"violas\" real,\n \"celli\" real,\n \"basses\" real\n);\n\nQuestion: How many violines are suggested in the \"Arranged by Nelson Riddle\" reference with section size of 12 players?"
},
{
"role": "assistant",
"content": "SELECT \"violins\" FROM \"suggested_string_section_sizes\" WHERE \"reference\"='\\\"Arranged By Nelson Riddle\\\"' AND \"section_size\"='12 players';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"suggested_string_section_sizes\" (\n \"reference\" text,\n \"author\" text,\n \"section_size\" text,\n \"violins\" real,\n \"violas\" real,\n \"celli\" real,\n \"basses\" real\n);\n\nQuestion: How many cellos are suggested in the reference with section size for 20 players?"
},
{
"role": "assistant",
"content": "SELECT \"celli\" FROM \"suggested_string_section_sizes\" WHERE \"section_size\"='20 players';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"suggested_string_section_sizes\" (\n \"reference\" text,\n \"author\" text,\n \"section_size\" text,\n \"violins\" real,\n \"violas\" real,\n \"celli\" real,\n \"basses\" real\n);\n\nQuestion: What reference, written by Nelson Riddle, suggests 2 violas?"
},
{
"role": "assistant",
"content": "SELECT \"reference\" FROM \"suggested_string_section_sizes\" WHERE \"violas\"=2 AND \"author\"='Nelson Riddle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"suggested_string_section_sizes\" (\n \"reference\" text,\n \"author\" text,\n \"section_size\" text,\n \"violins\" real,\n \"violas\" real,\n \"celli\" real,\n \"basses\" real\n);\n\nQuestion: What is the biggest number of basses suggested in either one of the references?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"basses\") FROM \"suggested_string_section_sizes\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: What is Stella Farentino's current relationship status?"
},
{
"role": "assistant",
"content": "SELECT \"current_marital_status\" FROM \"television\" WHERE \"name\"='Stella Farentino';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: How many children did Dennis Hawley have at his time of death?"
},
{
"role": "assistant",
"content": "SELECT \"children_together\" FROM \"television\" WHERE \"deceased_spouse\"='Dennis Hawley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: How did Stella Farentino die?"
},
{
"role": "assistant",
"content": "SELECT \"cause_of_death\" FROM \"television\" WHERE \"name\"='Stella Farentino';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"literature\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: What was the cause of death in the marriage that lasted 28 years? "
},
{
"role": "assistant",
"content": "SELECT \"cause_of_death\" FROM \"literature\" WHERE \"length_of_marriage\"='28 years';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"literature\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: How long were Ray Bradbury and his wife married?"
},
{
"role": "assistant",
"content": "SELECT \"length_of_marriage\" FROM \"literature\" WHERE \"name\"='Ray Bradbury';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"film\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Name the name for deceased spouse being louis malle"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"film\" WHERE \"deceased_spouse\"='Louis Malle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"film\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Name the deceased spouse for length of marriage being 24 years"
},
{
"role": "assistant",
"content": "SELECT \"deceased_spouse\" FROM \"film\" WHERE \"length_of_marriage\"='24 years';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"film\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Name the decease spouse for carol deluise"
},
{
"role": "assistant",
"content": "SELECT \"deceased_spouse\" FROM \"film\" WHERE \"name\"='Carol DeLuise';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"film\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Name the children together for 9 years of marriage"
},
{
"role": "assistant",
"content": "SELECT \"children_together\" FROM \"film\" WHERE \"length_of_marriage\"='9 years';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_presidents\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Who was the deceased spouse who was married for 4 years?"
},
{
"role": "assistant",
"content": "SELECT \"deceased_spouse\" FROM \"u_s_presidents\" WHERE \"length_of_marriage\"='4 years';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_presidents\" (\n \"name\" text,\n \"deceased_spouse\" text,\n \"cause_of_death\" text,\n \"date_of_spouses_death\" text,\n \"length_of_marriage\" text,\n \"children_together\" text,\n \"current_marital_status\" text\n);\n\nQuestion: Who were the children of Benjamin Harrison?"
},
{
"role": "assistant",
"content": "SELECT \"children_together\" FROM \"u_s_presidents\" WHERE \"name\"='Benjamin Harrison';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24172078_2\" (\n \"episode_num\" text,\n \"segment_1\" text,\n \"segment_2\" text,\n \"original_airdate\" text,\n \"lessons_taught\" text\n);\n\nQuestion: Name the segment 1 for episode # 2/225"
},
{
"role": "assistant",
"content": "SELECT \"segment_1\" FROM \"table1_24172078_2\" WHERE \"episode_num\"='2/225';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24172078_2\" (\n \"episode_num\" text,\n \"segment_1\" text,\n \"segment_2\" text,\n \"original_airdate\" text,\n \"lessons_taught\" text\n);\n\nQuestion: Name the lessons taught for episode # 2/205"
},
{
"role": "assistant",
"content": "SELECT \"lessons_taught\" FROM \"table1_24172078_2\" WHERE \"episode_num\"='2/205';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417308_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: What state had william bigler (d) as a successor)"
},
{
"role": "assistant",
"content": "SELECT \"state_class\" FROM \"table1_2417308_3\" WHERE \"successor\"='William Bigler (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the date successor seated for successor being vacant"
},
{
"role": "assistant",
"content": "SELECT \"date_successor_seated\" FROM \"table1_2417330_4\" WHERE \"successor\"='Vacant';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the vacator for kentucky 2nd"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_2417330_4\" WHERE \"district\"='Kentucky 2nd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the successor for election was successfully contested july 30, 1861"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417330_4\" WHERE \"reason_for_change\"='Election was successfully contested July 30, 1861';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the successor for vacant and december 3, 1862"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417330_4\" WHERE \"reason_for_change\"='Vacant' AND \"date_successor_seated\"='December 3, 1862';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417340_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: What was the vacator for georgia 2nd?"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_2417340_4\" WHERE \"district\"='Georgia 2nd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417340_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: What was the successor for vacant alabama 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417340_4\" WHERE \"vacator\"='Vacant' AND \"district\"='Alabama 3rd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417340_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Who was the successor for vacant louisiana 5th"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417340_4\" WHERE \"vacator\"='Vacant' AND \"district\"='Louisiana 5th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417345_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who were the successors when the date the successors were installed was February 23, 1870?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417345_3\" WHERE \"date_of_successors_formal_installation\"='February 23, 1870';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417345_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who was the vacator when the successor was formally installed on February 1, 1871?"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_2417345_3\" WHERE \"date_of_successors_formal_installation\"='February 1, 1871';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417345_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who was the successor that was formally installed on March 30, 1870?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2417345_3\" WHERE \"date_of_successors_formal_installation\"='March 30, 1870';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: When did Orville H. Browning (r) succeed?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_successors_formal_installation\" FROM \"table1_2417330_3\" WHERE \"successor\"='Orville H. Browning (R)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417330_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: List all dates of succession in the state class Missouri (3)."
},
{
"role": "assistant",
"content": "SELECT \"date_of_successors_formal_installation\" FROM \"table1_2417330_3\" WHERE \"state_class\"='Missouri (3)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417340_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: List the number of vacators when successors were formally installed on June 22, 1868."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vacator\") FROM \"table1_2417340_3\" WHERE \"date_of_successors_formal_installation\"='June 22, 1868';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417340_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: List all state classes when successors were formally installed on June 22, 1868."
},
{
"role": "assistant",
"content": "SELECT \"state_class\" FROM \"table1_2417340_3\" WHERE \"date_of_successors_formal_installation\"='June 22, 1868';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417395_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: What was the reason for change to the successor that was seated on December 13, 1880?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_2417395_4\" WHERE \"date_successor_seated\"='December 13, 1880';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417445_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_vacancy\" text,\n \"successor\" text,\n \"date_of_successors_taking_office\" text\n);\n\nQuestion: When the person died May 22, 1895 is the reason for vacancy what is the district?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"table1_2417445_4\" WHERE \"reason_for_vacancy\"='Died May 22, 1895';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417445_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_vacancy\" text,\n \"successor\" text,\n \"date_of_successors_taking_office\" text\n);\n\nQuestion: When frederick remann (r) is the vacator what is the reason for vacancy?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_vacancy\" FROM \"table1_2417445_4\" WHERE \"vacator\"='Frederick Remann (R)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417445_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_vacancy\" text,\n \"successor\" text,\n \"date_of_successors_taking_office\" text\n);\n\nQuestion: When rudolph kleberg (d) is the successor is the reason for vacancy?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_vacancy\" FROM \"table1_2417445_4\" WHERE \"successor\"='Rudolph Kleberg (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417445_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_vacancy\" text,\n \"successor\" text,\n \"date_of_successors_taking_office\" text\n);\n\nQuestion: When massachusetts 6th is the district what is the reason for vacancy?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_vacancy\" FROM \"table1_2417445_4\" WHERE \"district\"='Massachusetts 6th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2417445_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_vacancy\" text,\n \"successor\" text,\n \"date_of_successors_taking_office\" text\n);\n\nQuestion: When rudolph kleberg (d) is the successor what is the date of successors taking office?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_successors_taking_office\" FROM \"table1_2417445_4\" WHERE \"successor\"='Rudolph Kleberg (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What geographical region is the province distrito nacional located in?"
},
{
"role": "assistant",
"content": "SELECT \"geographical_regions\" FROM \"delegates\" WHERE \"province_community\"='Distrito Nacional';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: What geographical region is contestant laura jim\u00e9nez ynoa from?"
},
{
"role": "assistant",
"content": "SELECT \"geographical_regions\" FROM \"delegates\" WHERE \"contestant\"='Laura Jim\u00e9nez Ynoa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: How many hometowns have a height of m (ft 10 1\u20442 in)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hometown\") FROM \"delegates\" WHERE \"height\"='m (ft 10 1\u20442 in)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: Which contestant is from the province of baoruco"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"delegates\" WHERE \"province_community\"='Baoruco';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: How old is the person with the height of m (ft 3\u20444 in)?"
},
{
"role": "assistant",
"content": "SELECT \"age\" FROM \"delegates\" WHERE \"height\"='m (ft 3\u20444 in)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" real,\n \"broadcast_date\" real,\n \"bbc_one_presenter_s\" text,\n \"starring\" text,\n \"radio_1_presenter\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What was the number of viewers in millions for the broadcast from 2010? "
},
{
"role": "assistant",
"content": "SELECT \"viewers_millions\" FROM \"episodes\" WHERE \"broadcast_date\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" real,\n \"broadcast_date\" real,\n \"bbc_one_presenter_s\" text,\n \"starring\" text,\n \"radio_1_presenter\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Who starred in episode 3? "
},
{
"role": "assistant",
"content": "SELECT \"starring\" FROM \"episodes\" WHERE \"episode\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" real,\n \"broadcast_date\" real,\n \"bbc_one_presenter_s\" text,\n \"starring\" text,\n \"radio_1_presenter\" text,\n \"viewers_millions\" text\n);\n\nQuestion: How many episodes were broadcast in 2010?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode\") FROM \"episodes\" WHERE \"broadcast_date\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" real,\n \"broadcast_date\" real,\n \"bbc_one_presenter_s\" text,\n \"starring\" text,\n \"radio_1_presenter\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? "
},
{
"role": "assistant",
"content": "SELECT \"radio_1_presenter\" FROM \"episodes\" WHERE \"viewers_millions\"='9.73';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_bus_fleet_roster\" (\n \"order_year\" real,\n \"fleet_series_qty\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_or_propulsion\" text,\n \"division\" text\n);\n\nQuestion: Name the powertrain for kmd and c40lf"
},
{
"role": "assistant",
"content": "SELECT \"powertrain_engine_transmission\" FROM \"current_bus_fleet_roster\" WHERE \"division\"='KMD' AND \"model\"='C40LF';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_bus_fleet_roster\" (\n \"order_year\" real,\n \"fleet_series_qty\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_or_propulsion\" text,\n \"division\" text\n);\n\nQuestion: Name the division for detroit diesel series 50egr allison wb-400r"
},
{
"role": "assistant",
"content": "SELECT \"division\" FROM \"current_bus_fleet_roster\" WHERE \"powertrain_engine_transmission\"='Detroit Diesel Series 50EGR Allison WB-400R';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_bus_fleet_roster\" (\n \"order_year\" real,\n \"fleet_series_qty\" text,\n \"manufacturer\" text,\n \"model\" text,\n \"powertrain_engine_transmission\" text,\n \"fuel_or_propulsion\" text,\n \"division\" text\n);\n\nQuestion: Name the manufacturer for 2011"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"current_bus_fleet_roster\" WHERE \"order_year\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real\n);\n\nQuestion: List the number of locations for the team known as the billikens."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"members\" WHERE \"nickname\"='Billikens';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real\n);\n\nQuestion: How many people are enrolled at the university in milwaukee, wisconsin"
},
{
"role": "assistant",
"content": "SELECT MIN(\"enrollment\") FROM \"members\" WHERE \"location\"='Milwaukee, Wisconsin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real\n);\n\nQuestion: In what year did the teams leave the conference?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"left\") FROM \"members\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real\n);\n\nQuestion: What university team is referred to as the tigers?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"members\" WHERE \"nickname\"='Tigers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_foreshocks_and_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: When 43.048\u00b0 n is the latitude what is the magnitude?"
},
{
"role": "assistant",
"content": "SELECT \"magnitude\" FROM \"list_of_foreshocks_and_aftershocks\" WHERE \"latitude\"='43.048\u00b0 N';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_foreshocks_and_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: When 9:47:38 is the time (utc) how many measurements of latitude are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"latitude\") FROM \"list_of_foreshocks_and_aftershocks\" WHERE \"time_utc\"='9:47:38';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_foreshocks_and_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: When 42.903\u00b0 n is the latitude how many measurements of longitude are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"longitude\") FROM \"list_of_foreshocks_and_aftershocks\" WHERE \"latitude\"='42.903\u00b0 N';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_foreshocks_and_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: When 11:40:26 is the time (utc) what is the depth?"
},
{
"role": "assistant",
"content": "SELECT \"depth\" FROM \"list_of_foreshocks_and_aftershocks\" WHERE \"time_utc\"='11:40:26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: Who is every main presenter for the year 2011?"
},
{
"role": "assistant",
"content": "SELECT \"main_presenter\" FROM \"list_of_reality_television_show_franchis\" WHERE \"year_premiered\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: Who is every main presenter for the Estonia region/country?"
},
{
"role": "assistant",
"content": "SELECT \"main_presenter\" FROM \"list_of_reality_television_show_franchis\" WHERE \"region_country\"='Estonia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: What is the highest year premiered for the TV2 network when main present is \u00f8yvind mund?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_premiered\") FROM \"list_of_reality_television_show_franchis\" WHERE \"network\"='TV2' AND \"main_presenter\"='\u00d8yvind Mund';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: How many years premiered have Sa Beining as main presenter?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_premiered\") FROM \"list_of_reality_television_show_franchis\" WHERE \"main_presenter\"='Sa Beining';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: What is every year premiered when Behzat Uighur is main presenter?"
},
{
"role": "assistant",
"content": "SELECT \"year_premiered\" FROM \"list_of_reality_television_show_franchis\" WHERE \"main_presenter\"='Behzat Uighur';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_reality_television_show_franchis\" (\n \"region_country\" text,\n \"local_name\" text,\n \"main_presenter\" text,\n \"network\" text,\n \"year_premiered\" real\n);\n\nQuestion: What is the highest year premiered when Benjamin Castaldi is main presenter?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_premiered\") FROM \"list_of_reality_television_show_franchis\" WHERE \"main_presenter\"='Benjamin Castaldi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_airdate\" text,\n \"time_of_airing\" text,\n \"total_viewers_on_hallmark\" real,\n \"total_viewers_on_hallmark_1\" real,\n \"total_viewers\" real,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the episode number for tasers and mind erasers"
},
{
"role": "assistant",
"content": "SELECT \"episode_number_production_number\" FROM \"united_kingdom\" WHERE \"title\"='Tasers and Mind Erasers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_airdate\" text,\n \"time_of_airing\" text,\n \"total_viewers_on_hallmark\" real,\n \"total_viewers_on_hallmark_1\" real,\n \"total_viewers\" real,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the original air date for 7 1-07"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"united_kingdom\" WHERE \"episode_number_production_number\"='7 1-07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_airdate\" text,\n \"time_of_airing\" text,\n \"total_viewers_on_hallmark\" real,\n \"total_viewers_on_hallmark_1\" real,\n \"total_viewers\" real,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the total viewers on hallmark for pilot"
},
{
"role": "assistant",
"content": "SELECT \"total_viewers_on_hallmark_1\" FROM \"united_kingdom\" WHERE \"title\"='Pilot';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_airdate\" text,\n \"time_of_airing\" text,\n \"total_viewers_on_hallmark\" real,\n \"total_viewers_on_hallmark_1\" real,\n \"total_viewers\" real,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the rank on channel mooning and crooning"
},
{
"role": "assistant",
"content": "SELECT \"rank_on_channel\" FROM \"united_kingdom\" WHERE \"title\"='Mooning and Crooning';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_airdate\" text,\n \"time_of_airing\" text,\n \"total_viewers_on_hallmark\" real,\n \"total_viewers_on_hallmark_1\" real,\n \"total_viewers\" real,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the rank on channel for pilot"
},
{
"role": "assistant",
"content": "SELECT \"rank_on_channel\" FROM \"united_kingdom\" WHERE \"title\"='Pilot';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the manner of departure for the team racing santander?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"team\"='Racing Santander';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who replaced on the date of appointment 2 november 2010?"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='2 November 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the team for the position in table 19th?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"position_in_table\"='19th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the team that the replaced by is miroslav \u0111uki\u0107?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Miroslav \u0110uki\u0107';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How many times was the date of vacancy 14 february 2011?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position_in_table\") FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='14 February 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: what is the date of appointment for the team osasuna?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"team\"='Osasuna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wilderness_years_1888_1893\" (\n \"season\" real,\n \"pl\" real,\n \"w\" real,\n \"l\" real,\n \"d\" real,\n \"captain\" text,\n \"most_runs\" text,\n \"most_wkts\" text,\n \"wkt_keeper\" text\n);\n\nQuestion: What is the lowest amount of L in any season? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"l\") FROM \"wilderness_years_1888_1893\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wilderness_years_1888_1893\" (\n \"season\" real,\n \"pl\" real,\n \"w\" real,\n \"l\" real,\n \"d\" real,\n \"captain\" text,\n \"most_runs\" text,\n \"most_wkts\" text,\n \"wkt_keeper\" text\n);\n\nQuestion: What was the L in the season where Levi Wright had the most runs? "
},
{
"role": "assistant",
"content": "SELECT \"l\" FROM \"wilderness_years_1888_1893\" WHERE \"most_runs\"='Levi Wright';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24233848_2\" (\n \"episode\" real,\n \"airdate\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the total number of votes for 3rd voted out day 9"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vote\") FROM \"table1_24233848_2\" WHERE \"finish\"='3rd Voted Out Day 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24233848_2\" (\n \"episode\" real,\n \"airdate\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the eliminated 7th voted out day 21"
},
{
"role": "assistant",
"content": "SELECT \"eliminated\" FROM \"table1_24233848_2\" WHERE \"finish\"='7th Voted Out Day 21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24233848_2\" (\n \"episode\" real,\n \"airdate\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the vote for thiago"
},
{
"role": "assistant",
"content": "SELECT \"vote\" FROM \"table1_24233848_2\" WHERE \"eliminated\"='Thiago';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24233848_2\" (\n \"episode\" real,\n \"airdate\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the vote for 9th voted out day 22"
},
{
"role": "assistant",
"content": "SELECT \"vote\" FROM \"table1_24233848_2\" WHERE \"finish\"='9th Voted Out Day 22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24233848_2\" (\n \"episode\" real,\n \"airdate\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the reward eliminated hilca"
},
{
"role": "assistant",
"content": "SELECT \"reward\" FROM \"table1_24233848_2\" WHERE \"eliminated\"='Hilca';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_regions\" (\n \"county\" text,\n \"exports_us_mil\" text,\n \"percent_of_total_exports\" text,\n \"imports_us_mil\" text,\n \"percent_of_total_imports\" text\n);\n\nQuestion: When the country is vest, what were the exports?"
},
{
"role": "assistant",
"content": "SELECT \"exports_us_mil\" FROM \"development_regions\" WHERE \"county\"='Vest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: What was the major version when the webkit version was 528.17?"
},
{
"role": "assistant",
"content": "SELECT \"major_version\" FROM \"windows\" WHERE \"web_kit_version\"='528.17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: List major versions released on May 12, 2009, that had a minor version of 3.2.3."
},
{
"role": "assistant",
"content": "SELECT \"major_version\" FROM \"windows\" WHERE \"release_date\"='May 12, 2009' AND \"minor_version\"='3.2.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: What was the minor version released on April 16, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"minor_version\" FROM \"windows\" WHERE \"release_date\"='April 16, 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2."
},
{
"role": "assistant",
"content": "SELECT \"web_kit_version\" FROM \"windows\" WHERE \"major_version\"='Safari 3' AND \"minor_version\"='3.1.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: List all OS's with a webkit version of 525.29.1."
},
{
"role": "assistant",
"content": "SELECT \"operating_system\" FROM \"windows\" WHERE \"web_kit_version\"='525.29.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows\" (\n \"major_version\" text,\n \"minor_version\" text,\n \"web_kit_version\" text,\n \"operating_system\" text,\n \"release_date\" text,\n \"features\" text\n);\n\nQuestion: What is the webkit version when the minor version was 3.1.2.?"
},
{
"role": "assistant",
"content": "SELECT \"web_kit_version\" FROM \"windows\" WHERE \"minor_version\"='3.1.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_3\" (\n \"legion_no_and_title\" text,\n \"main_legion_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What was the main legion base for the Romans when the notes were \"primigenia goddess of fate. xx in batavi revolt\"?"
},
{
"role": "assistant",
"content": "SELECT \"main_legion_base\" FROM \"table1_242785_3\" WHERE \"notes\"='Primigenia goddess of Fate. XX in Batavi revolt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_3\" (\n \"legion_no_and_title\" text,\n \"main_legion_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes during 57 bc caesar?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"table1_242785_3\" WHERE \"date_founded_founder\"='57 BC Caesar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_3\" (\n \"legion_no_and_title\" text,\n \"main_legion_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes when castra legionaria (legion bases) is 39-c.300 moguntiacum * (gs)?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"table1_242785_3\" WHERE \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\"='39-c.300 Moguntiacum * (GS)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_3\" (\n \"legion_no_and_title\" text,\n \"main_legion_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What is the date founded/founder when the emblem was Hercules?"
},
{
"role": "assistant",
"content": "SELECT \"date_founded_founder\" FROM \"table1_242785_3\" WHERE \"emblem\"='Hercules';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_3\" (\n \"legion_no_and_title\" text,\n \"main_legion_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What is the main legion base that disbanded 70 xx?"
},
{
"role": "assistant",
"content": "SELECT \"main_legion_base\" FROM \"table1_242785_3\" WHERE \"date_disband\"='70 XX';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_1\" (\n \"legion_no_and_title\" text,\n \"main_legionary_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: When did svishtov , bulgaria disband?"
},
{
"role": "assistant",
"content": "SELECT \"date_disband\" FROM \"table1_242785_1\" WHERE \"main_legionary_base\"='Svishtov , Bulgaria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_1\" (\n \"legion_no_and_title\" text,\n \"main_legionary_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: when notes are prima italica:raised for aborted caucasus war, when was that founded?"
},
{
"role": "assistant",
"content": "SELECT \"date_founded_founder\" FROM \"table1_242785_1\" WHERE \"notes\"='prima Italica:raised for aborted Caucasus war';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_242785_1\" (\n \"legion_no_and_title\" text,\n \"main_legionary_base\" text,\n \"emblem\" text,\n \"date_founded_founder\" text,\n \"date_disband\" text,\n \"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes for svishtov , bulgaria?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"table1_242785_1\" WHERE \"main_legionary_base\"='Svishtov , Bulgaria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pitchers\" (\n \"pitcher\" text,\n \"strikeouts\" real,\n \"season\" real,\n \"team\" text,\n \"league\" text,\n \"overall_rank\" real\n);\n\nQuestion: Name the team ranked 4"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"pitchers\" WHERE \"overall_rank\"=4;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.