text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
Question: At which track did the event Daytona Arca 200 take place?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
Question: At which event was Ken Schrader the Race Winner at the Toledo Speedway?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
Question: At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
Question: Steve Wallace was a Race Winner at the Kentucky Speedway on what date?
... |
<|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 silver owned by a nation that is not ranked number... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
Question: What is Driver Kimi Räikkönen's number on the grid?
<|assistant|>
SELECT "grid" FROM "qualif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
Question: Which driver had a Part 1 time of 1:13.306?
<|assistant|>
SELECT "driver" FROM "qualifying" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roller_coasters" (
"current_name" text,
"year_first_opened" real,
"manufacturer" text,
"location_in_park" text,
"thrill_intensity_rating" text,
"minimum_height_requirements" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actor from russia for anastasiya slutskaya
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Rell mem the actor from ukraine for best actress in a leadi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the director for the movie with svetlana zelenkovsk... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actor's name for anastasiya slutskaya belarus
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the nominator for piotr adamczyk
<|assistant|>
SELE... |
<|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: Which stadium can hold 63,443 people?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "a... |
<|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,
"venue" text,
"start_time" text,
"attendance" text
);
Question: Tell me the number of weeks for bye
<|assistant|>
SELEC... |
<|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,
"venue" text,
"start_time" text,
"attendance" text
);
Question: Tell me the number of weeks for december 5, 2005
<|assi... |
<|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,
"venue" text,
"start_time" text,
"attendance" text
);
Question: Tell me the start time for december 24, 2005
<|assistan... |
<|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,
"venue" text,
"start_time" text,
"attendance" text
);
Question: Tell me the result for lincoln financial field december... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Tell me the total number of years for wins less than 2 and class ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Tell me the year for class of 125cc
<|assistant|>
SELECT "year" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Tell me the average wins for class of 50cc and rank of 8th
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Tell me the lowest wins for class of 50cc and team of tomos for y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which country has the highest bronze amount and a silver amount bigger than 41?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest amount of medals Russia has if they have more than 2 silver medals and less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: How many points did the 2005 1st place team receive?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: What engine was used by the teams that used a Lola b02/00 chassis and ranked... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
Question: How many years did Team Newman/Haas Racing receive a 1st place ranking?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
Question: What is the aggregate of place for points being 35?
<|assistant|>
SELECT SUM("place") FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
Question: Name the fewest points of 5 place
<|assistant|>
SELECT MIN("points") FROM "national_final" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
Question: Name the total number of places for vicky gordon and points more than 23
<|assistant|>
SELECT... |
<|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: Tell me the opponent for attendance of 68,264
<|assistant|>
SELECT "opponent" FROM "schedule... |
<|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: Tell me the sum of week for result of l 24–21
<|assistant|>
SELECT SUM("week") FROM "schedul... |
<|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: Tell me the result for attendance of 54,462
<|assistant|>
SELECT "result" FROM "schedule" WH... |
<|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: Tell me the opponent for attendance of 53,899
<|assistant|>
SELECT "opponent" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"nationality" text,
"no_a" text,
"pos_a" text,
"from" text,
"school_club" text,
"pts_b" real,
"reb_b" real,
"ast_b" real
);
Question: What is the points that is more than 636 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"nationality" text,
"no_a" text,
"pos_a" text,
"from" text,
"school_club" text,
"pts_b" real,
"reb_b" real,
"ast_b" real
);
Question: Which rebound was 8 and has and ast that w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Tell me the country for ICAO of tjig
<|assistant|>
SELECT "country" FROM "destinations" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Tell me the country for san juan
<|assistant|>
SELECT "country" FROM "destinations" WHERE "cit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Tell me the country for ICAO tjvq
<|assistant|>
SELECT "country" FROM "destinations" WHERE "ic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Tell me the iata for icao of tjrv
<|assistant|>
SELECT "iata" FROM "destinations" WHERE "icao"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Tell me the icao of isla grande
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "city"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: What position does the Colorado Rapids pick after 15 play?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: I want to know the events for 106 bands
<|assistant|>
SELECT "event" FROM "2000_s" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the Actor's name for film name of sara
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the nomination for ukraine
<|assistant|>
SELECT "nomi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actors name for barhanov and his bodyguard
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actors name for goran paskaljevic
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the nomination for goran paskaljevic
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: In what year did Stephan Wojcikiewicz ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who played men's doubles in 2012?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
Question: Which FA Cup apps has leagu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
Question: What is the highest apps to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
Question: Which league goals has FA c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
Question: What FA cup apps has a tota... |
<|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" real
);
Question: What was the total attendance on December 14, 1975 after week 13?
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of all totals with a rank greater than 6, gold greater than 0, ... |
<|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 values for silver occur when gold is less than 1, the rank is 13, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average value of Bronze when silver is 0 and the total is less than... |
<|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 value for bronze with a total of 3 and a value for silver gr... |
<|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 man values for bronze occur when gold is less than 1, rank is greater than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_nine" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Name the position of pick 234
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_nine" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Name the team of vitali yeremeyev
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the result for 2007-09-29
<|assistant|>
SELECT "result" FROM "internationa... |
<|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,
"venue" text,
"attendance" text
);
Question: How many weeks have an attendance of 64,116?
<|assistant|>
SELECT COUNT("wee... |
<|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,
"venue" text,
"attendance" text
);
Question: Which date has a week larger than 14?
<|assistant|>
SELECT "date" FROM "sche... |
<|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,
"venue" text,
"attendance" text
);
Question: Which venue has a week smaller than 2?
<|assistant|>
SELECT "venue" FROM "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: When was the Metallica: Escape from the Studio show?
<|assistant|>
SELECT "date" FROM "19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: When is the Monsters of Rock show with 12 bands?
<|assistant|>
SELECT "date" FROM "1990s"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"competition" text,
"date" text,
"surface" text,
"location" text,
"score" text,
"result" text
);
Question: Tell me the result for 15 july
<|assistant|>
SELECT "res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
Question: Tell me the number range for 1965-66
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
Question: Tell me the year built for withdrawn of 1983... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
Question: Tell me the year built for number built of 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the result for 2008-12-23
<|assistant|>
SELECT "result" FROM "internationa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the director nominated for best actor in a leading ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the nomination for peresohla zemlia
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the nomination for russia and svetlana hodchenkova
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actor's name for nienasycenie (insatiability)
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
Question: Tell me the actor's name for escho raz o voyne
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What are the average laps driven in the GT c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What classes have driven greater than 133 la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "democratic_primary" (
"source" text,
"date" text,
"donoghue_d" text,
"eldridge_d" text,
"finegold_d" text,
"miceli_d" text,
"tsongas_d" text
);
Question: I want the tsongas of may 22, 2007
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wac_men_s_basketball_tournament_results" (
"year" real,
"winner" text,
"score" text,
"opponent" text,
"venue" text
);
Question: Tell me the venue for winner of nevada and year more than 2004
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"final_score" text
);
Question: What date is the 1:00 pm game at arrowhead stadium?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"final_score" text
);
Question: Where will the game at (ET) of 7:00 pm be at?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"driver" text,
"car_num" real,
"make" text,
"points" real,
"laps" real,
"winnings" text
);
Question: Who is the Driver that has a Laps smaller than 498, less than 58 points, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: At what location was there a loss on 20 jan?
<|assistant|>
SELECT "location" F... |
<|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,
"venue" text,
"attendance" real,
"record" text
);
Question: Tell me the venue for record of 2-7
<|assistant|>
SELECT "v... |
<|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,
"venue" text,
"attendance" real,
"record" text
);
Question: Tell me the result for green bay packers
<|assistant|>
SELE... |
<|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,
"venue" text,
"attendance" real,
"record" text
);
Question: Tell mem the opponent for result of w 31-21
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the average speed of rider Peter Williams?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the time/s of team Triumph in those races in which Triumph ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history" (
"year" text,
"zone" text,
"final_round" text,
"score" text,
"result" text
);
Question: What was the score in 1969?
<|assistant|>
SELECT "score" FROM "history" WHERE "year"='1969';<|e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "history" (
"year" text,
"zone" text,
"final_round" text,
"score" text,
"result" text
);
Question: In 1975, what was the final round?
<|assistant|>
SELECT "final_round" FROM "history" WHERE "yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
Question: Where did someone run a 61:32
<|assistant|>
SELECT "event_place" FROM "men" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
Question: What was Derek Graham's time?
<|assistant|>
SELECT "time" FROM "men" WHERE "na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
Question: Where did someone run a 58:33?
<|assistant|>
SELECT "event_place" FROM "men" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: Tell me the player for pick number less than 29 and mls team of chicago fire
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Tell me the opponents for partner of yvonne meusbu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Tell me the date for opponents of raffaella bindi ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: Tell me the highest time for heat rank of 8 and lane more than 2
<|assist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.