text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the quantity made of the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the class of the locomoti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the class of the locomoti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text ); Question: What is the name of the locomotiv...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: What country has signed type movin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: Which transfer window was moving f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: What is moving from esp with trans...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: What is the transfer window in esp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "week_2" text, "week_4" text, "week_6" text, "week_11" text, "week_12" text, "week_13" text, "week_15" text ); Question: Who is the week 12 for the week 2 with Magda Tomek? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "week_2" text, "week_4" text, "week_6" text, "week_11" text, "week_12" text, "week_13" text, "week_15" text ); Question: Who is the week 12 for the week 4 of Gerard Ewelina? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text ); Question: Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text ); Question: Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text ); Question: What was the 1st Year Al Harrington (9) the leader in Rebounds? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text ); Question: Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: Name the average with tally of 0-29 and total more than 29 <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: Name the tally with total less than 27 and average more than 3.41 <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: For engines of Maserati Straight-6 and entrants of H H Gould, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the fewest number of points scored by Goulds' Garage (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which chassis has fewer than 2 points, entrants of Goulds' Gar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the most points that the Maserati 250F chassis scored ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine has a year larger than 1956? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apollo_astronauts_who_flew_to_the_moon_w" ( "name" text, "born" text, "age_on_mission" real, "mission" text, "mission_dates" text, "service" text ); Question: What is the lowest age of an ast...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apollo_astronauts_who_flew_to_the_moon_w" ( "name" text, "born" text, "age_on_mission" real, "mission" text, "mission_dates" text, "service" text ); Question: What mission did the astronaut w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the type of lithium when rubidium is nabr (1.9)? <|assistant|> SELECT "lithiu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the properties of sodium when rubidium is nacl (2.1)? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the properties of potassium when lithium is h a l o g e n s and sodium is bro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the properties of lithium when caesium is ki (1.7)? <|assistant|> SELECT "lit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "properties" ( "lithium" text, "sodium" text, "potassium" text, "rubidium" text, "caesium" text ); Question: what is the properties of sodium when potassium is lii (1.5)? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rs_series_b_b" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Which prime mov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rs_series_b_b" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Which model had...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rs_series_b_b" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Which power out...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rs_series_b_b" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: Which wheel arr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Who is the player born before 1985 who is less than 2.02 tall? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Who is the player who was born before 1980 who currently plays ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What position does Sergio Rodríguez, who is less than 1.96 tall...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What year was the Guard who currently plays for the Memphis Gri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the height of the Forward who currently plays for the T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "group_position" text ); Question: Date of 24 september 2002 is what group position? <|assistant|> SELECT "gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "group_position" text ); Question: Attendance larger than 63,439, and an Opponent of bayer leverkusen had wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "group_position" text ); Question: Date of 24 september 2002 had what F-A result? <|assistant|> SELECT "resul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_stage" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "group_position" text ); Question: Result F–A of 2–0 had what total number of attendance? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "july" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the score of the game with a loss of Myers (5-6)? <|assistant|> SELECT "score" FROM "jul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "july" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the loss of the game attended by 41,212? <|assistant|> SELECT "loss" FROM "july" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "july" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the attendance of the game that had a loss of Wolf (3-4)? <|assistant|> SELECT "attendan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_under_20_women" ( "rank" real, "fastest_time_s" real, "wind_m_s" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: what nation is bianca knight the answe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_under_20_women" ( "rank" real, "fastest_time_s" real, "wind_m_s" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: what is the wind speed when brenda mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_under_20_women" ( "rank" real, "fastest_time_s" real, "wind_m_s" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: what is the highest rank in dresden wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: What is the course on 1 June? <|assistant|> SELECT "course" FROM "stage_results" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Who is the winner of the Florence to Genoa course? <|assistant|> SELECT "winner" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: What is the date of the Rome to Florence course? <|assistant|> SELECT "date" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "year" real, "points" text, "rebounds" text, "assists" text, "steals" text, "blocks" text ); Question: What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995 <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the highest lane for heat 6 with a time of dns? <|assistant|> SELECT MAX("lane") FROM "heats...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the lowest lane with a time of 2:05.90, and a Heat larger than 3? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What nationality has a lane larger than 4 and a Time of 2:00.37? <|assistant|> SELECT "nationality" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the average Lane where Belarus is the nationality? <|assistant|> SELECT AVG("lane") FROM "he...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the highest lane for nisha millet? <|assistant|> SELECT MAX("lane") FROM "heats" WHERE "name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text, "race_leader" text ); Question: On what date was the race course from Rome to Naples? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: Name the Losing BP with 22 played and 9 Try BP. <|assistant|> SELECT "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: Name the Losing BP with drawn of 1 and a Try BP of 6. <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: Name the Losing BP of Newport Saracens RFC and has a Lost of 19. <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: Name the Drawn for Ystrad Rhondda RFC and has Played of 22. <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: Can you name the drawn with a Lost of 1? <|assistant|> SELECT "drawn" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "try_bp" text, "losing_bp" text ); Question: With a Losing BP of 8, what is the drawn? <|assistant|> SELECT "drawn" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_list" ( "player" text, "afl_debut" text, "games" text, "goals" text, "behinds" text, "kicks" text, "handballs" text, "disposals" text, "marks" text, "tackles" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendlies" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What is the Score1 of Match 42? <|assistant|> SELECT "score1" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendlies" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what date was the match higher than 8 on ground A against Gu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendlies" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what ground was the game on 31 Jul 2007? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the total of David Toms? <|assistant|> SELECT SUM("total") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the average of Fiji with t10 Finish? <|assistant|> SELECT AVG...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Who won in 1983? <|assistant|> SELECT "player" FROM "made_the_cut" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: Which english website has a daily frequency ? <|assistant|> SELECT "website" FROM "newspap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: What is the frequency of the newspaper, el diario de nuevo laredo in the city of nuevo lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: What is the website of the Laredo Sun in the city of Laredo ? <|assistant|> SELECT "websit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: What is the name of the newspaper with the website liderinformativo.com ? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: Which website is in english and has the frequency of an online newspaper ? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newspapers" ( "name" text, "frequency" text, "language" text, "city" text, "website" text ); Question: Which city has spanish news on the website ultimahora.com ? <|assistant|> SELECT "city" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which line after 1959 had the highest amount of points? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which line has the lowest amount of points and a year of 1954?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the total amount of points that Christy has in the yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which is the latest year that has an engine of Offenhauser l4,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which chasis was in the year 1954? <|assistant|> SELECT "chass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "year" real, "competition" text, "town" text, "opponent" text, "final_score" text ); Question: What is the final score in 2007 for the world league in novi sad played against Italy? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "year" real, "competition" text, "town" text, "opponent" text, "final_score" text ); Question: what is the competition played in budva against italy? <|assistant|> SELECT "competitio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "year" real, "competition" text, "town" text, "opponent" text, "final_score" text ); Question: what is the competition that had a final score of 6:5? <|assistant|> SELECT "competitio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "year" real, "competition" text, "town" text, "opponent" text, "final_score" text ); Question: who is the opponent when played in trieste before 2007? <|assistant|> SELECT "opponent"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: What was Bob Jameson's lowest bonus where he had less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: How many rides did it take to get less than 3 bonus pt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: What is the total for 34 matches with 111 rides, but n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: How many rides did it take Ray Day to get 274 points i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: Which rider had less than 342 points in no more than 7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_45" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Margin of victory on aug 11, 2002? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_45" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: When has a Winning score of –16 (70-65-65=200)? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_45" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Margin of victory on oct 5, 1997? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_45" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Winning score on oct 22, 2000? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_2" ( "episode_no" real, "airdate" text, "total_viewers" real, "share" text, "bbc_one_weekly_ranking" text ); Question: How many episodes have a share of 16.2% and an episode number of le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: If the French Open tournament had 2r in 2012, what was it in 2010? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which 2012 tournament had 2r in 2010? <|assistant|> SELECT "2012" FROM "single...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which tournament had 2r in 2010? <|assistant|> SELECT "tournament" FROM "singl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: If the French Open tournament had 2r in 2012, what was it in 2009? <|assistant...