text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "man_of_the_match_award" (
"s_no" real,
"opponent" text,
"venue" text,
"date" text,
"match_performance" text
);
Question: what is the number of people in sri lanka
<|assistant|>
SELECT AVG("s_no") FROM "man_of_the_match_award" WHERE "opponent"='sri lanka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1998" text
);
Question: What was the position of the Slavia team in 1998?
<|assistant|>
SELECT "position_in_1998" FROM "teams_and_venues" WHERE "team"='slavia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1998" text
);
Question: What was the position of the team that played in a venue in Dinamo, Minsk with a capacity larger than 3,550?
<|assistant|>
SELECT "position_in_1998" FROM "teams_and_venues" WHERE "capacity">'3,550' AND "venue"='dinamo, minsk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1998" text
);
Question: Which team is located in Lida?
<|assistant|>
SELECT "team" FROM "teams_and_venues" WHERE "location"='lida';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4_1999" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
Question: Which episode number visited India?
<|assistant|>
SELECT "episode_no" FROM "series_4_1999" WHERE "countries_visited"='india';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4_1999" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
Question: Which episode title featured a visit to the country of Cuba?
<|assistant|>
SELECT "episode_title" FROM "series_4_1999" WHERE "countries_visited"='cuba';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Which position does Jesse Boulerice play?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "player"='jesse boulerice';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wins_in_a_season" (
"driver" text,
"season" text,
"wins" real,
"entries" text,
"percentage" text
);
Question: What is the fewest number of wins in the chart for Ayrton Senna?
<|assistant|>
SELECT MIN("wins") FROM "most_wins_in_a_season" WHERE "driver"='ayrton senna';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wins_in_a_season" (
"driver" text,
"season" text,
"wins" real,
"entries" text,
"percentage" text
);
Question: What is the number of entries associated with more than 11 wins?
<|assistant|>
SELECT "entries" FROM "most_wins_in_a_season" WHERE "wins">11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: Name the most points with lost more than 1 and games less than 5
<|assistant|>
SELECT MAX("points") FROM "group_2" WHERE "lost">1 AND "games"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: Name the sum of drawn with lost more than 1 and games less than 5
<|assistant|>
SELECT SUM("drawn") FROM "group_2" WHERE "lost">1 AND "games"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: Name the least lost with points more than 6 and games less than 5
<|assistant|>
SELECT MIN("lost") FROM "group_2" WHERE "points">6 AND "games"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: Name the sum of points with games less than 5
<|assistant|>
SELECT SUM("points") FROM "group_2" WHERE "games"<5;<|endoftext|> |
<|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 location of the bout that lasted 5:00 and led to a 6-2-1 record?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='6-2-1';<|endoftext|> |
<|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 record after the bout with Alexis Vila?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='alexis vila';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year_a" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: Who was a defensive end at California?
<|assistant|>
SELECT "player_name" FROM "player_selections" WHERE "position"='defensive end' AND "college"='california';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year_a" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: Which players were selected after 2011?
<|assistant|>
SELECT "player_name" FROM "player_selections" WHERE "year_a">2011;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year_a" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
);
Question: Who was a linebacker at Tennessee?
<|assistant|>
SELECT "player_name" FROM "player_selections" WHERE "position"='linebacker' AND "college"='tennessee';<|endoftext|> |
<|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 lowest one that has Events larger than 30?
<|assistant|>
SELECT MIN("wins") FROM "leaders" WHERE "events">30;<|endoftext|> |
<|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 Events have Earnings ($) of 1,841,117, and a Rank smaller than 4?
<|assistant|>
SELECT SUM("events") FROM "leaders" WHERE "earnings"='1,841,117' AND "rank"<4;<|endoftext|> |
<|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: How many Events have Earnings ($) of 2,054,334?
<|assistant|>
SELECT COUNT("events") FROM "leaders" WHERE "earnings"='2,054,334';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What day were the results 3:0?
<|assistant|>
SELECT "date" FROM "1987" WHERE "results"='3:0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What city played on april 29?
<|assistant|>
SELECT "city" FROM "1987" WHERE "date"='april 29';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: Which city has an opponent of England?
<|assistant|>
SELECT "city" FROM "1987" WHERE "opponent"='england';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What day was the opponent Austria?
<|assistant|>
SELECT "date" FROM "1987" WHERE "opponent"='austria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_sovereign_nations_with_fewer_tha" (
"rank" real,
"country_territory_entity" text,
"population" real,
"pct_of_world_population" text,
"region" text
);
Question: Name the most population for seychelles and rank less than 13
<|assistant|>
SELECT MAX("population") FROM "list_of_sovereign_nations_with_fewer_tha" WHERE "country_territory_entity"='seychelles' AND "rank"<13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?
<|assistant|>
SELECT "frequency" FROM "radio" WHERE "owner"='canadian broadcasting corporation' AND "branding"='cbc radio one';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the frequency of the soft adult contemporary stations?
<|assistant|>
SELECT "frequency" FROM "radio" WHERE "format"='soft adult contemporary';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who owns the station with the frequency FM 92.1?
<|assistant|>
SELECT "owner" FROM "radio" WHERE "frequency"='fm 92.1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?
<|assistant|>
SELECT "branding" FROM "radio" WHERE "owner"='canadian broadcasting corporation' AND "frequency"='fm 97.7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
<|assistant|>
SELECT "f_laps" FROM "career_summary" WHERE "podiums"='1' AND "season"=2000 AND "final_placing"='nc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which Series has Poles of 0, and Races of 17?
<|assistant|>
SELECT "series" FROM "career_summary" WHERE "poles"='0' AND "races"='17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which Team Name has Poles of 0, and a Final Placing of 29th?
<|assistant|>
SELECT "team_name" FROM "career_summary" WHERE "poles"='0' AND "final_placing"='29th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which Series has a Final Placing of 9th, and Podiums of 2?
<|assistant|>
SELECT "series" FROM "career_summary" WHERE "final_placing"='9th' AND "podiums"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which Series has a Team Name of sunred engineering?
<|assistant|>
SELECT "series" FROM "career_summary" WHERE "team_name"='sunred engineering';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which Points have Wins of 0, and a Final Placing of 21st?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "wins"='0' AND "final_placing"='21st';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_women" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Name the bronze for lahti
<|assistant|>
SELECT "bronze" FROM "world_championships_women" WHERE "place"='lahti';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?
<|assistant|>
SELECT "rank" FROM "top_scorers" WHERE "goals">10 AND "scorer"='choi sang-kuk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Rank has a Scorer of lee sang-cheol?
<|assistant|>
SELECT "rank" FROM "top_scorers" WHERE "scorer"='lee sang-cheol';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"rank" text,
"scorer" text,
"club" text,
"goals" real,
"matches" text
);
Question: Which Club has a Rank of 5?
<|assistant|>
SELECT "club" FROM "top_scorers" WHERE "rank"='5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rep_ron_paul_u_s_house_of_representative" (
"years_covered" text,
"all_bills_sponsored" real,
"all_amendments_sponsored" real,
"all_bills_cosponsored" real,
"all_amendments_cosponsored" real,
"original_bills_cosponsored" real,
"original_amendments_cosponsored" real,
"bill_support_withdrawn" real,
"amendment_support_withdrawn" real
);
Question: How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0?
<|assistant|>
SELECT MIN("original_amendments_cosponsored") FROM "rep_ron_paul_u_s_house_of_representative" WHERE "all_bills_sponsored"<64 AND "bill_support_withdrawn"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Who is the democratic incumbent that was re-elected?
<|assistant|>
SELECT "incumbent" FROM "california" WHERE "status"='re-elected' AND "party"='democratic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: What year was republican, re-elected incumbent John all barham elected?
<|assistant|>
SELECT "elected" FROM "california" WHERE "party"='republican' AND "status"='re-elected' AND "incumbent"='john all barham';<|endoftext|> |
<|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: What day in october was game number 4 with under 3 points?
<|assistant|>
SELECT COUNT("october") FROM "regular_season" WHERE "game"=4 AND "points"<3;<|endoftext|> |
<|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" text
);
Question: Which school was the drafted player from in a pick larger than 181?
<|assistant|>
SELECT "school" FROM "nfl_draft" WHERE "pick">181;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: Which points against has 17 as the lost?
<|assistant|>
SELECT "points_against" FROM "2008_2009_table" WHERE "lost"='17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What lost has 528 as the points?
<|assistant|>
SELECT "lost" FROM "2008_2009_table" WHERE "points_for"='528';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the drawn that has 16 as the trys bonus?
<|assistant|>
SELECT "drawn" FROM "2008_2009_table" WHERE "try_bonus"='16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What club has tries for in the category tries for?
<|assistant|>
SELECT "club" FROM "2008_2009_table" WHERE "tries_for"='tries for';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What is the drawn that has 22 for played, and 96 for points?
<|assistant|>
SELECT "drawn" FROM "2008_2009_table" WHERE "played"='22' AND "points"='96';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
Question: What points have 1 for drawn, and 16 as a try bonus?
<|assistant|>
SELECT "points_for" FROM "2008_2009_table" WHERE "drawn"='1' AND "try_bonus"='16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_fifa_world_cup" (
"date" text,
"time_cest" real,
"team_num1" text,
"res" text,
"team_num2" text,
"round" text,
"spectators" real
);
Question: What is team 1 in group h?
<|assistant|>
SELECT "team_num1" FROM "2006_fifa_world_cup" WHERE "round"='group h';<|endoftext|> |
<|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 was the score on 15 march 2006?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "date"='15 march 2006';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: Which winning team has a winning pitcher of Chris Young and was played in Arlington?
<|assistant|>
SELECT "winning_team" FROM "lone_star_series" WHERE "winning_pitcher"='chris young' AND "location"='arlington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
Question: What winning team has a losing pitcher of Juan Dominguez?
<|assistant|>
SELECT "winning_team" FROM "lone_star_series" WHERE "losing_pitcher"='juan dominguez';<|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: Who was the opponent on August 14?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='august 14';<|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 loss had a record of 79-49?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='79-49';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
Question: What is the semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unknown spokesperson?
<|assistant|>
SELECT "semi_final_dual_television_commentator" FROM "commentators_and_spokespersons" WHERE "grand_final_television_commentator"='pierre tchernia' AND "spokesperson"='unknown';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
Question: What is the semi-final television commentator status in 1962 with an unknown spokesperson?
<|assistant|>
SELECT "semi_final_television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='unknown' AND "year_s"=1962;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
Question: What is the grand final television commentator status after 1959 when Dave was the grand final dual television commentator and Marie Myriam was the spokesperson?
<|assistant|>
SELECT "grand_final_television_commentator" FROM "commentators_and_spokespersons" WHERE "year_s">1959 AND "grand_final_dual_television_commentator"='dave' AND "spokesperson"='marie myriam';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
Question: What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson?
<|assistant|>
SELECT "grand_final_dual_television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='amaury vassili';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"state" text,
"name" text,
"hometown" text,
"age_1" real,
"talent" text
);
Question: What state has lincoln, de as the hometown?
<|assistant|>
SELECT "state" FROM "delegates" WHERE "hometown"='lincoln, de';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the ship with hull number of aor-6
<|assistant|>
SELECT "ship" FROM "ships" WHERE "hull_no"='aor-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the hull number of Commissioned– Decommissioned of 1973–1996
<|assistant|>
SELECT "hull_no" FROM "ships" WHERE "commissioned_decommissioned"='1973–1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the commissioned-decommissioned for oakland and NVR page of aor-1
<|assistant|>
SELECT "commissioned_decommissioned" FROM "ships" WHERE "home_port"='oakland' AND "nvr_page"='aor-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the home port for kansas city
<|assistant|>
SELECT "home_port" FROM "ships" WHERE "ship"='kansas city';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the commissioned-decommissioned for NVR page of aor-7
<|assistant|>
SELECT "commissioned_decommissioned" FROM "ships" WHERE "nvr_page"='aor-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships" (
"ship" text,
"hull_no" text,
"builder" text,
"home_port" text,
"commissioned_decommissioned" text,
"nvr_page" text
);
Question: Name the ship for oakland home port and NVR page of aor-3
<|assistant|>
SELECT "ship" FROM "ships" WHERE "home_port"='oakland' AND "nvr_page"='aor-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_deep_water" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text,
"customer" text
);
Question: What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?
<|assistant|>
SELECT "name" FROM "ultra_deep_water" WHERE "location"='gulf of mexico' AND "type"='ship' AND "entered_service"='1999';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_deep_water" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text,
"customer" text
);
Question: What was the water depth that entered service in 2001 named Cajun Express?
<|assistant|>
SELECT "water_depth" FROM "ultra_deep_water" WHERE "entered_service"='2001' AND "name"='cajun express';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_deep_water" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text,
"customer" text
);
Question: What was the water depth in the Gulf of Mexico named Discoverer Clear Leader?
<|assistant|>
SELECT "water_depth" FROM "ultra_deep_water" WHERE "location"='gulf of mexico' AND "name"='discoverer clear leader';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_deep_water" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text,
"customer" text
);
Question: What is the name of a location in Nigeria?
<|assistant|>
SELECT "name" FROM "ultra_deep_water" WHERE "location"='nigeria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_deep_water" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text,
"customer" text
);
Question: What location entered service in 1999 and had a customer of Anadarko?
<|assistant|>
SELECT "location" FROM "ultra_deep_water" WHERE "entered_service"='1999' AND "customer"='anadarko';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the Score on January 30?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "date"='january 30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who were the Visitor of the Toronto Maple Leafs Home game on December 22?
<|assistant|>
SELECT "visitor" FROM "regular_season" WHERE "home"='toronto maple leafs' AND "date"='december 22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: On what Date was the Record 9–6–4?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "record"='9–6–4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the Score on March 1?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "date"='march 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"primary_conference" text
);
Question: What is the primary conference that was founded before 1866 and has an affiliation of private/catholic?
<|assistant|>
SELECT "primary_conference" FROM "membership" WHERE "founded"<1866 AND "affiliation"='private/catholic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"primary_conference" text
);
Question: What is the total enrollment for an affiliation of public, and was founded before 1866?
<|assistant|>
SELECT COUNT("enrollment") FROM "membership" WHERE "affiliation"='public' AND "founded"<1866;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"primary_conference" text
);
Question: What is the affiliation for towson, md?
<|assistant|>
SELECT "affiliation" FROM "membership" WHERE "location"='towson, md';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"primary_conference" text
);
Question: What is the total enrollment for a private/catholic affiliation and founded after 1842?
<|assistant|>
SELECT COUNT("enrollment") FROM "membership" WHERE "affiliation"='private/catholic' AND "founded">1842;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"primary_conference" text
);
Question: What is the number founded for the nickname mountain hawks?
<|assistant|>
SELECT COUNT("founded") FROM "membership" WHERE "nickname"='mountain hawks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bbl_cup_winners" (
"season" real,
"winner" text,
"finalist" text,
"score" text,
"host_city" text
);
Question: What is the score of the season in the host city kėdainiai?
<|assistant|>
SELECT "score" FROM "bbl_cup_winners" WHERE "host_city"='kėdainiai';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bbl_cup_winners" (
"season" real,
"winner" text,
"finalist" text,
"score" text,
"host_city" text
);
Question: Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?
<|assistant|>
SELECT "winner" FROM "bbl_cup_winners" WHERE "finalist"='lietuvos rytas' AND "season"<2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bbl_cup_winners" (
"season" real,
"winner" text,
"finalist" text,
"score" text,
"host_city" text
);
Question: Who was the finalist in the 2010 season in the host city tartu?
<|assistant|>
SELECT "finalist" FROM "bbl_cup_winners" WHERE "host_city"='tartu' AND "season"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bbl_cup_winners" (
"season" real,
"winner" text,
"finalist" text,
"score" text,
"host_city" text
);
Question: Who was the winner during the 2009 season?
<|assistant|>
SELECT "winner" FROM "bbl_cup_winners" WHERE "season"=2009;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bbl_cup_winners" (
"season" real,
"winner" text,
"finalist" text,
"score" text,
"host_city" text
);
Question: What is the host city during the 2012 season?
<|assistant|>
SELECT "host_city" FROM "bbl_cup_winners" WHERE "season"=2012;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: what game had a score of 4–6, 6–3, 7–6(10)?
<|assistant|>
SELECT "tournament" FROM "singles" WHERE "score"='4–6, 6–3, 7–6(10)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: When did eleonor magdalene of the palatinate-neuburg become duchess?
<|assistant|>
SELECT "became_duchess" FROM "house_of_habsburg_1653_1722" WHERE "name"='eleonor magdalene of the palatinate-neuburg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: Which Marriage has a Became Duchess of 12 december 1666?
<|assistant|>
SELECT "marriage" FROM "house_of_habsburg_1653_1722" WHERE "became_duchess"='12 december 1666';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: When did the person die who was born on 18 november 1630?
<|assistant|>
SELECT "death" FROM "house_of_habsburg_1653_1722" WHERE "birth"='18 november 1630';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: Which Birth has a Became Duchess of 17 april 1711 husband's ascension?
<|assistant|>
SELECT "birth" FROM "house_of_habsburg_1653_1722" WHERE "became_duchess"='17 april 1711 husband''s ascension';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: Which Spouse has a Birth of 30 may 1653?
<|assistant|>
SELECT "spouse" FROM "house_of_habsburg_1653_1722" WHERE "birth"='30 may 1653';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "house_of_habsburg_1653_1722" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
);
Question: When did the person born on 6 january 1655 die?
<|assistant|>
SELECT "death" FROM "house_of_habsburg_1653_1722" WHERE "birth"='6 january 1655';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_six_nations_championship_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?
<|assistant|>
SELECT "club_province" FROM "2008_six_nations_championship_squads" WHERE "caps">15 AND "player"='chris cusiter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_six_nations_championship_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the date of birth for the player from Ulster and plays at Centre position?
<|assistant|>
SELECT "date_of_birth_age" FROM "2008_six_nations_championship_squads" WHERE "club_province"='ulster' AND "position"='centre';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "200_or_more_deaths" (
"disaster" text,
"type" text,
"location" text,
"deaths" text,
"date" text
);
Question: What type of disaster is rms atlantic categorized in that was located in Nova Scotia?
<|assistant|>
SELECT "type" FROM "200_or_more_deaths" WHERE "location"='nova scotia' AND "disaster"='rms atlantic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "200_or_more_deaths" (
"disaster" text,
"type" text,
"location" text,
"deaths" text,
"date" text
);
Question: What is the type of disaster that the Arrow Air Flight 1285 categorized in?
<|assistant|>
SELECT "type" FROM "200_or_more_deaths" WHERE "disaster"='arrow air flight 1285';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "200_or_more_deaths" (
"disaster" text,
"type" text,
"location" text,
"deaths" text,
"date" text
);
Question: What is the disaster that was located in Ontario with 223 deaths?
<|assistant|>
SELECT "disaster" FROM "200_or_more_deaths" WHERE "location"='ontario' AND "deaths"='223';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "200_or_more_deaths" (
"disaster" text,
"type" text,
"location" text,
"deaths" text,
"date" text
);
Question: How many deaths were there during the shipwreck in 1873?
<|assistant|>
SELECT "deaths" FROM "200_or_more_deaths" WHERE "type"='shipwreck' AND "date"='1873';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.