text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the highest number of points team vitória, which had more than 38 played, had?
<|assistant|>
SELECT MAX("points") FROM "campeonato_brasileiro_s_rie_b" WHERE "team"='vitória' AND "played">38;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: When the A Score was larger than 5.933 with a total of 19.833, what nation was this?
<|assistant|>
SELECT "nation" FROM "groups_3_ribbons_2_hoops" WHERE "a_score">5.933 AND "total"=19.833;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: How large was the total when the E Score was greater than 9.35 and T Score was less than 4?
<|assistant|>
SELECT MAX("total") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.35 AND "t_score"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T score was more than 4?
<|assistant|>
SELECT SUM("a_score") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.566 AND "nation"='greece' AND "t_score">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
Question: What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?
<|assistant|>
SELECT SUM("a_score") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.383 AND "total"<19.716 AND "t_score">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which city has a frequency of 104.5 fm?
<|assistant|>
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"='104.5 fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the frequency of Walterboro, SC?
<|assistant|>
SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='walterboro, sc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the FCC information of 104.5 fm frequency?
<|assistant|>
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"='104.5 fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is Charleston, SC ERP W?
<|assistant|>
SELECT "erp_w" FROM "translators" WHERE "city_of_license"='charleston, sc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What does the ERP W sum equal for 105.1 fm frequency?
<|assistant|>
SELECT SUM("erp_w") FROM "translators" WHERE "frequency_m_hz"='105.1 fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is surfside beach, SC frequency?
<|assistant|>
SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='surfside beach, sc';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the player from Japan's To Par?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "country"='japan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the player from England's To Par?
<|assistant|>
SELECT "to_par" FROM "second_round" WHERE "country"='england';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the player from England's score?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "country"='england';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country does Adam Scott play for?
<|assistant|>
SELECT "country" FROM "second_round" WHERE "player"='adam scott';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for lilongwe international airport
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "airport"='lilongwe international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the airport for ICAO of flls
<|assistant|>
SELECT "airport" FROM "destinations" WHERE "icao"='flls';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for lilongwe international airport
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "airport"='lilongwe international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for julius nyerere international airport
<|assistant|>
SELECT "icao" FROM "destinations" WHERE "airport"='julius nyerere international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the country for johannesburg
<|assistant|>
SELECT "country" FROM "destinations" WHERE "city"='johannesburg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the city for IATA of llw
<|assistant|>
SELECT "city" FROM "destinations" WHERE "iata"='llw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the name of the home time with a 10 tie no?
<|assistant|>
SELECT "home_team" FROM "second_round" WHERE "tie_no"='10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the date of the game that was played against the away team of York City?
<|assistant|>
SELECT "attendance" FROM "second_round" WHERE "away_team"='york city';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: What group of juventus had an attendance larger than 47,786?
<|assistant|>
SELECT "group_position" FROM "group_stage" WHERE "opponents"='juventus' AND "attendance">'47,786';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
Question: Name the average week for result of l 28–17
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "result"='l 28–17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toronto_maple_leafs_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the score on April 12?
<|assistant|>
SELECT "score" FROM "toronto_maple_leafs_4_detroit_red_wings_" WHERE "date"='april 12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toronto_maple_leafs_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on April 6?
<|assistant|>
SELECT "record" FROM "toronto_maple_leafs_4_detroit_red_wings_" WHERE "date"='april 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2009 has a 2008 of A, and a 2010 of 4r?
<|assistant|>
SELECT "2009" FROM "performance_timeline" WHERE "2008"='a' AND "2010"='4r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2009 has a 2008 of wta premier mandatory tournaments?
<|assistant|>
SELECT "2009" FROM "performance_timeline" WHERE "2008"='wta premier mandatory tournaments';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2010 has a Tournament of australian open?
<|assistant|>
SELECT "2010" FROM "performance_timeline" WHERE "tournament"='australian open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2007 has a 2006 of A, and a Tournament of canada?
<|assistant|>
SELECT "2007" FROM "performance_timeline" WHERE "2006"='a' AND "tournament"='canada';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2009 has a 2006 of A, and a 2011 of sf?
<|assistant|>
SELECT "2009" FROM "performance_timeline" WHERE "2006"='a' AND "2011"='sf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: Which 2007 has a 2010 of A?
<|assistant|>
SELECT "2007" FROM "performance_timeline" WHERE "2010"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
Question: Adam is less than 1 and Jade is greater than 5 in cycling, what's the plat'num?
<|assistant|>
SELECT MIN("plat_num") FROM "the_boys" WHERE "adam"<1 AND "discipline"='cycling' AND "jade">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
Question: What is Peter's score in kendo that has a plat'num less than 3?
<|assistant|>
SELECT MIN("peter") FROM "the_boys" WHERE "discipline"='kendo' AND "plat_num"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
Question: What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?
<|assistant|>
SELECT MIN("adam") FROM "the_boys" WHERE "peter"<3 AND "plat_num">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
Question: Peter has a score greater than 5 in speed skating, what is the plat'num?
<|assistant|>
SELECT MIN("plat_num") FROM "the_boys" WHERE "discipline"='speed skating' AND "peter">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
Question: What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?
<|assistant|>
SELECT AVG("adam") FROM "the_boys" WHERE "jade">5 AND "peter"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Old Scotch had less than 9 losses and how much against?
<|assistant|>
SELECT SUM("against") FROM "2012_ladder" WHERE "losses"<9 AND "ntfa_div_2"='old scotch';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Of the teams that had more than 0 byes, what was the total number of losses?
<|assistant|>
SELECT COUNT("losses") FROM "2012_ladder" WHERE "byes"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Who was the incumbent in the 20th district?
<|assistant|>
SELECT "incumbent" FROM "election_results" WHERE "district"='20th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Which party has the 6th district?
<|assistant|>
SELECT "party" FROM "election_results" WHERE "district"='6th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Which party has Ken Cuccinelli as an incumbent?
<|assistant|>
SELECT "party" FROM "election_results" WHERE "incumbent"='ken cuccinelli';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Which party was elected in 2003 with incumbent Mark Obenshain?
<|assistant|>
SELECT "party" FROM "election_results" WHERE "elected"=2003 AND "incumbent"='mark obenshain';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
Question: Which incumbent was in the 24th district?
<|assistant|>
SELECT "incumbent" FROM "election_results" WHERE "district"='24th';<|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,
"points" real
);
Question: Name the sum of laps for mi-jack conquest racing and points less than 11
<|assistant|>
SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"<11;<|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,
"points" real
);
Question: Name the points with grid more than 8 and time/retired of +47.487 secs
<|assistant|>
SELECT "points" FROM "race" WHERE "grid">8 AND "time_retired"='+47.487 secs';<|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,
"points" real
);
Question: Name the team with laps of 97 and grid of 3
<|assistant|>
SELECT "team" FROM "race" WHERE "laps"=97 AND "grid"=3;<|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,
"points" real
);
Question: Name the sum of grid with laps more than 97
<|assistant|>
SELECT SUM("grid") FROM "race" WHERE "laps">97;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What are the most wins in 1971 in 250cc class?
<|assistant|>
SELECT MAX("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='250cc' AND "year"=1971;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the earliest year with less than 45 points for Yamaha team in 21st rank?
<|assistant|>
SELECT MIN("year") FROM "grand_prix_motorcycle_racing_results" WHERE "points"<45 AND "team"='yamaha' AND "rank"='21st';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?
<|assistant|>
SELECT SUM("ends_won") FROM "round_robin_standings" WHERE "blank_ends"<14 AND "locale"='manitoba' AND "stolen_ends">13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: Which Skip has Ends Lost larger than 44, and Blank Ends of 10?
<|assistant|>
SELECT "skip" FROM "round_robin_standings" WHERE "ends_lost">44 AND "blank_ends"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?
<|assistant|>
SELECT COUNT("stolen_ends") FROM "round_robin_standings" WHERE "ends_lost"<44 AND "blank_ends"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
Question: What is the current status for GM Advanced Design with more than 41 seats?
<|assistant|>
SELECT "current_status" FROM "historical_fleet" WHERE "make"='gm advanced design' AND "number_of_seats">41;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
Question: What is the quantity with more than 45 seats and MCI make?
<|assistant|>
SELECT "quantity" FROM "historical_fleet" WHERE "number_of_seats">45 AND "make"='mci';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
Question: What is the largest number of seats with more than 32 of a MCI make?
<|assistant|>
SELECT MAX("number_of_seats") FROM "historical_fleet" WHERE "make"='mci' AND "quantity">32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
Question: What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?
<|assistant|>
SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "quantity"<8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
Question: What is the smallest number of seats in a retired vehicle that was started in service in 1981?
<|assistant|>
SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "year_placed_in_service"='1981';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is Trevard Lindley's height?
<|assistant|>
SELECT "height" FROM "middle_tennessee" WHERE "name"='trevard lindley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is Ashton Cobb's class in Game 2?
<|assistant|>
SELECT "class" FROM "middle_tennessee" WHERE "games"=2 AND "name"='ashton cobb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is the earliest game with a position of Re and a smaller number than 95?
<|assistant|>
SELECT MIN("games") FROM "middle_tennessee" WHERE "position"='re' AND "number"<95;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "quarterbacks_ranked_by_regular_season_wi" (
"rank" real,
"quarterback" text,
"seasons" text,
"teams" text,
"team_wins" real,
"team_losses" real,
"career_wins" real,
"career_losses" real,
"ties" real
);
Question: Which Seattle quarterback has more than 81 career wins and less than 70 team wins?
<|assistant|>
SELECT "quarterback" FROM "quarterbacks_ranked_by_regular_season_wi" WHERE "career_wins">81 AND "teams"='seattle' AND "team_wins"<70;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is Mike Harris' lowest overall?
<|assistant|>
SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='mike harris';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the highest pick # that has a 228 overall and a round less than 7?
<|assistant|>
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=228 AND "round"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
Question: What value has negative infinity?
<|assistant|>
SELECT "value" FROM "examples" WHERE "type"='negative infinity';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
Question: What's the exponent field that has 255 exp and value of +∞?
<|assistant|>
SELECT "exponent_field" FROM "examples" WHERE "exp_biased"='255' AND "value"='+∞';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
Question: What's the type of 0.0 value?
<|assistant|>
SELECT "type" FROM "examples" WHERE "value"='0.0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
Question: What's the Significant of a value 1.0?
<|assistant|>
SELECT "significand_fraction_field" FROM "examples" WHERE "value"='1.0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 4th career/salary of navigator ($90,000-degree) involves what 3rd career/salary?
<|assistant|>
SELECT "3rd_career_salary" FROM "careers" WHERE "4th_career_salary"='navigator ($90,000-degree)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 5th career/salary of automotive designer ($350,000-degree) had what career card?
<|assistant|>
SELECT "career_card" FROM "careers" WHERE "5th_career_salary"='automotive designer ($350,000-degree)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?
<|assistant|>
SELECT "6th_career_salary" FROM "careers" WHERE "2nd_career_salary"='substitute teacher ($20,000)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?
<|assistant|>
SELECT "3rd_career_salary" FROM "careers" WHERE "6th_career_salary"='design consultant ($500,000-degree)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 4th career/salary of clown ($80,000) had what 2nd career/salary?
<|assistant|>
SELECT "2nd_career_salary" FROM "careers" WHERE "4th_career_salary"='clown ($80,000)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
Question: 5th career/salary of restaurant manager ($250,000) had what 2nd career/salary?
<|assistant|>
SELECT "2nd_career_salary" FROM "careers" WHERE "5th_career_salary"='restaurant manager ($250,000)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?
<|assistant|>
SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=8 AND "college"='temple' AND "overall">72;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?
<|assistant|>
SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "round"<5 AND "pick_num">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the overall of the running back player?
<|assistant|>
SELECT "overall" FROM "jacksonville_jaguars_draft_history" WHERE "position"='running back';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
Question: What is the general classification when the team classification is japan?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "team_classification"='japan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
Question: When Yusuke Hatanaka was the stage winner in the tonton susanto general classification, what was the malaysian rider classification?
<|assistant|>
SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "general_classification"='tonton susanto' AND "stage_winner"='yusuke hatanaka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
Question: When Yusuke Hatanaka was the stage winner in the tabriz petrochemical team classification, what was the mountains classification?
<|assistant|>
SELECT "mountains_classification" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team' AND "stage_winner"='yusuke hatanaka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
Question: Which stage had tabriz petrochemical team in the team classification?
<|assistant|>
SELECT "stage" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
Question: Which stage had suhardi hassan in the Malaysian rider classification?
<|assistant|>
SELECT "stage" FROM "classification_leadership" WHERE "malaysian_rider_classification"='suhardi hassan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many drawn have points of 6 and lost by fewer than 4?
<|assistant|>
SELECT COUNT("drawn") FROM "first_round" WHERE "points"=6 AND "lost"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What was the earliest game with a record of 23–6–4?
<|assistant|>
SELECT MIN("game") FROM "regular_season" WHERE "record"='23–6–4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What was the earliest game with a record of 16–4–3?
<|assistant|>
SELECT MIN("game") FROM "regular_season" WHERE "record"='16–4–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which ERP W is the highest one that has a Call sign of w255bi?
<|assistant|>
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w255bi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which FCC info has a Frequency MHz of 100.7?
<|assistant|>
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=100.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: How much Frequency MHz has a Call sign of w264bg?
<|assistant|>
SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "call_sign"='w264bg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which ERP W is the lowest one that has a Call sign of w233be?
<|assistant|>
SELECT MIN("erp_w") FROM "translators" WHERE "call_sign"='w233be';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which FCC info has a Frequency MHz larger than 102.3?
<|assistant|>
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">102.3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
Question: What date was Rica head of household?
<|assistant|>
SELECT "date_given" FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='rica';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
Question: What is the latest task number for which Cathy is head of household?
<|assistant|>
SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='cathy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
Question: Who is the head of household for task number 7?
<|assistant|>
SELECT "head_of_household" FROM "head_of_household_and_hand_grenade" WHERE "task_no"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
Question: Which task had Cathy as the hand grenade user?
<|assistant|>
SELECT "task_no" FROM "head_of_household_and_hand_grenade" WHERE "hand_grenade_user"='cathy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
Question: What is the task number on January 22, 2010 (day 111)?
<|assistant|>
SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "date_given"='january 22, 2010 (day 111)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the record in the win 7 streak?
<|assistant|>
SELECT "record" FROM "season_schedule" WHERE "streak"='win 7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the score when the opponent was Detroit Pistons?
<|assistant|>
SELECT "score" FROM "season_schedule" WHERE "opponent"='detroit pistons';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What is the date when streak was won 8?
<|assistant|>
SELECT "date" FROM "season_schedule" WHERE "streak"='won 8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "intercounty_connector_bus_routes" (
"route" text,
"terminus" text,
"operated_by" text,
"corridors_served" text,
"total_trips_am_pm" text,
"operating_since" text
);
Question: What trips are operated by Atlantic coast charters?
<|assistant|>
SELECT "total_trips_am_pm" FROM "intercounty_connector_bus_routes" WHERE "operated_by"='atlantic coast charters';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.