text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In round 9 what was the nationality?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "round"='9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In round 3 what was the position?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "round"='3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Who has a nationality of Czech Republic and a position of right wing?
<|assistant|>
SELECT "player" FROM "draft_picks" WHERE "position"='right wing' AND "nationality"='czech republic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "won_lost_records" (
"quarterback" text,
"uniform_no_s" real,
"games_started" real,
"wins" real,
"losses" real,
"ties" real,
"winning_pct" real
);
Question: What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?
<|assistant|>
SELECT MAX("winning_pct") FROM "won_lost_records" WHERE "losses">4 AND "ties"<2 AND "games_started">11 AND "wins"<22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_country" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?
<|assistant|>
SELECT COUNT("gold") FROM "titles_by_country" WHERE "rank"='6' AND "bronze">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_country" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Total of 5 had what bronze?
<|assistant|>
SELECT "bronze" FROM "titles_by_country" WHERE "total"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: In which tournament did he place 20th?
<|assistant|>
SELECT "tournament" FROM "achievements" WHERE "result"='20th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: What the result for the hypo-meeting tournament in 1994?
<|assistant|>
SELECT "result" FROM "achievements" WHERE "year"=1994 AND "tournament"='hypo-meeting';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: What was the result in 1995?
<|assistant|>
SELECT "result" FROM "achievements" WHERE "year"=1995;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: After March 19, what's the score of game 67?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "march">19 AND "game"=67;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: Who is the head linesman of the game on 1 February 2009?
<|assistant|>
SELECT "head_linesman" FROM "nfl_championships" WHERE "date"='1 february 2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?
<|assistant|>
SELECT "date" FROM "nfl_championships" WHERE "line_judge"='bob beeks' AND "head_linesman"='jerry bergman' AND "back_judge"='paul baetz';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: Which game was on 14 January 1973?
<|assistant|>
SELECT "game" FROM "nfl_championships" WHERE "date"='14 january 1973';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: Who was the line judge at the game where Scott Green was referee?
<|assistant|>
SELECT "line_judge" FROM "nfl_championships" WHERE "referee"='scott green';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: Who is the head linesman at game xxxv?
<|assistant|>
SELECT "head_linesman" FROM "nfl_championships" WHERE "game"='xxxv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_championships" (
"game" text,
"date" text,
"referee" text,
"umpire" text,
"head_linesman" text,
"line_judge" text,
"field_judge" text,
"back_judge" text
);
Question: What game had Al Jury as field judge?
<|assistant|>
SELECT "game" FROM "nfl_championships" WHERE "field_judge"='al jury';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_timetables" (
"station_code" text,
"station" text,
"arrival" text,
"departure" text,
"kilometers" real
);
Question: What's listed for Departure that has 1676 listed for the Kilometers?
<|assistant|>
SELECT "departure" FROM "running_timetables" WHERE "kilometers"=1676;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_timetables" (
"station_code" text,
"station" text,
"arrival" text,
"departure" text,
"kilometers" real
);
Question: What is the sum of Kilometers that has a Station Code of KGQ?
<|assistant|>
SELECT COUNT("kilometers") FROM "running_timetables" WHERE "station_code"='kgq';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_timetables" (
"station_code" text,
"station" text,
"arrival" text,
"departure" text,
"kilometers" real
);
Question: What's the Kilometers listed that also has the Station Code of Kuda?
<|assistant|>
SELECT "kilometers" FROM "running_timetables" WHERE "station_code"='kuda';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_timetables" (
"station_code" text,
"station" text,
"arrival" text,
"departure" text,
"kilometers" real
);
Question: What's listed for the Station Code that has the Arrival of 02:20?
<|assistant|>
SELECT "station_code" FROM "running_timetables" WHERE "arrival"='02:20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_timetables" (
"station_code" text,
"station" text,
"arrival" text,
"departure" text,
"kilometers" real
);
Question: What is listede for Departure that also has a Station Code of CLT?
<|assistant|>
SELECT "departure" FROM "running_timetables" WHERE "station_code"='clt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "islands_under_square_miles_km" (
"island_s_name" text,
"area_sq_mi" real,
"area_km_2" real,
"location" text,
"population_2000" text
);
Question: What is the smallest area with 45 population?
<|assistant|>
SELECT MIN("area_km_2") FROM "islands_under_square_miles_km" WHERE "population_2000"='45';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "islands_under_square_miles_km" (
"island_s_name" text,
"area_sq_mi" real,
"area_km_2" real,
"location" text,
"population_2000" text
);
Question: What is the area located in Rhode Island with more than 38 sq mi area?
<|assistant|>
SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "location"='rhode island' AND "area_sq_mi">38;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "islands_under_square_miles_km" (
"island_s_name" text,
"area_sq_mi" real,
"area_km_2" real,
"location" text,
"population_2000" text
);
Question: What is the average area in New York that is larger than 55 sq mi?
<|assistant|>
SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "area_sq_mi">55 AND "location"='new york';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Which event was in Tokyo, Japan and had an opponent of rumina sato?
<|assistant|>
SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "opponent"='rumina sato';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Which round was 2:30?
<|assistant|>
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='2:30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Which event had the opponent of shinya aoki and was at 4:56?
<|assistant|>
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='shinya aoki' AND "time"='4:56';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: Which method did pride bushido 10 have ?
<|assistant|>
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride bushido 10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2012_13" text
);
Question: Which 2008–09 has an Event of autumn gold?
<|assistant|>
SELECT "2008_09" FROM "grand_slam_record" WHERE "event"='autumn gold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2012_13" text
);
Question: Which 2009–10 has a 2012–13 of r16?
<|assistant|>
SELECT "2009_10" FROM "grand_slam_record" WHERE "2012_13"='r16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2012_13" text
);
Question: Which 2008–09 has a 2012–13 of q, and a 2006–07 of q, and a 2007–08 of qf?
<|assistant|>
SELECT "2008_09" FROM "grand_slam_record" WHERE "2012_13"='q' AND "2006_07"='q' AND "2007_08"='qf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2012_13" text
);
Question: Which 2007–08 has a 2009–10 of dnp?
<|assistant|>
SELECT "2007_08" FROM "grand_slam_record" WHERE "2009_10"='dnp';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Drawn has a Team of internacional-sp?
<|assistant|>
SELECT SUM("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='internacional-sp';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How much Lost has a Drawn larger than 5, and a Played larger than 18?
<|assistant|>
SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "drawn">5 AND "played">18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Drawn is the highest one that has a Played smaller than 18?
<|assistant|>
SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "played"<18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?
<|assistant|>
SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "against">15 AND "points"<15 AND "lost"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_feet_m" text,
"floors" real
);
Question: What's the least amount of floors at 921 sw sixth avenue?
<|assistant|>
SELECT MIN("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='921 sw sixth avenue';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_feet_m" text,
"floors" real
);
Question: What's the address of the union bank of California tower?
<|assistant|>
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='union bank of california tower';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_feet_m" text,
"floors" real
);
Question: What were the years that the building at 200 sw harrison was considered to be the tallest building?
<|assistant|>
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='200 sw harrison';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_results" (
"position" real,
"pilot" text,
"country" text,
"glider" text,
"points" real
);
Question: What is the smallest position with less than 7 points piloted by Didier Hauss?
<|assistant|>
SELECT MIN("position") FROM "overall_results" WHERE "points"<7 AND "pilot"='didier hauss';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"result" text,
"runner_up" text,
"final_venue" text
);
Question: During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?
<|assistant|>
SELECT "season" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "final_venue"='sandy lane';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"result" text,
"runner_up" text,
"final_venue" text
);
Question: What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?
<|assistant|>
SELECT "runner_up" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "season"='2005-06';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"result" text,
"runner_up" text,
"final_venue" text
);
Question: What was the Result in Green Lane with Kirkburton as the Runner-up?
<|assistant|>
SELECT "result" FROM "list_of_finals" WHERE "runner_up"='kirkburton' AND "final_venue"='green lane';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"result" text,
"runner_up" text,
"final_venue" text
);
Question: What was the Result in the 2005-06 Season?
<|assistant|>
SELECT "result" FROM "list_of_finals" WHERE "season"='2005-06';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"result" text,
"runner_up" text,
"final_venue" text
);
Question: What was the Final Venue having Sheffield Reserves as the Winner?
<|assistant|>
SELECT "final_venue" FROM "list_of_finals" WHERE "winner"='sheffield reserves';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What is the total number of Round that has a Time of 6:04?
<|assistant|>
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "time"='6:04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What Round has the Method of Submission (Single Wing Choke)?
<|assistant|>
SELECT "round" FROM "mixed_martial_arts_record" WHERE "method"='submission (single wing choke)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?
<|assistant|>
SELECT "class" FROM "translators" WHERE "frequency_m_hz">91.5 AND "city_of_license"='hyannis, nebraska';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?
<|assistant|>
SELECT "class" FROM "translators" WHERE "erp_w">205 AND "frequency_m_hz"<93.9 AND "call_sign"='k210cb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?
<|assistant|>
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w">205 AND "call_sign"='k230ap';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Frequency MHz has a ERP W of 250?
<|assistant|>
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w"=250;<|endoftext|> |
<|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" text,
"record" text
);
Question: What was the date of game 81?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "game"=81;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: WHich Surface has an Opponent of gustavo kuerten?
<|assistant|>
SELECT "surface" FROM "singles_13_6_7" WHERE "opponent"='gustavo kuerten';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Surface has a Tournament of st. petersburg , russia?
<|assistant|>
SELECT "surface" FROM "singles_13_6_7" WHERE "tournament"='st. petersburg , russia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?
<|assistant|>
SELECT "date" FROM "singles_13_6_7" WHERE "surface"='hard (i)' AND "tournament"='brighton , united kingdom';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Opponent has a Score of 3–6, 5–7?
<|assistant|>
SELECT "opponent" FROM "singles_13_6_7" WHERE "score"='3–6, 5–7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When has a Tournament of palermo , italy?
<|assistant|>
SELECT "date" FROM "singles_13_6_7" WHERE "tournament"='palermo , italy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_13_6_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Opponent is on 29 september 1997?
<|assistant|>
SELECT "opponent" FROM "singles_13_6_7" WHERE "date"='29 september 1997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: Which constellation has hd 75732 as a destignation HD?
<|assistant|>
SELECT "constellation" FROM "cosmic_call_messages" WHERE "designation_hd"='hd 75732';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: What message has hd 186408 as a designation HD?
<|assistant|>
SELECT "message" FROM "cosmic_call_messages" WHERE "designation_hd"='hd 186408';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: What date sent has cygnus as a constellation, and hd 190360 as a designation HD?
<|assistant|>
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='cygnus' AND "designation_hd"='hd 190360';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: What date sent has orion as the constellation?
<|assistant|>
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='orion';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?
<|assistant|>
SELECT "constellation" FROM "cosmic_call_messages" WHERE "message"='cosmic call 1' AND "arrival_date"='october 2067';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cosmic_call_messages" (
"designation_hd" text,
"constellation" text,
"date_sent" text,
"arrival_date" text,
"message" text
);
Question: What date sent has cancer as the constellation?
<|assistant|>
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='cancer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?
<|assistant|>
SELECT MAX("conceded") FROM "torneo_clausura" WHERE "points">17 AND "team"='guaraní' AND "losses"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Which Conceded has Draws smaller than 5, and a Position larger than 6?
<|assistant|>
SELECT SUM("conceded") FROM "torneo_clausura" WHERE "draws"<5 AND "position">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many Points have a Played larger than 18?
<|assistant|>
SELECT COUNT("points") FROM "torneo_clausura" WHERE "played">18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Which Scored has a Team of recoleta?
<|assistant|>
SELECT SUM("scored") FROM "torneo_clausura" WHERE "team"='recoleta';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Notes have a Date of 2008-01-27?
<|assistant|>
SELECT "notes" FROM "personal_records" WHERE "date"='2008-01-27';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Date has a Distance of 3,000 m?
<|assistant|>
SELECT "date" FROM "personal_records" WHERE "distance"='3,000 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Distance has a Time of men's speed skating?
<|assistant|>
SELECT "distance" FROM "personal_records" WHERE "time"='men''s speed skating';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Location has a Time of time?
<|assistant|>
SELECT "location" FROM "personal_records" WHERE "time"='time';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Location has a Distance of 10,000 m?
<|assistant|>
SELECT "location" FROM "personal_records" WHERE "distance"='10,000 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: Which Date has a Distance of 500 m?
<|assistant|>
SELECT "date" FROM "personal_records" WHERE "distance"='500 m';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: What was the score for the June 22 game with attendance 0?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='june 22' AND "attendance"=0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What type of surface was used for the carthage tournament on august 14, 1994?
<|assistant|>
SELECT "surface" FROM "singles" WHERE "tournament"='carthage' AND "date"='august 14, 1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which tournament has marielle bruens for the opponent in the final?
<|assistant|>
SELECT "tournament" FROM "singles" WHERE "opponent_in_the_final"='marielle bruens';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What surface was used on may 13, 2007?
<|assistant|>
SELECT "surface" FROM "singles" WHERE "date"='may 13, 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oklahoma" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Frequency MHz of 93.7 has what class?
<|assistant|>
SELECT "class" FROM "oklahoma" WHERE "frequency_m_hz"=93.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "languages" (
"language" text,
"totora_municipality" real,
"pojo_municipality" real,
"pocona_municipality" real,
"chimor_municipality" real,
"puerto_villarroel_municipality" real,
"entre_r_os_municipality" real
);
Question: What is the average Entre Ríos Municipality with less than 9 Pojo Municipalities?
<|assistant|>
SELECT AVG("entre_r_os_municipality") FROM "languages" WHERE "pojo_municipality"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "languages" (
"language" text,
"totora_municipality" real,
"pojo_municipality" real,
"pocona_municipality" real,
"chimor_municipality" real,
"puerto_villarroel_municipality" real,
"entre_r_os_municipality" real
);
Question: What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?
<|assistant|>
SELECT COUNT("pocona_municipality") FROM "languages" WHERE "totora_municipality"=72 AND "pojo_municipality">74;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "languages" (
"language" text,
"totora_municipality" real,
"pojo_municipality" real,
"pocona_municipality" real,
"chimor_municipality" real,
"puerto_villarroel_municipality" real,
"entre_r_os_municipality" real
);
Question: What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?
<|assistant|>
SELECT MAX("chimor_municipality") FROM "languages" WHERE "pojo_municipality"=9 AND "totora_municipality"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1995" text,
"supercopa_1995" text,
"conmebol_1995" text,
"copa_libertadores_1996" text
);
Question: Which Copa Libertadores 1996 has a Team of estudiantes?
<|assistant|>
SELECT "copa_libertadores_1996" FROM "argentine_clubs_in_international_competi" WHERE "team"='estudiantes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1995" text,
"supercopa_1995" text,
"conmebol_1995" text,
"copa_libertadores_1996" text
);
Question: which CONMEBOL 1995 has a Supercopa 1995 of sf?
<|assistant|>
SELECT "conmebol_1995" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1995"='sf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1995" text,
"supercopa_1995" text,
"conmebol_1995" text,
"copa_libertadores_1996" text
);
Question: which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?
<|assistant|>
SELECT "copa_libertadores_1996" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1995"='round 1' AND "team"='argentinos juniors';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1995" text,
"supercopa_1995" text,
"conmebol_1995" text,
"copa_libertadores_1996" text
);
Question: Which CONMEBOL 1995 has river plate team?
<|assistant|>
SELECT "conmebol_1995" FROM "argentine_clubs_in_international_competi" WHERE "team"='river plate';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1995" text,
"supercopa_1995" text,
"conmebol_1995" text,
"copa_libertadores_1996" text
);
Question: Which Team has a round 1 CONMEBOL 1995?
<|assistant|>
SELECT "team" FROM "argentine_clubs_in_international_competi" WHERE "conmebol_1995"='round 1';<|endoftext|> |
<|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,
"record" text,
"game_site" text,
"tv_time" text,
"attendance" text
);
Question: Which Date has an Attendance of 57,013?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendance"='57,013';<|endoftext|> |
<|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,
"record" text,
"game_site" text,
"tv_time" text,
"attendance" text
);
Question: Which Date has a TV Time of cbs 1:00pm, and a Game Site of rca dome, and an Opponent of cincinnati bengals?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "tv_time"='cbs 1:00pm' AND "game_site"='rca dome' AND "opponent"='cincinnati bengals';<|endoftext|> |
<|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,
"record" text,
"game_site" text,
"tv_time" text,
"attendance" text
);
Question: Which TV Time has a Date of december 26, 1999?
<|assistant|>
SELECT "tv_time" FROM "schedule" WHERE "date"='december 26, 1999';<|endoftext|> |
<|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,
"record" text,
"game_site" text,
"tv_time" text,
"attendance" text
);
Question: Which Game Site has a Date of october 17, 1999?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "date"='october 17, 1999';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: what's the result with streak of won 6?
<|assistant|>
SELECT "result" FROM "season_schedule" WHERE "streak"='won 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What was the 2nd leg score having an aggregate score of 4-2?
<|assistant|>
SELECT "2nd_leg" FROM "winners_knockout" WHERE "aggregate"='4-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What was the home team for the 2nd leg for the match having a 1st leg score of 2-1?
<|assistant|>
SELECT "home_2nd_leg" FROM "winners_knockout" WHERE "1st_leg"='2-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What was the home team for the 2nd leg of the match having an aggregate of 2-3?
<|assistant|>
SELECT "home_2nd_leg" FROM "winners_knockout" WHERE "aggregate"='2-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?
<|assistant|>
SELECT MIN("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "drawn"<12 AND "against"=41 AND "points"<69;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the highest number of played of the team with less than 11 losses and less than 12 drawns?
<|assistant|>
SELECT MAX("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost"<11 AND "drawn"<12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the sum of againsts the team with less than 38 played had?
<|assistant|>
SELECT SUM("against") FROM "campeonato_brasileiro_s_rie_b" WHERE "played"<38;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the average drawn of the team with a difference of 4 and more than 13 losses?
<|assistant|>
SELECT AVG("drawn") FROM "campeonato_brasileiro_s_rie_b" WHERE "difference"='4' AND "lost">13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the position of the team with more than 16 losses and an against greater than 74?
<|assistant|>
SELECT SUM("position") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost">16 AND "against">74;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.