text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who were the runners-up at the Alfred Dunhill Links Champ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
);
Question: Name the highest grid for Laps more than 137 and ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
);
Question: I want the total number of rank for Grid less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
);
Question: Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
<|assistant|>
SELECT "nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"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 Home wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: I want the sum of NGC ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: Tell me the right asce... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: I want the constellati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: I want the NGC number ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average crowd when the home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the crowd total at mcg?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
);
Question: How many Red Breasted Nuthatch coins created before 2007 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
);
Question: What year was the downy woodpecker coin created?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
);
Question: Which artist created coins before 2010?
<|assistant|>
SEL... |
<|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 "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 "twin_town" (
"village_german" text,
"village_slovenian" text,
"number_of_peoople_1991" real,
"percent_of_slovenes_1991" text,
"percent_of_slovenes_1951" text
);
Question: What percentage of Slo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has an Away team of south me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Crowd has an Away team score of 17... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has a Home team score of 13.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team scored 21.10 (136)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the Melbourne team score in thei... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team plays at the arden street... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is Home team Venue for the hawthorn ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What Home team plays at the princes park ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: Was the game against the Rattlers at the United Sports Training Center a home game or an awa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What was the opponent for the game at Multi-sport Field?
<|assistant|>
SELECT "opponent" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: What is the result of the away game played on August 4?
<|assistant|>
SELECT "result" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
Question: On which field was the game played on July 12?
<|assistant|>
SELECT "field" FROM "schedule" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"result" text,
"competition" text,
"scored" real
);
Question: At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Quali... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"result" text,
"competition" text,
"scored" real
);
Question: What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_10_5_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the tournamen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "update_november_14_2012" (
"player" text,
"games" real,
"goals" real,
"first_games" text,
"last_games" text
);
Question: How many goals does mitsuo kato have?
<|assistant|>
SELECT MAX("goals") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: Which engine has the entrant scuderia ferrari and is driven by Raymond So... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: What Chassis does Reg Parnell drive?
<|assistant|>
SELECT "chassis" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is Ryan McCay's speed that has a rank better than 8?
<|assistant|>
SELECT "speed" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What's the name of the team that went 113.316mph?
<|assistant|>
SELECT "team" FROM "juni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What's Matts Nilsson's team that's ranked better than 7?
<|assistant|>
SELECT "team" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "air_movement_table_mission_boston" (
"serial" real,
"airborne_unit" text,
"troop_carrier_group" text,
"num_of_c_47s" real,
"uk_base" text,
"drop_zone" text,
"drop_zone_time" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "air_movement_table_mission_boston" (
"serial" real,
"airborne_unit" text,
"troop_carrier_group" text,
"num_of_c_47s" real,
"uk_base" text,
"drop_zone" text,
"drop_zone_time" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"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 "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
);
Question: Tell me the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"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 "wrestling" (
"athlete" text,
"event" text,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"final" text
);
Question: Which athlete in the 76 kg class, did ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_squad" (
"name" text,
"date_of_birth_age" text,
"club" text,
"caps" text,
"goals" text
);
Question: What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_squad" (
"name" text,
"date_of_birth_age" text,
"club" text,
"caps" text,
"goals" text
);
Question: Which club is associated with Hafiz Abu Sujad?
<|assistant|>
SELECT "club" FROM "curr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of a rank whose nation is West Germany and has bronze larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total of Bronze with a total smaller than 3, and a nation of Poland... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
);
Question: What were the total receipts... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
);
Question: How much money was spent in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
);
Question: How much money was raised in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
);
Question: How much cash was on hand wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: When the driver peter gethin has a grid less than 25, what is the average number ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team was the home team when playing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team when they played R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the crowd number when Hawthorn w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_founders_cup" (
"season" text,
"stage_reached" text,
"against" text,
"score" text,
"venue" text
);
Question: What is the stage reached for venue edmonton green?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the average round for Club team of garmisch-partenkirchen riessersee s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: What richmond player played against st kilda?
<|assistant|>
SELECT "player" FROM "goal_to_win"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: What player played in 2000?
<|assistant|>
SELECT "player" FROM "goal_to_win" WHERE "year"=2000... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: What year for geelong player john roberts?
<|assistant|>
SELECT "year" FROM "goal_to_win" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What's the authority when the roll is 40?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What's the authority when the roll is less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What's the roll for summerland primary when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_table" (
"l_cr_no" real,
"type" text,
"manufacturer" text,
"delivered" text,
"name" text,
"jt_cttee_no" real,
"1845_disposal" text
);
Question: What is the name where the delivered ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
);
Question: What is the Original U.S. air-date for the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
);
Question: What is the Original Canadian air-date that... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
);
Question: What is the name of the author of " jerry w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
);
Question: What was the Original Canadian air-date for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team faced an away team that s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team's venue is junction oval?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which venue was melbourne the away team o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home teams score against the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
Question: What is the average long that Ramon Richardson played and an average greater than 5.5?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
Question: Which has and average less than 3 and the lowest yards?
<|assistant|>
SELECT MIN("yards") FROM "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
Question: What is the average rec that is greater than 10 and has 40 yards?
<|assistant|>
SELECT AVG("rec")... |
<|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 "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 "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: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest Shooting Total with a Bronze less than 0?
<|assistant|>
SELECT MAX("t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the football Bronze with more than 1 Silver?
<|assistant|>
SELECT AVG("bronze") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: With 1 Gold, more than 2 Bronze and Total greater than 1, what is the Silver?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: With more than 1 Gold and Silver and Total Sport, what is the Total?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_canadian_tire_series" (
"year" real,
"date" text,
"driver" text,
"team" text,
"distance_duration" text
);
Question: What year does robin buck go 44 laps?
<|assistant|>
SELECT "year" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_canadian_tire_series" (
"year" real,
"date" text,
"driver" text,
"team" text,
"distance_duration" text
);
Question: How many years does Team wal-mart / tide participate?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which score has a Result of 11–0?
<|assistant|>
SELECT "score" FROM "internationa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which result has a Score of 1–1?
<|assistant|>
SELECT "result" FROM "internationa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which score has a Result of 11–0?
<|assistant|>
SELECT "score" FROM "internationa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game with an 11-32-11 record?
<|assistant|>
SELECT "score" FROM "february... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the home team of the game where New Jersey was the visitor team and the record was 11-35-1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the visitor team of the game with Chicago as the home team?
<|assistant|>
SELECT "visitor"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the score of the game on February 27 with New Jersey as the visitor team?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the home team of the game on February 3?
<|assistant|>
SELECT "home" FROM "february" WHERE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.