text stringlengths 310 1.28k |
|---|
<|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,
"result" text
);
Question: Which Result has a First elected of 1876, and a Dis... |
<|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,
"result" text
);
Question: Which Result has a First elected larger than 1876, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: Who is the incumbent that is a republican and first elected before 1864?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What district is the democratic Francis C. Le Blond from?
<|assistant|>
SELECT "distric... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: In the Ohio 4 district, that is the first elected date that has a result of re-elected?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What is the party in Ohio 6 District?
<|assistant|>
SELECT "party" FROM "ohio" WHERE "d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text
);
Question: Which To par has a Year of 1994?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text
);
Question: Which Country has a Margin of victory of 2 strokes?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text
);
Question: Which Year is the lowest one that has a To par of β... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text
);
Question: Which Margin of victory has a Year larger than 1994... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: What was the record after the game at the Astrodome?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: What was the record after the game against the Houston Oile... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the average total score of Belarus, which had an E score less than 8.2?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the total of the team with a T score greater than 8 and an E score less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the T score of the team with an E score of 6.625?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the total of Poland, which has an E score greater than 7.725?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What is the total of the team with a T score less than 6.8?
<|assistant|>
SELEC... |
<|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: What date has a competition of 2012 afc challenge cup, and dasarath rangasala stad... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date" text,
"venstre_v" text,
"social_democrats_a" text,
"danish_people_s_party_o" text,
"socialist_people_s_party_f" text,
"conservative_people_s_part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date" text,
"venstre_v" text,
"social_democrats_a" text,
"danish_people_s_party_o" text,
"socialist_people_s_party_f" text,
"conservative_people_s_part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date" text,
"venstre_v" text,
"social_democrats_a" text,
"danish_people_s_party_o" text,
"socialist_people_s_party_f" text,
"conservative_people_s_part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Position has a Round larger than 14, and a School/Club Team of north texas?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Round has a Player of anthony christnovich?
<|assistant|>
SELECT "round" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which Round is the lowest one that has a School/Club Team of virginia?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the name of the leading scorer on 2006-11-22... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the name of the leading scorer when the reco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the number of people in Attendance when Visi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What team was the visitor when there were more than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the name of the visitor on 2006-11-04?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the name of the Leading scorer when the Scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" text,
"definition" text
);
Question: Which Year is the highest one that has a Population large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" text,
"definition" text
);
Question: How many people live in Norton?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" text,
"definition" text
);
Question: Which Year has a Borough of harrogate, and a Rank smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" text,
"definition" text
);
Question: Which Definition has a Rank smaller than 12, and a Town o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" text,
"definition" text
);
Question: Which Rank is the lowest one that has a Borough of richmo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals did Bulgaria receive?
<|assistant|>
SELECT "bronze" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What was Phil Mickelson's score to par?
<|assistant|>
SELECT "to_par" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What name has an overall less than 268, and 1 as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many pick #'s have james britt as the name, with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: what is the score on november 15
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='novemb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Which Wins is the highest one that has a Country of united states, and a Player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Which Country has a Rank of 5?
<|assistant|>
SELECT "country" FROM "leaders" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Which Earnings ($) is the lowest one that has a Rank smaller than 1?
<|assistan... |
<|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,
"save" text
);
Question: What is the score of the game on September 13 when the Expos were the opponent?
<|assistant|>
SELEC... |
<|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,
"save" text
);
Question: Who was the opponent on the September 3 game?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE... |
<|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,
"save" text
);
Question: What is the save of the game on September 15?
<|assistant|>
SELECT "save" FROM "game_log" WHERE "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: Which Game site has a Week larger than 14?
<|assistant|>
SELECT "game_si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: Which Date has a Game site of jeppesen stadium?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: Which Game site has 27,189 Attendances ?
<|assistant|>
SELECT "game_sit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: When is it has 15,557 Attendances?
<|assistant|>
SELECT "date" FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: With an Overall less than 171, what is the Round pick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the Name of draft Pick #10?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many Rounds have a Defensive End Pick?
<|ass... |
<|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 when Shinya... |
<|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 method was used in roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Which rank has a team of Suzuki with under 16 points?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Which class has a rank of 5th?
<|assistant|>
SELECT "class... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Which team has a class of 500cc and rank of 16th?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Which team has 16 points and ranks 14th?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer_s" text,
"best_score" text,
"worst_dancer_s" text,
"worst_score" text
);
Question: What is the dance that has priscilla pre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer_s" text,
"best_score" text,
"worst_dancer_s" text,
"worst_score" text
);
Question: What is the best score of the dance free... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer_s" text,
"best_score" text,
"worst_dancer_s" text,
"worst_score" text
);
Question: Which dance has the worst dancer(s) as m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Points have an Opponent of vancouver canucks?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points have a Score of 3β0?
<|assistant|>
SELECT COUNT("points... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game has Points smaller than 10, and an October larger than 12, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Record has Points larger than 0, and a Score of 7β3?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: On... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
"john_b_anderson" text,
"howard_baker" text,
"john_connally" text,
"phil_crane" text,
"bob_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
"john_b_anderson" text,
"howard_baker" text,
"john_connally" text,
"phil_crane" text,
"bob_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
"john_b_anderson" text,
"howard_baker" text,
"john_connally" text,
"phil_crane" text,
"bob_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
"john_b_anderson" text,
"howard_baker" text,
"john_connally" text,
"phil_crane" text,
"bob_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
"john_b_anderson" text,
"howard_baker" text,
"john_connally" text,
"phil_crane" text,
"bob_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competition" text,
"caps" real,
"goals" real
);
Question: What is the sum of goals for the 2004/05 Season?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competition" text,
"caps" real,
"goals" real
);
Question: What is the lowest caps for the Club of SBV Excelsior?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competition" text,
"caps" real,
"goals" real
);
Question: Which season has Caps lower than 36 for the Club of NAC Breda?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Opponents in the final have ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Date has a Partner of daniel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Surface has a Partner of pem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Date has Opponents in the fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Date has a Partner of daniel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % small... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Matches of 15, and a Win % smaller than 20 had what highest lost?
<|assistant|>
SELECT MAX... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smalle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
Question: Lost of 18 had what sum of win %?
<|assistant|>
SELECT SUM("win_pct") FROM "managers" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the second leg that has kk bosna?
<|assistant|>
SELECT "2nd_leg" FROM "si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg that has hapoel jerusalem?
<|assistant|>
SELECT "1st_leg" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which 1st leg that has hemofarm?
<|assistant|>
SELECT "1st_leg" FROM "sixteenth_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: WHich Team#1 has 70 - 59 as a 1st leg?
<|assistant|>
SELECT "team_num1" FROM "six... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
);
Question: Who averaged 201.3 yards passing per game?
<|assistant|>
SELECT "name" FROM "passing" WHERE "av... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
);
Question: How many players had an Att-Cmp-Int of 143β269β16, and an efficiency of less than 116.9?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
);
Question: What is the Att-Cmp-Int for the player with a efficiency of 117.4?
<|assistant|>
SELECT "att_cm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: How many leg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Question: What is the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.