text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competitions" (
"competition" text,
"current_position_round" text,
"final_position_round" text,
"first_match" text,
"last_match" text
);
Question: Which competition had a final position/round o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competitions" (
"competition" text,
"current_position_round" text,
"final_position_round" text,
"first_match" text,
"last_match" text
);
Question: Which first match had a final position/round i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "multiple_asian_games_gold_medalists" (
"athlete" text,
"sport" text,
"asian_games" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of br... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "multiple_asian_games_gold_medalists" (
"athlete" text,
"sport" text,
"asian_games" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of sil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_win_loss" text
);
Question: What is the 2009 value with a 1r in 2010 an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_win_loss" text
);
Question: What is the 2009 value with a 2010 A value?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"career_win_loss" text
);
Question: What is the 2010 value with A in 2008, A in... |
<|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 on april 24?
<|assistant|>
SELECT AVG("attend... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the score of the away team when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What company was Constructor when there were 16 laps and grid was 9?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the number of the grid when there was a Time/Retired of engine and less than 9 laps... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_peterborough_united_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: what was the attendance for a home venue and a w 3-0 result?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_peterborough_united_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: what was the attendance at the home venue with result w 3-1?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_peterborough_united_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: where did rochdale play as opponent?
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
);
Question: Which home team played in front of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
);
Question: Which team was hosted at Adelaide ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
Question: When was a report not held?
<|assistant|>
SELECT "year" FROM "by_year" WHERE "report"='not... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: Who was the visitor when vancouver was at home?
<|assistan... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the decision when new jersey was away?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "message_format" (
"subframe_num" real,
"page_num" text,
"name" text,
"word_num" real,
"bits" text,
"scale" text,
"signed" text
);
Question: What is URA Index scale?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "message_format" (
"subframe_num" real,
"page_num" text,
"name" text,
"word_num" real,
"bits" text,
"scale" text,
"signed" text
);
Question: What is the scale of sv_health with a word number... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year_of_award" real,
"athlete" text,
"nation_of_citizenship" text,
"team" text,
"competition_governing_body_or_league" text,
"sport" text
);
Question: Which tennis team is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year_of_award" real,
"athlete" text,
"nation_of_citizenship" text,
"team" text,
"competition_governing_body_or_league" text,
"sport" text
);
Question: What is the nation o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What Constructor did Michael Schumacher have with a Grid smaller than 5?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver has a Time/Retired of +1 lap?
<|assistant|>
SELECT "driver" FROM "race" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_olympic_results" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"score_final" real,
"score_qualifying" real
);
Question: Which apparatus had a fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_olympic_results" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"score_final" real,
"score_qualifying" real
);
Question: Which competition descript... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_olympic_results" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"score_final" real,
"score_qualifying" real
);
Question: Which Qualifying score had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "detailed_olympic_results" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"score_final" real,
"score_qualifying" real
);
Question: What is the sum of qualify... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When was the game played at Princes Park?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did Melbourne score as the home team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_school_players_and_coaches_of_the_y" (
"year" real,
"player" text,
"position" text,
"high_school" text,
"hometown" text,
"mlb_draft" text
);
Question: What position does the player from ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What team scored more than 572 points and had more than 29 games?
<|assistant|>
SELECT "team" FROM "poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What is the least amount of games for Luis scola with a rank greater than 1?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"identity" text,
"builder" text,
"built" real,
"wheel_arrangement" text,
"notes" text
);
Question: What is the identity of the brighton works built train?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "smythe_division_final_vs_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What was the attendance on May 13?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives_of_the_great_western_railway" (
"manufacturer" text,
"type" text,
"quantity" real,
"ptrd_nos" text,
"gwr_nos" text
);
Question: What is the highest Quantity for PTRD Nos. 3, 15?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"team" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" real,
"up_down" text
);
Question: How many were hosted whene the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"team" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" real,
"up_down" text
);
Question: What is the lowest attendance la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_growth_history" (
"city" text,
"1970" real,
"1980" real,
"1990" real,
"2000" real,
"2010_est" real
);
Question: Of 2010 est. with less than 171,750 and 2000 less than 131,714, what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_growth_history" (
"city" text,
"1970" real,
"1980" real,
"1990" real,
"2000" real,
"2010_est" real
);
Question: With 1990 growth greater than 19,988 and 1970 growth less than 10,52... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_growth_history" (
"city" text,
"1970" real,
"1980" real,
"1990" real,
"2000" real,
"2010_est" real
);
Question: Of 2000 growth less than 32,093 and 1980 growth over 64,975, what is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_growth_history" (
"city" text,
"1970" real,
"1980" real,
"1990" real,
"2000" real,
"2010_est" real
);
Question: How many 1990 growth numbers had less than 10,522 in 1970?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_growth_history" (
"city" text,
"1970" real,
"1980" real,
"1990" real,
"2000" real,
"2010_est" real
);
Question: Which is the lowest 1980 growth that had 2,610 in 1970?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps associated with a Time/Retired of + 1:25.475?
<|assistant|>
SELECT COUNT("lap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where was the game played where the away... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team played a home team with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score for the away team when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"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 when the V... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the opponents score when Geelon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"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 when the V... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did Fitzroy play as the away team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_top_scorers" (
"rank" real,
"player" text,
"goals" real,
"apps" real,
"avg_game" real
);
Question: What is the average number of goals of the player with 234 apps and a rank above 8?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_top_scorers" (
"rank" real,
"player" text,
"goals" real,
"apps" real,
"avg_game" real
);
Question: What is the average avg/game of the player with 97 goals and a rank above 7?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2007_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2007_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2007_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|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: What was the smallest crowd at junction ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: What state has Richard Foster as a member?
<|assistant|>
SELECT "state" FROM "notes" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" text
);
Question: Which member has Cook as the electorate?
<|assistant|>
SELECT "member" FROM "notes" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Who was the driver with chassis 625 553 500?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What was tyre that was made by cooper - bristol that was driven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Who was the constructor of the officine alfieri maserati that w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What tyre had Sergio Mantovani as a driver?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Can you say what was the entrant of maserati built item with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vocabulary_comparison" (
"english" text,
"scots" text,
"west_frisian" text,
"afrikaans" text,
"dutch" text,
"dutch_limburgish" text,
"low_german" text,
"low_german_groningen" text,
"midd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vocabulary_comparison" (
"english" text,
"scots" text,
"west_frisian" text,
"afrikaans" text,
"dutch" text,
"dutch_limburgish" text,
"low_german" text,
"low_german_groningen" text,
"midd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vocabulary_comparison" (
"english" text,
"scots" text,
"west_frisian" text,
"afrikaans" text,
"dutch" text,
"dutch_limburgish" text,
"low_german" text,
"low_german_groningen" text,
"midd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vocabulary_comparison" (
"english" text,
"scots" text,
"west_frisian" text,
"afrikaans" text,
"dutch" text,
"dutch_limburgish" text,
"low_german" text,
"low_german_groningen" text,
"midd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vocabulary_comparison" (
"english" text,
"scots" text,
"west_frisian" text,
"afrikaans" text,
"dutch" text,
"dutch_limburgish" text,
"low_german" text,
"low_german_groningen" text,
"midd... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of bronze that silver is smaller than 1 and gold bigger than 0?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_points_scorers" (
"name" text,
"nation" text,
"points" real,
"games" real,
"pts_game" real
);
Question: what is the name when the nation is France, the pts/game is more than 3 and point... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_points_scorers" (
"name" text,
"nation" text,
"points" real,
"games" real,
"pts_game" real
);
Question: what is the pts/game for Charlotte barras and the games is 5?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_points_scorers" (
"name" text,
"nation" text,
"points" real,
"games" real,
"pts_game" real
);
Question: what is the average points when the nation is wales and the pts/game is more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: When is the earliest year for it is in barcelona, spain?
<|assistant|>
SELECT MIN("year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What is the average year they finished 5th in santiago, chile?
<|assistant|>
SELECT AVG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: Which pick was MIchael Holper?
<|assistant|>
SELECT MIN("pick") FROM "round_1" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: Which country is Leo Najorda from?
<|assistant|>
SELECT "country_of_origin" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: Which United States player from Hawaii-Hilo had the lowest pick?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: Which United States player for Air21 Express had a pick smaller than 9?
<|assistant... |
<|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 average Gold where the Nation is Russia (rus) and the number of sil... |
<|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 where the nation is South Africa (rsa) and bronze is less tha... |
<|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: Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Tell me the home team for vfl park venue... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Tell me the home team for venue of mcg
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Tell me the most crowd for arden street ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score when South... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team that scored 19.18 (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"total_points" real,
"placings" real
);
Question: What was the placing of the nation of East Germany?
<|assistant|>
SELECT COUNT("placing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" real,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" real,
"goals" real
);
Question: What's the highest level of team Astana since 2007?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points_for_the_club" (
"points" real,
"player" text,
"tries" real,
"goals" real,
"field_goals" real
);
Question: What is the average amount of goals that has a points smaller of 882, less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team at Western Oval?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team that played against... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"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 size for Richmo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the largest crowd for North Melbo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In which venue does Melbourne play as the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.