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 \"standings\" (\n \"skip_club\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real\n);\n\nQuestion: What are the number of points for associated with exactly 3 stolen ends?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pf\") FROM \"standings\" WHERE \"stolen_ends\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"former_school\" text,\n \"hometown\" text\n);\n\nQuestion: How many position did a player took while weighing 170?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"roster\" WHERE \"weight\"=170;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"former_school\" text,\n \"hometown\" text\n);\n\nQuestion: What were the former schools of the player from East Brunswick, NJ?"
},
{
"role": "assistant",
"content": "SELECT \"former_school\" FROM \"roster\" WHERE \"hometown\"='East Brunswick, NJ';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"former_school\" text,\n \"hometown\" text\n);\n\nQuestion: What was the height of this Freshman with a forward position?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"roster\" WHERE \"position\"='Forward' AND \"year\"='Freshman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"footnotes\" (\n \"num\" real,\n \"prime_minister\" text,\n \"date_of_birth\" text,\n \"start_date_of_first_term\" text,\n \"age_at_beginning_of_first_term\" text,\n \"end_date_of_final_term\" text,\n \"total_time_in_office\" text,\n \"date_of_death\" text,\n \"lifespan\" text\n);\n\nQuestion: If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term?"
},
{
"role": "assistant",
"content": "SELECT \"start_date_of_first_term\" FROM \"footnotes\" WHERE \"date_of_birth\"='1961-08-09 9 August 1961';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"footnotes\" (\n \"num\" real,\n \"prime_minister\" text,\n \"date_of_birth\" text,\n \"start_date_of_first_term\" text,\n \"age_at_beginning_of_first_term\" text,\n \"end_date_of_final_term\" text,\n \"total_time_in_office\" text,\n \"date_of_death\" text,\n \"lifespan\" text\n);\n\nQuestion: If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?"
},
{
"role": "assistant",
"content": "SELECT \"end_date_of_final_term\" FROM \"footnotes\" WHERE \"prime_minister\"='Palmer, Geoffrey Geoffrey Palmer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: What is the population if the city is Gilroy?"
},
{
"role": "assistant",
"content": "SELECT \"population\" FROM \"table1_25200461_9\" WHERE \"city\"='Gilroy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: If Democratic is 42.5%, what is the city?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"table1_25200461_9\" WHERE \"democratic\"='42.5%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: If the registered voters is 66.8%, what is the minimum population?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population\") FROM \"table1_25200461_9\" WHERE \"registered_voters\"='66.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: What is the other is the city is Los Gatos?"
},
{
"role": "assistant",
"content": "SELECT \"other\" FROM \"table1_25200461_9\" WHERE \"city\"='Los Gatos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: What is the d-r spread if the no party preference is 31.8%?"
},
{
"role": "assistant",
"content": "SELECT \"d_r_spread\" FROM \"table1_25200461_9\" WHERE \"no_party_preference\"='31.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25200461_9\" (\n \"city\" text,\n \"population\" real,\n \"registered_voters\" text,\n \"democratic\" text,\n \"republican\" text,\n \"d_r_spread\" text,\n \"other\" text,\n \"no_party_preference\" text\n);\n\nQuestion: If the city is Santa Clara, what is the population total number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population\") FROM \"table1_25200461_9\" WHERE \"city\"='Santa Clara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: In what prefecture is Susaki located?"
},
{
"role": "assistant",
"content": "SELECT \"prefecture\" FROM \"2013_tournament\" WHERE \"city_town\"='Susaki';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: How many previous years did Maebashi Ikuei high school have a total number of 1 participation?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_of_previous_participation\") FROM \"2013_tournament\" WHERE \"total_number_of_participation\"=1 AND \"high_school_name\"='Maebashi Ikuei';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: In what prefecture is Nihon Bunri located?"
},
{
"role": "assistant",
"content": "SELECT \"prefecture\" FROM \"2013_tournament\" WHERE \"high_school_name\"='Nihon Bunri';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: In what prefecture is Daito located?"
},
{
"role": "assistant",
"content": "SELECT \"prefecture\" FROM \"2013_tournament\" WHERE \"city_town\"='Daito';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: Which high school is located in Kyoto?"
},
{
"role": "assistant",
"content": "SELECT \"high_school_name\" FROM \"2013_tournament\" WHERE \"prefecture\"='Kyoto';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_tournament\" (\n \"prefecture\" text,\n \"city_town\" text,\n \"high_school_name\" text,\n \"year_of_previous_participation\" text,\n \"total_number_of_participation\" real\n);\n\nQuestion: What was the year of previous participation for the school in the Kagoshima prefecture?"
},
{
"role": "assistant",
"content": "SELECT \"year_of_previous_participation\" FROM \"2013_tournament\" WHERE \"prefecture\"='Kagoshima';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25216791_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What was the data on January 15-16 if March 27-29 is March 29, 2006?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25216791_3\" WHERE \"march_27_29\"='March 29, 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25216791_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What was the data on November 3, if the data on January 15-16 is January 15, 2010?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25216791_3\" WHERE \"january_15_16\"='January 15, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25216791_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many datas were recorded on January 15-16 if August 21-22 is 155?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"january_15_16\") FROM \"table1_25216791_3\" WHERE \"august_21_22\"='155';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25216791_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25216791_3\" WHERE \"june_10_11\"='June 10, 1964';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_milestones\" (\n \"opponent\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"drew\" real,\n \"premiership_points\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage_pct\" text\n);\n\nQuestion: How many data are on points for if the percentage is 94.29?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_for\") FROM \"awards_and_milestones\" WHERE \"percentage_pct\"='94.29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_milestones\" (\n \"opponent\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"drew\" real,\n \"premiership_points\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage_pct\" text\n);\n\nQuestion: Who was the opponent with a points for of 177?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"awards_and_milestones\" WHERE \"points_for\"=177;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_milestones\" (\n \"opponent\" text,\n \"played\" real,\n \"won\" real,\n \"lost\" real,\n \"drew\" real,\n \"premiership_points\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage_pct\" text\n);\n\nQuestion: What was the minimum points against if the opponent is Port Adelaide?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points_against\") FROM \"awards_and_milestones\" WHERE \"opponent\"='Port Adelaide';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"practice_times_and_leaderboard_600cc\" WHERE \"thurs_3_june\"='20'' 27.93 110.615mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tues_1_june\") FROM \"practice_times_and_leaderboard_600cc\" WHERE \"mon_31_may\"='20'' 15.35 111.761mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: What is Friday 4 June if Wednesday 2 June is 20' 11.98 112.071mph?"
},
{
"role": "assistant",
"content": "SELECT \"fri_4_june\" FROM \"practice_times_and_leaderboard_600cc\" WHERE \"wed_2_june\"='20'' 11.98 112.071mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rider\") FROM \"practice_times_and_leaderboard_600cc\" WHERE \"tues_1_june\"='21'' 05.27 107.351mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"practice_times_and_leaderboard_600cc\" WHERE \"tues_1_june\"='20'' 59.60 107.834mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_and_leaderboard_600cc\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?"
},
{
"role": "assistant",
"content": "SELECT \"fri_4_june\" FROM \"practice_times_and_leaderboard_600cc\" WHERE \"wed_2_june\"='20'' 50.62 108.608mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_leaderboard_superstock_tt\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: What is the 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June?"
},
{
"role": "assistant",
"content": "SELECT \"wed_2_june\" FROM \"practice_times_leaderboard_superstock_tt\" WHERE \"thurs_3_june\"='17'' 48.58 127.111mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_leaderboard_superstock_tt\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: How many times are listed for 31 May for the rider ranked 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"mon_31_may\") FROM \"practice_times_leaderboard_superstock_tt\" WHERE \"rank\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_leaderboard_superstock_tt\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph?"
},
{
"role": "assistant",
"content": "SELECT \"thurs_3_june\" FROM \"practice_times_leaderboard_superstock_tt\" WHERE \"wed_2_june\"='17'' 45.11 127.525mph';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"practice_times_leaderboard_superstock_tt\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_29_may\" text,\n \"mon_31_may\" text,\n \"tues_1_june\" text,\n \"wed_2_june\" text,\n \"thurs_3_june\" text,\n \"fri_4_june\" text\n);\n\nQuestion: Who is ranked 2?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"practice_times_leaderboard_superstock_tt\" WHERE \"rank\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25235489_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many times does November 3rd occur when January 15, 1991 does?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"november_3\") FROM \"table1_25235489_2\" WHERE \"january_15_16\"='January 15, 1991';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25235489_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: When November is 153 what is the March number?"
},
{
"role": "assistant",
"content": "SELECT \"march_27_29\" FROM \"table1_25235489_2\" WHERE \"november_3\"='153';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25235489_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many times does an occurance happen in June when it happens on NOvember 3, 1975?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"june_10_11\") FROM \"table1_25235489_2\" WHERE \"november_3\"='November 3, 1975';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25235489_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: When march is 129 what is the August number?"
},
{
"role": "assistant",
"content": "SELECT \"august_21_22\" FROM \"table1_25235489_2\" WHERE \"march_27_29\"='129';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25235489_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many numbers are there for August when March is 139?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"august_21_22\") FROM \"table1_25235489_2\" WHERE \"march_27_29\"='139';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: How many teams have been in Topperserien for 8 seasons? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"2013_teams\" WHERE \"seasons\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: What is the maximum number of seasons for any team? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"seasons\") FROM \"2013_teams\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: Which teams homeeground is Stemmemyren? "
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"2013_teams\" WHERE \"home_ground\"='Stemmemyren';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: What is the home ground for the team whose home city is Trondheim with 27 seasons? "
},
{
"role": "assistant",
"content": "SELECT \"home_ground\" FROM \"2013_teams\" WHERE \"seasons\"=27 AND \"home_city\"='Trondheim';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: What is the home city for the team whose home ground is dnb nor arena? "
},
{
"role": "assistant",
"content": "SELECT \"home_city\" FROM \"2013_teams\" WHERE \"home_ground\"='DnB Nor Arena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_teams\" (\n \"team\" text,\n \"home_city\" text,\n \"home_ground\" text,\n \"in_toppserien_since\" real,\n \"first_appearance\" real,\n \"seasons\" real\n);\n\nQuestion: What Home city has the home ground Klepp stadion? "
},
{
"role": "assistant",
"content": "SELECT \"home_city\" FROM \"2013_teams\" WHERE \"home_ground\"='Klepp Stadion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25244412_2\" (\n \"rank\" real,\n \"rank_w_o_hydropower\" real,\n \"state\" text,\n \"pct_renewable\" text,\n \"pct_renewable_w_o_hydro\" text,\n \"renewable_electricity_gw_h\" real,\n \"renewable_electricity_w_o_hydro_gw_h\" real,\n \"total_electricity_gw_h\" real\n);\n\nQuestion: How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_electricity_gw_h\") FROM \"table1_25244412_2\" WHERE \"renewable_electricity_w_o_hydro_gw_h\"=3601;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25244412_2\" (\n \"rank\" real,\n \"rank_w_o_hydropower\" real,\n \"state\" text,\n \"pct_renewable\" text,\n \"pct_renewable_w_o_hydro\" text,\n \"renewable_electricity_gw_h\" real,\n \"renewable_electricity_w_o_hydro_gw_h\" real,\n \"total_electricity_gw_h\" real\n);\n\nQuestion: How many data was given the total electricity in GW-h if % renewable is 92.3%?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_electricity_gw_h\") FROM \"table1_25244412_2\" WHERE \"pct_renewable\"='92.3%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25244412_2\" (\n \"rank\" real,\n \"rank_w_o_hydropower\" real,\n \"state\" text,\n \"pct_renewable\" text,\n \"pct_renewable_w_o_hydro\" text,\n \"renewable_electricity_gw_h\" real,\n \"renewable_electricity_w_o_hydro_gw_h\" real,\n \"total_electricity_gw_h\" real\n);\n\nQuestion: What was the maximum rank of the source with renewable percentage w/o hydro is 2.17%?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"table1_25244412_2\" WHERE \"pct_renewable_w_o_hydro\"='2.17%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25244412_2\" (\n \"rank\" real,\n \"rank_w_o_hydropower\" real,\n \"state\" text,\n \"pct_renewable\" text,\n \"pct_renewable_w_o_hydro\" text,\n \"renewable_electricity_gw_h\" real,\n \"renewable_electricity_w_o_hydro_gw_h\" real,\n \"total_electricity_gw_h\" real\n);\n\nQuestion: How much was the minimum renewable electricity (GW-h) that is ranked 36?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"renewable_electricity_gw_h\") FROM \"table1_25244412_2\" WHERE \"rank\"=36;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25244412_2\" (\n \"rank\" real,\n \"rank_w_o_hydropower\" real,\n \"state\" text,\n \"pct_renewable\" text,\n \"pct_renewable_w_o_hydro\" text,\n \"renewable_electricity_gw_h\" real,\n \"renewable_electricity_w_o_hydro_gw_h\" real,\n \"total_electricity_gw_h\" real\n);\n\nQuestion: What was the state with the total electricity generated is 38380 gw-h?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"table1_25244412_2\" WHERE \"total_electricity_gw_h\"=38380;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Who directed the episode titled \"Big Time Blogger\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25246990_2\" WHERE \"title\"='\\\"Big Time Blogger\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: What number episode in the series had a production code of 111?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_25246990_2\" WHERE \"prod_code\"='111';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: What number episode in the series had a production code of 110?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_25246990_2\" WHERE \"prod_code\"='110';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_2\" (\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: How many U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_25246990_2\" WHERE \"written_by\"='Jed Spingarn' AND \"no_in_series\"='7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: What was the original U.S. air date of the episode directed by Julian Petrillo?"
},
{
"role": "assistant",
"content": "SELECT \"original_u_s_air_date\" FROM \"table1_25246990_5\" WHERE \"directed_by\"='Julian Petrillo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_u_s_air_date\") FROM \"table1_25246990_5\" WHERE \"u_s_viewers_millions\"='2.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_25246990_5\" WHERE \"written_by\"='Lazar Saric & Jed Spingarn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25246990_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many U.S. viewers were there for the number 4 episode in season?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_25246990_5\" WHERE \"no_in_season\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"rank\" real,\n \"district\" text,\n \"population\" real,\n \"growth_rate\" text,\n \"sex_ratio\" real,\n \"literacy\" text,\n \"density_km\" real\n);\n\nQuestion: Name the least rank"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"demographics\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"rank\" real,\n \"district\" text,\n \"population\" real,\n \"growth_rate\" text,\n \"sex_ratio\" real,\n \"literacy\" text,\n \"density_km\" real\n);\n\nQuestion: Name the growth rate for hooghly"
},
{
"role": "assistant",
"content": "SELECT \"growth_rate\" FROM \"demographics\" WHERE \"district\"='Hooghly';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"rank\" real,\n \"district\" text,\n \"population\" real,\n \"growth_rate\" text,\n \"sex_ratio\" real,\n \"literacy\" text,\n \"density_km\" real\n);\n\nQuestion: Name the total number of rank for east midnapore"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"demographics\" WHERE \"district\"='East Midnapore';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"rank\" real,\n \"district\" text,\n \"population\" real,\n \"growth_rate\" text,\n \"sex_ratio\" real,\n \"literacy\" text,\n \"density_km\" real\n);\n\nQuestion: Name the total number of rank for growth raate for 14.47"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"demographics\" WHERE \"growth_rate\"='14.47';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seasons_summary\" (\n \"season\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_scorer\" text,\n \"best_player\" text\n);\n\nQuestion: Who is the champion of the 1994 season?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"seasons_summary\" WHERE \"season\"=1994;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seasons_summary\" (\n \"season\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"top_scorer\" text,\n \"best_player\" text\n);\n\nQuestion: Who is the best player in the 1998 season?"
},
{
"role": "assistant",
"content": "SELECT \"best_player\" FROM \"seasons_summary\" WHERE \"season\"=1998;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1960_2009\" (\n \"year\" real,\n \"population\" real,\n \"index\" real,\n \"violent\" real,\n \"property\" real,\n \"murder\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: What was the largest index the year/s forcible rapes numbered 1084? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"index\") FROM \"crime_statistics_1960_2009\" WHERE \"forcible_rape\"=1084;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1960_2009\" (\n \"year\" real,\n \"population\" real,\n \"index\" real,\n \"violent\" real,\n \"property\" real,\n \"murder\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: How many violent catagories are listed for the year forcible rapes were 1156? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"violent\") FROM \"crime_statistics_1960_2009\" WHERE \"forcible_rape\"=1156;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1960_2009\" (\n \"year\" real,\n \"population\" real,\n \"index\" real,\n \"violent\" real,\n \"property\" real,\n \"murder\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: What was the largest number of aggravated assaults when there were 3811 robberies? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"aggravated_assault\") FROM \"crime_statistics_1960_2009\" WHERE \"robbery\"=3811;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1960_2009\" (\n \"year\" real,\n \"population\" real,\n \"index\" real,\n \"violent\" real,\n \"property\" real,\n \"murder\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: What was the number of murders the year forcible rapes were at 166? "
},
{
"role": "assistant",
"content": "SELECT \"murder\" FROM \"crime_statistics_1960_2009\" WHERE \"forcible_rape\"=166;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1960_2009\" (\n \"year\" real,\n \"population\" real,\n \"index\" real,\n \"violent\" real,\n \"property\" real,\n \"murder\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: How many violent crimes occurred the year that the index was 191037? "
},
{
"role": "assistant",
"content": "SELECT \"violent\" FROM \"crime_statistics_1960_2009\" WHERE \"index\"=191037;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25277363_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What date did \"fast friends\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_25277363_2\" WHERE \"title\"='\\\"Fast Friends\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25277363_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote episode number 149 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_25277363_2\" WHERE \"no_in_series\"=149;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25277363_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode number in the series is \"tough love\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_25277363_2\" WHERE \"title\"='\\\"Tough Love\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25276528_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: \"It's not my job\" is the minimum title in no. in season."
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_season\") FROM \"table1_25276528_2\" WHERE \"title\"='\\\"It''s Not My Job\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25276528_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What title did Bill Foster direct ?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_25276528_2\" WHERE \"directed_by\"='Bill Foster';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25276528_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Kim Weiskopf and Jeff Franklin wrote all the no. in series."
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_25276528_2\" WHERE \"written_by\"='Kim Weiskopf and Jeff Franklin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" text,\n \"additional_info\" text\n);\n\nQuestion: Which co-stars did Kalyanji-anandji direct in 1963?"
},
{
"role": "assistant",
"content": "SELECT \"co_stars\" FROM \"list_of_songs\" WHERE \"music_director\"='Kalyanji-Anandji' AND \"year\"='1963';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" text,\n \"additional_info\" text\n);\n\nQuestion: Which co-singers appear in the movie Pyaasa?"
},
{
"role": "assistant",
"content": "SELECT \"co_singers\" FROM \"list_of_songs\" WHERE \"movie_album\"='Pyaasa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" text,\n \"additional_info\" text\n);\n\nQuestion: What is the additional information in the song mera yaar bana hai dulha"
},
{
"role": "assistant",
"content": "SELECT \"additional_info\" FROM \"list_of_songs\" WHERE \"song\"='Mera Yaar Bana Hai Dulha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" text,\n \"additional_info\" text\n);\n\nQuestion: In which years are co-stars mala sinha and amitabh bachchan?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"list_of_songs\" WHERE \"co_stars\"='Mala Sinha and Amitabh Bachchan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" real,\n \"additional_info\" text\n);\n\nQuestion: Which song has Drunkard Groom listed as additional information?"
},
{
"role": "assistant",
"content": "SELECT \"song\" FROM \"list_of_songs\" WHERE \"additional_info\"='Drunkard Groom';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" real,\n \"additional_info\" text\n);\n\nQuestion: Who was the lyricist for the song with music directed by madan mohan kohli?"
},
{
"role": "assistant",
"content": "SELECT \"lyricist\" FROM \"list_of_songs\" WHERE \"music_director\"='Madan Mohan Kohli';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" real,\n \"additional_info\" text\n);\n\nQuestion: Which song directed by datta naik had the ending stranza written by Johnny Walker?"
},
{
"role": "assistant",
"content": "SELECT \"additional_info\" FROM \"list_of_songs\" WHERE \"music_director\"='Datta Naik';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_songs\" (\n \"song\" text,\n \"singer\" text,\n \"co_singers\" text,\n \"music_director\" text,\n \"lyricist\" text,\n \"co_stars\" text,\n \"movie_album\" text,\n \"year\" real,\n \"additional_info\" text\n);\n\nQuestion: In which album can Dil De De Nahin Nahin Dil Le Le be found?"
},
{
"role": "assistant",
"content": "SELECT \"movie_album\" FROM \"list_of_songs\" WHERE \"song\"='Dil De De Nahin Nahin Dil Le Le';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gdp_by_value_added\" (\n \"supply_sector_pct_of_gdp_in_current_prices\" text,\n \"1993_2001\" text,\n \"2002_2005\" text,\n \"2006_2009\" text,\n \"2010_2012\" text\n);\n\nQuestion: What was the GDP for 2002-2005 for the construction center? "
},
{
"role": "assistant",
"content": "SELECT \"2002_2005\" FROM \"gdp_by_value_added\" WHERE \"supply_sector_pct_of_gdp_in_current_prices\"='Construction';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gdp_by_value_added\" (\n \"supply_sector_pct_of_gdp_in_current_prices\" text,\n \"1993_2001\" text,\n \"2002_2005\" text,\n \"2006_2009\" text,\n \"2010_2012\" text\n);\n\nQuestion: What was GDP for 2006-2009 for the sector that had a 20.1 GDP for 2010-2012?"
},
{
"role": "assistant",
"content": "SELECT \"2006_2009\" FROM \"gdp_by_value_added\" WHERE \"2010_2012\"='20.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gdp_by_value_added\" (\n \"supply_sector_pct_of_gdp_in_current_prices\" text,\n \"1993_2001\" text,\n \"2002_2005\" text,\n \"2006_2009\" text,\n \"2010_2012\" text\n);\n\nQuestion: What sector had a 1.4 GDP for 2006-2009?"
},
{
"role": "assistant",
"content": "SELECT \"supply_sector_pct_of_gdp_in_current_prices\" FROM \"gdp_by_value_added\" WHERE \"2006_2009\"='1.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gdp_by_value_added\" (\n \"supply_sector_pct_of_gdp_in_current_prices\" text,\n \"1993_2001\" text,\n \"2002_2005\" text,\n \"2006_2009\" text,\n \"2010_2012\" text\n);\n\nQuestion: What sector had a 17.3 GDP for 1993-2001?"
},
{
"role": "assistant",
"content": "SELECT \"supply_sector_pct_of_gdp_in_current_prices\" FROM \"gdp_by_value_added\" WHERE \"1993_2001\"='17.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"gdp_by_value_added\" (\n \"supply_sector_pct_of_gdp_in_current_prices\" text,\n \"1993_2001\" text,\n \"2002_2005\" text,\n \"2006_2009\" text,\n \"2010_2012\" text\n);\n\nQuestion: The sector that had a 8.7 GDP for 2006-2009 had what GDP for 1993-2001?"
},
{
"role": "assistant",
"content": "SELECT \"1993_2001\" FROM \"gdp_by_value_added\" WHERE \"2006_2009\"='8.7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25284864_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is the November 3 result when June 10-11 is 147?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25284864_3\" WHERE \"june_10_11\"='147';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25284864_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is the November 3 result when the result for January 15-16 is 141?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25284864_3\" WHERE \"january_15_16\"='141';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25284864_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What is the November 3 result when the June 10-11 is 147?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25284864_3\" WHERE \"june_10_11\"='147';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25284864_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What June 10-11 is is that corresponds to March 28, 1968?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25284864_3\" WHERE \"march_27_29\"='March 28, 1968';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25284864_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What January 15-16 is is that corresponds to November 3, 2013?"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_25284864_3\" WHERE \"november_3\"='November 3, 2013';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25286976_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: When 127 is on June 10th to 11th what is November 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25286976_2\" WHERE \"june_10_11\"='127';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25286976_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: When 129 is on March 27th to 29th what is June 10th to 11th?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25286976_2\" WHERE \"march_27_29\"='129';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25286976_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: When 139 is on March 27th to 29th what is August 21st to 22nd?"
},
{
"role": "assistant",
"content": "SELECT \"august_21_22\" FROM \"table1_25286976_2\" WHERE \"march_27_29\"='139';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: During November 3 where august 21-22 is august 21, 2017?"
},
{
"role": "assistant",
"content": "SELECT \"november_3\" FROM \"table1_25287007_2\" WHERE \"august_21_22\"='August 21, 2017';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many solar eclipse on June 10-11, while November 3 is 153?"
},
{
"role": "assistant",
"content": "SELECT \"june_10_11\" FROM \"table1_25287007_2\" WHERE \"november_3\"='153';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25287007_2\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"august_21_22\") FROM \"table1_25287007_2\" WHERE \"june_10_11\"='June 11, 1983';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.