text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What Nationality is Dave Hynes?
<|assistant|>
SELECT "nationality" FROM "round_four" WHERE "player"='dave hynes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: The Estevan Bruins (WCHL) are affiliated with what NHL team?
<|assistant|>
SELECT "nhl_team" FROM "round_four" WHERE "college_junior_club_team"='estevan bruins (wchl)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_records_against_other_count" (
"games" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_differential" text
);
Question: what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?
<|assistant|>
SELECT MAX("games") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<14 AND "wins">1 AND "draws"<2 AND "goals_for"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_records_against_other_count" (
"games" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_differential" text
);
Question: what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1
<|assistant|>
SELECT COUNT("wins") FROM "head_to_head_records_against_other_count" WHERE "games"<7 AND "goals_for">2 AND "goals_against"<6 AND "draws"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_records_against_other_count" (
"games" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_differential" text
);
Question: for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?
<|assistant|>
SELECT SUM("goals_for") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<9 AND "goal_differential"='0' AND "draws"<2 AND "wins"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_9_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament happened on 12 november 2006?
<|assistant|>
SELECT "tournament" FROM "singles_9_8_1" WHERE "date"='12 november 2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_9_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: what was the score on 6 june 2010?
<|assistant|>
SELECT "score" FROM "singles_9_8_1" WHERE "date"='6 june 2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belfast_and_county_down_railway" (
"type" text,
"fleet_numbers" text,
"quantity_made" text,
"manufacturer" text,
"date_made" text
);
Question: When was the railmotor made?
<|assistant|>
SELECT "date_made" FROM "belfast_and_county_down_railway" WHERE "type"='railmotor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belfast_and_county_down_railway" (
"type" text,
"fleet_numbers" text,
"quantity_made" text,
"manufacturer" text,
"date_made" text
);
Question: What are the fleet number for the 4-6-4t locomotive?
<|assistant|>
SELECT "fleet_numbers" FROM "belfast_and_county_down_railway" WHERE "type"='4-6-4t';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"fast_laps" text,
"points" text,
"pos" text
);
Question: How many fast laps have 0 points in the World Series by Nissan?
<|assistant|>
SELECT "fast_laps" FROM "career_results" WHERE "points"='0' AND "series"='world series by nissan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"fast_laps" text,
"points" text,
"pos" text
);
Question: How many fast laps are in 6 races with 30 points in the World Series by Nissan?
<|assistant|>
SELECT "fast_laps" FROM "career_results" WHERE "series"='world series by nissan' AND "races"='6' AND "points"='30';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"fast_laps" text,
"points" text,
"pos" text
);
Question: Which team has the points category of test driver?
<|assistant|>
SELECT "team" FROM "career_results" WHERE "points"='test driver';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_results" (
"season" text,
"series" text,
"team" text,
"races" text,
"wins" text,
"fast_laps" text,
"points" text,
"pos" text
);
Question: What is the position with 0 points in Season of 2007–08?
<|assistant|>
SELECT "pos" FROM "career_results" WHERE "points"='0' AND "season"='2007–08';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democratic_primary" (
"poll_source" text,
"dates_administered" text,
"dianne_feinstein" text,
"jerry_brown" text,
"antonio_villaraigosa" text,
"gavin_newsom" text,
"john_garamendi" text,
"jack_o_connell" text,
"steve_westly" text,
"bill_lockyer" text
);
Question: tell me the Dates administered that sees a Steve Westly* of ––, an Antonio Villaraigosa* of ––, and 47% for jerry brown.
<|assistant|>
SELECT "dates_administered" FROM "democratic_primary" WHERE "steve_westly"='––' AND "antonio_villaraigosa"='––' AND "jerry_brown"='47%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democratic_primary" (
"poll_source" text,
"dates_administered" text,
"dianne_feinstein" text,
"jerry_brown" text,
"antonio_villaraigosa" text,
"gavin_newsom" text,
"john_garamendi" text,
"jack_o_connell" text,
"steve_westly" text,
"bill_lockyer" text
);
Question: tell me the Antonio Villaraigosa* that has a Steve Westly* of ––, and 47% for jerry brown.
<|assistant|>
SELECT "antonio_villaraigosa" FROM "democratic_primary" WHERE "steve_westly"='––' AND "jerry_brown"='47%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the least year for wins more than 0
<|assistant|>
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the least wins for 6 points
<|assistant|>
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "points"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the wins for 1963 bultaco
<|assistant|>
SELECT "wins" FROM "motorcycle_grand_prix_results" WHERE "year"=1963 AND "team"='bultaco';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_winners" (
"year" real,
"film" text,
"director" text,
"nationality_of_director" text,
"award" text
);
Question: Year larger than 2008, and a Nationality of director of lebanon is what director?
<|assistant|>
SELECT "director" FROM "prize_winners" WHERE "year">2008 AND "nationality_of_director"='lebanon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_winners" (
"year" real,
"film" text,
"director" text,
"nationality_of_director" text,
"award" text
);
Question: ilm of taukukauppiaat has how many total number of years?
<|assistant|>
SELECT COUNT("year") FROM "prize_winners" WHERE "film"='taukukauppiaat';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_winners" (
"year" real,
"film" text,
"director" text,
"nationality_of_director" text,
"award" text
);
Question: Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?
<|assistant|>
SELECT "film" FROM "prize_winners" WHERE "award"='troisième prix' AND "year"<2010 AND "director"='jan komasa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prize_winners" (
"year" real,
"film" text,
"director" text,
"nationality_of_director" text,
"award" text
);
Question: Film of um sol alaranjado director is what nationality?
<|assistant|>
SELECT "nationality_of_director" FROM "prize_winners" WHERE "film"='um sol alaranjado';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the position for round 5 from alabama state?
<|assistant|>
SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "round"=5 AND "college"='alabama state';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?
<|assistant|>
SELECT COUNT("pick_num") FROM "indianapolis_colts_draft_history" WHERE "overall">131 AND "position"='wide receiver' AND "round"<5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: what is the highest round for anthony gonzalez?
<|assistant|>
SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='anthony gonzalez';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many times is brannon condren with and overall more than 131 drafted?
<|assistant|>
SELECT COUNT("round") FROM "indianapolis_colts_draft_history" WHERE "name"='brannon condren' AND "overall">131;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which rider has the time of +31.426?
<|assistant|>
SELECT "rider" FROM "moto_gp_classification" WHERE "time_retired"='+31.426';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?
<|assistant|>
SELECT MAX("grid") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "time_retired"='+1:01.894';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score for Australia with a place of 4?
<|assistant|>
SELECT "score" FROM "third_round" WHERE "country"='australia' AND "place"='4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the place of To par of e when Arron Oberholser was the player ?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "to_par"='e' AND "player"='arron oberholser';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score with a place of t6 for the player k.j. choi?
<|assistant|>
SELECT "score" FROM "third_round" WHERE "place"='t6' AND "player"='k.j. choi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the country for the player Tiger Woods?
<|assistant|>
SELECT "country" FROM "third_round" WHERE "player"='tiger woods';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the name of the player with a score of 72-68-70=210?
<|assistant|>
SELECT "player" FROM "third_round" WHERE "score"='72-68-70=210';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the name of the player with t6 as his place and a country of United states?
<|assistant|>
SELECT "player" FROM "third_round" WHERE "place"='t6' AND "country"='united states';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "150_yuan" (
"year" real,
"denomination" text,
"reverse" text,
"weight" text,
"diameter" text,
"fineness" text,
"series" text
);
Question: What is the fineness of the 2008 chinese cuju sport Reverse?
<|assistant|>
SELECT "fineness" FROM "150_yuan" WHERE "year"=2008 AND "reverse"='chinese cuju sport';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "150_yuan" (
"year" real,
"denomination" text,
"reverse" text,
"weight" text,
"diameter" text,
"fineness" text,
"series" text
);
Question: What's the diameter of the 2006 equestrian Reverse?
<|assistant|>
SELECT "diameter" FROM "150_yuan" WHERE "year"=2006 AND "reverse"='equestrian';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "150_yuan" (
"year" real,
"denomination" text,
"reverse" text,
"weight" text,
"diameter" text,
"fineness" text,
"series" text
);
Question: What denomination was produced in 2006?
<|assistant|>
SELECT "denomination" FROM "150_yuan" WHERE "year"=2006;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "150_yuan" (
"year" real,
"denomination" text,
"reverse" text,
"weight" text,
"diameter" text,
"fineness" text,
"series" text
);
Question: What was the fineness prior to 2007?
<|assistant|>
SELECT "fineness" FROM "150_yuan" WHERE "year"<2007;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "150_yuan" (
"year" real,
"denomination" text,
"reverse" text,
"weight" text,
"diameter" text,
"fineness" text,
"series" text
);
Question: What does the ii Series weigh?
<|assistant|>
SELECT "weight" FROM "150_yuan" WHERE "series"='ii series';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What loss has 10-16 as the record?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='10-16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the least attendance that has 3-5 as a record?
<|assistant|>
SELECT MIN("attendance") FROM "game_log" WHERE "record"='3-5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the average attendance for the date of april 4?
<|assistant|>
SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which opponent has april 2 as the date?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='april 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_fleet_size" (
"rank" real,
"airline" text,
"country" text,
"fleet_size" real,
"remarks" text
);
Question: What is the Remark of Airline of Dutch Antilles Express?
<|assistant|>
SELECT "remarks" FROM "current_fleet_size" WHERE "airline"='dutch antilles express';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
Question: What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?
<|assistant|>
SELECT "category" FROM "awards_and_nominations" WHERE "year"<2006 AND "result"='nominated' AND "title"='cold feet';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
Question: What is recorded as the lowest Year that has the Title of Cold Feet?
<|assistant|>
SELECT MIN("year") FROM "awards_and_nominations" WHERE "title"='cold feet';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
Question: What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?
<|assistant|>
SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "year"=2006 AND "title"='pierrepoint';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
Question: What Title is listed for the Year of 1999?
<|assistant|>
SELECT "title" FROM "awards_and_nominations" WHERE "year"=1999;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"title" text,
"result" text
);
Question: What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?
<|assistant|>
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "title"='the queen' AND "award"='british academy film award' AND "result"='won';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1942" (
"date" text,
"opponent" text,
"city" text,
"result" text,
"score" text
);
Question: What was the date of the game against Northwestern?
<|assistant|>
SELECT "date" FROM "1942" WHERE "opponent"='northwestern';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1942" (
"date" text,
"opponent" text,
"city" text,
"result" text,
"score" text
);
Question: Who was the opponent when the city was Louisville?
<|assistant|>
SELECT "opponent" FROM "1942" WHERE "city"='louisville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1942" (
"date" text,
"opponent" text,
"city" text,
"result" text,
"score" text
);
Question: What was the score of the game against Minnesota?
<|assistant|>
SELECT "score" FROM "1942" WHERE "opponent"='minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: On what date was a friendly competition and a result of 3–0?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "result"='3–0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: When was the score 1–0, and the result 4–0?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "score"='1–0' AND "result"='4–0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "venue"='dakar , senegal' AND "date"='3 september 2011' AND "score"='2–0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Which time has a Rank larger than 3, and a Name of andrey kapralov?
<|assistant|>
SELECT "time" FROM "semifinal_2" WHERE "rank">3 AND "name"='andrey kapralov';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Which Nationality has a Name of igor koleda?
<|assistant|>
SELECT "nationality" FROM "semifinal_2" WHERE "name"='igor koleda';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_nordic_companies_according_to_fo" (
"rank" text,
"company" text,
"headquarters" text,
"industry" text,
"revenue_billion" real,
"profits_billion" real,
"s_asset_billion" real,
"market_value_billion" real
);
Question: Where is the headquarters of the getinge group located?
<|assistant|>
SELECT "headquarters" FROM "largest_nordic_companies_according_to_fo" WHERE "company"='getinge group';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_nordic_companies_according_to_fo" (
"rank" text,
"company" text,
"headquarters" text,
"industry" text,
"revenue_billion" real,
"profits_billion" real,
"s_asset_billion" real,
"market_value_billion" real
);
Question: How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?
<|assistant|>
SELECT COUNT("s_asset_billion") FROM "largest_nordic_companies_according_to_fo" WHERE "headquarters"='stockholm, sweden' AND "market_value_billion"<39.8 AND "revenue_billion">5.8 AND "profits_billion"=1.1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_8_7" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the date for zi yan jie zheng opponent
<|assistant|>
SELECT "date" FROM "doubles_15_8_7" WHERE "opponents"='zi yan jie zheng';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_8_7" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the partner for 14 october 2007
<|assistant|>
SELECT "partner" FROM "doubles_15_8_7" WHERE "date"='14 october 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_8_7" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the partner for opponents of alexandra dulgheru magdaléna rybáriková
<|assistant|>
SELECT "partner" FROM "doubles_15_8_7" WHERE "opponents"='alexandra dulgheru magdaléna rybáriková';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_8_7" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the opponents for 24 july 2011
<|assistant|>
SELECT "opponents" FROM "doubles_15_8_7" WHERE "date"='24 july 2011';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is Ken Walter's lowest pick number with an overall pick number larger than 195?
<|assistant|>
SELECT MIN("pick_num") FROM "indianapolis_colts_draft_history" WHERE "name"='ken walter' AND "overall">195;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_2_physical_properties_of_polypheny" (
"polyphenyl_ether" text,
"appearance" text,
"thermal_stability_f_c" text,
"viscosity_c_st_at_100_f_38_c" real,
"viscosity_c_st_at_210_f_99_c" real
);
Question: What does Polyphenyl Ether of 3- and 4-ring oxythio look like?
<|assistant|>
SELECT "appearance" FROM "table_2_physical_properties_of_polypheny" WHERE "polyphenyl_ether"='3- and 4-ring oxythio';<|endoftext|>
|
<|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: How long was the course from Naples to Foggia?
<|assistant|>
SELECT "distance" FROM "stage_results" WHERE "course"='naples to foggia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17_14_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the score with opponent of milos raonic
<|assistant|>
SELECT "score" FROM "singles_17_14_titles_3_runners_up" WHERE "opponent"='milos raonic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17_14_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the date with a hard surface and tournament of usa f5, brownsville
<|assistant|>
SELECT "date" FROM "singles_17_14_titles_3_runners_up" WHERE "surface"='hard' AND "tournament"='usa f5, brownsville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17_14_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the outcome with tournament of mexico f12, obregón
<|assistant|>
SELECT "outcome" FROM "singles_17_14_titles_3_runners_up" WHERE "tournament"='mexico f12, obregón';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_17_14_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Name the tournament for march 25, 2012
<|assistant|>
SELECT "tournament" FROM "singles_17_14_titles_3_runners_up" WHERE "date"='march 25, 2012';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_12_7_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the final score for the August 25, 1996 match?
<|assistant|>
SELECT "score_in_the_final" FROM "singles_12_7_5" WHERE "date"='august 25, 1996';<|endoftext|>
|
<|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 average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?
<|assistant|>
SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "points"<6 AND "engine"='maserati straight-6';<|endoftext|>
|
<|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 entrant had a Maserati 250F chassis and fewer than 6 points before 1957?
<|assistant|>
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "year"<1957 AND "points"<6;<|endoftext|>
|
<|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 chassis has a year of 1951?
<|assistant|>
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"=1951;<|endoftext|>
|
<|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 chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?
<|assistant|>
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "entrant"='officine alfieri maserati' AND "points"<6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?
<|assistant|>
SELECT MAX("lane") FROM "semifinal_1" WHERE "time"<49.67 AND "name"='michael klim' AND "rank"<1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?
<|assistant|>
SELECT MIN("lane") FROM "semifinal_1" WHERE "name"='lorenzo vismara' AND "time">49.67;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who was the visitor on January 24?
<|assistant|>
SELECT "visitor" FROM "january" WHERE "date"='january 24';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who was the home team on January 8?
<|assistant|>
SELECT "home" FROM "january" WHERE "date"='january 8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Who was the Opponent when the Attendance was 38,150?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "attendance"='38,150';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: Where is NCAA division ii Franklin Pierce University located at?
<|assistant|>
SELECT "location" FROM "former_members" WHERE "classification"='ncaa division ii' AND "institution"='franklin pierce university';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: Post University has what nickname?
<|assistant|>
SELECT "nickname" FROM "former_members" WHERE "institution"='post university';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: The River Hawks belonged to what current conference?
<|assistant|>
SELECT "current_conference" FROM "former_members" WHERE "nickname"='river hawks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: What is the nickname of the school located in Manchester, New Hampshire?
<|assistant|>
SELECT "nickname" FROM "former_members" WHERE "location"='manchester, new hampshire';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: What is the classification for the school in the NEC Conference located in New Britain, Connecticut?
<|assistant|>
SELECT "classification" FROM "former_members" WHERE "current_conference"='nec' AND "location"='new britain, connecticut';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"current_conference" text,
"classification" text
);
Question: What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils?
<|assistant|>
SELECT "institution" FROM "former_members" WHERE "classification"='ncaa division i' AND "current_conference"='nec' AND "nickname"='blue devils';<|endoftext|>
|
<|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 was the record at the home of the Montreal Maroons
<|assistant|>
SELECT "record" FROM "game_log" WHERE "home"='montreal maroons';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: which school shows #/county of 29 hamilton?
<|assistant|>
SELECT "school" FROM "membership" WHERE "num_county"='29 hamilton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: what is the mascot for the enrollment 08-09 of 320?
<|assistant|>
SELECT "mascot" FROM "membership" WHERE "enrollment_08_09"=320;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: what is the school in michigantown?
<|assistant|>
SELECT "school" FROM "membership" WHERE "location"='michigantown';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"city_state" text,
"country" text,
"status" text,
"status_date" text,
"episode_number" text
);
Question: Which episode number was associated with Vibhav Gautam?
<|assistant|>
SELECT "episode_number" FROM "contestants" WHERE "name"='vibhav gautam';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"city_state" text,
"country" text,
"status" text,
"status_date" text,
"episode_number" text
);
Question: Which city/state was associated with a contestant whose status was 2nd runner-up?
<|assistant|>
SELECT "city_state" FROM "contestants" WHERE "status"='2nd runner-up';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"city_state" text,
"country" text,
"status" text,
"status_date" text,
"episode_number" text
);
Question: Which contestant was associated with episode 34?
<|assistant|>
SELECT "name" FROM "contestants" WHERE "episode_number"='episode 34';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"name" text,
"city_state" text,
"country" text,
"status" text,
"status_date" text,
"episode_number" text
);
Question: What is the status of the city/state of Indor, Madhya Pradesh?
<|assistant|>
SELECT "status_date" FROM "contestants" WHERE "city_state"='indor, madhya pradesh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: What role did John Wayne play in The Trail Beyond, directed by R.N. Bradbury?
<|assistant|>
SELECT "role" FROM "1934" WHERE "director"='r.n. bradbury' AND "title"='the trail beyond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Who directed the movie The Star Packer?
<|assistant|>
SELECT "director" FROM "1934" WHERE "title"='the star packer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?
<|assistant|>
SELECT "role" FROM "1934" WHERE "leading_lady"='sheila terry' AND "title"='the lawless frontier';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: In what movie did John Wayne play the role of Chris Morrell?
<|assistant|>
SELECT "title" FROM "1934" WHERE "role"='chris morrell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: What role did John Wayne play with Verna Hillie as the leading lady?
<|assistant|>
SELECT "role" FROM "1934" WHERE "leading_lady"='verna hillie';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1934" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
Question: Who directed the movie when John Wayne played the role of John Travers?
<|assistant|>
SELECT "director" FROM "1934" WHERE "role"='john travers';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.