text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: What is the lowest pick when the School is Stanford University?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: What Team has a Pick of 40?
<|assistant|>
SELECT "team" FROM "supplem... |
<|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 date was the away team Hawthorn?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_as_starting_quarterback" (
"name" text,
"period" text,
"starts" real,
"wins" real,
"losses" real,
"ties" real,
"win_pct" real
);
Question: What is the high loss total for players... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_as_starting_quarterback" (
"name" text,
"period" text,
"starts" real,
"wins" real,
"losses" real,
"ties" real,
"win_pct" real
);
Question: What is the win % for the QB with 3 sta... |
<|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 venue did geelong play an away game?... |
<|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 score when the hom... |
<|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 home team played an away team of mel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: Which player had an overall pick of 130?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What round was Corey Cowick picked?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What position does the player from the Miami University (CC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_opportunities" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text,
"outcome" text
);
Question: What most recent year had North Melbourne as a team and Hamish Mcin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_opportunities" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text,
"outcome" text
);
Question: Which score had Essendon as an opponent and Steven Clark as a playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_opportunities" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text,
"outcome" text
);
Question: Which team got a Behind outcome and had an opponent of Brisbane Bea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did the north melbourne team play?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"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 junction oval?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"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 team's score at juncti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue was essendon the away team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the home team at kardinia park?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_blood_agents" (
"agent" text,
"melting_boiling_point" text,
"effectiveness_as_blood_agent" real,
"persistence_open_area" real,
"persistence_enclosed_area" real,
"field_stability" real,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_blood_agents" (
"agent" text,
"melting_boiling_point" text,
"effectiveness_as_blood_agent" real,
"persistence_open_area" real,
"persistence_enclosed_area" real,
"field_stability" real,... |
<|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: When the Venue is mcg what is the Home t... |
<|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: If the Away team had a score of 14.14 (9... |
<|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: When the Away team was hawthorn, what's ... |
<|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: When the away team scored 9.14 (68), wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "flyweight_56_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: What is the total associated with a Clean & jerk of 135, and a Snatch of 115?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "flyweight_56_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: What is the highest Bodyweight associated with a Clean & jerk larger than 120, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "flyweight_56_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: What is the sum Total (kg) associated with a Snatch less than 110, and a Clean ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "flyweight_56_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5101_5200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: Tell me the object typ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5101_5200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: Tell me the declinatio... |
<|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" text,
"time" text
);
Question: Which event has a Method of submission (triangle... |
<|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" text,
"time" text
);
Question: What is the result with a Round of 3, and an Opp... |
<|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" text,
"time" text
);
Question: Which time has eddie miller as opponent?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What's the average Rd number for dane jack... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What's the largest pick number for corrie ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the visiting team at the Cavaliers game that ... |
<|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: On what date did Melbourne play as the h... |
<|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: How many points did the away team score w... |
<|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: How many points did the home team score w... |
<|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 team owns the Venue of 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: What did the Victoria park home team scor... |
<|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 was the crowd size when geelong play... |
<|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 was the crowd size when the visiting... |
<|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: Where did the away team play when they s... |
<|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: Where did the home team play when they s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eastern_conference_quarter_finals_vs_8" (
"date" text,
"venue" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Name the mos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eastern_conference_quarter_finals_vs_8" (
"date" text,
"venue" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: Name the dec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average total medals Egypt, who has less than 2 gold, has?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of gold medals Egypt, who has less than 0 silver, has?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest gold a team with less than 3 silver and more than 5 bronze ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the rank of the team with 1 bronze and 0 gold medals?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"rank" text,
"country_or_dependent_territory" text,
"july_1_2013_projection" real,
"pct_of_pop" real,
"average_relative_annual_growth_pct" real,
"average_absolute_annual_growth" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"rank" text,
"country_or_dependent_territory" text,
"july_1_2013_projection" real,
"pct_of_pop" real,
"average_relative_annual_growth_pct" real,
"average_absolute_annual_growth" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"rank" text,
"country_or_dependent_territory" text,
"july_1_2013_projection" real,
"pct_of_pop" real,
"average_relative_annual_growth_pct" real,
"average_absolute_annual_growth" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"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 at Kardinia Park?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Footscray's score as the home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: On what date was there a competition in which the ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: In the competition in which the visiting team was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the record in the competition in which the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telugu_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: What's the average year a Rangam movie came out?
<|assistant|>
SELECT AVG("ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telugu_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: What year was "Ulike o Chilake" released?
<|assistant|>
SELECT "year" FROM "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telugu_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: What movie was "anti pettukundhuna" in?
<|assistant|>
SELECT "movie" FROM "te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telugu_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: What was the name of the song in Amma Cheppindi?
<|assistant|>
SELECT "song_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "telugu_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: What was the average year that Thuppakki movies came out?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_example_of_abc_rejection_algorit" (
"theta_i" real,
"simulated_datasets_step_2" text,
"summary_statistic_omega_s_i_step_3" real,
"distance_rho_omega_s_i_omega_e_step_4" real,
"outcome_st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_1_example_of_abc_rejection_algorit" (
"theta_i" real,
"simulated_datasets_step_2" text,
"summary_statistic_omega_s_i_step_3" real,
"distance_rho_omega_s_i_omega_e_step_4" real,
"outcome_st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_national_performance" (
"nationality" text,
"year" text,
"games_played" real,
"minutes_played" text,
"goals_scored" text,
"yellow_card" text,
"red_card" text
);
Question: How many ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the result week 11?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=11;<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "analytical_table" (
"state" text,
"votes" real,
"votes_since_1856" real,
"democratic_votes" real,
"d_votes_since_1856" real,
"pct_of_d_votes" text,
"d_pct_since_1856" text,
"republican_vot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_cup" (
"round" text,
"date" text,
"opponent" text,
"score" text,
"attendance" real,
"report" text
);
Question: On what Date was the Opponent Panathinaikos?
<|assistant|>
SELECT "date" FR... |
<|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: How many people attended games with st k... |
<|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: Who is the home team when the crowd is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings_under_construction" (
"rank" real,
"name" text,
"city" text,
"height" text,
"floors" real
);
Question: What is the average number of floors for buildings in mecca ranked above... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings_under_construction" (
"rank" real,
"name" text,
"city" text,
"height" text,
"floors" real
);
Question: What city is the lamar tower 1, ranked above 5?
<|assistant|>
SELECT "ci... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings_under_construction" (
"rank" real,
"name" text,
"city" text,
"height" text,
"floors" real
);
Question: What city has a building with over 57 floors?
<|assistant|>
SELECT "city... |
<|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 did antônio pizzonia do?
<|assistant|>
SELECT COUNT("laps") FROM "race" WHERE... |
<|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 constructor for time/retired of handling?
<|assistant|>
SELECT "constructor" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"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 at windy ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"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 when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team's score when the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the highest round of a player from Sweden who plays... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the position of a player from a round less than 4 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the average round of a player with an overall of 13... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: Who is the player from Sweden from a round after 3?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the nationality of a player from linköpings hc (se)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"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 size for st kilda as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When an away team scored 6.12 (48), what ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"swedish_title" text,
"norwegian_title" text,
"translated_title" text,
"published" real,
"pages" real,
"isbn" text
);
Question: I want the sum of pages for thistle among roses
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_statement" (
"fund" text,
"manager" text,
"fund_period" text,
"fund_return" text,
"market_return" text
);
Question: Who is the manager for FMC Corporation pension fund?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_statement" (
"fund" text,
"manager" text,
"fund_period" text,
"fund_return" text,
"market_return" text
);
Question: What fund has a fund return of 19.8% / 13.7%?
<|assistant|>
SELECT "fund"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"episodes_credited" real
);
Question: What was the position of Frank Tripp?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"episodes_credited" real
);
Question: What was the final episode credited of 187?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1890_1904" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text,
"comments" text
);
Question: Which class at 55 built?
<|assistant|>
SELECT "class" FROM "1890_1904" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1890_1904" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text,
"comments" text
);
Question: What is the Loco Nos of the e3 class?
<|assistant|>
SELECT "loco_nos" FRO... |
<|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: How many people attended Junction Oval?
<... |
<|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 was the score of the team that playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2011_12_season" text
);
Question: Which 2011-12 season with a volume larger than 27,543 at club of melfi?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2011_12_season" text
);
Question: What is the name of the stadium for the city of melfi?
<|assistant|>
SELECT "stadium" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2011_12_season" text
);
Question: What is the total capacity for the stadium of pasquale ianniello?
<|assistant|>
SELECT ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.