text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_spain_internationals_1989" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the total number of drawn matches from first game years be... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_spain_internationals_1989" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the highest number of losses associated with 2 matches pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 Ju... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What is the Date of the Test match of Australia in England at The Oval Ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Who was the Away captain for the Test match of Australia in England where... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Who was the Home captain for the Test match of Australia in England at th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telenovelas" (
"year" text,
"title" text,
"production_company" text,
"role" text,
"notes" text
);
Question: what is the name of the role that has co-protagonist in the notes field and the years... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telenovelas" (
"year" text,
"title" text,
"production_company" text,
"role" text,
"notes" text
);
Question: What is the name of the role that has a Title of Olvidarte Jamas?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telenovelas" (
"year" text,
"title" text,
"production_company" text,
"role" text,
"notes" text
);
Question: Which production company has the year of 2005 listed?
<|assistant|>
SELECT "productio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telenovelas" (
"year" text,
"title" text,
"production_company" text,
"role" text,
"notes" text
);
Question: What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telenovelas" (
"year" text,
"title" text,
"production_company" text,
"role" text,
"notes" text
);
Question: What is the name of the production company that has a year of 2008-2009?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: What is the Authority for Kuranui Primary School t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: Which Names have Deciles larger than 7?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: What Gender are the schools that have a Roll of 13... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_waikato_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: What is the Name of a state Authority that has a R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which friendly competition took place on 19 April 1979?
<|assistant|>
SELECT "scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 1 has a first leg of 1-0 and a second leg of 0-2?
<|assistant|>
SELECT "team_1" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which Team 1 faced Dynamos FC?
<|assistant|>
SELECT "team_1" FROM "second_round" WHERE "tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is Team 1 Al-Hilal's Agg.?
<|assistant|>
SELECT "agg" FROM "second_round" WHERE "team_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What Team 2 has a second leg of 1-0?
<|assistant|>
SELECT "team_2" FROM "second_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What Team 2 has a second leg of 3-1?
<|assistant|>
SELECT "team_2" FROM "second_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Which record happened on the date of May 7?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which tournament had Lubomira Bacheva as the opponent in the final?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was the opponent in the final on 5 July 1992?
<|assistant|>
SELECT "oppone... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the date of the tournament where Kyoko Nagatsuka was the opponent in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the surface at the tournament of Vaihingen?
<|assistant|>
SELECT "surf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the surface of the tournament where Anna Benzon was the opponent in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eesti_p_levkivi_j_hvi_in_estonian_footba" (
"year" text,
"league" text,
"position" real,
"goals" real,
"points" real
);
Question: What is the average position of Eesti Põlevkivi Jõhvi when they... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What is the to par for the player who had a score of 70-72-70-69=281?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What year had the qual of totals
<|assistant|>
SELECT "year" FROM "indy_500_re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What qual had a finish of 16 in 1968?
<|assistant|>
SELECT "qual" FROM "indy_5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the finish with the start of 25 and a lap larger than 46?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the lowest lap with the ranking of 19?
<|assistant|>
SELECT MIN("laps... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_internationals" (
"player" text,
"wkts" real,
"runs" real,
"econ" real,
"ovrs" real
);
Question: Name the least ovrs for wkts of 0
<|assistant|>
SELECT MIN("ovrs") FROM "one_day_interna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_internationals" (
"player" text,
"wkts" real,
"runs" real,
"econ" real,
"ovrs" real
);
Question: Name the average econ for runs more than 703 and ovrs more than 25.5
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dakar_rally_results" (
"year" real,
"class" text,
"vehicle" text,
"position" text,
"stages_won" text
);
Question: What is the average year that has a car that won 0 stages with a position of DN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dakar_rally_results" (
"year" real,
"class" text,
"vehicle" text,
"position" text,
"stages_won" text
);
Question: What is the class that that won 2 stages and has a position of DNF?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dakar_rally_results" (
"year" real,
"class" text,
"vehicle" text,
"position" text,
"stages_won" text
);
Question: What position did the BMW vehicle made in 2006 hold?
<|assistant|>
SELECT "posi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which builder has a Fuel Propuls... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which model has a Fleet Series (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which order year has a Fleet Ser... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which Fleet Series (Quantity) th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which Fleet Series (Quantity) ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_roster" (
"builder" text,
"model" text,
"length_ft_m" text,
"order_year" text,
"fuel_propulsion" text,
"fleet_series_quantity" text
);
Question: Which Fuel Propulsion has a Flee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matamata_piako_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the sum of roll for morrinsville school
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matamata_piako_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the authority for morrinsville college
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matamata_piako_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the years when decile was less than 7 for wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matamata_piako_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the total number of roll for state authority... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the Blue Jays' record when they played the Royals with an attendanc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_caloundra" real,
"population_maroochy" real,
"population_noosa" real
);
Question: What year had a population region total ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid total associated with 18 laps?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What rider is on an aprilia that went under 18 laps with a grid total of 17... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the Manufacturer for simone corsi?
<|assistant|>
SELECT "manufactur... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid total associated with a Time/Retired of +33.634, and a Lap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: Tell me the power when the torque is n·m (lb·ft)/... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: Name the capacity for the engine of 2.0 duratorq
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: Name the capacity for the torque of n·m (lb·ft) @... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: Name the power for 1.8 duratorq
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinders_valves" text,
"power_rpm" text,
"torque_nm_rpm" text
);
Question: Name the power for when the torque is n·m (lb·ft)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: What are the smallest goals with a G... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: What's the average goal ratio with G... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: What lowest games have 20 goals and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: What is the largest goal ratio with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: What lowest games have a Goal Ratio ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_appearances_in_uefa_club_competition" (
"rank" real,
"player" text,
"games" real,
"goals" real,
"goal_ratio" real,
"debut_in_europe" real
);
Question: How many debuts in Europe have less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the average points of the Ferrari 1512 Chassis after 1965... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the Chassis of the Cooper Car Company after 1965 when the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Which location had a round of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the time of sportfig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Which opponent had a time of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"name" text,
"builder" text,
"type" text,
"works_number" real,
"date" real
);
Question: What number has the builder ruston hornsby, the date 1961, and the name T... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"name" text,
"builder" text,
"type" text,
"works_number" real,
"date" real
);
Question: What is the number with the builder hunslet and a works number greater th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the score of the March 14 game?
<|assistant|>
SELECT "score" FROM "regular_season" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the score for the December 11 game against the Ottawa Senators?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_yachts" (
"hull_no" real,
"year" real,
"project" text,
"length_overall_in_meters_without_bowsprit" real,
"name" text,
"destination" text
);
Question: Name the project with length over... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_yachts" (
"hull_no" real,
"year" real,
"project" text,
"length_overall_in_meters_without_bowsprit" real,
"name" text,
"destination" text
);
Question: Name the sum of Hull number with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_yachts" (
"hull_no" real,
"year" real,
"project" text,
"length_overall_in_meters_without_bowsprit" real,
"name" text,
"destination" text
);
Question: Name the sum of hull number for i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: Give me the result for a format s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: List the Award Descriptions for t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is on at 9:30 on the channel of dancing with the stars?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is on at 7:30 when k-ville is on at 9:00 on that channel?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is on at 8:30 when occupation double is on at 7:00 at that channel?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is on at 8:30 when etalk is on at 7:00 on that channel?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "monday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is on at 8:00 when etalk is on at 7:00?
<|assistant|>
SELECT "8_00" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the score of the game played on August 5?
<|assistant|>
SELECT "score" FROM "game_log" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: On what date was the Blue Jays record 60-56?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_board_of_supervisors" (
"position" text,
"name" text,
"party" text,
"first_elected" real,
"district" text
);
Question: Tell me the name for first elected more than 1988 and district of m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_board_of_supervisors" (
"position" text,
"name" text,
"party" text,
"first_elected" real,
"district" text
);
Question: Name the party with first elected more than 1999 and position of su... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_board_of_supervisors" (
"position" text,
"name" text,
"party" text,
"first_elected" real,
"district" text
);
Question: Name the total number of first elected for dranesville
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premierships_8_62" (
"year" real,
"opponent" text,
"competition" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What year was the venue at Sydney Cricket Ground, and the opp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premierships_8_62" (
"year" real,
"opponent" text,
"competition" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What was the competition in 1978?
<|assistant|>
SELECT "compe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premierships_8_62" (
"year" real,
"opponent" text,
"competition" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What year was the average attendance 80,388?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premierships_8_62" (
"year" real,
"opponent" text,
"competition" text,
"score" text,
"venue" text,
"attendance" text
);
Question: What was the score with the opponent being New Zealand Warrio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which 1st Party has an election in 1847?
<|assistant|>
SELECT "1s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which 1st Party has an election in 1865?
<|assistant|>
SELECT "1s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which 1st Party has a 2nd Member of constituency abolished?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which 1st Member has an election in 1880 and a liberal 1st Party?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which 1st Member has an election in 1859 and a conservative 2nd P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966_season_finished_1st_54pts_out_of_19" (
"rider" text,
"matches" real,
"rides" real,
"bonus_pts" real,
"total_points" real
);
Question: What was the average number of points with bonus pts l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966_season_finished_1st_54pts_out_of_19" (
"rider" text,
"matches" real,
"rides" real,
"bonus_pts" real,
"total_points" real
);
Question: How many total matches involving dennis gavros had tot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.