text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Name the home for 16 april 2008
<|assistant|>
SELECT "home" FROM "april" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Name the score for bucks with timberwolves
<|assistant|>
SELECT "score" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competing_yachts" (
"sail" text,
"yacht" text,
"syndicate" text,
"yacht_club" text,
"nation" text
);
Question: Which sail is in the America 3 Foundation syndicate on the America 3 yacht?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competing_yachts" (
"sail" text,
"yacht" text,
"syndicate" text,
"yacht_club" text,
"nation" text
);
Question: Which syndicate is associated with the stars & stripes yacht?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competing_yachts" (
"sail" text,
"yacht" text,
"syndicate" text,
"yacht_club" text,
"nation" text
);
Question: Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 ya... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competing_yachts" (
"sail" text,
"yacht" text,
"syndicate" text,
"yacht_club" text,
"nation" text
);
Question: Which nation has the America 3 Foundation syndicate and the jayhawk yacht?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competing_yachts" (
"sail" text,
"yacht" text,
"syndicate" text,
"yacht_club" text,
"nation" text
);
Question: Which Nation has the USA-18 sail?
<|assistant|>
SELECT "nation" FROM "competing_ya... |
<|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 did a home team score 4.12 (36)?
<|a... |
<|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 big was the crowd when collingwood vi... |
<|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 away team is based in moorabbin oval... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: What date did af giles play?
<|assistant|>
SELECT "date" FROM "most_catches_in_a_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: How many catches does hh dippenaar have?
<|assistant|>
SELECT "catches" FROM "mos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: What player has a date of 12-02-2003?
<|assistant|>
SELECT "player" FROM "most_ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: Who had a versus of sri lanka?
<|assistant|>
SELECT "player" FROM "most_catches_i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: Who had a date of 19-02-2003?
<|assistant|>
SELECT "player" FROM "most_catches_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_catches_in_a_match" (
"catches" text,
"player" text,
"versus" text,
"venue" text,
"date" text
);
Question: What date had a versus of source: cricinfo.com?
<|assistant|>
SELECT "date" FROM ... |
<|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: When south Melbourne was the home team, w... |
<|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 the smallest crowd size for away... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the score of the game against Milwaukee?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: Was the third place winner Yannick Noah?
<|assistant|>
SELECT "winner" FROM "2003" WHER... |
<|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 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_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: The home team scored 15.15 (105) at what ... |
<|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: Which away team scored 16.12 (108)?
<|ass... |
<|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: When the home team scored 16.26 (122) wha... |
<|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: Which home team scored 13.20 (98)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: Who set the record for youngest nominee?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: After the year 2011, who was the youngest nominee?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: When did Quvenzhané Wallis first win?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: When was the last year when Katharine Hepburn won?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text
);
Question: who was the winner in 2003?
<|assistant|>
SELECT "winner" FROM "winners" WHERE "year"='2003';<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text
);
Question: where did marie-laure taya win?
<|assistant|>
SELECT "venue" FROM "winners" WHERE "winner"='marie-... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"venue" text,
"winner" text,
"country" text,
"score" text
);
Question: what venue saw a score of 285?
<|assistant|>
SELECT "venue" FROM "winners" WHERE "score"='285';<|e... |
<|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 largest laps for Time/Retired of + 2 laps, and a Grid of 13?
<|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: What company constructed the car with more than 0 laps and shows 5 for grid?
<|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 sum of laps for Derek Warwick?
<|assistant|>
SELECT SUM("laps") FROM "race" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_club" (
"club" text,
"wins" real,
"runners_up" real,
"years_won" text,
"years_runner_up" text
);
Question: What years runner-up is Birmingham city, with over 1 runners-up?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team score has an Away team of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team has a Venue of victoria p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has an Away team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team has an Away team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Who was the center from Washington State?
<|assistant|>
SELECT "player" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What school did Paul Dawkins play for?
<|assistant|>
SELECT "school_club_tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_organs" (
"date" real,
"country" text,
"place" text,
"building" text,
"size" text
);
Question: Name the place with building of victoria hall
<|assistant|>
SELECT "place" FROM "notable_o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_organs" (
"date" real,
"country" text,
"place" text,
"building" text,
"size" text
);
Question: Name the least date for the place which has a building of victoria hall
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_organs" (
"date" real,
"country" text,
"place" text,
"building" text,
"size" text
);
Question: Name the size which is past 2000
<|assistant|>
SELECT "size" FROM "notable_organs" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_organs" (
"date" real,
"country" text,
"place" text,
"building" text,
"size" text
);
Question: Name the country that has mänttä
<|assistant|>
SELECT "country" FROM "notable_organs" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What round was Nick Gillis?
<|assistant|>
SELECT "round" FROM "1997_draft_pick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "station_list" (
"station" text,
"japanese" text,
"distance_km" real,
"rapid" text,
"location" text
);
Question: What is the distance to funao?
<|assistant|>
SELECT "distance_km" FROM "station_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "station_list" (
"station" text,
"japanese" text,
"distance_km" real,
"rapid" text,
"location" text
);
Question: What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "station_list" (
"station" text,
"japanese" text,
"distance_km" real,
"rapid" text,
"location" text
);
Question: What location is less than 7.1 km away, and has a Rapid of ●?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "queens_of_bohemia" (
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
);
Question: What is the name of the father wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "queens_of_bohemia" (
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
);
Question: What is the birth date of the wom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "queens_of_bohemia" (
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
);
Question: Leopold VI, Duke of Austria is th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "queens_of_bohemia" (
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
);
Question: What is the birth date of the per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "queens_of_bohemia" (
"father" text,
"birth" text,
"marriage" text,
"became_queen" text,
"ceased_to_be_queen" text,
"death" text,
"spouse" text
);
Question: When did the person who died on 6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What time/retired for a grid less than 19, under 21 laps, and made by april... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid for dirk heidolf?
<|assistant|>
SELECT SUM("grid") FROM "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team plays at Victoria Park?
<... |
<|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: How many caps does stephen hoiles have?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Date has a Home team of st kilda?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"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 "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has an Away team of footscra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Crowd has a Home team of geelong?
... |
<|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 most silver medals a team with 3 total medals and less than 1 bronz... |
<|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 least amount of silver medals a team with less than 0 gold medals h... |
<|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 most bronze a team with more than 2 silvers has?
<|assistant|>
SELE... |
<|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 amount of bronze medals a team with 1 gold and more than 3 si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "melodifestivalen_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What is the draw number that has 59 points?
<|assistant|>
SELECT AVG("draw") FROM "mel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "melodifestivalen_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What place for roger pontare?
<|assistant|>
SELECT "place" FROM "melodifestivalen_1999... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "melodifestivalen_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What song has draw number less than 2?
<|assistant|>
SELECT "song" FROM "melodifestiva... |
<|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 attendance when Essendon pl... |
<|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 played the home team at Windy Hill?
... |
<|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,
"record" text
);
Question: What was the date of the game that had a decision of wall?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|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 is the sum of every REG GP that Peter... |
<|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 is the total of PI GP played by Anton... |
<|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 is the total pick# played by Anton Ro... |
<|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 is the lowest grid that has over 67 laps with stefan bellof driving?
<|assis... |
<|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: How many laps have a grid under 14 and a time/retired of out of fuel?
<|assistant... |
<|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: Who drove the renault that went over 23 laps and had a grid under 11?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5901_6000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What is the average NG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5901_6000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What is the highest NG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5901_6000" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What Constellation has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"club" text,
"gold" real,
"big_silver" real,
"small_silver" real,
"bronze" real,
"points" real
);
Question: For clubs that have 0 gold and less than 5 points, wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"club" text,
"gold" real,
"big_silver" real,
"small_silver" real,
"bronze" real,
"points" real
);
Question: Club aik had over 9 small silver medals and more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"club" text,
"gold" real,
"big_silver" real,
"small_silver" real,
"bronze" real,
"points" real
);
Question: How many points did landskrona bois get when they wer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" real,
"record" text
);
Question: Who was the opponent for game 5?
<|assistant|>
SELECT "opponent" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: Name the team for pick more than 30 and position of c ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internal_representation" (
"type" text,
"sign" real,
"exponent" real,
"significand" real,
"total_bits" real,
"exponent_bias" real,
"bits_precision" real,
"number_of_decimal_digits" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_win_loss_record" (
"player" text,
"total_win_loss" text,
"singles_win_loss" text,
"doubles_win_loss" text,
"no_of_ties" real,
"first_year_played" real,
"years_played" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"decision" text,
"record" text
);
Question: What is the highest game number with a record of 12-8-1?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"decision" text,
"record" text
);
Question: What is the record when the decision was valiquette on Novembe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.