text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: What round had a result of 6–7 (6–8) , 1–6?
<|assistant|>
SELECT "round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: Who was the opponent when the result was 7–6 (7–5) , 6–3?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: What clay surface edition had an opponent of miho saeki?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is To par, when Country is "Spain"?
<|assistant|>
SELECT "to_par" FROM "second_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Country, when Player is "José María Olazábal"?
<|assistant|>
SELECT "country" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Place, when Player is "John Cook"?
<|assistant|>
SELECT "place" FROM "second_round"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Score, when Country is "United States", and when Player is "Raymond Floyd"?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is To par, when Player is "Larry Rinker"?
<|assistant|>
SELECT "to_par" FROM "second_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Country, when Place is "T8", and when Score is "70-67=137"?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What Country is player Sandy Lyle from when she scored less than 69?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is the to par of Philip Parkin?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What was the lowest attendance was the opponent was chelsea?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hungary" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
Question: What is the Date of Birth of the CB Player with a Height of m (ft 4in)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country had a t4 place and scored 66-73=139?
<|assistant|>
SELECT "country" FROM "sec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Who placed t1 in Scotland?
<|assistant|>
SELECT "player" FROM "second_round" WHERE "place"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Who had a to par of e and scored 71-69=140?
<|assistant|>
SELECT "player" FROM "second_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the to par for t10 and Colin Montgomerie?
<|assistant|>
SELECT "to_par" FROM "secon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country scored 71-69=140?
<|assistant|>
SELECT "country" FROM "second_round" WHERE "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
Question: What week's game had a result of bye?
<|assistant|>
SELECT "week" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
Question: What was the record at week 9?
<|assistant|>
SELECT "record" FROM "reg... |
<|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" text
);
Question: What is the to par of player vijay singh?
<|assistant|>
SELECT "to_par" FROM... |
<|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" text
);
Question: Who is the player with playoff money from the United States?
<|assistant|>
S... |
<|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" text
);
Question: What is the place of the player from New Zealand?
<|assistant|>
SELECT "plac... |
<|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" text
);
Question: What is the to par of the player from the United States with a t1 place?
<|a... |
<|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" text
);
Question: How much money does the player with a 72-70-71-72=285 score have?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaat_record" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaat_record" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaat_record" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaat_record" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "solo_singles" (
"year" real,
"song" text,
"u_s_hot_100" text,
"u_s_r_b" text,
"u_s_hot_adult_cont" text,
"album" text
);
Question: Which song has a U.S. R&B 100 in 2010?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall" (
"team" text,
"matches" real,
"wins" real,
"wins_pct" text,
"draws" real,
"draws_pct" text,
"losses" real,
"losses_pct" text,
"against" real
);
Question: What is the Lowest va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall" (
"team" text,
"matches" real,
"wins" real,
"wins_pct" text,
"draws" real,
"draws_pct" text,
"losses" real,
"losses_pct" text,
"against" real
);
Question: Which Losses have a W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: What is the Champion at Sopot prior to 2006 with a Score of 6–4, 6–7(7), 6–3?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_doubles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: In what Year was the match at Sopot with a Score of 2–6, 6–2, 6–3?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which Team has Podiums ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which Wins has a Team o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which Season has Podium... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"position" text
);
Question: Which Wins has Podiums ... |
<|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 method used when... |
<|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 result when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"nhl_team" text,
"team_from" text,
"league_from" text
);
Question: Which NHL team chose an American player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"nhl_team" text,
"team_from" text,
"league_from" text
);
Question: What is the nationality of player Jani ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"nhl_team" text,
"team_from" text,
"league_from" text
);
Question: From which league is the player chosen ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_carolina_counties_ranked_by_per_ca" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_carolina_counties_ranked_by_per_ca" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
Question: What is the highest pick for a year after 2010, and a round smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
Question: What is the highest pick for a year after 2010 and a round larger than 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
Question: What is the sum for the pick of the year 2009, and a round smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_of_moments_by_decades" (
"first_round" text,
"semifinals" real,
"conference_finals" real,
"finals" real,
"total" real
);
Question: Can you tell me the total number of Total that has the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_of_moments_by_decades" (
"first_round" text,
"semifinals" real,
"conference_finals" real,
"finals" real,
"total" real
);
Question: Can you tell me the average Conference Finals that has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_of_moments_by_decades" (
"first_round" text,
"semifinals" real,
"conference_finals" real,
"finals" real,
"total" real
);
Question: Can you tell me the Finals that has the Conference Fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faculty_and_staff" (
"data" text,
"headcount" real,
"percent_of_total" text,
"less_than_25_000" text,
"25_000_to_40_000" text,
"40_000_to_50_000" text,
"50_000_to_60_000" text,
"60_000_to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faculty_and_staff" (
"data" text,
"headcount" real,
"percent_of_total" text,
"less_than_25_000" text,
"25_000_to_40_000" text,
"40_000_to_50_000" text,
"50_000_to_60_000" text,
"60_000_to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faculty_and_staff" (
"data" text,
"headcount" real,
"percent_of_total" text,
"less_than_25_000" text,
"25_000_to_40_000" text,
"40_000_to_50_000" text,
"50_000_to_60_000" text,
"60_000_to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faculty_and_staff" (
"data" text,
"headcount" real,
"percent_of_total" text,
"less_than_25_000" text,
"25_000_to_40_000" text,
"40_000_to_50_000" text,
"50_000_to_60_000" text,
"60_000_to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Label has a Country of canada, and a Format of cd/digital download?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Format has a Date of 14 october 2008, and a Label of eagle eye media?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Label has a Country of united kingdom, a Date of 22 september 2008, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Country has a Catalogue number(s) of eredv711?
<|assistant|>
SELECT "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_number_s" text
);
Question: Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greece" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
Question: What is the Height of the Player with a Date of Birth of 1978-02-16?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greece" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
Question: What is the Name of the D Player born on 1983-07-19?
<|assistant|>
SELECT "name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greece" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
Question: What is Eftychia Karagianni Pos.?
<|assistant|>
SELECT "pos" FROM "greece" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_songlist" (
"track" real,
"song_title" text,
"artist" text,
"album" text,
"legends_track" text
);
Question: What is the track that from lcd soundsystem?
<|assistant|>
SELECT "track" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"uefa_cup" real,
"total" real
);
Question: What is the total number of UEFA Cup(s), when Total is gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"uefa_cup" real,
"total" real
);
Question: What is the lowest Polish Cup, when Position is "Midfield... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"uefa_cup" real,
"total" real
);
Question: What is the sum of Polish Cup, when Player is "Maciej Iwa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What Election has a 2nd Member of frederick knight, and a 1st Member of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What 2nd Member has a 1st Party of conservative, and a 1st Member of wil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What 2nd Party has an Election of 1885?
<|assistant|>
SELECT "2nd_party"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What 2nd Party has an Election of 1834?
<|assistant|>
SELECT "2nd_party"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What 2nd Member has a 2nd Party of conservative, and an Election of 1853... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1832_1885" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What 2nd Member has an Election of 1833 by-election?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Golfer Steve Pate has what To par?
<|assistant|>
SELECT "to_par" FROM "first_round" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the score when they played the Boston Pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"name" text,
"season" text,
"club" text,
"goals" real,
"apps" real,
"goals_per_match" real
);
Question: How many apps for the rank o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"name" text,
"season" text,
"club" text,
"goals" real,
"apps" real,
"goals_per_match" real
);
Question: How many goals per match whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"year" real,
"champion" text,
"runner_up" text,
"score" text,
"city" text,
"venue" text
);
Question: What was the score when Nacional was the champion, River Plate was the runner-up... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"year" real,
"champion" text,
"runner_up" text,
"score" text,
"city" text,
"venue" text
);
Question: Who was the champion when atlético wanderers was the runner-up?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"year" real,
"champion" text,
"runner_up" text,
"score" text,
"city" text,
"venue" text
);
Question: In which city is the San Lorenzo Centenario venue located?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: The game played 31 May 2010 was played on what surface?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament was played 16 September 2012?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the score of the game played 26 July 2010?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: The match against Paul-Henri Mathieu had what outcome?
<|ass... |
<|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 South Africa's to par?
<|assistant|>
SELECT "to_par" FROM "ma... |
<|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 had a finish of t20?
<|assistant|>
SELECT "player" FROM "made_the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_education_statistics_by_district" (
"measure" text,
"bombali" real,
"bonthe" real,
"kailahun" real,
"kambia" text,
"kenema" real,
"koinadugu" real,
"kono" real,
"moyamba" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_education_statistics_by_district" (
"measure" text,
"bombali" real,
"bonthe" real,
"kailahun" real,
"kambia" text,
"kenema" real,
"koinadugu" real,
"kono" real,
"moyamba" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_education_statistics_by_district" (
"measure" text,
"bombali" real,
"bonthe" real,
"kailahun" real,
"kambia" text,
"kenema" real,
"koinadugu" real,
"kono" real,
"moyamba" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: What party is the person who was first elected in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nagano_round" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: Which report has a Set 3 value of 21–25?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nagano_round" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: What was the Time when Set 3 was 25–14?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nagano_round" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: When was there a Time of 18:00, and a Set 1 of 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"mls_cup" real,
"u_s_open_cup" real,
"concacaf" real,
"other" real,
"total" real
);
Question: How many Totals have a CONCACAF of 0, and an MLS... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_appearances" (
"name" text,
"years" text,
"mls_cup" real,
"u_s_open_cup" real,
"concacaf" real,
"other" real,
"total" real
);
Question: Which MLS Cup has another larger than 9, and a T... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"original_title" text,
"film_title_used_in_nomination" text,
"director" text,
"result" text
);
Question: What year has a not nominated result and a nominati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.