output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("bronze") FROM "medals_table" WHERE "total">2 AND "nation"='west germany';
## Task Generate a SQL query to answer the following question: `How many bronze medals for West Germany having a total more than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze medals for West Germany having a total more than 2?`: ```sql
SELECT MIN("silver") FROM "medals_table" WHERE "rank"='11' AND "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the amount of silver for rank 11 having less than 0 gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "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 amount of silver for rank 11 having less than 0 gold?`: ```sql
SELECT "rank" FROM "medals_table" WHERE "silver"<3 AND "bronze">1 AND "nation"='bulgaria';
## Task Generate a SQL query to answer the following question: `What rank is Bulgaria with less than 3 silver and more than 1 bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "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 rank is Bulgaria with less than 3 silver and more than 1 bronze?`: ```sql
SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "stage"='17';
## Task Generate a SQL query to answer the following question: `What is the mountains classification when stage is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mountains classification when stage is 17?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='robbie mcewen' AND "mountains_classification"='josé rujano';
## Task Generate a SQL query to answer the following question: `Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?`: ```sql
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='19';
## Task Generate a SQL query to answer the following question: `What is the Trofeo Fast Team when stage is 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Trofeo Fast Team when stage is 19?`: ```sql
SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='sven krauß' AND "mountains_classification"='koldo gil' AND "trofeo_super_team"='liquigas-bianchi' AND "stage"='9';
## Task Generate a SQL query to answer the following question: `What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?`: ```sql
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "points_classification"='paolo bettini' AND "trofeo_super_team"='davitamon-lotto' AND "mountains_classification"='josé rujano';
## Task Generate a SQL query to answer the following question: `What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?`: ```sql
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "points_classification"='danilo di luca' AND "mountains_classification"='josé rujano' AND "general_classification"='danilo di luca';
## Task Generate a SQL query to answer the following question: `What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?`: ```sql
SELECT AVG("geo_id") FROM "c" WHERE "latitude"<46.57958 AND "longitude"=-102.109898 AND "land_sqmi">35.99;
## Task Generate a SQL query to answer the following question: `What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?`: ```sql
SELECT "geo_id" FROM "c" WHERE "longitude"=-102.693028;
## Task Generate a SQL query to answer the following question: `What GEO ID has a longitude of -102.693028?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What GEO ID has a longitude of -102.693028?`: ```sql
SELECT MAX("latitude") FROM "c" WHERE "water_sqmi">0.518 AND "longitude"<-99.830606 AND "pop_2010"=18;
## Task Generate a SQL query to answer the following question: `What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?`: ```sql
SELECT AVG("lane") FROM "semifinal_1" WHERE "nationality"='australia';
## Task Generate a SQL query to answer the following question: `What is the average lane for Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average lane for Australia?`: ```sql
SELECT MAX("rank") FROM "semifinal_1" WHERE "name"='josefin lillhage';
## Task Generate a SQL query to answer the following question: `What is the highest rank for Josefin Lillhage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank for Josefin Lillhage?`: ```sql
SELECT "attendance" FROM "fixtures" WHERE "final"='quarter (1)';
## Task Generate a SQL query to answer the following question: `What was the attendance for the final quarter (1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures" ( "final" text, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for the final quarter (1)?`: ```sql
SELECT "stadium" FROM "fixtures" WHERE "score"='1 - 1 dodd 38''';
## Task Generate a SQL query to answer the following question: `What stadium had the score 1 - 1 dodd 38'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures" ( "final" text, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What stadium had the score 1 - 1 dodd 38'?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride 17';
## Task Generate a SQL query to answer the following question: `What method was used in the Pride 17 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" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What method was used in the Pride 17 event?`: ```sql
SELECT "rank" FROM "list_of_tallest_buildings" WHERE "highest_floor">50;
## Task Generate a SQL query to answer the following question: `What is the Rank of the building that has a Highest floor larger than 50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_tallest_buildings" ( "rank" real, "name" text, "height" text, "highest_floor" real, "city" text, "primary_use" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank of the building that has a Highest floor larger than 50?`: ```sql
SELECT MAX("free") FROM "preliminary" WHERE "total"=81.167 AND "rank">23;
## Task Generate a SQL query to answer the following question: `what is the most free when the total is 81.167 and the rank is higher than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary" ( "rank" real, "country" text, "athlete" text, "technical" real, "free" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the most free when the total is 81.167 and the rank is higher than 23?`: ```sql
SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "unformatted_capacity_per_side"='2000kb';
## Task Generate a SQL query to answer the following question: `How many tracks have an unformatted capacity per side of 2000kb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tracks have an unformatted capacity per side of 2000kb?`: ```sql
SELECT "unformatted_capacity_per_side" FROM "floppy_disk_physical_characteristics_cap" WHERE "size"='8in';
## Task Generate a SQL query to answer the following question: `What is the unformatted capacity per side if the size is 8in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the unformatted capacity per side if the size is 8in?`: ```sql
SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "density"='single';
## Task Generate a SQL query to answer the following question: `How many tracks have a single density?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tracks have a single density?`: ```sql
SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of ss. xii apostoli';
## Task Generate a SQL query to answer the following question: `What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?`: ```sql
SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='san severino';
## Task Generate a SQL query to answer the following question: `What Elector has the Place of birth of San Severino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What Elector has the Place of birth of San Severino?`: ```sql
SELECT "cardinalatial_title" FROM "absentee_cardinals" WHERE "elevated"='december 18, 1182' AND "place_of_birth"='lucca' AND "elector"='pandolfo';
## Task Generate a SQL query to answer the following question: `What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?`: ```sql
SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of s. eusebio and archbishop of benevento';
## Task Generate a SQL query to answer the following question: `What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?`: ```sql
SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='bavaria';
## Task Generate a SQL query to answer the following question: `What Elector has the Place of Birth listed as Bavaria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What Elector has the Place of Birth listed as Bavaria?`: ```sql
SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='41' AND "total_goals">1;
## Task Generate a SQL query to answer the following question: `What are the total apps that have 41 as the League apps, with total goals greater than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the total apps that have 41 as the League apps, with total goals greater than 1?`: ```sql
SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "total_apps"='2 (1)';
## Task Generate a SQL query to answer the following question: `What are the average league goals that have 2 (1) as the total apps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the average league goals that have 2 (1) as the total apps?`: ```sql
SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "name"='barry endean' AND "fa_cup_apps">0;
## Task Generate a SQL query to answer the following question: `What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?`: ```sql
SELECT "school" FROM "former_members" WHERE "team_name"='panthers' AND "year_left"='1968';
## Task Generate a SQL query to answer the following question: `Which school left in 1968 and has the team name of Panthers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school left in 1968 and has the team name of Panthers?`: ```sql
SELECT "year_left" FROM "former_members" WHERE "school"='north dearborn';
## Task Generate a SQL query to answer the following question: `What year did a team from North Dearborn leave?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did a team from North Dearborn leave?`: ```sql
SELECT "city" FROM "former_members" WHERE "county"='40 jennings' AND "school"='north vernon';
## Task Generate a SQL query to answer the following question: `Which city has a school of North Vernon and a county of 40 Jennings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has a school of North Vernon and a county of 40 Jennings?`: ```sql
SELECT "year_joined" FROM "former_members" WHERE "school"='jennings county';
## Task Generate a SQL query to answer the following question: `What year did a school from Jennings County join?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did a school from Jennings County join?`: ```sql
SELECT "school" FROM "former_members" WHERE "team_name"='red devils';
## Task Generate a SQL query to answer the following question: `Which school are the Red Devils from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school are the Red Devils from?`: ```sql
SELECT "school" FROM "former_members" WHERE "city"='brookville';
## Task Generate a SQL query to answer the following question: `Which school comes from Brookville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school comes from Brookville?`: ```sql
SELECT MIN("rank") FROM "semifinal_1" WHERE "lane"=3;
## Task Generate a SQL query to answer the following question: `What's the lowest rank of Lane 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest rank of Lane 3?`: ```sql
SELECT MAX("lane") FROM "semifinal_1" WHERE "time"<24.72 AND "rank"=4;
## Task Generate a SQL query to answer the following question: `What's the highest lane of rank 4 with a time less than 24.72?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest lane of rank 4 with a time less than 24.72?`: ```sql
SELECT SUM("time") FROM "semifinal_1" WHERE "lane"<4 AND "name"='britta steffen';
## Task Generate a SQL query to answer the following question: `What's the time of Britta Steffen in a lane less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the time of Britta Steffen in a lane less than 4?`: ```sql
SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='united states' AND "time"<24.63;
## Task Generate a SQL query to answer the following question: `What's the lowest rank of the United States with a time less than 24.63?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest rank of the United States with a time less than 24.63?`: ```sql
SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='norman painting';
## Task Generate a SQL query to answer the following question: `What's the duration of the Archers with Norman Painting as an actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the duration of the Archers with Norman Painting as an actor?`: ```sql
SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='pauline seville';
## Task Generate a SQL query to answer the following question: `What's the duration of the Archers with Pauline Seville acting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the duration of the Archers with Pauline Seville acting?`: ```sql
SELECT "actor" FROM "radio" WHERE "soap_opera"='the archers' AND "character"='martha woodford';
## Task Generate a SQL query to answer the following question: `Who's the actor for the Archers having a character of Martha Woodford?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the actor for the Archers having a character of Martha Woodford?`: ```sql
SELECT "character" FROM "radio" WHERE "actor"='margot boyd';
## Task Generate a SQL query to answer the following question: `Who's the character when Margot Boyd was acting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the character when Margot Boyd was acting?`: ```sql
SELECT "notes" FROM "heat_4" WHERE "time"='6:34.51';
## Task Generate a SQL query to answer the following question: `What were the notes for the time of 6:34.51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the notes for the time of 6:34.51?`: ```sql
SELECT "rank" FROM "heat_4" WHERE "time"='6:24.35';
## Task Generate a SQL query to answer the following question: `What is the rank for the rowers with the time of 6:24.35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the rowers with the time of 6:24.35?`: ```sql
SELECT "rowers" FROM "heat_4" WHERE "notes"='r' AND "country"='portugal';
## Task Generate a SQL query to answer the following question: `Which rowers represented portugal and had notes of r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rowers represented portugal and had notes of r?`: ```sql
SELECT "rowers" FROM "heat_4" WHERE "country"='portugal';
## Task Generate a SQL query to answer the following question: `Which rowers represented the country of portugal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rowers represented the country of portugal?`: ```sql
SELECT AVG("races") FROM "career_statistics" WHERE "points"='9' AND "poles"<0;
## Task Generate a SQL query to answer the following question: `what is the average races when points is 9 and poles is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the average races when points is 9 and poles is less than 0?`: ```sql
SELECT "series" FROM "career_statistics" WHERE "wins"<3 AND "points"='9' AND "podiums"=1;
## Task Generate a SQL query to answer the following question: `what is the series when wins is less than 3, points is 9 and podiums is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the series when wins is less than 3, points is 9 and podiums is 1?`: ```sql
SELECT COUNT("season") FROM "career_statistics" WHERE "races">14 AND "position"='9th' AND "wins"<0;
## Task Generate a SQL query to answer the following question: `how many times is races more than 14, position is 9th and wins less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is races more than 14, position is 9th and wins less than 0?`: ```sql
SELECT "runner_up_skip" FROM "winners" WHERE "event"='mac ice classic';
## Task Generate a SQL query to answer the following question: `Who was the runner-up during the Mac Ice Classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner-up during the Mac Ice Classic?`: ```sql
SELECT "date" FROM "winners" WHERE "runner_up_skip"='stu harris';
## Task Generate a SQL query to answer the following question: `What's the date when Stu Harris was the Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date when Stu Harris was the Runner-up?`: ```sql
SELECT "location" FROM "winners" WHERE "event"='ramada perth masters';
## Task Generate a SQL query to answer the following question: `What's the location of the Ramada Perth Masters event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location of the Ramada Perth Masters event?`: ```sql
SELECT "location" FROM "winners" WHERE "winning_skip"='kevin martin' AND "event"='the national';
## Task Generate a SQL query to answer the following question: `What's the location of the National event with Kevin Martin winning?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location of the National event with Kevin Martin winning?`: ```sql
SELECT "event" FROM "winners" WHERE "runner_up_skip"='randy ferbey' AND "location"='gander, newfoundland and labrador';
## Task Generate a SQL query to answer the following question: `What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?`: ```sql
SELECT "location" FROM "winners" WHERE "event"='the national';
## Task Generate a SQL query to answer the following question: `What's the location of the National event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location of the National event?`: ```sql
SELECT "arena" FROM "regular_season" WHERE "date"='october 10';
## Task Generate a SQL query to answer the following question: `Which Arena has a Date of october 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Arena has a Date of october 10?`: ```sql
SELECT MAX("attendance") FROM "regular_season" WHERE "score"='4–3' AND "points"<5;
## Task Generate a SQL query to answer the following question: `Which Attendance has a Score of 4–3, and Points smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Score of 4–3, and Points smaller than 5?`: ```sql
SELECT "attendance" FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"<5;
## Task Generate a SQL query to answer the following question: `Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?`: ```sql
SELECT SUM("attendance") FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"=5;
## Task Generate a SQL query to answer the following question: `How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?`: ```sql
SELECT COUNT("1969") FROM "1960s" WHERE "1967"<0.73 AND "1964">0.07;
## Task Generate a SQL query to answer the following question: `How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real ); ### SQL Given the database schema, here is the SQL query that answers `How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?`: ```sql
SELECT MIN("1964") FROM "1960s" WHERE "country"='united states' AND "1969"<7.3;
## Task Generate a SQL query to answer the following question: `Which 1964 has a Country of united states, and a 1969 smaller than 7.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 1964 has a Country of united states, and a 1969 smaller than 7.3?`: ```sql
SELECT MIN("1965") FROM "1960s" WHERE "1962"=0.35000000000000003 AND "1967"<0.53;
## Task Generate a SQL query to answer the following question: `Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?`: ```sql
SELECT "cross_code_debut" FROM "england" WHERE "player"='bev risman';
## Task Generate a SQL query to answer the following question: `What is Bev Risman's Cross Code Debut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Bev Risman's Cross Code Debut?`: ```sql
SELECT "date" FROM "england" WHERE "int_l_debut"='rl test v wales';
## Task Generate a SQL query to answer the following question: `What is the Date of RL Test v Wales Int'l Debut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of RL Test v Wales Int'l Debut?`: ```sql
SELECT "player" FROM "england" WHERE "cross_code_debut"='rl test gb v france';
## Task Generate a SQL query to answer the following question: `What is the Player with a Cross Code Debut of RL Test GB v France?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Player with a Cross Code Debut of RL Test GB v France?`: ```sql
SELECT "year" FROM "england" WHERE "cross_code_debut"='rl test v wales' AND "player"='keith smith';
## Task Generate a SQL query to answer the following question: `In what Year is Keith Smith's Cross Code Debut RL Test v Wales?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year is Keith Smith's Cross Code Debut RL Test v Wales?`: ```sql
SELECT "date" FROM "england" WHERE "year"='1967';
## Task Generate a SQL query to answer the following question: `What is the Date of the Int'l Debut of 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the Int'l Debut of 1967?`: ```sql
SELECT "player" FROM "england" WHERE "year"='1974';
## Task Generate a SQL query to answer the following question: `What is the Player in the Int'l Debut of 1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Player in the Int'l Debut of 1974?`: ```sql
SELECT SUM("lane") FROM "heats" WHERE "time"='24.83' AND "heat"<11;
## Task Generate a SQL query to answer the following question: `What lane has a time of 24.83 and a heat less than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What lane has a time of 24.83 and a heat less than 11?`: ```sql
SELECT COUNT("heat") FROM "heats" WHERE "name"='chinyere pigot';
## Task Generate a SQL query to answer the following question: `What is the total number of heat for Chinyere Pigot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of heat for Chinyere Pigot?`: ```sql
SELECT "name" FROM "heats" WHERE "lane"=1 AND "nationality"='mauritius';
## Task Generate a SQL query to answer the following question: `What is the name for lane 1, from Mauritius?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name for lane 1, from Mauritius?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "total"<287 AND "year_s_won"='1988';
## Task Generate a SQL query to answer the following question: `Who won in 1988 with a total less than 287?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won in 1988 with a total less than 287?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "player"='larry mize';
## Task Generate a SQL query to answer the following question: `What country is Larry Mize from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What country is Larry Mize from?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "total"<1;
## Task Generate a SQL query to answer the following question: `What is the lowest number of bronze medals for a nation with fewer than 1 total medal?` ### 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 lowest number of bronze medals for a nation with fewer than 1 total medal?`: ```sql
SELECT "team" FROM "single_cylinder_race" WHERE "rider"='frank hulbert';
## Task Generate a SQL query to answer the following question: `What team is Frank Hulbert on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is Frank Hulbert on?`: ```sql
SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='martin geiger';
## Task Generate a SQL query to answer the following question: `What was Martin Geiger's rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Martin Geiger's rank?`: ```sql
SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='tom silver';
## Task Generate a SQL query to answer the following question: `What was Tom Silver's rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Tom Silver's rank?`: ```sql
SELECT "player" FROM "academy_graduates_2000_present" WHERE "debut"='age 18 v plymouth , 14 august 2012' AND "born"='portsmouth';
## Task Generate a SQL query to answer the following question: `Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?`: ```sql
SELECT "born" FROM "academy_graduates_2000_present" WHERE "current_club"='elfsborg';
## Task Generate a SQL query to answer the following question: `Where was the player whose Current Club Elfsborg born?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the player whose Current Club Elfsborg born?`: ```sql
SELECT "debut" FROM "academy_graduates_2000_present" WHERE "born"='poole';
## Task Generate a SQL query to answer the following question: `What is the debut for the person born in Poole?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the debut for the person born in Poole?`: ```sql
SELECT "current_club" FROM "academy_graduates_2000_present" WHERE "player"='sam magri';
## Task Generate a SQL query to answer the following question: `What is the club for Sam Magri?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club for Sam Magri?`: ```sql
SELECT "manager" FROM "academy_graduates_2000_present" WHERE "current_club"='atlético baleares';
## Task Generate a SQL query to answer the following question: `What is the name of the manager of the Atlético Baleares?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the manager of the Atlético Baleares?`: ```sql
SELECT "best_blocker" FROM "league_champions_and_major_awards" WHERE "league_champion"='queens of pain' AND "c_a_n_t_s_l_e_e_p_award"='chassis crass (brooklyn)';
## Task Generate a SQL query to answer the following question: `Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?`: ```sql
SELECT "rookie_of_the_year" FROM "league_champions_and_major_awards" WHERE "league_champion"='brooklyn bombshells';
## Task Generate a SQL query to answer the following question: `Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion?`: ```sql
SELECT MAX("year") FROM "league_champions_and_major_awards" WHERE "league_champion"='bronx gridlock' AND "rookie_of_the_year"='omg wtf (brooklyn)';
## Task Generate a SQL query to answer the following question: `What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock?`: ```sql
SELECT "arena" FROM "regular_season" WHERE "points">28 AND "date"='december 14';
## Task Generate a SQL query to answer the following question: `Which Arena has Points larger than 28, and a Date of december 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Arena has Points larger than 28, and a Date of december 14?`: ```sql
SELECT COUNT("points") FROM "regular_season" WHERE "arena"='bell centre';
## Task Generate a SQL query to answer the following question: `How many Points have an Arena of bell centre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Points have an Arena of bell centre?`: ```sql
SELECT SUM("attendance") FROM "regular_season" WHERE "loss"='divis (0–3–0)' AND "points"<38;
## Task Generate a SQL query to answer the following question: `How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?`: ```sql
SELECT AVG("rank") FROM "heat_1" WHERE "1st_run"='53.300 (7)' AND "total">21;
## Task Generate a SQL query to answer the following question: `With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank?`: ```sql
SELECT "2nd_run" FROM "heat_1" WHERE "rank"<6 AND "total"=3;
## Task Generate a SQL query to answer the following question: `What 2nd run has a less than 6 rank, and 3 as the total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What 2nd run has a less than 6 rank, and 3 as the total?`: ```sql
SELECT "2nd_run" FROM "heat_1" WHERE "3rd_run"='36.490 (3)';
## Task Generate a SQL query to answer the following question: `When the 3rd run is 36.490 (3) what is the 2nd run?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `When the 3rd run is 36.490 (3) what is the 2nd run?`: ```sql
SELECT COUNT("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
## Task Generate a SQL query to answer the following question: `What is the sum number of year when Call of Duty 4: Modern Warfare was the game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum number of year when Call of Duty 4: Modern Warfare was the game?`: ```sql
SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action';
## Task Generate a SQL query to answer the following question: `What is the earliest year when action was the genre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year when action was the genre?`: ```sql
SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal';
## Task Generate a SQL query to answer the following question: `What is the smallest year when Ubisoft Montreal was the developer (s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest year when Ubisoft Montreal was the developer (s)?`: ```sql
SELECT MAX("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
## Task Generate a SQL query to answer the following question: `What is the latest year when Call of Duty 4: Modern Warfare was the game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest year when Call of Duty 4: Modern Warfare was the game?`: ```sql
SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='january 14, 1929';
## Task Generate a SQL query to answer the following question: `Who was Lieutenant Governor to the governor that left office on January 14, 1929?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Lieutenant Governor to the governor that left office on January 14, 1929?`: ```sql
SELECT "governor" FROM "governors_of_missouri" WHERE "took_office"='january 8, 1877';
## Task Generate a SQL query to answer the following question: `Which governor took office on January 8, 1877?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `Which governor took office on January 8, 1877?`: ```sql
SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='october 16, 2000';
## Task Generate a SQL query to answer the following question: `Who was lieutenant governor to the governor that left office on October 16, 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was lieutenant governor to the governor that left office on October 16, 2000?`: ```sql