output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "1989" FROM "grand_prix_singles_tournament_timeline" WHERE "1983"='a' AND "1987"='a';
## Task Generate a SQL query to answer the following question: `What is the 1989 result for the tournament that had a 1983 and 1987 result of A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1989 result for the tournament that had a 1983 and 1987 result of A?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='ufc 85';
## Task Generate a SQL query to answer the following question: `What was the result fot the UFC 85 event?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result fot the UFC 85 event?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='meca world vale tudo 6';
## Task Generate a SQL query to answer the following question: `In which location did the Meca World Vale Tudo 6 event happen?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `In which location did the Meca World Vale Tudo 6 event happen?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "event"='afc: brazil 1';
## Task Generate a SQL query to answer the following question: `What was his record at the AFC: Brazil 1 event that went 3 rounds?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was his record at the AFC: Brazil 1 event that went 3 rounds?`: ```sql
SELECT "country" FROM "semifinals" WHERE "lane"<2 AND "name"='anselmo da silva';
## Task Generate a SQL query to answer the following question: `Which country has Anselmo Da Silva in lane 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country has Anselmo Da Silva in lane 2?`: ```sql
SELECT COUNT("heat") FROM "semifinals" WHERE "mark"='7.63' AND "react"<0.229;
## Task Generate a SQL query to answer the following question: `What is the heat number at 7.63, and a reaction less than 0.229?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the heat number at 7.63, and a reaction less than 0.229?`: ```sql
SELECT "verb_meaning" FROM "english" WHERE "part_2"='band';
## Task Generate a SQL query to answer the following question: `What is the verb meaning when part 2 is band?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the verb meaning when part 2 is band?`: ```sql
SELECT "verb_meaning" FROM "english" WHERE "part_2"='blēot';
## Task Generate a SQL query to answer the following question: `What is the verb meaning when the part 2 is blēot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the verb meaning when the part 2 is blēot?`: ```sql
SELECT "part_2" FROM "english" WHERE "class"='6';
## Task Generate a SQL query to answer the following question: `What is the Part 2 when the class is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Part 2 when the class is 6?`: ```sql
SELECT "class" FROM "english" WHERE "verb_meaning"='to nourish, to grow';
## Task Generate a SQL query to answer the following question: `What is the class when the verb meaning is to nourish, to grow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the class when the verb meaning is to nourish, to grow?`: ```sql
SELECT "part_3" FROM "english" WHERE "verb_meaning"='to gather';
## Task Generate a SQL query to answer the following question: `What is the Part 3 when the Verb meaning is to gather?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Part 3 when the Verb meaning is to gather?`: ```sql
SELECT "verb_meaning" FROM "english" WHERE "part_1"='alan';
## Task Generate a SQL query to answer the following question: `What is the Verb meaning when part 1 is alan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Verb meaning when part 1 is alan?`: ```sql
SELECT AVG("attendance") FROM "round_5" WHERE "home"='vida';
## Task Generate a SQL query to answer the following question: `What is the average attendance for matches where the home team was vida?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average attendance for matches where the home team was vida?`: ```sql
SELECT "home" FROM "round_5" WHERE "attendance"=2709;
## Task Generate a SQL query to answer the following question: `Who was the home team during the match where there were 2709 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team during the match where there were 2709 in attendance?`: ```sql
SELECT SUM("attendance") FROM "round_5" WHERE "score"='1:1';
## Task Generate a SQL query to answer the following question: `What is the sum of the attendance where the score was 1:1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the attendance where the score was 1:1?`: ```sql
SELECT "home" FROM "game_log" WHERE "attendance">'14,995' AND "points">24 AND "visitor"='montreal';
## Task Generate a SQL query to answer the following question: `Where did montreal visit with more than 24 points and 14,995 attendees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Where did montreal visit with more than 24 points and 14,995 attendees?`: ```sql
SELECT "tie_no" FROM "second_round_proper" WHERE "score"='2–2';
## Task Generate a SQL query to answer the following question: `How many ties occurred with a score of 2–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many ties occurred with a score of 2–2?`: ```sql
SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='preston north end';
## Task Generate a SQL query to answer the following question: `Who is the home team when Preston North End is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the home team when Preston North End is the away team?`: ```sql
SELECT "school_club_team" FROM "w" WHERE "position"='shooting guard';
## Task Generate a SQL query to answer the following question: `What school/club did the player who layed shooting guard attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school/club did the player who layed shooting guard attend?`: ```sql
SELECT "school_club_team" FROM "w" WHERE "player"='gerald wilkins';
## Task Generate a SQL query to answer the following question: `What school/club did gerald wilkins attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school/club did gerald wilkins attend?`: ```sql
SELECT "years_for_grizzlies" FROM "w" WHERE "position"='point guard' AND "school_club_team"='florida';
## Task Generate a SQL query to answer the following question: `What are the years when the grizzlies had a point guard who attended the school/club Florida?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the years when the grizzlies had a point guard who attended the school/club Florida?`: ```sql
SELECT "years_for_grizzlies" FROM "w" WHERE "school_club_team"='ucla';
## Task Generate a SQL query to answer the following question: `What are the years when the grizzles had a player who attended UCLA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the years when the grizzles had a player who attended UCLA?`: ```sql
SELECT "years_for_grizzlies" FROM "w" WHERE "school_club_team"='villanova';
## Task Generate a SQL query to answer the following question: `What are the years when the grizzles had a player who attended Villanova?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the years when the grizzles had a player who attended Villanova?`: ```sql
SELECT "position" FROM "w" WHERE "years_for_grizzlies"='1998-1999';
## Task Generate a SQL query to answer the following question: `What position did the person who was with the grizzlies in 1998-1999 play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the person who was with the grizzlies in 1998-1999 play?`: ```sql
SELECT "date" FROM "schedule" WHERE "opponent"='cleveland browns';
## Task Generate a SQL query to answer the following question: `What is the date of the game when the opponent is the Cleveland Browns?` ### 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 date of the game when the opponent is the Cleveland Browns?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='62,078';
## Task Generate a SQL query to answer the following question: `What is the result of the game when the attendance is 62,078?` ### 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 of the game when the attendance is 62,078?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='75,466';
## Task Generate a SQL query to answer the following question: `What is the result of the game when the attendance is 75,466?` ### 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 of the game when the attendance is 75,466?`: ```sql
SELECT "genitive" FROM "pronouns" WHERE "ergative"='shen';
## Task Generate a SQL query to answer the following question: `What is the genitive for the ergative shen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the genitive for the ergative shen?`: ```sql
SELECT "instrumental" FROM "pronouns" WHERE "dative"='shen';
## Task Generate a SQL query to answer the following question: `What is the instrumental for the dative shen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the instrumental for the dative shen?`: ```sql
SELECT "adverbial" FROM "pronouns" WHERE "nominative"='me';
## Task Generate a SQL query to answer the following question: `What is the adverbial for the nominative me?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the adverbial for the nominative me?`: ```sql
SELECT "ergative" FROM "pronouns" WHERE "dative"='chven';
## Task Generate a SQL query to answer the following question: `What is the ergative for the dative chven?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ergative for the dative chven?`: ```sql
SELECT "ergative" FROM "pronouns" WHERE "genitive"='tkven(s)';
## Task Generate a SQL query to answer the following question: `What is the ergative for the genitive tkven(s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ergative for the genitive tkven(s)?`: ```sql
SELECT "ergative" FROM "pronouns" WHERE "dative"='(i)mas';
## Task Generate a SQL query to answer the following question: `What is the ergative for the dative (i)mas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pronouns" ( "nominative" text, "ergative" text, "dative" text, "genitive" text, "instrumental" text, "adverbial" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ergative for the dative (i)mas?`: ```sql
SELECT "front_side_bus" FROM "ezra_ezra_t_130_nm" WHERE "model_number"='c3 850';
## Task Generate a SQL query to answer the following question: `What is the Front Side Bus for Model Number c3 850?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ezra_ezra_t_130_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "front_side_bus" text, "multiplier" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Front Side Bus for Model Number c3 850?`: ```sql
SELECT "frequency" FROM "ezra_ezra_t_130_nm" WHERE "model_number"='c3 850';
## Task Generate a SQL query to answer the following question: `What is the Frequency for Model Number c3 850?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ezra_ezra_t_130_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "front_side_bus" text, "multiplier" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Frequency for Model Number c3 850?`: ```sql
SELECT "model_number" FROM "ezra_ezra_t_130_nm" WHERE "front_side_bus"='100mhz' AND "l2_cache"='64kib' AND "multiplier"='8.5×';
## Task Generate a SQL query to answer the following question: `Which Model number has a Front Side Bus of 100mhz, a L2-Cache of 64kib and a Multiplier of 8.5×?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ezra_ezra_t_130_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "front_side_bus" text, "multiplier" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Model number has a Front Side Bus of 100mhz, a L2-Cache of 64kib and a Multiplier of 8.5×?`: ```sql
SELECT "voltage" FROM "ezra_ezra_t_130_nm" WHERE "model_number"='c3 866';
## Task Generate a SQL query to answer the following question: `What is the Voltage for Model Number c3 866?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ezra_ezra_t_130_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "front_side_bus" text, "multiplier" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Voltage for Model Number c3 866?`: ```sql
SELECT "finalists" FROM "doubles" WHERE "tournament"='miami';
## Task Generate a SQL query to answer the following question: `What is Finalists, when Tournament is Miami?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Finalists, when Tournament is Miami?`: ```sql
SELECT "tournament" FROM "doubles" WHERE "week"='november 23';
## Task Generate a SQL query to answer the following question: `What is Tournament, when Week is November 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tournament, when Week is November 23?`: ```sql
SELECT "semifinalists" FROM "doubles" WHERE "tournament"='rome';
## Task Generate a SQL query to answer the following question: `What is Semifinalists, when Tournament is Rome` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Semifinalists, when Tournament is Rome`: ```sql
SELECT "rank_num" FROM "schedule" WHERE "attendance"='68,586';
## Task Generate a SQL query to answer the following question: `What rank were the Buckeyes when there were 68,586 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What rank were the Buckeyes when there were 68,586 in attendance?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='40,000';
## Task Generate a SQL query to answer the following question: `What date was the game when 40,000 attended?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game when 40,000 attended?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='45,943';
## Task Generate a SQL query to answer the following question: `What date was the game when 45,943 attended?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game when 45,943 attended?`: ```sql
SELECT "opponentnum" FROM "schedule" WHERE "date"='october 17';
## Task Generate a SQL query to answer the following question: `Who was the opponent that played against the Buckeyes on October 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent that played against the Buckeyes on October 17?`: ```sql
SELECT "result" FROM "schedule" WHERE "rank_num"='1' AND "attendance"='22,555';
## Task Generate a SQL query to answer the following question: `What is the result of the game played when 22,555 were in attendance and the Buckeyes were ranked #1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" 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 played when 22,555 were in attendance and the Buckeyes were ranked #1?`: ```sql
SELECT "player" FROM "2008_atlanta_dream" WHERE "college_country_team"='connecticut';
## Task Generate a SQL query to answer the following question: `What Player is from Connecticut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_atlanta_dream" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player is from Connecticut?`: ```sql
SELECT MAX("position") FROM "relegation_round" WHERE "played"<10;
## Task Generate a SQL query to answer the following question: `What is the highest position of the team having played under 10 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest position of the team having played under 10 matches?`: ```sql
SELECT COUNT("played") FROM "relegation_round" WHERE "points">14 AND "drawn">1;
## Task Generate a SQL query to answer the following question: `What is the total number of played values for teams with more than 14 points and more than 1 draw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of played values for teams with more than 14 points and more than 1 draw?`: ```sql
SELECT COUNT("position") FROM "relegation_round" WHERE "points">2 AND "lost">4 AND "played"<10;
## Task Generate a SQL query to answer the following question: `What is the total number of positions having points over 2, more than 4 losses, and under 10 matches played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of positions having points over 2, more than 4 losses, and under 10 matches played?`: ```sql
SELECT MIN("televotes") FROM "references" WHERE "performer"='biljana dodeva' AND "draw">10;
## Task Generate a SQL query to answer the following question: `WHich Televotes has a Performer of biljana dodeva, and a Draw larger than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "televotes" real, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `WHich Televotes has a Performer of biljana dodeva, and a Draw larger than 10?`: ```sql
SELECT MAX("draw") FROM "references" WHERE "rank"=14 AND "televotes">908;
## Task Generate a SQL query to answer the following question: `Name the highest Draw which has a Rank of 14, and a Televotes larger than 908?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "televotes" real, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest Draw which has a Rank of 14, and a Televotes larger than 908?`: ```sql
SELECT MIN("televotes") FROM "references" WHERE "performer"='monika sokolovska' AND "rank">15;
## Task Generate a SQL query to answer the following question: `Name the lowest Televotes which has monika sokolovska and a Rank larger than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "televotes" real, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest Televotes which has monika sokolovska and a Rank larger than 15?`: ```sql
SELECT MIN("draw") FROM "references" WHERE "performer"='kaliopi' AND "televotes">3834;
## Task Generate a SQL query to answer the following question: `Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "televotes" real, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?`: ```sql
SELECT "total" FROM "missed_the_cut" WHERE "player"='hale irwin';
## Task Generate a SQL query to answer the following question: `What is Total, when Player is "Hale Irwin"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Total, when Player is "Hale Irwin"?`: ```sql
SELECT "player" FROM "missed_the_cut" WHERE "country"='united states' AND "to_par"='wd';
## Task Generate a SQL query to answer the following question: `What is Player, when Country is "United States", and when To Par is "WD"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Country is "United States", and when To Par is "WD"?`: ```sql
SELECT "player" FROM "missed_the_cut" WHERE "total"='154';
## Task Generate a SQL query to answer the following question: `What is Player, when Total is "154"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Total is "154"?`: ```sql
SELECT "player" FROM "missed_the_cut" WHERE "country"='united states' AND "total"='154';
## Task Generate a SQL query to answer the following question: `What is Player, when Country is "United States", and when Total is "154"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Country is "United States", and when Total is "154"?`: ```sql
SELECT "country" FROM "missed_the_cut" WHERE "to_par"='+11';
## Task Generate a SQL query to answer the following question: `What is Country, when To Par is "+11"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Country, when To Par is "+11"?`: ```sql
SELECT "country" FROM "missed_the_cut" WHERE "player"='hale irwin';
## Task Generate a SQL query to answer the following question: `What is Country, when Player is "Hale Irwin"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Country, when Player is "Hale Irwin"?`: ```sql
SELECT MIN("interview") FROM "final_competition_score" WHERE "country"='missouri' AND "swimsuit">9.433;
## Task Generate a SQL query to answer the following question: `What is the lowest interview score for Missouri, where the swimsuit score was highter than 9.433?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest interview score for Missouri, where the swimsuit score was highter than 9.433?`: ```sql
SELECT SUM("preliminary") FROM "final_competition_score" WHERE "interview"=9.654 AND "average"<9.733;
## Task Generate a SQL query to answer the following question: `What is the sum of Preliminary scores where the interview score is 9.654 and the average score is lower than 9.733?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Preliminary scores where the interview score is 9.654 and the average score is lower than 9.733?`: ```sql
SELECT SUM("swimsuit") FROM "final_competition_score" WHERE "average"=9.733 AND "interview">9.654;
## Task Generate a SQL query to answer the following question: `What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654?`: ```sql
SELECT SUM("evening_gown") FROM "final_competition_score" WHERE "swimsuit">9.4 AND "average"<9.733;
## Task Generate a SQL query to answer the following question: `What is the sum of Evening Gown scores where the swimsuit score is higher than 9.4 and the average score is lower than 9.733?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Evening Gown scores where the swimsuit score is higher than 9.4 and the average score is lower than 9.733?`: ```sql
SELECT MIN("average") FROM "final_competition_score" WHERE "evening_gown"=8.811;
## Task Generate a SQL query to answer the following question: `What is the lowest average score where the evening gown score was 8.811?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest average score where the evening gown score was 8.811?`: ```sql
SELECT AVG("lost") FROM "final_table" WHERE "goals_against"<58 AND "position"=10 AND "points_2">53;
## Task Generate a SQL query to answer the following question: `For a team with a goals against less than 58, a position of 10, and a points 2 more than 53, what is the average lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); ### SQL Given the database schema, here is the SQL query that answers `For a team with a goals against less than 58, a position of 10, and a points 2 more than 53, what is the average lost?`: ```sql
SELECT MIN("position") FROM "final_table" WHERE "goals_for">95;
## Task Generate a SQL query to answer the following question: `For a team having goals for more than 95, what is the lowest position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); ### SQL Given the database schema, here is the SQL query that answers `For a team having goals for more than 95, what is the lowest position?`: ```sql
SELECT "function_pct" FROM "references" WHERE "estimated_function_pct"=20;
## Task Generate a SQL query to answer the following question: `What is the function percentage when the estimated function percentage is 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "grade" text, "description" text, "measurement" text, "function_pct" text, "estimated_function_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the function percentage when the estimated function percentage is 20?`: ```sql
SELECT "measurement" FROM "references" WHERE "estimated_function_pct"<20;
## Task Generate a SQL query to answer the following question: `What is the measurement where the estimated function % is less than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "grade" text, "description" text, "measurement" text, "function_pct" text, "estimated_function_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the measurement where the estimated function % is less than 20?`: ```sql
SELECT "estimated_function_pct" FROM "references" WHERE "measurement"='8/8';
## Task Generate a SQL query to answer the following question: `What is the estimated function % when the measurement is 8/8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "grade" text, "description" text, "measurement" text, "function_pct" text, "estimated_function_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the estimated function % when the measurement is 8/8?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "to_par"<13 AND "player"='jacky cupit';
## Task Generate a SQL query to answer the following question: `What place did jacky cupit take when his To par was under 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What place did jacky cupit take when his To par was under 13?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "to_par"=12 AND "country"='united states';
## Task Generate a SQL query to answer the following question: `Which united states player had a To par of 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `Which united states player had a To par of 12?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "to_par"=13;
## Task Generate a SQL query to answer the following question: `Which player had a To par of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player had a To par of 13?`: ```sql
SELECT "score" FROM "final_round" WHERE "to_par"='+5' AND "player"='vijay singh';
## Task Generate a SQL query to answer the following question: `What did vijay singh score with a +5 to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What did vijay singh score with a +5 to par?`: ```sql
SELECT AVG("rank") FROM "medal_table" WHERE "nation"='south africa' AND "silver">8;
## Task Generate a SQL query to answer the following question: `What was the average rank for south africa when they had more than 8 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "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 was the average rank for south africa when they had more than 8 silver medals?`: ```sql
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='netherlands' AND "bronze">4;
## Task Generate a SQL query to answer the following question: `What is the average number of gold medals the netherlands got when they had more than 4 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "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 number of gold medals the netherlands got when they had more than 4 bronze medals?`: ```sql
SELECT SUM("gold") FROM "medal_table" WHERE "silver">8 AND "nation"='great britain' AND "total"<61;
## Task Generate a SQL query to answer the following question: `What is the sum of the gold medals for the nation of Great britain who had more than 8 silvers and a total of less than 61 medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "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 sum of the gold medals for the nation of Great britain who had more than 8 silvers and a total of less than 61 medals?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "nation"='israel' AND "silver"<3;
## Task Generate a SQL query to answer the following question: `What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "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 highest number of bronze medals that israel acheived when they got less than 3 silver medals?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=2 AND "silver">5;
## Task Generate a SQL query to answer the following question: `What is the total number of gold medals when the team got 2 bronze and more than 5 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "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 total number of gold medals when the team got 2 bronze and more than 5 silver medals?`: ```sql
SELECT "partner" FROM "doubles_5_2_3" WHERE "surface"='hard' AND "score"='6–3, 7–6(0)';
## Task Generate a SQL query to answer the following question: `What is Partner, when Surface is Hard, and when Score is 6–3, 7–6(0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Partner, when Surface is Hard, and when Score is 6–3, 7–6(0)?`: ```sql
SELECT "opponents" FROM "doubles_5_2_3" WHERE "partner"='vitalia diatchenko';
## Task Generate a SQL query to answer the following question: `What is Opponents, when Partner is Vitalia Diatchenko?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opponents, when Partner is Vitalia Diatchenko?`: ```sql
SELECT "partner" FROM "doubles_5_2_3" WHERE "outcome"='winner' AND "date"='12 october 2003';
## Task Generate a SQL query to answer the following question: `What is Partner, when Outcome is Winner, and when Date is 12 October 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Partner, when Outcome is Winner, and when Date is 12 October 2003?`: ```sql
SELECT "opponents" FROM "doubles_5_2_3" WHERE "partner"='mervana jugić-salkić';
## Task Generate a SQL query to answer the following question: `What is Opponents, when Partner is Mervana Jugić-Salkić?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opponents, when Partner is Mervana Jugić-Salkić?`: ```sql
SELECT COUNT("field_goal_pct") FROM "player_stats" WHERE "free_throw_pct">0.5 AND "rebounds"=159 AND "points_per_game"<7.1;
## Task Generate a SQL query to answer the following question: `What is the total number of Field Goal %, when Free Throw % is greater than 0.5, when Rebounds is 159, and when Points Per Game is less than 7.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes_played" real, "minutes_played_per_game" real, "rebounds" real, "rebounds_per_game" real, "assists" real, "assists_per_game" real, "field_goal_pct" real, "free_throw_pct" real, "points" real, "points_per_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Field Goal %, when Free Throw % is greater than 0.5, when Rebounds is 159, and when Points Per Game is less than 7.1?`: ```sql
SELECT MIN("minutes_played_per_game") FROM "player_stats" WHERE "rebounds"<347 AND "assists">5 AND "minutes_played"<301;
## Task Generate a SQL query to answer the following question: `What is the lowest Minutes Played Per Game, when Rebounds is less than 347, when Assists is greater than 5, and when Minutes Played is less than 301?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes_played" real, "minutes_played_per_game" real, "rebounds" real, "rebounds_per_game" real, "assists" real, "assists_per_game" real, "field_goal_pct" real, "free_throw_pct" real, "points" real, "points_per_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Minutes Played Per Game, when Rebounds is less than 347, when Assists is greater than 5, and when Minutes Played is less than 301?`: ```sql
SELECT MIN("minutes_played") FROM "player_stats" WHERE "rebounds"=25 AND "field_goal_pct"<0.315;
## Task Generate a SQL query to answer the following question: `What is the lowest Minutes Played, when Rebounds is 25, and when Field Goal % is less than "0.315"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes_played" real, "minutes_played_per_game" real, "rebounds" real, "rebounds_per_game" real, "assists" real, "assists_per_game" real, "field_goal_pct" real, "free_throw_pct" real, "points" real, "points_per_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Minutes Played, when Rebounds is 25, and when Field Goal % is less than "0.315"?`: ```sql
SELECT AVG("rebounds") FROM "player_stats" WHERE "minutes_played"=113 AND "games_played">18;
## Task Generate a SQL query to answer the following question: `What is the average Rebounds, when Minutes Played is "113", and when Games Played is greater than "18"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes_played" real, "minutes_played_per_game" real, "rebounds" real, "rebounds_per_game" real, "assists" real, "assists_per_game" real, "field_goal_pct" real, "free_throw_pct" real, "points" real, "points_per_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Rebounds, when Minutes Played is "113", and when Games Played is greater than "18"?`: ```sql
SELECT "score" FROM "season_schedule" WHERE "date"='march 17';
## Task Generate a SQL query to answer the following question: `What is the score on March 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score on March 17?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "opponent"='josh diekman';
## Task Generate a SQL query to answer the following question: `Which event led to a loss against Josh Diekman?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event led to a loss against Josh Diekman?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='decision' AND "record"='1-2';
## Task Generate a SQL query to answer the following question: `Which location led to a decision and a record of 1-2?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location led to a decision and a record of 1-2?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chris herring';
## Task Generate a SQL query to answer the following question: `Which method took place against Chris Herring?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which method took place against Chris Herring?`: ```sql
SELECT MAX("laps") FROM "moto_gp_classification" WHERE "rider"='max biaggi' AND "grid">2;
## Task Generate a SQL query to answer the following question: `What is the highest number of laps that max biaggi rode on a grid larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of laps that max biaggi rode on a grid larger than 2?`: ```sql
SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='tetsuya harada';
## Task Generate a SQL query to answer the following question: `What is the highest grid that tetsuya harada rode in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest grid that tetsuya harada rode in?`: ```sql
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "time_retired"='+48.325';
## Task Generate a SQL query to answer the following question: `What is the average number of laps that were made when the race took a time of +48.325?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of laps that were made when the race took a time of +48.325?`: ```sql
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "time_retired"='+9.682';
## Task Generate a SQL query to answer the following question: `What is the total number of laps during the race that had a time of +9.682?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of laps during the race that had a time of +9.682?`: ```sql
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "college"='syracuse' AND "overall"<18;
## Task Generate a SQL query to answer the following question: `What is the highest Pick, when College is "Syracuse", and when Overall is less than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Pick, when College is "Syracuse", and when Overall is less than 18?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='houston';
## Task Generate a SQL query to answer the following question: `What is Position, when College is "Houston"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Position, when College is "Houston"?`: ```sql
SELECT "number_of_networks" FROM "introduction_of_address_classes" WHERE "size_of_rest_bit_field"='8';
## Task Generate a SQL query to answer the following question: `What is the number of networks when the size of rest bit field is 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "introduction_of_address_classes" ( "class" text, "leading_bits" real, "size_of_network_number_bit_field" text, "size_of_rest_bit_field" text, "number_of_networks" text, "addresses_per_network" text, "start_address" text, "end_address" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of networks when the size of rest bit field is 8?`: ```sql
SELECT "start_address" FROM "introduction_of_address_classes" WHERE "size_of_network_number_bit_field"='16';
## Task Generate a SQL query to answer the following question: `What is the start address when the network number bit field is 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "introduction_of_address_classes" ( "class" text, "leading_bits" real, "size_of_network_number_bit_field" text, "size_of_rest_bit_field" text, "number_of_networks" text, "addresses_per_network" text, "start_address" text, "end_address" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the start address when the network number bit field is 16?`: ```sql
SELECT "end_address" FROM "introduction_of_address_classes" WHERE "class"='class e (reserved)';
## Task Generate a SQL query to answer the following question: `What is the end address for the Class E (Reserved)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "introduction_of_address_classes" ( "class" text, "leading_bits" real, "size_of_network_number_bit_field" text, "size_of_rest_bit_field" text, "number_of_networks" text, "addresses_per_network" text, "start_address" text, "end_address" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the end address for the Class E (Reserved)?`: ```sql
SELECT "size_of_rest_bit_field" FROM "introduction_of_address_classes" WHERE "leading_bits">110 AND "start_address"='224.0.0.0';
## Task Generate a SQL query to answer the following question: `What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "introduction_of_address_classes" ( "class" text, "leading_bits" real, "size_of_network_number_bit_field" text, "size_of_rest_bit_field" text, "number_of_networks" text, "addresses_per_network" text, "start_address" text, "end_address" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?`: ```sql