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