text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What season did the Rangers win?
<|assistant|>
SELECT "season" FROM "tournaments" WHERE "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the score of the game with Falkirk as the runner-up?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the venue of the game where hibernian won and the rangers were the runner-up?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: what is the country for the 1972 winter olymp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: what is the winter olympics year when the fis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: what is the earliest winter olympics when the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
Question: what is the winter olympics when the country ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: what is the date when the away team is newport county?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: How many games have 5 goals and less than 8 assists?
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: What is the highest number of goals Eisbären Berlin had along with 13 points an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
);
Question: What is Ivan Ciernik's average points with less than 11 goals?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_afghanistan" (
"province" text,
"map_num" real,
"iso_3166_2_af" text,
"centers" text,
"population" real,
"area_km" real,
"language" text,
"notes" text,
"u_n_region" text
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft" (
"category" text,
"speed_km_h" real,
"speed_mph" real,
"vehicle" text,
"pilot" text,
"date" text
);
Question: In which category is Frank Scarabino a pilot?
<|assistant|>
SELECT "ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft" (
"category" text,
"speed_km_h" real,
"speed_mph" real,
"vehicle" text,
"pilot" text,
"date" text
);
Question: What is the sum of speed in km per hour reached by John Egginton?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: What is the name of team 1 that was after the 2005 season and with a 4-2 score?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: In the 2004 season with a 0-2 score what was the name of the venue?
<|assistant|>
SELECT "venue" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
);
Question: What is the earliest season that Pisico Bình ðinh is team 2?
<|assistant|>
SELECT MIN("season") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
);
Question: Which years have a rank less than 2?
<|assistant|>
SELECT "years" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
);
Question: How many games have rebounds larger than 1048?
<|assistant|>
SELECT COUN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
);
Question: How many rebounds have a Player of andre gaddy, and a Rank smaller than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
);
Question: How many rebounds have a Player of herb estes?
<|assistant|>
SELECT COUN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
);
Question: What is the total of rebound averages with more than 98 games and a rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: WHAT IS THE TEAM WITH astc round 1?
<|assistant|>
SELECT "team" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: WHAT IS THE WINNER WITH ATCC ROUND 6?
<|assistant|>
SELECT "winner" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"49ers_points" real,
"opponents" real,
"record" text,
"streak" text,
"attendance" real
);
Question: What is the low... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"49ers_points" real,
"opponents" real,
"record" text,
"streak" text,
"attendance" real
);
Question: What was the hi... |
<|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,
"num_of_years_as_tallest" text,
"height_m_ft" text,
"floors" real
);
Question: What is the street... |
<|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,
"num_of_years_as_tallest" text,
"height_m_ft" text,
"floors" real
);
Question: What is the name o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Region, when the Catalog is SM 2965-05?
<|assistant|>
SELECT "region" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Region, when the Catalog is 25AP 301?
<|assistant|>
SELECT "region" FROM "rel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is Date, when Catalog is EPC 81436?
<|assistant|>
SELECT "date" FROM "release_histor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is Label, when Format is Double CD?
<|assistant|>
SELECT "label" FROM "release_histo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is Label, when Region is Japan?
<|assistant|>
SELECT "label" FROM "release_history" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is Format, when Region is United States?
<|assistant|>
SELECT "format" FROM "release... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What was the date o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What was the manner... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What was the manner... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What is the date of... |
<|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: At what event did he fight ma... |
<|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 highest Round tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the number for the interview in Illi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the name of the country with less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the evening gown number when the ave... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the interview number in Louisiana, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the swimsuit number when the prelimi... |
<|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: Where was the game played on 30 May 2004?
<|assistant|>
SELECT "venue" FROM "inter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was Silva's Partner in the Amarante Tournament played... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was Silva's Partner in the match with a Score of 6–3,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: On what Date was the match with partner Kira Nagy?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Date of the Vigo Tournament?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What Tournament did Silva Partner with Nicole Thijssen wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is Name, when State is "Jin"?
<|assistant|>
SELECT "name" FROM "vassal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is Name, when Royal House is "Ji", and when State is "Cai"?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is State, when From is "830 BC"?
<|assistant|>
SELECT "state" FROM "va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
);
Question: Which Ratio has a Similar ISO A size of a3?
<|assistant|>
SELECT AVG("ratio") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
);
Question: Which mm × mm has an in × in of 11 × 17?
<|assistant|>
SELECT "mm_mm" FROM "ans... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
);
Question: Which Ratio has a Name of ansi e?
<|assistant|>
SELECT MIN("ratio") FROM "ansi_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
);
Question: Which Ratio has an in × in of 17 × 22?
<|assistant|>
SELECT "ratio" FROM "ansi_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text
);
Question: What is the Distance of the 1945 Vuelta a Espana with 4A Stage?
<|assistant|>
SELECT "dist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_career_money_winners" (
"rank" real,
"player" text,
"country" text,
"earned" text,
"earnings" real
);
Question: What earned has 5 for the rank?
<|assistant|>
SELECT "earned" FROM "leadi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leading_career_money_winners" (
"rank" real,
"player" text,
"country" text,
"earned" text,
"earnings" real
);
Question: What is the average earnings ($) that has meg mallon as the player, with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gasoline_taxes_in_canada" (
"government" text,
"federal_excise_tax_cad_l" real,
"total_excise_tax_cad_l" real,
"minimum_tax_incl_sales_taxes_cad_l" real,
"min_tax_cad_us_gal" real
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gasoline_taxes_in_canada" (
"government" text,
"federal_excise_tax_cad_l" real,
"total_excise_tax_cad_l" real,
"minimum_tax_incl_sales_taxes_cad_l" real,
"min_tax_cad_us_gal" real
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: Which Name has a Date of 11 june 1940?
<|assistant|>
SELECT "name" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) sm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: Which Tonnage (GRT) is the highest one that has a Date of 16 june 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
);
Question: Which Nationality has a Name of assyrian?
<|assistant|>
SELECT "nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: With a swim ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: Daniela Ryf ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: For the tria... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: How long did... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: With a date of Aldershot and Aldershot as the away team what was the score of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score for the game when West Ham United was the away team?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: With Sheffield United as the away team and the date, what home team has a tie no... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the home team when Sheffield United was the away team and the date was a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What tie no has Watford as the date?
<|assistant|>
SELECT "tie_no" FROM "fourth_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which Country has a To par of –13?
<|assistant|>
SELECT "country" FROM "third_round" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which Player has a Score of 72-69-73=214?
<|assistant|>
SELECT "player" FROM "third_round" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which Score has a To par of –4, and a Player of duffy waldorf?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which Country has a Score of 79-68-74=212?
<|assistant|>
SELECT "country" FROM "third_round"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which To par has a Country of united states, and a Player of duffy waldorf?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_10_7_3" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"opponent_in_final" text,
"score" text
);
Question: What is Opponent In Final, when Surface is Hard, whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_10_7_3" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"opponent_in_final" text,
"score" text
);
Question: What is Surface, when Date is 2 May 1999?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg when team #1 is Rubin Kazan?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the agg when team #2 is 2006 UEFA Intert... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.