text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2002" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?
<|assistant|>
SELECT "segment_d" FROM "season_2_2002" WHERE "episode">16 AND "segment_c"='laser eye surgery';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_medals" (
"rank" real,
"province" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What team had less than 291 total points whole having 76 bronze and over 21 gold?
<|assistant|>
SELECT SUM("silver") FROM "top_ten_medals" WHERE "gold">21 AND "bronze"=76 AND "total"<291;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_medals" (
"rank" real,
"province" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?
<|assistant|>
SELECT AVG("rank") FROM "top_ten_medals" WHERE "total">73 AND "gold">44 AND "bronze">76;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: On what date was the team's record 61-66?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='61-66';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: At what time was the game when they played the White Sox and had a record of 63-70?
<|assistant|>
SELECT "time" FROM "game_log" WHERE "opponent"='white sox' AND "record"='63-70';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What shows for gold when bronze is 1?
<|assistant|>
SELECT "gold" FROM "medals" WHERE "bronze"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?
<|assistant|>
SELECT COUNT("gold") FROM "medals" WHERE "total"<8 AND "silver"<1 AND "rank">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average Total for the Rank of 6, when Silver is smaller than 0?
<|assistant|>
SELECT AVG("total") FROM "medals" WHERE "rank"=6 AND "silver"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_summary" (
"nation" text,
"total_wins" real,
"team_wins" real,
"individual_wins" real,
"individual_winners" real
);
Question: Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?
<|assistant|>
SELECT SUM("team_wins") FROM "national_summary" WHERE "individual_winners"<1 AND "total_wins">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_summary" (
"nation" text,
"total_wins" real,
"team_wins" real,
"individual_wins" real,
"individual_winners" real
);
Question: Which Team Win is from sweden and has a Individual win smaller than 1
<|assistant|>
SELECT MAX("team_wins") FROM "national_summary" WHERE "nation"='sweden' AND "individual_wins"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_s_of_return" text,
"new_channel_s" text
);
Question: Which channel did Going for Gold air on?
<|assistant|>
SELECT "original_channel" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='going for gold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_s_of_return" text,
"new_channel_s" text
);
Question: What channel is Gladiators on?
<|assistant|>
SELECT "new_channel_s" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='gladiators';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_s_of_return" text,
"new_channel_s" text
);
Question: When did Going for Gold return in BBC One?
<|assistant|>
SELECT "date_s_of_return" FROM "returning_this_year_after_a_break_of_one" WHERE "original_channel"='bbc one' AND "programme"='going for gold';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: Which faith has a name of Belswains?
<|assistant|>
SELECT "faith" FROM "south_east" WHERE "name"='belswains';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: Which school is a primary school with DCSF number 2045?
<|assistant|>
SELECT "name" FROM "south_east" WHERE "type"='primary' AND "dcsf_number"=2045;<|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: Which position had fewer rounds than 3, and an overall of less than 48?
<|assistant|>
SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "round"<3 AND "overall"<48;<|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: Which highest pick number's name was Adam Podlesh, when the overall was less than 101?
<|assistant|>
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='adam podlesh' AND "overall"<101;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"team_name" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What is the IHSAA class in Batesville?
<|assistant|>
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "city"='batesville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"team_name" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?
<|assistant|>
SELECT "city" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aaa' AND "enrollment"<676 AND "school"='lawrenceburg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"team_name" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: What school is in Brookville?
<|assistant|>
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "city"='brookville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Score has a Record of 36β61?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='36β61';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Attendance has a Record of 34β51?
<|assistant|>
SELECT MIN("attendance") FROM "game_log" WHERE "record"='34β51';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which Loss has a Date of july 2?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='july 2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Which tournament's 2001 and 2008 were a when 2010 was qf?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2001"='a' AND "2008"='a' AND "2010"='qf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Which tournament's 2001 and 2006s were a?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2001"='a' AND "2006"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Which 2007 had a 2009 taht was qf when its 2000 was a?
<|assistant|>
SELECT "2007" FROM "doubles_performance_timeline" WHERE "2009"='qf' AND "2000"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: Which 2008 had a 1998 and 2006 that were a when 2009 was sf?
<|assistant|>
SELECT "2008" FROM "doubles_performance_timeline" WHERE "1998"='a' AND "2009"='sf' AND "2006"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the number of floors for the Citic Square?
<|assistant|>
SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='citic square';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
Question: What is the height for the Shanghai World Plaza?
<|assistant|>
SELECT "height_m_ft" FROM "tallest_buildings" WHERE "name"='shanghai world plaza';<|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: What week had a lower attendance than 51,423 but was still higher than the other weeks?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "attendance"<'51,423';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achiral_catalan_solids" (
"picture" text,
"dual_archimedean_solid" text,
"faces" real,
"edges" real,
"vertices" real,
"face_polygon" text
);
Question: Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
<|assistant|>
SELECT MAX("vertices") FROM "achiral_catalan_solids" WHERE "dual_archimedean_solid"='truncated dodecahedron';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achiral_catalan_solids" (
"picture" text,
"dual_archimedean_solid" text,
"faces" real,
"edges" real,
"vertices" real,
"face_polygon" text
);
Question: Which Edges have a Dual Archimedean solid of truncated icosidodecahedron, and Vertices larger than 62?
<|assistant|>
SELECT MIN("edges") FROM "achiral_catalan_solids" WHERE "dual_archimedean_solid"='truncated icosidodecahedron' AND "vertices">62;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achiral_catalan_solids" (
"picture" text,
"dual_archimedean_solid" text,
"faces" real,
"edges" real,
"vertices" real,
"face_polygon" text
);
Question: Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?
<|assistant|>
SELECT AVG("faces") FROM "achiral_catalan_solids" WHERE "dual_archimedean_solid"='truncated icosahedron' AND "vertices">32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Set 2 has a Set 3 of 20β25?
<|assistant|>
SELECT "set_2" FROM "pool_a" WHERE "set_3"='20β25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Total has a Set 2 of 20β25, and a Score of 1β3?
<|assistant|>
SELECT "total" FROM "pool_a" WHERE "set_2"='20β25' AND "score"='1β3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Set 3 has a Score of 3β2, and a Set 2 of 25β23, and a Time of 19:00?
<|assistant|>
SELECT "set_3" FROM "pool_a" WHERE "score"='3β2' AND "set_2"='25β23' AND "time"='19:00';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Total has a Score of 1β3, and a Set 1 of 29β31?
<|assistant|>
SELECT "total" FROM "pool_a" WHERE "score"='1β3' AND "set_1"='29β31';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Date has a Time of 11:00, and a Set 3 of 25β18?
<|assistant|>
SELECT "date" FROM "pool_a" WHERE "time"='11:00' AND "set_3"='25β18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: Which Total has a Set 3 of 13β25?
<|assistant|>
SELECT "total" FROM "pool_a" WHERE "set_3"='13β25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "original_london_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What was the result for the best musical revival category?
<|assistant|>
SELECT "result" FROM "original_london_production" WHERE "category"='best musical revival';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: Name the area served for on-air ID of abc canberra
<|assistant|>
SELECT "area_served" FROM "defunct_callsigns" WHERE "on_air_id"='abc canberra';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: Name the frequency with on-air ID of 1way fm
<|assistant|>
SELECT "frequency" FROM "defunct_callsigns" WHERE "on_air_id"='1way fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: Name the purpose for on-air ID of 2xx
<|assistant|>
SELECT "purpose" FROM "defunct_callsigns" WHERE "on_air_id"='2xx';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: Name the frequency for community purpose and callsign of 1vfm
<|assistant|>
SELECT "frequency" FROM "defunct_callsigns" WHERE "purpose"='community' AND "callsign"='1vfm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_callsigns" (
"callsign" text,
"area_served" text,
"frequency" text,
"band" text,
"on_air_id" text,
"purpose" text
);
Question: Name the band with frequency of 102.3
<|assistant|>
SELECT "band" FROM "defunct_callsigns" WHERE "frequency"='102.3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
Question: What was the loss of the game against with LA New Bears with a save of Mac Suzuki?
<|assistant|>
SELECT "loss" FROM "regular_season" WHERE "opponent"='la new bears' AND "save"='mac suzuki';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
Question: What was the date of the game with a save of ||3,073?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "save"='||3,073';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2004 has a Tournament of french open?
<|assistant|>
SELECT "2004" FROM "doubles_performance_timeline" WHERE "tournament"='french open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2003 has a 2013 of 1r, and a 2007 of 2r?
<|assistant|>
SELECT "2003" FROM "doubles_performance_timeline" WHERE "2013"='1r' AND "2007"='2r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2007 has a Tournament of grand slam sr?
<|assistant|>
SELECT "2007" FROM "doubles_performance_timeline" WHERE "tournament"='grand slam sr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2008 has a Career Win-Loss of 25β40?
<|assistant|>
SELECT "2008" FROM "doubles_performance_timeline" WHERE "career_win_loss"='25β40';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which Career Win-Loss has a 2001 of 1β1?
<|assistant|>
SELECT "career_win_loss" FROM "doubles_performance_timeline" WHERE "2001"='1β1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text,
"career_sr" text,
"career_win_loss" text
);
Question: Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r?
<|assistant|>
SELECT "2012" FROM "doubles_performance_timeline" WHERE "2007"='1r' AND "2008"='1r' AND "2013"='2r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What college or club did the round 9 draft pick from Canada come from?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=9 AND "nationality"='canada';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?
<|assistant|>
SELECT "player" FROM "draft_picks" WHERE "round">5 AND "college_junior_club_team_league"='dynamo-2 moscow (rus)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What position does the draft pick from Finland play?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "nationality"='finland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is the lowest round number that Ian Forbes was picked in the draft?
<|assistant|>
SELECT MIN("round") FROM "draft_picks" WHERE "player"='ian forbes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_championships" (
"year" text,
"conference" text,
"overall_record" text,
"conference_record" text,
"coach" text
);
Question: Who was the coach in 1953?
<|assistant|>
SELECT "coach" FROM "conference_championships" WHERE "year"='1953';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" text,
"game_site" text,
"nfl_recap" text,
"record" text
);
Question: What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?
<|assistant|>
SELECT "time" FROM "regular_season" WHERE "nfl_recap"='recap' AND "game_site"='arrowhead stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" text,
"game_site" text,
"nfl_recap" text,
"record" text
);
Question: What was the Opponent at Arrowhead Stadium?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "game_site"='arrowhead stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" text,
"game_site" text,
"nfl_recap" text,
"record" text
);
Question: What was the Result of the game after Week 4 with a Time of 5:15 p.m. and a Record of 4β7?
<|assistant|>
SELECT "result" FROM "regular_season" WHERE "week">4 AND "time"='5:15 p.m.' AND "record"='4β7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
);
Question: When in November were they 11-7-3 with over 21 games?
<|assistant|>
SELECT MAX("november") FROM "schedule_and_results" WHERE "record"='11-7-3' AND "game">21;<|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,
"venue" text,
"attendance" real
);
Question: Who was the opponent after week 9 with over 49,221 attending, and a Result of w 38-20?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">9 AND "attendance">'49,221' AND "result"='w 38-20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_member_schools" (
"school" text,
"team_name" text,
"town" text,
"county" text,
"school_enrollment_2008_10" real,
"football" text
);
Question: DId the school with an enrollment of 50 have football?
<|assistant|>
SELECT "football" FROM "list_of_member_schools" WHERE "school_enrollment_2008_10"=50;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_member_schools" (
"school" text,
"team_name" text,
"town" text,
"county" text,
"school_enrollment_2008_10" real,
"football" text
);
Question: What is the highest number of school enrollment for Union Star High School in De Kalb county?
<|assistant|>
SELECT MAX("school_enrollment_2008_10") FROM "list_of_member_schools" WHERE "county"='de kalb' AND "school"='union star high school';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_member_schools" (
"school" text,
"team_name" text,
"town" text,
"county" text,
"school_enrollment_2008_10" real,
"football" text
);
Question: What school had a team name of the Trojans?
<|assistant|>
SELECT "school" FROM "list_of_member_schools" WHERE "team_name"='trojans';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What date was the Site michigan stadium β’ ann arbor, mi?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "site"='michigan stadium β’ ann arbor, mi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the site of the game with a Result of l7-33?
<|assistant|>
SELECT "site" FROM "schedule" WHERE "result"='l7-33';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the name of the Opponent when the Result was w48-0?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "result"='w48-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the Date at memorial stadium β’ minneapolis, mn, and an Opponent of northwestern?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "site"='memorial stadium β’ minneapolis, mn' AND "opponent"='northwestern';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What is the Result of the game on 10/11/1930?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='10/11/1930';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the total number of games played against the Buffalo Sabres?
<|assistant|>
SELECT COUNT("game") FROM "schedule_and_results" WHERE "opponent"='buffalo sabres';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which April has Points of 95, and a Record of 41β25β10β3, and a Game smaller than 79?
<|assistant|>
SELECT SUM("april") FROM "regular_season" WHERE "points"=95 AND "record"='41β25β10β3' AND "game"<79;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points have a Score of 1β3, and a Game larger than 82?
<|assistant|>
SELECT COUNT("points") FROM "regular_season" WHERE "score"='1β3' AND "game">82;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game is the lowest one that has Points smaller than 92?
<|assistant|>
SELECT MIN("game") FROM "regular_season" WHERE "points"<92;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which April is the smallest one that has a Score of 2β4, and a Game smaller than 76?
<|assistant|>
SELECT MAX("april") FROM "regular_season" WHERE "score"='2β4' AND "game"<76;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the high point total associated with a difference of 1 and 0 draws?
<|assistant|>
SELECT MAX("points") FROM "torneio_rio_s_o_paulo" WHERE "difference"='1' AND "drawn"=0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws?
<|assistant|>
SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 6' AND "lost"=3 AND "drawn">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: Which round has the scorer of Di Matteo?
<|assistant|>
SELECT "round" FROM "fa_cup" WHERE "scorers"='di matteo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
Question: What is the lowest attendance of a game that has the result of 2-0?
<|assistant|>
SELECT MIN("attendance") FROM "fa_cup" WHERE "result"='2-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Metric value has a Unit of dolia?
<|assistant|>
SELECT "metric_value" FROM "ordinary_system" WHERE "unit"='dolia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Russian has a Ratio of 40?
<|assistant|>
SELECT "russian" FROM "ordinary_system" WHERE "ratio"='40';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Avoirdupois value has a Russian of Π±Π΅ΡΠΊΠΎΠ²Π΅Ρ?
<|assistant|>
SELECT "avoirdupois_value" FROM "ordinary_system" WHERE "russian"='Π±Π΅ΡΠΊΠΎΠ²Π΅Ρ';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Russian has an Avoirdupois value of 0.686 gr?
<|assistant|>
SELECT "russian" FROM "ordinary_system" WHERE "avoirdupois_value"='0.686 gr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Unit has a Ratio of 1/32?
<|assistant|>
SELECT "unit" FROM "ordinary_system" WHERE "ratio"='1/32';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ordinary_system" (
"unit" text,
"russian" text,
"ratio" text,
"metric_value" text,
"avoirdupois_value" text
);
Question: What Ratio has a Unit of zolotnik?
<|assistant|>
SELECT "ratio" FROM "ordinary_system" WHERE "unit"='zolotnik';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What player from New Mexico plays the WR position?
<|assistant|>
SELECT "player" FROM "2008_nfl_draft" WHERE "position"='wr' AND "school_club_team"='new mexico';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"uninum" real,
"bats" text,
"throws" text,
"position" text
);
Question: What's the Uni# of Timms, who has bats of R?
<|assistant|>
SELECT "uninum" FROM "player_roster" WHERE "bats"='r' AND "surname"='timms';<|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 team were the Opponent in Game 29?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "game"=29;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relationships_with_women" (
"name" text,
"life" text,
"age_at_death" text,
"first_contact_with_hitler" text,
"relationship" text
);
Question: When did the woman who died at 31 first contact Hitlers?
<|assistant|>
SELECT "first_contact_with_hitler" FROM "relationships_with_women" WHERE "age_at_death"='31';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relationships_with_women" (
"name" text,
"life" text,
"age_at_death" text,
"first_contact_with_hitler" text,
"relationship" text
);
Question: What is the relationship of the woman who died at 96?
<|assistant|>
SELECT "relationship" FROM "relationships_with_women" WHERE "age_at_death"='96';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relationships_with_women" (
"name" text,
"life" text,
"age_at_death" text,
"first_contact_with_hitler" text,
"relationship" text
);
Question: What is the lifespan of Stefanie Rabatsch?
<|assistant|>
SELECT "life" FROM "relationships_with_women" WHERE "name"='stefanie rabatsch';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "power_stroke_diesel_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: What is Brendan Gaughan's Car #?
<|assistant|>
SELECT "car_num" FROM "power_stroke_diesel_200" WHERE "driver"='brendan gaughan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "power_stroke_diesel_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: What is Mike Skinner's Chevrolet's Car #?
<|assistant|>
SELECT COUNT("car_num") FROM "power_stroke_diesel_200" WHERE "make"='chevrolet' AND "driver"='mike skinner';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "power_stroke_diesel_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: What is Driver Brendan Gaughan's Pos?
<|assistant|>
SELECT "pos" FROM "power_stroke_diesel_200" WHERE "driver"='brendan gaughan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_de_futsal" (
"2005" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2013" text,
"total" real
);
Question: What was the 2009 value for a total over 1 and 4th on 2010?
<|assistant|>
SELECT "2009" FROM "grand_prix_de_futsal" WHERE "total">1 AND "2010"='4th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the number of laps for the Time/Retired of +16.445?
<|assistant|>
SELECT "laps" FROM "race" WHERE "time_retired"='+16.445';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the number of laps for the honda vehicle, with a grid of 13?
<|assistant|>
SELECT "laps" FROM "race" WHERE "constructor"='honda' AND "grid"='13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the name of the company that constructed the vehicle for Timo Glock?
<|assistant|>
SELECT "constructor" FROM "race" WHERE "driver"='timo glock';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What is the Grid for Rubens Barrichello?
<|assistant|>
SELECT "grid" FROM "race" WHERE "driver"='rubens barrichello';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.