text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?
<|assistant|>
SELECT MIN("january") FROM "regular_season" WHERE "opponent"='florida panthers' AND "points"<59;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Record has a Game of 41?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "game"=41;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Score has a January larger than 21, and Points of 63?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "january">21 AND "points"=63;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points have a Record of 25β10β11, and a January larger than 28?
<|assistant|>
SELECT COUNT("points") FROM "regular_season" WHERE "record"='25β10β11' AND "january">28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_medical_schools" (
"province" text,
"school" text,
"city" text,
"degree" text,
"established" real,
"closed" text
);
Question: what province was established in 1870
<|assistant|>
SELECT "province" FROM "former_medical_schools" WHERE "established"=1870;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: Who is the Incumbent that has a District of ohio 13 in Democratic Party?
<|assistant|>
SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"surface" text
);
Question: What is the score of champion Ken Rosewall in 1957?
<|assistant|>
SELECT "score" FROM "champions" WHERE "champion"='ken rosewall' AND "year"='1957';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"surface" text
);
Question: What is the surface of the match with Brian Gottfried as the runner-up?
<|assistant|>
SELECT "surface" FROM "champions" WHERE "runner_up"='brian gottfried';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"surface" text
);
Question: What is the score of the match with anders jΓ€rryd as the runner-up?
<|assistant|>
SELECT "score" FROM "champions" WHERE "runner_up"='anders jΓ€rryd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the low bronze total for the team with 4 total and under 1 gold?
<|assistant|>
SELECT MIN("bronze") FROM "medal_table" WHERE "total"=4 AND "gold"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average total for teams with over 3 bronzes and over 8 golds?
<|assistant|>
SELECT AVG("total") FROM "medal_table" WHERE "bronze">3 AND "gold">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the low silver total associated with under 1 total?
<|assistant|>
SELECT MIN("silver") FROM "medal_table" WHERE "total"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_singles_of_1959" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
Question: What is the number of points associated with the highest position under 9 and a current position of 22?
<|assistant|>
SELECT "points" FROM "top_singles_of_1959" WHERE "highest_position"<9 AND "position"=22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
<|assistant|>
SELECT "performer_1" FROM "series_2" WHERE "performer_3"='paul merton' AND "performer_4"='sandi toksvig';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Episode of 16 involves which performer 1?
<|assistant|>
SELECT "performer_1" FROM "series_2" WHERE "episode"=16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Performer 2 of compilation 1 had what performer 1?
<|assistant|>
SELECT "performer_1" FROM "series_2" WHERE "performer_2"='compilation 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bavarian_cup_era" (
"season" real,
"oberbayern" text,
"niederbayern" text,
"schwaben" text,
"mittelfranken" text
);
Question: Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten
<|assistant|>
SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc ingolstadt 04' AND "mittelfranken"='sv seligenporten';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bavarian_cup_era" (
"season" real,
"oberbayern" text,
"niederbayern" text,
"schwaben" text,
"mittelfranken" text
);
Question: Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?
<|assistant|>
SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc bayern munich ii' AND "mittelfranken"='1. fc nuremberg ii';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: Who was the incumbent for south carolina 3 district?
<|assistant|>
SELECT "incumbent" FROM "south_carolina" WHERE "district"='south carolina 3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: When was the incumbent from the south carolina 1 district first elected?
<|assistant|>
SELECT "first_elected" FROM "south_carolina" WHERE "district"='south carolina 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
<|assistant|>
SELECT "incumbent" FROM "south_carolina" WHERE "first_elected"='1892' AND "result"='retired to run for the senate democratic hold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: Who was the incumbent that retired to run for the senate democratic hold?
<|assistant|>
SELECT "incumbent" FROM "south_carolina" WHERE "result"='retired to run for the senate democratic hold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: What was the result of W. Jasper Talbert who was first elected in 1892?
<|assistant|>
SELECT "result" FROM "south_carolina" WHERE "first_elected"='1892' AND "incumbent"='w. jasper talbert';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"athlete" text,
"nationality" text,
"2_15" text,
"2_20" text,
"2_24" text,
"2_27" text,
"result" real
);
Question: Which Nationality has a 2.24 of xo, and a 2.20 of xo?
<|assistant|>
SELECT "nationality" FROM "final" WHERE "2_24"='xo' AND "2_20"='xo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"athlete" text,
"nationality" text,
"2_15" text,
"2_20" text,
"2_24" text,
"2_27" text,
"result" real
);
Question: Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
<|assistant|>
SELECT "athlete" FROM "final" WHERE "2_24"='xo' AND "2_20"='o' AND "2_15"='o';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"election" real,
"num_of_candidates_nominated" real,
"num_of_seats_won" real,
"num_of_total_votes" real,
"pct_of_popular_vote" text
);
Question: What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
<|assistant|>
SELECT MIN("election") FROM "election_results" WHERE "num_of_candidates_nominated">7 AND "pct_of_popular_vote"='2.75%' AND "num_of_seats_won"<0;<|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 Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
<|assistant|>
SELECT SUM("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost">14 AND "drawn"=8 AND "team"='ipatinga';<|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 many Drawn have a Difference of 3, and Points smaller than 52?
<|assistant|>
SELECT COUNT("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='3' AND "points"<52;<|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 Points is the highest one that has a Position smaller than 4, and a Team of sΓ£o paulo, and Drawn larger than 12?
<|assistant|>
SELECT MAX("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "position"<4 AND "team"='sΓ£o paulo' 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_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?
<|assistant|>
SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "points">40 AND "position"=11 AND "played"<38;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_bulgaria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?
<|assistant|>
SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='40 - 17' AND "games">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_bulgaria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many games lost for teams with over 6 games?
<|assistant|>
SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "games">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_bulgaria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What are the highest number of games drawn for games numbered under 6?
<|assistant|>
SELECT MAX("drawn") FROM "world_championship_group_c_bulgaria" WHERE "games"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_bulgaria" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many games drawn with a Points difference of 31 - 33, and under 4 games lost?
<|assistant|>
SELECT SUM("drawn") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='31 - 33' AND "lost"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
<|assistant|>
SELECT "outcome" FROM "itf_singles_finals" WHERE "surface"='hard (i)' AND "date"='28 january 2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Tournament has an Outcome of winner, and a Surface of hard (i)?
<|assistant|>
SELECT "tournament" FROM "itf_singles_finals" WHERE "outcome"='winner' AND "surface"='hard (i)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Date has a Score of 6β1, 6β2?
<|assistant|>
SELECT "date" FROM "itf_singles_finals" WHERE "score"='6β1, 6β2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Surface has an Opponent of oleksandra kravets?
<|assistant|>
SELECT "surface" FROM "itf_singles_finals" WHERE "opponent"='oleksandra kravets';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Surface has a Date of 3 october 2003?
<|assistant|>
SELECT "surface" FROM "itf_singles_finals" WHERE "date"='3 october 2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Surface has a Score of 6β4, 6β2?
<|assistant|>
SELECT "surface" FROM "itf_singles_finals" WHERE "score"='6β4, 6β2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_preliminary_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: Which Rank is the lowest one that has a % Change of 3.3%, and a Total Cargo (Metric Tonnes) smaller than 2,456,724?
<|assistant|>
SELECT MIN("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='3.3%' AND "total_cargo_metric_tonnes"<'2,456,724';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_preliminary_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: How many ranks have a Code (IATA/ICAO) of ord/kord?
<|assistant|>
SELECT COUNT("rank") FROM "2012_preliminary_statistics" WHERE "code_iata_icao"='ord/kord';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_preliminary_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport?
<|assistant|>
SELECT MAX("total_cargo_metric_tonnes") FROM "2012_preliminary_statistics" WHERE "rank"<4 AND "airport"='shanghai pudong international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_preliminary_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
Question: Which Rank is the average one that has a % Change of 0.7%, and a Total Cargo (Metric Tonnes) smaller than 1,556,203?
<|assistant|>
SELECT AVG("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='0.7%' AND "total_cargo_metric_tonnes"<'1,556,203';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "louisiana_parishes_ranked_by_per_capita_" (
"parish" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: What is the Per capita income where Median family income is $72,288?
<|assistant|>
SELECT "per_capita_income" FROM "louisiana_parishes_ranked_by_per_capita_" WHERE "median_family_income"='$72,288';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average grid for the +2.2 secs time/retired?
<|assistant|>
SELECT AVG("grid") FROM "race" WHERE "time_retired"='+2.2 secs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
Question: Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230?
<|assistant|>
SELECT MAX("facility_id") FROM "stations" WHERE "city_of_license"='springfield, ma' AND "erp_power_w"<230;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
Question: Which Frequency has a Facility ID of 13598?
<|assistant|>
SELECT "frequency" FROM "stations" WHERE "facility_id"=13598;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
Question: WHich Facility ID has a Call sign of wnpr?
<|assistant|>
SELECT AVG("facility_id") FROM "stations" WHERE "call_sign"='wnpr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"facility_id" real,
"erp_power_w" real,
"height_m_ft" text,
"class" text
);
Question: Which Frequency has a Facility ID of 13598?
<|assistant|>
SELECT "frequency" FROM "stations" WHERE "facility_id"=13598;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_6_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the rank that has a 1st less than 132.5 and a Fin nationality.
<|assistant|>
SELECT "overall_wc_points_rank" FROM "bischofshofen_6_january" WHERE "1st_m"<132.5 AND "nationality"='fin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_6_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the highest number of points that has a 1st of 121.5?
<|assistant|>
SELECT MAX("points") FROM "bischofshofen_6_january" WHERE "1st_m"=121.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_6_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?
<|assistant|>
SELECT COUNT("1st_m") FROM "bischofshofen_6_january" WHERE "name"='martin schmitt' AND "points"<235.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What is the total number of attendance for games where buffalo was the home team?
<|assistant|>
SELECT COUNT("attendance") FROM "playoffs" WHERE "home"='buffalo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What was the score of the game on April 28 where Buffalo were the visiting team?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "visitor"='buffalo' AND "date"='april 28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What date was the game where the visiting team was philadelphia?
<|assistant|>
SELECT "date" FROM "playoffs" WHERE "visitor"='philadelphia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who got the gold in seoul before 2002?
<|assistant|>
SELECT "gold" FROM "individual" WHERE "year"<2002 AND "location"='seoul';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Where did sohn bong-gak win silver?
<|assistant|>
SELECT "location" FROM "individual" WHERE "silver"='sohn bong-gak';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who won the bronze when jin kanno won the gold?
<|assistant|>
SELECT "bronze" FROM "individual" WHERE "gold"='jin kanno';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_30_15_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
<|assistant|>
SELECT "score" FROM "singles_30_15_15" WHERE "outcome"='runner-up' AND "tournament"='johannesburg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_30_15_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Surface has an Opponent of kerry melville reid, and a Score of 6β3, 2β6, 3β6?
<|assistant|>
SELECT "surface" FROM "singles_30_15_15" WHERE "opponent"='kerry melville reid' AND "score"='6β3, 2β6, 3β6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_30_15_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?
<|assistant|>
SELECT "outcome" FROM "singles_30_15_15" WHERE "opponent"='wendy turnbull' AND "surface"='grass';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_30_15_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Tournament has a Date of 22 january 1979?
<|assistant|>
SELECT "tournament" FROM "singles_30_15_15" WHERE "date"='22 january 1979';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_30_15_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which Outcome has a Score of 6β4, 2β6, 6β3?
<|assistant|>
SELECT "outcome" FROM "singles_30_15_15" WHERE "score"='6β4, 2β6, 6β3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?
<|assistant|>
SELECT "nation" FROM "medal_table" WHERE "total"<63 AND "silver"<2 AND "bronze">2 AND "rank"='8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds have bronze values of 4 and silver values over 2?
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=4 AND "silver">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3?
<|assistant|>
SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<4 AND "rank"='3' AND "gold">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of gold values that have bronze values over 0 and totals under 2?
<|assistant|>
SELECT SUM("gold") FROM "medal_table" WHERE "bronze">0 AND "total"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest gold value that has a total over 15 and bronze values under 31?
<|assistant|>
SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "bronze"<31;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Equatorial diameter of the Body: Mars?
<|assistant|>
SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='mars';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Equatorial diameter of the Body: ceres?
<|assistant|>
SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='ceres';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Flattening ratio associated with the Equatorial diameter of 49,528km?
<|assistant|>
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='49,528km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Equatorial bulge of the Body: Earth?
<|assistant|>
SELECT "equatorial_bulge" FROM "other_celestial_bodies" WHERE "body"='earth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Flattening ratio associated with the Equatorial diameter of 120,536km?
<|assistant|>
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='120,536km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_celestial_bodies" (
"body" text,
"equatorial_diameter" text,
"polar_diameter" text,
"equatorial_bulge" text,
"flattening_ratio" text
);
Question: What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?
<|assistant|>
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='12,756.28km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"yards" real,
"average" real,
"long" real,
"touchdowns" real
);
Question: What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?
<|assistant|>
SELECT AVG("yards") FROM "rushing" WHERE "average"<4 AND "long"=12 AND "attempts"<29;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"yards" real,
"average" real,
"long" real,
"touchdowns" real
);
Question: What is the least amount of yards when the average is less than 2.6?
<|assistant|>
SELECT MIN("yards") FROM "rushing" WHERE "average"<2.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"yards" real,
"average" real,
"long" real,
"touchdowns" real
);
Question: What is the lease amount of touchdowns with 1318 yards?
<|assistant|>
SELECT MIN("touchdowns") FROM "rushing" WHERE "yards"=1318;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"yards" real,
"average" real,
"long" real,
"touchdowns" real
);
Question: What is the number of touchdowns with the average is less than 2.6?
<|assistant|>
SELECT COUNT("touchdowns") FROM "rushing" WHERE "average"<2.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"attempts" real,
"yards" real,
"average" real,
"long" real,
"touchdowns" real
);
Question: What is the total number for long when there are 19 attempts?
<|assistant|>
SELECT COUNT("long") FROM "rushing" WHERE "attempts"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_23" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory for Olazabal in the German Masters?
<|assistant|>
SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='german masters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_23" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was Olazabal's winning score in the event in which Phillip Price finished 2nd?
<|assistant|>
SELECT "winning_score" FROM "european_tour_wins_23" WHERE "runner_s_up"='phillip price';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_23" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was Olazabal's winning score in the German Masters?
<|assistant|>
SELECT "winning_score" FROM "european_tour_wins_23" WHERE "tournament"='german masters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_23" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?
<|assistant|>
SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='ebel european masters swiss open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Series Ep has a Netflix of s08e18?
<|assistant|>
SELECT "series_ep" FROM "season_16_2010_2011" WHERE "netflix"='s08e18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Segment B has a Segment D of stone wool insulation?
<|assistant|>
SELECT "segment_b" FROM "season_16_2010_2011" WHERE "segment_d"='stone wool insulation';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Segment A has a Segment C of poster restoration?
<|assistant|>
SELECT "segment_a" FROM "season_16_2010_2011" WHERE "segment_c"='poster restoration';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Segment C has a Segment B of fish food?
<|assistant|>
SELECT "segment_c" FROM "season_16_2010_2011" WHERE "segment_b"='fish food';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_16_2010_2011" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which Segment C has a Netflix of s08e16?
<|assistant|>
SELECT "segment_c" FROM "season_16_2010_2011" WHERE "netflix"='s08e16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text
);
Question: What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?
<|assistant|>
SELECT "competition" FROM "december" WHERE "opponent"='peterborough phantoms' AND "date"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: What is the Tally in Kerry County?
<|assistant|>
SELECT "tally" FROM "single_game" WHERE "county"='kerry';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: With a Total of less than 29, what is Ian Ryan's most Matches?
<|assistant|>
SELECT MAX("matches") FROM "single_game" WHERE "player"='ian ryan' AND "total"<29;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"lema_sublema" text,
"candidates" text,
"votes" real,
"ch_of_senators" text,
"ch_of_deputies" text
);
Question: Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?
<|assistant|>
SELECT "lema_sublema" FROM "results" WHERE "votes"<218656 AND "ch_of_deputies"='0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"lema_sublema" text,
"candidates" text,
"votes" real,
"ch_of_senators" text,
"ch_of_deputies" text
);
Question: Which LEMA/SUBLEMA has a Ch of Senators of 2?
<|assistant|>
SELECT "lema_sublema" FROM "results" WHERE "ch_of_senators"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"lema_sublema" text,
"candidates" text,
"votes" real,
"ch_of_senators" text,
"ch_of_deputies" text
);
Question: Which Ch of Senators has a LEMA/SUBLEMA of lema?
<|assistant|>
SELECT "ch_of_senators" FROM "results" WHERE "lema_sublema"='lema';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_22" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: what tornament had the scores 6β7, 6β2, 6β4?
<|assistant|>
SELECT "tournament" FROM "wins_22" WHERE "score_in_the_final"='6β7, 6β2, 6β4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_22" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: what partner made the scores 6β4, 6β1?
<|assistant|>
SELECT "partner" FROM "wins_22" WHERE "score_in_the_final"='6β4, 6β1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What year had 6.62 m in the notes?
<|assistant|>
SELECT "year" FROM "achievements" WHERE "notes"='6.62 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which competition in Budapest, Hungary gave a result of 8th?
<|assistant|>
SELECT "competition" FROM "achievements" WHERE "position"='8th' AND "venue"='budapest, hungary';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which year did the World indoor championships gave a position of 3rd?
<|assistant|>
SELECT SUM("year") FROM "achievements" WHERE "competition"='world indoor championships' AND "position"='3rd';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.