text stringlengths 310 1.28k |
|---|
<|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 laps are over 53, what's the average grid?
<|assistant|>
SELECT AVG("gri... |
<|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: What's the average laps driven by david coulthard?
<|assistant|>
SELECT AVG("laps... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: who is the opponent in the final when the year is before 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: what is the outcome for the 1887?
<|assistant|>
SELECT "ou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: what is the outcome when the opponent in the final is will... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: what is the score when the outcome is runner-up, the oppon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "natural_wonders" (
"year" real,
"design" text,
"issue" text,
"artist" text,
"mintage" real,
"issue_price" text
);
Question: What artist has a mintage of greater than 34,135?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "natural_wonders" (
"year" real,
"design" text,
"issue" text,
"artist" text,
"mintage" real,
"issue_price" text
);
Question: What artist was released in 2005?
<|assistant|>
SELECT "artist" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_draw" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: What's melbourne's average year?
<|assistant|>
SELECT AVG("year") FROM "goal_to_draw" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_draw" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: Who was ashley sampi's opponent?
<|assistant|>
SELECT "opponent" FROM "goal_to_draw" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_draw" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: Which team did daniel bradshaw play for after 1935?
<|assistant|>
SELECT "team" FROM "goal_to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goal_to_draw" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
);
Question: Who played in 1992?
<|assistant|>
SELECT "player" FROM "goal_to_draw" WHERE "year"=1992;<|end... |
<|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 date was fitzroy the away team?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the surface when the part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the date for clay surface... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the partner with score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the tournament for clay s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the outcome on 6 october ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"song" text,
"artist" text,
"jury_points" text,
"televotes_points" text,
"total_points" real,
"place" real
);
Question: What is the song with more than 9 poin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"song" text,
"artist" text,
"jury_points" text,
"televotes_points" text,
"total_points" real,
"place" real
);
Question: Who is the artist with 2153 (5) televo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"song" text,
"artist" text,
"jury_points" text,
"televotes_points" text,
"total_points" real,
"place" real
);
Question: What is the lowest total points Karine... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"song" text,
"artist" text,
"jury_points" text,
"televotes_points" text,
"total_points" real,
"place" real
);
Question: What is the lowest total points Karine... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot_est" text,
"season" real,
"rating" real,
"share" real,
"18_49" real,
"viewers_m" real,
"rank_num" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot_est" text,
"season" real,
"rating" real,
"share" real,
"18_49" real,
"viewers_m" real,
"rank_num" text
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot_est" text,
"season" real,
"rating" real,
"share" real,
"18_49" real,
"viewers_m" real,
"rank_num" text
);
Question: What is ... |
<|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: What was Mike Hailwood's highest laps when he had a grid more than 7?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"municipality" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"municipality" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"municipality" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"municipality" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"name" text,
"municipality" text,
"proposed" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"release_format" text,
"country" text,
"label" text,
"cat_no" text,
"release_date" real
);
Question: What is the release format for titles after 1983?
<|assistant|>
SELECT "r... |
<|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: Which crowd had an Away team score of 7.... |
<|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 venue is the home of the Carlton te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Which driver had a grid of 18 with 68 laps?
<|assistant|>
SELECT "driver" 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" text,
"time_retired" text,
"grid" text
);
Question: Which driver had a grid of 18?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"='18';... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Which driver had a grid of 22?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"='22';... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partnership_records" (
"wicket_partnership" text,
"runs" text,
"batsmen" text,
"opponents" text,
"venue" text,
"season" text
);
Question: Which season is the wicket 2nd partnership in?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partnership_records" (
"wicket_partnership" text,
"runs" text,
"batsmen" text,
"opponents" text,
"venue" text,
"season" text
);
Question: Where did v kent play?
<|assistant|>
SELECT "venue" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partnership_records" (
"wicket_partnership" text,
"runs" text,
"batsmen" text,
"opponents" text,
"venue" text,
"season" text
);
Question: Which runs had james bryant graeme welch as Batsmen?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_record" (
"record" text,
"hard" text,
"clay" text,
"grass" text,
"carpet" text
);
Question: Which clay has a Record of 2β0, and a Hard 1β0?
<|assistant|>
SELECT "clay" FROM "head_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_record" (
"record" text,
"hard" text,
"clay" text,
"grass" text,
"carpet" text
);
Question: Which hard has a Clay of 0β0, Grass of 0β0, Carpet of 0β0, and a Record of 1β0?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_to_head_record" (
"record" text,
"hard" text,
"clay" text,
"grass" text,
"carpet" text
);
Question: Which carpet has a Clay of 1β0 and a Hard 1β1?
<|assistant|>
SELECT "carpet" FROM "head_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"rank" real,
"council_area" text,
"speakers" real,
"population" real,
"percentage_pct" real
);
Question: Name the most rank for population more than 93,378
<|assistant|>
SELECT MA... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feature_film" (
"year" real,
"award" text,
"category" text,
"type" text,
"title" text
);
Question: What award is featured in 1992?
<|assistant|>
SELECT "award" FROM "feature_film" WHERE "year"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "feature_film" (
"year" real,
"award" text,
"category" text,
"type" text,
"title" text
);
Question: What award was won in the best sound category for the exorcist before 1998?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1953" (
"1953" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
);
Question: What was the candidate that got... |
<|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 was the opposing team for the game on August 29?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
Question: which spans had a drop of 0?
<|assistant|>
SELECT "span" FROM "most_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
Question: which player has 11 tries?
<|assistant|>
SELECT "player" FROM "most_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
Question: which player has a conv of 14?
<|assistant|>
SELECT "player" FROM "m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
Question: on the span of 1992-2000, what was the conv ?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_final_3_21_february_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: What is the high point toal for martine foubert placing below 2?
<|assistant|>... |
<|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: How much did the away team Melbourne scor... |
<|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 highest crowd number for the ... |
<|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 home team played at Glenferrie Oval?... |
<|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: How much did the away team St Kilda score... |
<|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 Home team score has an Away team s... |
<|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 Crowd has an Away team of st kilda... |
<|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 has an Away team score o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What stadium has a final score of 26β21?
<|assistant|>
SELECT "stadium" FROM "2006" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: When the new orleans saints were visiting texas stadium, what was the final score?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score at texas stadium on September 17?
<|assistant|>
SELECT "fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score for the game at giants stadium when the indianapolis colts ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
Question: What rank for season 1?
<|assistant|>
SELECT "ra... |
<|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 week had an attendance of 27,262?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "at... |
<|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 opponent has an attendance of 20,456?
<|assistant|>
SELECT "opponent" FROM "schedule" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stanley_cup_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on March 27?
<|assistant|>
SELECT "record" FROM "stanley_cup_finals"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stanley_cup_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on March 22?
<|assistant|>
SELECT "record" FROM "stanley_cup_finals"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stanley_cup_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on April 1?
<|assistant|>
SELECT "record" FROM "stanley_cup_finals" ... |
<|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 date did North Melbourne score 22.1... |
<|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 lowest crowd size when Carl... |
<|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: Who played as the home team when Footscr... |
<|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: Who was playing as the home team when th... |
<|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 size was the crowd when Hawthorn wa... |
<|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 lowest number of Gold the Nation of Italy had when it ranked other ... |
<|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: How many Golds did the country with a Rank better than 5 and more Bronze than 1... |
<|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: When the Total is less than 1, how many Bronze medals are won?
<|assistant|>
SE... |
<|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: When the Total is less than 1, and Bronze is 0, how many Gold medals are there?... |
<|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 Rank of the Nation of Germany when the Total is more than 2?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "super_heavyweight_75_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: Which weightlifter with a snatch larger than 117.5 had the lowest bodyw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "super_heavyweight_75_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: Which weightlifter, who had a bodyweight of less than 136.16 and a clea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "super_heavyweight_75_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: Of weightlifters who weighed more than 136.16, who had the highest Tota... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "super_heavyweight_75_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: What was the average clean and jerk of all weightlifters who had a body... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "super_heavyweight_75_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: What is the sum of the weight that all weightlifters managed to clean a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exits" (
"kilometer_no_rizal_park_basis" text,
"kilometer_no_layac_basis" text,
"exit" text,
"barangay" text,
"municipality" text
);
Question: What kilometer (Rizal Park-basis) has a kilometer ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exits" (
"kilometer_no_rizal_park_basis" text,
"kilometer_no_layac_basis" text,
"exit" text,
"barangay" text,
"municipality" text
);
Question: Which Barangay has an exit of Sisiman toll barrier... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exits" (
"kilometer_no_rizal_park_basis" text,
"kilometer_no_layac_basis" text,
"exit" text,
"barangay" text,
"municipality" text
);
Question: What kilometer (Layac-basis) has a Barangay of gen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exits" (
"kilometer_no_rizal_park_basis" text,
"kilometer_no_layac_basis" text,
"exit" text,
"barangay" text,
"municipality" text
);
Question: In which municipality is Barangay Poblacion?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exits" (
"kilometer_no_rizal_park_basis" text,
"kilometer_no_layac_basis" text,
"exit" text,
"barangay" text,
"municipality" text
);
Question: What is the exit at kilometer (Rizal Park-basis) 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internationals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the competition on 23 February 1929?
<|assistant|>
SELECT "competition" FROM "i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the club/province of Sireli Bobo, who plays wing ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the total number of Caps Aca Ratuva, a flanker, h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the date of birth of Kameli Ratuvou?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the date of birth of Henry Qiodravu?
<|assistant|... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.