text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"rd" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Who had the pole position in the Canadian Grand Prix?
<|assistant|>
SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_members" (
"institution" text,
"location_population" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname_colors" text,
"football" text
);
Question: What year was the institution of St. Catharine College founded?
<|assistant|>
SELECT MIN("founded") FROM "full_members" WHERE "institution"='St. Catharine College';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_members" (
"institution" text,
"location_population" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname_colors" text,
"football" text
);
Question: What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?
<|assistant|>
SELECT "enrollment" FROM "full_members" WHERE "location_population"='Lebanon, Tennessee (20,235)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_members" (
"institution" text,
"location_population" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname_colors" text,
"football" text
);
Question: What is the location and population of the institution called Bluefield College?
<|assistant|>
SELECT "location_population" FROM "full_members" WHERE "institution"='Bluefield College';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: How many times was the result is hired by serepisos?
<|assistant|>
SELECT COUNT("hometown") FROM "table1_26263322_1" WHERE "result"='Hired by Serepisos';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: What is the age when the result is fired in week 8
<|assistant|>
SELECT MIN("age") FROM "table1_26263322_1" WHERE "result"='Fired in week 8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: What is the background of the candidate daniel phillips?
<|assistant|>
SELECT "background" FROM "table1_26263322_1" WHERE "candidate"='Daniel Phillips';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: How many times was the background self-employed - media agency?
<|assistant|>
SELECT COUNT("candidate") FROM "table1_26263322_1" WHERE "background"='Self-employed - media agency';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: How many times was the background university student?
<|assistant|>
SELECT COUNT("result") FROM "table1_26263322_1" WHERE "background"='University Student';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26263322_1" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: What is the candidate whose age is 27?
<|assistant|>
SELECT "candidate" FROM "table1_26263322_1" WHERE "age"=27;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: In Round 6, who is the winning team?
<|assistant|>
SELECT "winning_team" FROM "race_calendar_and_results" WHERE "round"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?
<|assistant|>
SELECT "date" FROM "race_calendar_and_results" WHERE "winning_team"='Abt Sportsline' AND "pole_position"='Mattias Ekström' AND "circuit"='Circuit Ricardo Tormo , Valencia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Round 1 is in what circuit?
<|assistant|>
SELECT "circuit" FROM "race_calendar_and_results" WHERE "round"='1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?
<|assistant|>
SELECT "pole_position" FROM "race_calendar_and_results" WHERE "winning_driver"='Bruno Spengler' AND "circuit"='Showevent Olympiastadion München';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Where the fastest lap is Mike Rockenfeller, who is the winning driver?
<|assistant|>
SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: How many dates are there in round 3?
<|assistant|>
SELECT COUNT("date") FROM "race_calendar_and_results" WHERE "round"='3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26261072_1" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the least series number written by brenda hampton and directed by burt brinckerhoff
<|assistant|>
SELECT MIN("series_num") FROM "table1_26261072_1" WHERE "written_by"='Brenda Hampton' AND "directed_by"='Burt Brinckerhoff';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26261072_1" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the original air date for series number 15
<|assistant|>
SELECT "original_air_date" FROM "table1_26261072_1" WHERE "series_num"=15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What team was Pearson on when his winnings were $5,200?
<|assistant|>
SELECT "team_s" FROM "nascar_nationwide_series" WHERE "winnings"='$5,200';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many starts did Pearson have when his winnings were $101,438?
<|assistant|>
SELECT "starts" FROM "nascar_nationwide_series" WHERE "winnings"='$101,438';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many top 10's did Pearson have the year he was in 8th position?
<|assistant|>
SELECT MIN("top_10") FROM "nascar_nationwide_series" WHERE "position"='8th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2626495_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
);
Question: what is the title of the episode daphne field wrote?
<|assistant|>
SELECT "title" FROM "table1_2626495_1" WHERE "written_by"='Daphne Field';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2626495_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
);
Question: who directed the episode james clavell wrote?
<|assistant|>
SELECT "directed_by" FROM "table1_2626495_1" WHERE "written_by"='James Clavell';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2626495_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
);
Question: how many times was the episode directed by maury geraghty originally aired?
<|assistant|>
SELECT COUNT("originalairdate") FROM "table1_2626495_1" WHERE "directed_by"='Maury Geraghty';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: What Film Festival had participants/recipients of Isao Tomita?
<|assistant|>
SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: Who was the participant or recipient for the Best Female Actor?
<|assistant|>
SELECT "participants_recipients" FROM "film_festivals" WHERE "category"='Best Female Actor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: What date was the participant/recipient takakazu watanabe?
<|assistant|>
SELECT "date_of_ceremony" FROM "film_festivals" WHERE "participants_recipients"='Takakazu Watanabe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: What film festival had the Best Male Actor?
<|assistant|>
SELECT "film_festival" FROM "film_festivals" WHERE "category"='Best Male Actor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: What film festival was the participant/recipient Isao Tomita?
<|assistant|>
SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film_festivals" (
"film_festival" text,
"date_of_ceremony" text,
"category" text,
"participants_recipients" text,
"result" text
);
Question: What category was the the participant/recipient otōto?
<|assistant|>
SELECT "category" FROM "film_festivals" WHERE "participants_recipients"='Otōto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"finished" text,
"performance_order" real,
"percentage_of_votes" text,
"artist" text,
"act" text,
"semi_finals_result" text
);
Question: Name the performance order of the velasco brothers
<|assistant|>
SELECT "performance_order" FROM "results" WHERE "artist"='Velasco Brothers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"finished" text,
"performance_order" real,
"percentage_of_votes" text,
"artist" text,
"act" text,
"semi_finals_result" text
);
Question: Name the number of semi final results for 12 performance order
<|assistant|>
SELECT COUNT("semi_finals_result") FROM "results" WHERE "performance_order"=12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"finished" text,
"performance_order" real,
"percentage_of_votes" text,
"artist" text,
"act" text,
"semi_finals_result" text
);
Question: Name the performance order for 2.15%
<|assistant|>
SELECT "performance_order" FROM "results" WHERE "percentage_of_votes"='2.15%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"finished" text,
"performance_order" real,
"percentage_of_votes" text,
"artist" text,
"act" text,
"semi_finals_result" text
);
Question: Name the percentage of votes for 3rd finished
<|assistant|>
SELECT "percentage_of_votes" FROM "results" WHERE "finished"='3rd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"finished" text,
"performance_order" real,
"percentage_of_votes" text,
"artist" text,
"act" text,
"semi_finals_result" text
);
Question: Name the percentage of votes for violinist
<|assistant|>
SELECT "percentage_of_votes" FROM "results" WHERE "act"='Violinist';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_36_results_summary" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"semifinal_week" real,
"position_reached" text
);
Question: what are all the hometown where the average age is 16
<|assistant|>
SELECT "hometown" FROM "top_36_results_summary" WHERE "age_s"='16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is the population in 2011 for the name Beaubassin East?
<|assistant|>
SELECT "population_2011" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is every population density if name is Beaubassin East?
<|assistant|>
SELECT "population_density" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is every value for area for population density of 100.8?
<|assistant|>
SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "population_density"='100.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is every value for change% for area of 1835.01?
<|assistant|>
SELECT "change_pct" FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='1835.01';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: How many names correspond to an area of 8.12?
<|assistant|>
SELECT COUNT("name") FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='8.12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rural_communities_in_new_brunswi" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is every value for area if change% is -3.6?
<|assistant|>
SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "change_pct"='-3.6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" real,
"population_2011" real,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1992_2010_latest_available" text,
"hdi_2012" text,
"fsi_2012" text,
"cpi_2012" text,
"ief_2013" text,
"gpi_2012" text,
"wpfi_2013" text,
"di_2012" text
);
Question: Name the hdi 2012 for dominica
<|assistant|>
SELECT "hdi_2012" FROM "indicators" WHERE "country"='Dominica';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" real,
"population_2011" real,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1992_2010_latest_available" text,
"hdi_2012" text,
"fsi_2012" text,
"cpi_2012" text,
"ief_2013" text,
"gpi_2012" text,
"wpfi_2013" text,
"di_2012" text
);
Question: Name the fsi 2012 for 42.7 cpi
<|assistant|>
SELECT "fsi_2012" FROM "indicators" WHERE "cpi_2012"='42.7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" real,
"population_2011" real,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1992_2010_latest_available" text,
"hdi_2012" text,
"fsi_2012" text,
"cpi_2012" text,
"ief_2013" text,
"gpi_2012" text,
"wpfi_2013" text,
"di_2012" text
);
Question: Name the gdp per capita for haiti
<|assistant|>
SELECT "gdp_ppp_per_capita_intl_2011" FROM "indicators" WHERE "country"='Haiti';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26335424_86" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text
);
Question: How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?
<|assistant|>
SELECT COUNT("round_of_16") FROM "table1_26335424_86" WHERE "round_of_32"='Lakpa Tashi Sherpa ( BHU ) W PTS 12-5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26335424_86" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text
);
Question: If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?
<|assistant|>
SELECT "athlete" FROM "table1_26335424_86" WHERE "quarterfinals"='Nabil Talal ( JOR ) L PTS 3-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26335424_86" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text
);
Question: If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?
<|assistant|>
SELECT "round_of_32" FROM "table1_26335424_86" WHERE "quarterfinals"='Did not advance' AND "event"='Bantamweight (-63kg)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26335424_86" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text
);
Question: If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?
<|assistant|>
SELECT "semifinals" FROM "table1_26335424_86" WHERE "round_of_16"='Yulius Fernando ( INA ) L PTS 5-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26335424_86" (
"athlete" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text
);
Question: If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?
<|assistant|>
SELECT "event" FROM "table1_26335424_86" WHERE "round_of_32"='Sawatvilay Phimmasone ( LAO ) W PTS 9-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What date was the district incumbent Saxby Chambliss elected?
<|assistant|>
SELECT MAX("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the status in the district with the incumbent Bob Barr?
<|assistant|>
SELECT "status" FROM "results" WHERE "incumbent"='Bob Barr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: How many elected catagories are there for the district with Saxby Chambliss as the incumbent?
<|assistant|>
SELECT COUNT("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What was the result for the district with an election in 1986
<|assistant|>
SELECT "result" FROM "results" WHERE "elected"=1986;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: how many party classifications are there for the incumbent Mac Collins?
<|assistant|>
SELECT COUNT("party") FROM "results" WHERE "incumbent"='Mac Collins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: For the engine family MaxxForce 11, what is the years produced?
<|assistant|>
SELECT "years_produced" FROM "table1_26352332_4" WHERE "engine_family"='MaxxForce 11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: The cylinder layout v8 is produced in what years?
<|assistant|>
SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: The years produced for the cylinder layout v8 are what?
<|assistant|>
SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: The engine family MaxxForce 5 in the years produced 2007-current, have what cylinder layout?
<|assistant|>
SELECT "cylinder_layout" FROM "table1_26352332_4" WHERE "years_produced"='2007-current' AND "engine_family"='MaxxForce 5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: Where the displacement(s) is 10.5L is, what is the engine family?
<|assistant|>
SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='10.5L';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26352332_4" (
"engine_family" text,
"cylinder_layout" text,
"displacement_s" text,
"injection_type" text,
"years_produced" text
);
Question: The displacement(s) 466 cubic inches (7.6L), has what engine family?
<|assistant|>
SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='466 cubic inches (7.6L)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "later_thalers_with_event_location_and_ye" (
"location" text,
"date" real,
"denomination" text,
"coinage_metal" text,
"mintage" real,
"km_number" text
);
Question: What is the coinage metal for a KM number of S75?
<|assistant|>
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S75';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "later_thalers_with_event_location_and_ye" (
"location" text,
"date" real,
"denomination" text,
"coinage_metal" text,
"mintage" real,
"km_number" text
);
Question: What is the maximum date for a mintage of 150 and a KM number of S66?
<|assistant|>
SELECT MAX("date") FROM "later_thalers_with_event_location_and_ye" WHERE "mintage"=150 AND "km_number"='S66';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "later_thalers_with_event_location_and_ye" (
"location" text,
"date" real,
"denomination" text,
"coinage_metal" text,
"mintage" real,
"km_number" text
);
Question: What is the mintage for a location of Sion and a denomination of 00500 500 Francs?
<|assistant|>
SELECT "mintage" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Sion' AND "denomination"='00500 500 francs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "later_thalers_with_event_location_and_ye" (
"location" text,
"date" real,
"denomination" text,
"coinage_metal" text,
"mintage" real,
"km_number" text
);
Question: What is the coinage metal for KM numbers of S45?
<|assistant|>
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S45';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "later_thalers_with_event_location_and_ye" (
"location" text,
"date" real,
"denomination" text,
"coinage_metal" text,
"mintage" real,
"km_number" text
);
Question: What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?
<|assistant|>
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Fribourg' AND "denomination"='00005 5 francs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: When the under-17 was Antonio Glez, who was the under-13?
<|assistant|>
SELECT "under_13" FROM "boys" WHERE "under_17"='Antonio Glez';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: In the year 2009 who was the under-13?
<|assistant|>
SELECT "under_13" FROM "boys" WHERE "year"=2009;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: When Julian Illingworth was the under-19, who was the under-15?
<|assistant|>
SELECT "under_15" FROM "boys" WHERE "under_19"='Julian Illingworth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: Who was the under-15 when Moises Galvez was the under-17?
<|assistant|>
SELECT "under_15" FROM "boys" WHERE "under_17"='Moises Galvez';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?
<|assistant|>
SELECT COUNT("year") FROM "boys" WHERE "under_15"='Arturo Salazar Martinez' AND "under_19"='Moises Galvez';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: When the under-11 was Aly Abou El Einen, who was the under-13?
<|assistant|>
SELECT "under_13" FROM "boys" WHERE "under_11"='Aly Abou El Einen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_congress_of_deputies" (
"election_number" real,
"election_date" text,
"district" text,
"province" text,
"took_office" text,
"left_office" text
);
Question: What is the election date for those politicians who left office on 1850-11-15?
<|assistant|>
SELECT COUNT("election_date") FROM "elections_to_congress_of_deputies" WHERE "left_office"='1850-11-15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_congress_of_deputies" (
"election_number" real,
"election_date" text,
"district" text,
"province" text,
"took_office" text,
"left_office" text
);
Question: What are the election date for elections held in the province of Albacete?
<|assistant|>
SELECT "election_date" FROM "elections_to_congress_of_deputies" WHERE "province"='Albacete';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_congress_of_deputies" (
"election_number" real,
"election_date" text,
"district" text,
"province" text,
"took_office" text,
"left_office" text
);
Question: What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?
<|assistant|>
SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "election_number"=11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_congress_of_deputies" (
"election_number" real,
"election_date" text,
"district" text,
"province" text,
"took_office" text,
"left_office" text
);
Question: In how many district has a politician took office on 1844-10-14?
<|assistant|>
SELECT "district" FROM "elections_to_congress_of_deputies" WHERE "took_office"='1844-10-14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_congress_of_deputies" (
"election_number" real,
"election_date" text,
"district" text,
"province" text,
"took_office" text,
"left_office" text
);
Question: What are the dates of leaving office for politician from the province of Seville?
<|assistant|>
SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "province"='Seville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"location" text,
"country" text,
"date" text,
"fastest_qualifying" text,
"winning_pilot" text,
"winning_aircraft" text
);
Question: When united arab emirates is the country how many fastest qualifying are there?
<|assistant|>
SELECT COUNT("fastest_qualifying") FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"location" text,
"country" text,
"date" text,
"fastest_qualifying" text,
"winning_pilot" text,
"winning_aircraft" text
);
Question: When cancelled is the fastest qualifying where is the location?
<|assistant|>
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_qualifying"='Cancelled';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"location" text,
"country" text,
"date" text,
"fastest_qualifying" text,
"winning_pilot" text,
"winning_aircraft" text
);
Question: When united arab emirates is the country what is the winning aircraft?
<|assistant|>
SELECT "winning_aircraft" FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_triple_doubles" (
"num" real,
"player" text,
"points" real,
"rebounds" real,
"assists" real,
"opponent" text,
"date" text
);
Question: List the number of assists against illinois-chicago.
<|assistant|>
SELECT "assists" FROM "individual_triple_doubles" WHERE "opponent"='Illinois-Chicago';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_triple_doubles" (
"num" real,
"player" text,
"points" real,
"rebounds" real,
"assists" real,
"opponent" text,
"date" text
);
Question: List the opposing team on february 15, 2003.
<|assistant|>
SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 15, 2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_triple_doubles" (
"num" real,
"player" text,
"points" real,
"rebounds" real,
"assists" real,
"opponent" text,
"date" text
);
Question: List the number of recovers for player #2.
<|assistant|>
SELECT "rebounds" FROM "individual_triple_doubles" WHERE "num"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_triple_doubles" (
"num" real,
"player" text,
"points" real,
"rebounds" real,
"assists" real,
"opponent" text,
"date" text
);
Question: List the opposing team from february 22, 1983.
<|assistant|>
SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 22, 1983';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_triple_doubles" (
"num" real,
"player" text,
"points" real,
"rebounds" real,
"assists" real,
"opponent" text,
"date" text
);
Question: List the lowest number of assists.
<|assistant|>
SELECT MIN("assists") FROM "individual_triple_doubles";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: What is every value for Under-11 when value of under-17 is Salma Nassar?
<|assistant|>
SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?
<|assistant|>
SELECT "under_13" FROM "girls" WHERE "under_15"='Maria Elena Ubina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: What is every value for Under-17 if Under-15 is Maria Elena Ubina?
<|assistant|>
SELECT "under_17" FROM "girls" WHERE "under_15"='Maria Elena Ubina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: What is every value for Under-11 if Under-19 is Leong Siu Lynn?
<|assistant|>
SELECT "under_11" FROM "girls" WHERE "under_19"='Leong Siu Lynn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: Who is everyone Under-11 if Under-17 is Salma Nassar?
<|assistant|>
SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"year" real,
"under_11" text,
"under_13" text,
"under_15" text,
"under_17" text,
"under_19" text
);
Question: Who is every Under-15 if Under-11 is Reeham Sedky?
<|assistant|>
SELECT "under_15" FROM "girls" WHERE "under_11"='Reeham Sedky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26375386_16" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
Question: How many couples had a vote percentage of 9.5%?
<|assistant|>
SELECT COUNT("rank") FROM "table1_26375386_16" WHERE "vote_percentage"='9.5%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26375386_16" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
Question: What was the lowest judge rank for danny and frankie?
<|assistant|>
SELECT MIN("judges") FROM "table1_26375386_16" WHERE "couple"='Danny and Frankie';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26375386_16" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
Question: What couple had a total of 8?
<|assistant|>
SELECT "couple" FROM "table1_26375386_16" WHERE "total"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"region" text,
"population" real,
"pct_of_countrys_population" text,
"change_in_population_since_1993" real,
"change_in_pct_of_countrys_population_since_1993" text
);
Question: In what region was the change in % of the country's population since 1993 at 0.3?
<|assistant|>
SELECT "region" FROM "results" WHERE "change_in_pct_of_countrys_population_since_1993"='0.3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"region" text,
"population" real,
"pct_of_countrys_population" text,
"change_in_population_since_1993" real,
"change_in_pct_of_countrys_population_since_1993" text
);
Question: What is the change in population since 1993 in the region where the % of country's population was 4.2?
<|assistant|>
SELECT COUNT("change_in_population_since_1993") FROM "results" WHERE "pct_of_countrys_population"='4.2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"region" text,
"population" real,
"pct_of_countrys_population" text,
"change_in_population_since_1993" real,
"change_in_pct_of_countrys_population_since_1993" text
);
Question: What is the change in % of the country's population since 1993 in the Lambayeque region?
<|assistant|>
SELECT "change_in_pct_of_countrys_population_since_1993" FROM "results" WHERE "region"='Lambayeque';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_broadcasters" (
"channel" real,
"channel_name" text,
"callsign" text,
"signal_power" text,
"broadcast_area" text
);
Question: What is the broadcast are for channel 1?
<|assistant|>
SELECT "broadcast_area" FROM "television_broadcasters" WHERE "channel"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_broadcasters" (
"channel" real,
"channel_name" text,
"callsign" text,
"signal_power" text,
"broadcast_area" text
);
Question: What is the call sign for channel 6?
<|assistant|>
SELECT "callsign" FROM "television_broadcasters" WHERE "channel"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television_broadcasters" (
"channel" real,
"channel_name" text,
"callsign" text,
"signal_power" text,
"broadcast_area" text
);
Question: What is the channel number for TBS?
<|assistant|>
SELECT MIN("channel") FROM "television_broadcasters" WHERE "channel_name"='TBS';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.