output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("points") FROM "race" WHERE "grid">7 AND "driver"='alex tagliani' AND "laps"<85;
## Task Generate a SQL query to answer the following question: `Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?`: ```sql
SELECT COUNT("wins") FROM "by_country" WHERE "wins_pct"='62.5%' AND "matches"<8;
## Task Generate a SQL query to answer the following question: `What is the total number of wins for a nation that played fewer than 8 matches and a Wins percentage of 62.5%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country" ( "country" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real, "for_against_ratio" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of wins for a nation that played fewer than 8 matches and a Wins percentage of 62.5%?`: ```sql
SELECT MAX("matches") FROM "by_country" WHERE "loses_pct"='26.67%' AND "draws"<90;
## Task Generate a SQL query to answer the following question: `What is the highest number of matches for a nation with a Loses percentage of 26.67% and fewer than 90 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country" ( "country" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real, "for_against_ratio" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of matches for a nation with a Loses percentage of 26.67% and fewer than 90 draws?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='uefa euro 2008 qualification';
## Task Generate a SQL query to answer the following question: `What date has uefa euro 2008 qualification as the competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has uefa euro 2008 qualification as the competition?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "venue"='pretoria, south africa';
## Task Generate a SQL query to answer the following question: `What date has friendly as the competition, with pretoria, South Africa as the venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has friendly as the competition, with pretoria, South Africa as the venue?`: ```sql
SELECT MIN("score_final") FROM "senior_career" WHERE "competition_description"='american cup' AND "year"<2009;
## Task Generate a SQL query to answer the following question: `What is the lowest final score of the American Cup competition before 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_career" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest final score of the American Cup competition before 2009?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"<7 AND "opponent"='bye';
## Task Generate a SQL query to answer the following question: `What is the result for the game before week 7 against BYE?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the game before week 7 against BYE?`: ```sql
SELECT "date" FROM "schedule" WHERE "week">16;
## Task Generate a SQL query to answer the following question: `What was the date for the game after week 16?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date for the game after week 16?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "opponent"='tampa bay buccaneers';
## Task Generate a SQL query to answer the following question: `What was the attendance for the game against tampa bay buccaneers?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for the game against tampa bay buccaneers?`: ```sql
SELECT "date" FROM "schedule" WHERE "week">5 AND "attendance"='62,262';
## Task Generate a SQL query to answer the following question: `What was the date of the game after week 5 with 62,262 fans attending?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game after week 5 with 62,262 fans attending?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='5–2–1';
## Task Generate a SQL query to answer the following question: `Which Location has a Record of 5–2–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Location has a Record of 5–2–1?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='inoki bom-ba-ye 2002';
## Task Generate a SQL query to answer the following question: `Which Record has an Event of inoki bom-ba-ye 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has an Event of inoki bom-ba-ye 2002?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='2–0';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Record of 2–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has a Record of 2–0?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round">2 AND "event"='bellator 38';
## Task Generate a SQL query to answer the following question: `Which Record has a Round larger than 2, and an Event of bellator 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Round larger than 2, and an Event of bellator 38?`: ```sql
SELECT SUM("pick") FROM "first_round_selections" WHERE "player"='john jones';
## Task Generate a SQL query to answer the following question: `What was John Jones's pick#?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What was John Jones's pick#?`: ```sql
SELECT AVG("pick") FROM "first_round_selections" WHERE "hometown_school"='atlanta, ga';
## Task Generate a SQL query to answer the following question: `What was the pick # of the player who has a hometown/school of Atlanta, GA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pick # of the player who has a hometown/school of Atlanta, GA?`: ```sql
SELECT "el_canal_de_las_estrellas" FROM "broadcasters" WHERE "june_14_2009"='february 23, 2010';
## Task Generate a SQL query to answer the following question: `What is the El Canal de las Estrellas held from June 14, 2009 to February 23, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the El Canal de las Estrellas held from June 14, 2009 to February 23, 2010?`: ```sql
SELECT "monday_to_friday" FROM "broadcasters" WHERE "ma_ana_es_para_siempre"='impreuna pentru totdeauna';
## Task Generate a SQL query to answer the following question: `What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?`: ```sql
SELECT "monday_to_friday" FROM "broadcasters" WHERE "el_canal_de_las_estrellas"='pop tv';
## Task Generate a SQL query to answer the following question: `When does the El Canal de las Estrellas of pop tv show from Monday to Friday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `When does the El Canal de las Estrellas of pop tv show from Monday to Friday?`: ```sql
SELECT SUM("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aaaa';
## Task Generate a SQL query to answer the following question: `What is the enrollment for the AAAA class in IHSAA?` ### 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, "location" text, "mascot" 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 enrollment for the AAAA class in IHSAA?`: ```sql
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='culver';
## Task Generate a SQL query to answer the following question: `What is the IHSAA Football class at Culver?` ### 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, "location" text, "mascot" 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 Football class at Culver?`: ```sql
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='lancers';
## Task Generate a SQL query to answer the following question: `What school has the Lancers as their mascot?` ### 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, "location" text, "mascot" 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 has the Lancers as their mascot?`: ```sql
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='laville';
## Task Generate a SQL query to answer the following question: `What is the total enrollment at Laville?` ### 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, "location" text, "mascot" 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 total enrollment at Laville?`: ```sql
SELECT MAX("avg") FROM "2012_ncaa_football_attendance_leaders" WHERE "rank">9;
## Task Generate a SQL query to answer the following question: `What is the highest average for teams ranked higher than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_ncaa_football_attendance_leaders" ( "rank" real, "team" text, "games" real, "total" real, "avg" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest average for teams ranked higher than 9?`: ```sql
SELECT "2008_club" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "name"='nadia centoni category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards?`: ```sql
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='despar sirio perugia';
## Task Generate a SQL query to answer the following question: `What is the name for the 2008 club Despar Sirio Perugia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name for the 2008 club Despar Sirio Perugia?`: ```sql
SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='despar sirio perugia';
## Task Generate a SQL query to answer the following question: `What is the spike for the 2008 club Despar Sirio Perugia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the spike for the 2008 club Despar Sirio Perugia?`: ```sql
SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='yamamay busto arsizio';
## Task Generate a SQL query to answer the following question: `What is the spike for 2008 club Yamamay Busto Arsizio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the spike for 2008 club Yamamay Busto Arsizio?`: ```sql
SELECT "2008_club" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "name"='francesca piccinini category:articles with hcards';
## Task Generate a SQL query to answer the following question: `Which 2008 club has the name Francesca Piccinini Category:Articles with hCards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2008 club has the name Francesca Piccinini Category:Articles with hCards?`: ```sql
SELECT MIN("wins") FROM "1933_ladder" WHERE "against"=1314;
## Task Generate a SQL query to answer the following question: `What is the least amount of wins when against is 1314?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of wins when against is 1314?`: ```sql
SELECT SUM("against") FROM "1933_ladder" WHERE "wins"=8 AND "club"='south warrnambool' AND "draws"<0;
## Task Generate a SQL query to answer the following question: `What is the number of against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws?`: ```sql
SELECT AVG("wins") FROM "1933_ladder" WHERE "against">1155 AND "club"='warrnambool' AND "draws">0;
## Task Generate a SQL query to answer the following question: `What is the number of wins when the against is larger than 1155, for Warrnambool, with more than 0 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1933_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of wins when the against is larger than 1155, for Warrnambool, with more than 0 draws?`: ```sql
SELECT "score" FROM "grade_distribution" WHERE "2012"='15.0%';
## Task Generate a SQL query to answer the following question: `What score has 15.0% as the 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has 15.0% as the 2012?`: ```sql
SELECT "2012" FROM "grade_distribution" WHERE "score"='2';
## Task Generate a SQL query to answer the following question: `What 2012 has 2 as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2012 has 2 as the score?`: ```sql
SELECT "2008" FROM "grade_distribution" WHERE "2009"='14.2%';
## Task Generate a SQL query to answer the following question: `What 2008 has 14.2% as the 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2008 has 14.2% as the 2009?`: ```sql
SELECT "score" FROM "grade_distribution" WHERE "2012"='15.0%';
## Task Generate a SQL query to answer the following question: `What score has 15.0% as the 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has 15.0% as the 2012?`: ```sql
SELECT "2009" FROM "grade_distribution" WHERE "2007"='18.5%';
## Task Generate a SQL query to answer the following question: `What 2009 has 18.5% as the 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2009 has 18.5% as the 2007?`: ```sql
SELECT "2011" FROM "grade_distribution" WHERE "2010"='12.7%';
## Task Generate a SQL query to answer the following question: `What 2011 has 12.7% as the 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grade_distribution" ( "score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2011 has 12.7% as the 2010?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "result"='l 24-0';
## Task Generate a SQL query to answer the following question: `What is the Week of the game with a Result of L 24-0?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Week of the game with a Result of L 24-0?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "date"='december 18, 1960';
## Task Generate a SQL query to answer the following question: `What is the Week number on December 18, 1960?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Week number on December 18, 1960?`: ```sql
SELECT "draws_pct" FROM "overall" WHERE "wins">1 AND "loses_pct"='0%' AND "team"='al-zawraa';
## Task Generate a SQL query to answer the following question: `Which Draws % has Wins larger than 1, and Loses % of 0%, and a Team of al-zawraa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "loses" real, "loses_pct" text, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Draws % has Wins larger than 1, and Loses % of 0%, and a Team of al-zawraa?`: ```sql
SELECT "pick" FROM "nfl_draft" WHERE "position"='defensive end';
## Task Generate a SQL query to answer the following question: `Which pick played the Defensive End position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `Which pick played the Defensive End position?`: ```sql
SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='linebacker' AND "round"<3;
## Task Generate a SQL query to answer the following question: `How many picks were taken before round 3 and played Linebacker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks were taken before round 3 and played Linebacker?`: ```sql
SELECT AVG("silver") FROM "overall" WHERE "total"=9;
## Task Generate a SQL query to answer the following question: `What is the average number of silver medals won among nations that won 9 medals total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall" ( "rank" text, "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 number of silver medals won among nations that won 9 medals total?`: ```sql
SELECT MAX("round") FROM "2001_ohio_state_buckeyes_football_team" WHERE "pick">179;
## Task Generate a SQL query to answer the following question: `Which Round has a Pick larger than 179?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a Pick larger than 179?`: ```sql
SELECT MAX("pick") FROM "2001_ohio_state_buckeyes_football_team" WHERE "player"='jamar martin';
## Task Generate a SQL query to answer the following question: `What is jamar martin's highest pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is jamar martin's highest pick?`: ```sql
SELECT "team" FROM "race_6b_ultra_lightweight_manx_grand_pri" WHERE "rank">4 AND "speed"='104.574mph';
## Task Generate a SQL query to answer the following question: `What teams rank is higher than 4 with a speed of 104.574mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams rank is higher than 4 with a speed of 104.574mph?`: ```sql
SELECT "team" FROM "race_6b_ultra_lightweight_manx_grand_pri" WHERE "rider"='anthony redmond';
## Task Generate a SQL query to answer the following question: `What team does Anthony Redmond ride for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What team does Anthony Redmond ride for?`: ```sql
SELECT "speed" FROM "race_6b_ultra_lightweight_manx_grand_pri" WHERE "rank"<3 AND "time"='1:03.41.86';
## Task Generate a SQL query to answer the following question: `What was the speed with a time of 1:03.41.86 and a rank smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_6b_ultra_lightweight_manx_grand_pri" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the speed with a time of 1:03.41.86 and a rank smaller than 3?`: ```sql
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">473 AND "ihsaa_class"='aaa' AND "num_county"='72 scott';
## Task Generate a SQL query to answer the following question: `What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class?`: ```sql
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"<627 AND "ihsaa_class"='aa' AND "school"='eastern pekin';
## Task Generate a SQL query to answer the following question: `What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class?`: ```sql
SELECT MAX("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "mascot"='dragons';
## Task Generate a SQL query to answer the following question: `What's the most enrolled having the dragons for a mascot and an AAA for the IHSAA Class?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the most enrolled having the dragons for a mascot and an AAA for the IHSAA Class?`: ```sql
SELECT "num_county" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"<774 AND "school"='eastern pekin';
## Task Generate a SQL query to answer the following question: `What's the county of Eastern Pekin school with fewer than 774 enrolled?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the county of Eastern Pekin school with fewer than 774 enrolled?`: ```sql
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "mascot"='panthers';
## Task Generate a SQL query to answer the following question: `What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?`: ```sql
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='musketeers';
## Task Generate a SQL query to answer the following question: `What's the IHSAA Class when the mascot was the Musketeers?` ### 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, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the IHSAA Class when the mascot was the Musketeers?`: ```sql
SELECT "director" FROM "1965" WHERE "title"='chaser on the rocks';
## Task Generate a SQL query to answer the following question: `Who was the director of Chaser on the Rocks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1965" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of Chaser on the Rocks?`: ```sql
SELECT "characters" FROM "1965" WHERE "title"='suppressed duck';
## Task Generate a SQL query to answer the following question: `What are the characters from the movie Suppressed Duck?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1965" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the characters from the movie Suppressed Duck?`: ```sql
SELECT AVG("pick") FROM "draft_picks" WHERE "player"='jay bruchak' AND "round"<6;
## Task Generate a SQL query to answer the following question: `How many picks on average did Jay Bruchak have before round 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks on average did Jay Bruchak have before round 6?`: ```sql
SELECT COUNT("round") FROM "draft_picks" WHERE "pick">148 AND "player"='pierre bland';
## Task Generate a SQL query to answer the following question: `How many rounds did Pierre Bland have a pick larger than 148?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds did Pierre Bland have a pick larger than 148?`: ```sql
SELECT MIN("round") FROM "draft_picks" WHERE "college"='purdue' AND "pick">10;
## Task Generate a SQL query to answer the following question: `What was the earliest round that Purdue had a pick larger than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest round that Purdue had a pick larger than 10?`: ```sql
SELECT COUNT("pick") FROM "draft_picks" WHERE "player"='jay bruchak';
## Task Generate a SQL query to answer the following question: `How many picks did Jay Bruchak have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks did Jay Bruchak have?`: ```sql
SELECT "round" FROM "attendance" WHERE "home"='alianza';
## Task Generate a SQL query to answer the following question: `In what round was the Alianza home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); ### SQL Given the database schema, here is the SQL query that answers `In what round was the Alianza home game?`: ```sql
SELECT "away" FROM "attendance" WHERE "round"='round 16';
## Task Generate a SQL query to answer the following question: `What was the visiting team that played a round 16 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "attendance" real, "round" text, "date" text, "home" text, "score" text, "away" text, "venue" text, "weekday" text, "time_of_day" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the visiting team that played a round 16 game?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "attendance"='62,289';
## Task Generate a SQL query to answer the following question: `How many weeks have an Attendance of 62,289?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many weeks have an Attendance of 62,289?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "attendance">'65,070';
## Task Generate a SQL query to answer the following question: `Which Week has an Attendance larger than 65,070?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has an Attendance larger than 65,070?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "opponent"='atlanta falcons' AND "attendance"<'63,114';
## Task Generate a SQL query to answer the following question: `Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114?`: ```sql
SELECT "tms" FROM "records" WHERE "season"='2013';
## Task Generate a SQL query to answer the following question: `which Tms has a Season of 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "season" text, "division" text, "tms" text, "pos" text, "pff_nmcc" text, "ufl_cup" text, "afc_pc" text ); ### SQL Given the database schema, here is the SQL query that answers `which Tms has a Season of 2013?`: ```sql
SELECT MIN("population") FROM "main_places" WHERE "code">90902 AND "area_km_2"<'1,335.47';
## Task Generate a SQL query to answer the following question: `What's the population with a code more than 90902 and an area less than 1,335.47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the population with a code more than 90902 and an area less than 1,335.47?`: ```sql
SELECT MAX("area_km_2") FROM "main_places" WHERE "place"='bochum part 2' AND "population"<'15,911';
## Task Generate a SQL query to answer the following question: `What's the most area of Bochum Part 2 with a population less than 15,911?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the most area of Bochum Part 2 with a population less than 15,911?`: ```sql
SELECT "place" FROM "main_places" WHERE "area_km_2"<'2,198.72' AND "code">90909;
## Task Generate a SQL query to answer the following question: `What's the place with an area of less than 2,198.72 and a code more than 90909?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the place with an area of less than 2,198.72 and a code more than 90909?`: ```sql
SELECT "original_nfl_team" FROM "notable_undrafted_players" WHERE "pos"='cb';
## Task Generate a SQL query to answer the following question: `What is the Original NFL team of the CB Player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Original NFL team of the CB Player?`: ```sql
SELECT "college" FROM "notable_undrafted_players" WHERE "conf"='swc' AND "pos"='wr';
## Task Generate a SQL query to answer the following question: `What is the College of the WR Player from SWC Conf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the College of the WR Player from SWC Conf?`: ```sql
SELECT "player" FROM "notable_undrafted_players" WHERE "college"='memphis';
## Task Generate a SQL query to answer the following question: `What Player is from the College of memphis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player is from the College of memphis?`: ```sql
SELECT "college" FROM "notable_undrafted_players" WHERE "pos"='lb' AND "conf"='big ten';
## Task Generate a SQL query to answer the following question: `What is the College of the LB Player with Big Ten Conf.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the College of the LB Player with Big Ten Conf.?`: ```sql
SELECT SUM("draws") FROM "2011_ladder" WHERE "wins"=11 AND "losses">7;
## Task Generate a SQL query to answer the following question: `How many draws are there when there are 11 wins, and more than 7 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many draws are there when there are 11 wins, and more than 7 losses?`: ```sql
SELECT MAX("draws") FROM "2011_ladder" WHERE "losses"<3 AND "wins">16;
## Task Generate a SQL query to answer the following question: `What is the draws when there are less than 3 losses and more than 16 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the draws when there are less than 3 losses and more than 16 wins?`: ```sql
SELECT MAX("wins") FROM "2011_ladder" WHERE "losses"=5 AND "against">1205;
## Task Generate a SQL query to answer the following question: `What is the wins when there are 5 losses, and against is more than 1205?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the wins when there are 5 losses, and against is more than 1205?`: ```sql
SELECT AVG("losses") FROM "2011_ladder" WHERE "sunrayia_fl"='red cliffs' AND "against">2294;
## Task Generate a SQL query to answer the following question: `What is the losses when Sunrayia FL is Red Cliffs, and the against is more than 2294?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the losses when Sunrayia FL is Red Cliffs, and the against is more than 2294?`: ```sql
SELECT COUNT("against") FROM "2011_ladder" WHERE "losses"<3 AND "wins">16;
## Task Generate a SQL query to answer the following question: `What is the number against when losses are smaller than 3, and wins arelarger than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "sunrayia_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number against when losses are smaller than 3, and wins arelarger than 16?`: ```sql
SELECT "notes" FROM "radio" WHERE "call_sign"='cfun-fm-1';
## Task Generate a SQL query to answer the following question: `What is the Notes of the Frequency with Call sign CFUN-FM-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Notes of the Frequency with Call sign CFUN-FM-1?`: ```sql
SELECT "format" FROM "radio" WHERE "notes"='licensed to hope' AND "frequency"='fm 100.5';
## Task Generate a SQL query to answer the following question: `What is the Format of FM 100.5 Licensed to Hope?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Format of FM 100.5 Licensed to Hope?`: ```sql
SELECT "notes" FROM "radio" WHERE "call_sign"='cbue-fm';
## Task Generate a SQL query to answer the following question: `What is the Notes of the Frequency with a call sign of CBUE-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Notes of the Frequency with a call sign of CBUE-FM?`: ```sql
SELECT AVG("dynamo") FROM "head_to_head_record" WHERE "draw">0 AND "played"<15 AND "spartak">1;
## Task Generate a SQL query to answer the following question: `what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1?`: ```sql
SELECT MAX("spartak") FROM "head_to_head_record" WHERE "played"<15 AND "dynamo"<3;
## Task Generate a SQL query to answer the following question: `what is the highest spartak when played is less than 15 and dynamo is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest spartak when played is less than 15 and dynamo is less than 3?`: ```sql
SELECT MAX("draw") FROM "head_to_head_record" WHERE "competition"='soviet league' AND "dynamo">34;
## Task Generate a SQL query to answer the following question: `what is the most draw when the competition is soviet league and dynamo is more than 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the most draw when the competition is soviet league and dynamo is more than 34?`: ```sql
SELECT SUM("spartak") FROM "head_to_head_record" WHERE "played"=102 AND "draw"<19;
## Task Generate a SQL query to answer the following question: `what is the sum of spartak when played is 102 and draw is less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the sum of spartak when played is 102 and draw is less than 19?`: ```sql
SELECT MIN("dynamo") FROM "head_to_head_record" WHERE "spartak">9 AND "competition"='totals' AND "draw">24;
## Task Generate a SQL query to answer the following question: `what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_record" ( "competition" text, "played" real, "spartak" real, "draw" real, "dynamo" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24?`: ```sql
SELECT "result" FROM "schedule" WHERE "week">8 AND "opponent"='washington redskins';
## Task Generate a SQL query to answer the following question: `What's the result when the Washington Redskins were the opponents on a week after 8?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the result when the Washington Redskins were the opponents on a week after 8?`: ```sql
SELECT "4_45" FROM "final" WHERE "nationality"='poland' AND "name"='anna rogowska';
## Task Generate a SQL query to answer the following question: `What is the 4.45 for Anna Rogowska from Poland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 4.45 for Anna Rogowska from Poland?`: ```sql
SELECT "4_45" FROM "final" WHERE "name"='yelena isinbayeva';
## Task Generate a SQL query to answer the following question: `What is the 4.45 for Yelena Isinbayeva?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 4.45 for Yelena Isinbayeva?`: ```sql
SELECT AVG("result") FROM "final" WHERE "name"='anna rogowska';
## Task Generate a SQL query to answer the following question: `What is Anna Rogowska's average result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Anna Rogowska's average result?`: ```sql
SELECT "nationality" FROM "final" WHERE "4_45"='o' AND "4_55"='xo';
## Task Generate a SQL query to answer the following question: `What national has 4.45 for o and 4.55 for xo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "name" text, "nationality" text, "4_30" text, "4_45" text, "4_55" text, "result" real ); ### SQL Given the database schema, here is the SQL query that answers `What national has 4.45 for o and 4.55 for xo?`: ```sql
SELECT SUM("staterooms") FROM "ships_cruising_in_asia" WHERE "year_built"=2008 AND "crew"<28;
## Task Generate a SQL query to answer the following question: `What is the sum of staterooms in with a year buit of 2008, and a crew less than 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_cruising_in_asia" ( "ship_name" text, "year_built" real, "length" text, "crew" real, "guests" real, "staterooms" real, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of staterooms in with a year buit of 2008, and a crew less than 28?`: ```sql
SELECT COUNT("guests") FROM "ships_cruising_in_asia" WHERE "ship_name"='rv indochina' AND "crew"<28;
## Task Generate a SQL query to answer the following question: `What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_cruising_in_asia" ( "ship_name" text, "year_built" real, "length" text, "crew" real, "guests" real, "staterooms" real, "comments" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?`: ```sql
SELECT "country" FROM "qualification_round" WHERE "total"=111 AND "day_1"=69;
## Task Generate a SQL query to answer the following question: `what is the country when the total is 111 and the day 1 is 69?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the country when the total is 111 and the day 1 is 69?`: ```sql
SELECT AVG("rank") FROM "qualification_round" WHERE "day_1"<71 AND "country"='romania';
## Task Generate a SQL query to answer the following question: `what is the average rank when the day 1 is less than 71 and the country is romania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the average rank when the day 1 is less than 71 and the country is romania?`: ```sql
SELECT COUNT("rank") FROM "qualification_round" WHERE "athlete"='jin di' AND "total"<118;
## Task Generate a SQL query to answer the following question: `how many times is the athlete jin di and the total less than 118?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the athlete jin di and the total less than 118?`: ```sql
SELECT MAX("goals") FROM "squad_information" WHERE "nat"='geo' AND "ends">2010;
## Task Generate a SQL query to answer the following question: `What is the highest goal for a GEO nat., that ended after 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest goal for a GEO nat., that ended after 2010?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"=2006 AND "competition"='asian games' AND "event"='400 m';
## Task Generate a SQL query to answer the following question: `what is the venue when the year is 2006, the competition is asian games and the event is 400 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue when the year is 2006, the competition is asian games and the event is 400 m?`: ```sql
SELECT "venue" FROM "achievements" WHERE "event"='4x400 m relay' AND "competition"='asian championships';
## Task Generate a SQL query to answer the following question: `what is the venue when the event is 4x400 m relay and the competition is asian championships?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue when the event is 4x400 m relay and the competition is asian championships?`: ```sql