output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "average_speed_mph" FROM "table1_17802778_1" WHERE "race_time"='1:45:00';
## Task Generate a SQL query to answer the following question: `What was the average speed (mph) for the racer who finished in 1:45:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17802778_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average speed (mph) for the racer who finished in 1:45:00?`: ```sql
SELECT "miles_km" FROM "table1_17802778_1" WHERE "race_time"='1:05:33';
## Task Generate a SQL query to answer the following question: `How many total miles recorded for the racer who finished in 1:05:33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17802778_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total miles recorded for the racer who finished in 1:05:33?`: ```sql
SELECT "episode_num" FROM "table1_17810099_3" WHERE "title"='\"SWAT Kats Unplugged\"';
## Task Generate a SQL query to answer the following question: `what episode # was titled "SWAT Kats Unplugged"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what episode # was titled "SWAT Kats Unplugged"?`: ```sql
SELECT "title" FROM "table1_17810099_3" WHERE "episode_num"='21a';
## Task Generate a SQL query to answer the following question: `what was the title of the episode 21a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the title of the episode 21a?`: ```sql
SELECT "writer_s" FROM "table1_17810099_3" WHERE "episode_num"='14';
## Task Generate a SQL query to answer the following question: `who wrote episode 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `who wrote episode 14?`: ```sql
SELECT "originalairdate" FROM "table1_17810099_3" WHERE "title"='\"A Bright and Shiny Future\"';
## Task Generate a SQL query to answer the following question: `on what date did the episode titled "A Bright and Shiny Future" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `on what date did the episode titled "A Bright and Shiny Future" originally air?`: ```sql
SELECT COUNT("e_greenberg") FROM "u_s_house_district_11" WHERE "county"='Morris';
## Task Generate a SQL query to answer the following question: `Who many votes did E. Greenberg receive in Morris County?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `Who many votes did E. Greenberg receive in Morris County?`: ```sql
SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='19 (20%)';
## Task Generate a SQL query to answer the following question: `How many precincts are in the county where G. Hager received 19 (20%) votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); ### SQL Given the database schema, here is the SQL query that answers `How many precincts are in the county where G. Hager received 19 (20%) votes?`: ```sql
SELECT COUNT("slope_length") FROM "skilift_system" WHERE "elevation_groundstation"=1966;
## Task Generate a SQL query to answer the following question: `Name the slope length for 1966 groundstation` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the slope length for 1966 groundstation`: ```sql
SELECT "name_or_route" FROM "skilift_system" WHERE "slope_length"=336;
## Task Generate a SQL query to answer the following question: `Name the name or route for slope length being 336` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the name or route for slope length being 336`: ```sql
SELECT MIN("slope_length") FROM "skilift_system" WHERE "type"='gondola';
## Task Generate a SQL query to answer the following question: `Name the slope length for gondola` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the slope length for gondola`: ```sql
SELECT MIN("capacity_in_persons_hour") FROM "skilift_system" WHERE "construction_year_s"='1983';
## Task Generate a SQL query to answer the following question: `Name the least capacity for persons hour for 1983` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least capacity for persons hour for 1983`: ```sql
SELECT "player_of_the_round" FROM "calendar" WHERE "number_of_fixtures"=80;
## Task Generate a SQL query to answer the following question: `Who is the player of the round with 80 fixtures? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player of the round with 80 fixtures? `: ```sql
SELECT COUNT("new_entries_this_round") FROM "calendar" WHERE "round"='Fourth Round Proper';
## Task Generate a SQL query to answer the following question: `How many categories of new entries this round are there for the fourth round proper? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many categories of new entries this round are there for the fourth round proper? `: ```sql
SELECT COUNT("runner_up") FROM "table1_178242_7" WHERE "international_destination"='Japan';
## Task Generate a SQL query to answer the following question: `How many runner-ups were there when the show went to Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `How many runner-ups were there when the show went to Japan?`: ```sql
SELECT COUNT("winner") FROM "table1_178242_7" WHERE "runner_up"='Regina';
## Task Generate a SQL query to answer the following question: `How many won the prize when Regina was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `How many won the prize when Regina was the runner-up?`: ```sql
SELECT "season" FROM "table1_178242_7" WHERE "the_mole"='Milouska';
## Task Generate a SQL query to answer the following question: `Which season is it when Milouska was the show's mole ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season is it when Milouska was the show's mole ?`: ```sql
SELECT "actor_required" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';
## Task Generate a SQL query to answer the following question: `What were the requirements for the role played by Robert Austin in the original production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the requirements for the role played by Robert Austin in the original production?`: ```sql
SELECT "actor_in_original_production" FROM "characters" WHERE "actor_required"='Female, older';
## Task Generate a SQL query to answer the following question: `What actor played the "female, older" role in the original production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `What actor played the "female, older" role in the original production?`: ```sql
SELECT "flat_spin" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';
## Task Generate a SQL query to answer the following question: `What FlatSpin actor played the same role as Robert Austin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `What FlatSpin actor played the same role as Robert Austin?`: ```sql
SELECT COUNT("role_play") FROM "characters" WHERE "actor_required"='Male, younger';
## Task Generate a SQL query to answer the following question: `How many RolePlay actors played the role requiring a "male, younger" actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `How many RolePlay actors played the role requiring a "male, younger" actor?`: ```sql
SELECT COUNT("role_play") FROM "characters" WHERE "flat_spin"='Tracy Taylor';
## Task Generate a SQL query to answer the following question: `How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?`: ```sql
SELECT "role_play" FROM "characters" WHERE "actor_in_original_production"='Alison Pargeter';
## Task Generate a SQL query to answer the following question: `What RolePlay actor played the same role Alison Pargeter played in the original production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `What RolePlay actor played the same role Alison Pargeter played in the original production?`: ```sql
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang';
## Task Generate a SQL query to answer the following question: `What's the name of the church in Stavang?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the church in Stavang?`: ```sql
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang';
## Task Generate a SQL query to answer the following question: `What's the name of the church in Stavang?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the church in Stavang?`: ```sql
SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "location_of_the_church"='Eikefjord';
## Task Generate a SQL query to answer the following question: `What's the sub-parish (sokn) of Eikefjord?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sub-parish (sokn) of Eikefjord?`: ```sql
SELECT COUNT("location_of_the_church") FROM "churches_in_flora" WHERE "year_built"='1957' AND "church_name"='Askrova bedehuskapell';
## Task Generate a SQL query to answer the following question: `On how many locations is there a church named Askrova Bedehuskapell, built in 1957?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `On how many locations is there a church named Askrova Bedehuskapell, built in 1957?`: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='Askrova bedehuskapell';
## Task Generate a SQL query to answer the following question: `In what parish is the Askrova Bedehuskapell church?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `In what parish is the Askrova Bedehuskapell church?`: ```sql
SELECT "channel" FROM "table1_178242_1" WHERE "host_s"='Art Rooijakkers';
## Task Generate a SQL query to answer the following question: `Which channel has the host Art Rooijakkers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); ### SQL Given the database schema, here is the SQL query that answers `Which channel has the host Art Rooijakkers?`: ```sql
SELECT "premiere_aired" FROM "table1_178242_1" WHERE "channel"='VIER';
## Task Generate a SQL query to answer the following question: `When did the program air on Vier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the program air on Vier?`: ```sql
SELECT "name" FROM "table1_178242_1" WHERE "channel"='Nederland 3' AND "premiere_aired"='17 May 2008 – 21 June 2008';
## Task Generate a SQL query to answer the following question: `What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?`: ```sql
SELECT "seasons" FROM "table1_178242_1" WHERE "country_region"='Poland';
## Task Generate a SQL query to answer the following question: `How many seasons did the show run in Poland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons did the show run in Poland?`: ```sql
SELECT "current_stock" FROM "table1_17839_1" WHERE "avg_trips_per_mile_1000"=4744;
## Task Generate a SQL query to answer the following question: `When 4744 is the avg. trips per mile (x1000) what is the current stock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); ### SQL Given the database schema, here is the SQL query that answers `When 4744 is the avg. trips per mile (x1000) what is the current stock?`: ```sql
SELECT "future_stock" FROM "table1_17839_1" WHERE "map_colour"='Green';
## Task Generate a SQL query to answer the following question: `When green is the map colour what is the future stock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); ### SQL Given the database schema, here is the SQL query that answers `When green is the map colour what is the future stock?`: ```sql
SELECT COUNT("avg_trips_per_mile_1000") FROM "table1_17839_1" WHERE "map_colour"='Turquoise';
## Task Generate a SQL query to answer the following question: `When turquoise is the map colour how many avg. trips per mile (×1000) are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); ### SQL Given the database schema, here is the SQL query that answers `When turquoise is the map colour how many avg. trips per mile (×1000) are there?`: ```sql
SELECT "length" FROM "table1_17839_1" WHERE "map_colour"='Turquoise';
## Task Generate a SQL query to answer the following question: `When turquoise is the map colour what is the length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); ### SQL Given the database schema, here is the SQL query that answers `When turquoise is the map colour what is the length?`: ```sql
SELECT MAX("year_established") FROM "table1_1784514_1";
## Task Generate a SQL query to answer the following question: `What is the latest year a division was established?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest year a division was established?`: ```sql
SELECT "number_of_powiats" FROM "table1_1784514_1" WHERE "capital"='Mstsislaw';
## Task Generate a SQL query to answer the following question: `How many powiats have mstsislaw as a capital?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); ### SQL Given the database schema, here is the SQL query that answers `How many powiats have mstsislaw as a capital?`: ```sql
SELECT COUNT("capital") FROM "table1_1784514_1" WHERE "voivodeship_after_1569"='Brest Litovsk Voivodeship';
## Task Generate a SQL query to answer the following question: `How many capitals had brest litovsk voivodeship as voivodeship after 1569?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); ### SQL Given the database schema, here is the SQL query that answers `How many capitals had brest litovsk voivodeship as voivodeship after 1569?`: ```sql
SELECT MAX("year_established") FROM "table1_1784514_1" WHERE "number_of_powiats"='5 powiats';
## Task Generate a SQL query to answer the following question: `What is the latest year established that had 5 powiats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest year established that had 5 powiats?`: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "sub_parish_sogn"='Fortun';
## Task Generate a SQL query to answer the following question: `In what parish is the sub-parish fortun? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `In what parish is the sub-parish fortun? `: ```sql
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "location_of_the_church"='Fortun';
## Task Generate a SQL query to answer the following question: `What is the sub-parish of the church located in Fortun? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sub-parish of the church located in Fortun? `: ```sql
SELECT MIN("year_built") FROM "churches_in_luster" WHERE "location_of_the_church"='Jostedal';
## Task Generate a SQL query to answer the following question: `What is the year that the oldest church was built in Jostedal? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year that the oldest church was built in Jostedal? `: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "location_of_the_church"='Solvorn';
## Task Generate a SQL query to answer the following question: `What parishes are in Solvorn? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What parishes are in Solvorn? `: ```sql
SELECT COUNT("parish_prestegjeld") FROM "table1_178399_1" WHERE "church_name"='Vilnes kyrkje';
## Task Generate a SQL query to answer the following question: `Name the number of parish for vilnes kyrkje` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of parish for vilnes kyrkje`: ```sql
SELECT "parish_prestegjeld" FROM "table1_178399_1" WHERE "year_built"=1908;
## Task Generate a SQL query to answer the following question: `Name the parish for 1908` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the parish for 1908`: ```sql
SELECT MAX("year_built") FROM "table1_178399_1" WHERE "church_name"='Holmedal kyrkje';
## Task Generate a SQL query to answer the following question: `Name the maximum year built for holmedal kyrkje` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the maximum year built for holmedal kyrkje`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "game_site"='Shea Stadium';
## Task Generate a SQL query to answer the following question: `What is the week where the game site is Shea Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the week where the game site is Shea Stadium?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `For week 6, what were the results?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For week 6, what were the results?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "date"='November 3';
## Task Generate a SQL query to answer the following question: `In how many weeks was the game played on November 3 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In how many weeks was the game played on November 3 played?`: ```sql
SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='8.3';
## Task Generate a SQL query to answer the following question: `What is the broadcast date when 8.3 million viewers watched?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the broadcast date when 8.3 million viewers watched?`: ```sql
SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "run_time"='25:12';
## Task Generate a SQL query to answer the following question: `What is the broadcast date of the episode with run time 25:12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the broadcast date of the episode with run time 25:12?`: ```sql
SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='25:55';
## Task Generate a SQL query to answer the following question: `How many million viewers watched the episode that runs 25:55 minutes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million viewers watched the episode that runs 25:55 minutes?`: ```sql
SELECT "number_of_dances" FROM "average_score_chart" WHERE "couple"='Warren & Kym';
## Task Generate a SQL query to answer the following question: `How many dances did Warren & Kym have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dances did Warren & Kym have?`: ```sql
SELECT "total_points" FROM "average_score_chart" WHERE "average"='17.8';
## Task Generate a SQL query to answer the following question: `What are the total points for the team that averages 17.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the total points for the team that averages 17.8?`: ```sql
SELECT "average" FROM "average_score_chart" WHERE "couple"='Cody & Julianne';
## Task Generate a SQL query to answer the following question: `What is average for Cody & Julianne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is average for Cody & Julianne?`: ```sql
SELECT "division_southwest" FROM "winners" WHERE "division_south"='Kožuf' AND "division_east"='Osogovo';
## Task Generate a SQL query to answer the following question: `what is the division southwest when division south was kožuf and division east was osogovo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the division southwest when division south was kožuf and division east was osogovo`: ```sql
SELECT "division_north" FROM "winners" WHERE "season"='2007–08';
## Task Generate a SQL query to answer the following question: `what is the division north in 2007–08` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the division north in 2007–08`: ```sql
SELECT "division_north" FROM "winners" WHERE "division_south"='Kožuf' AND "division_southwest"='Ilinden Velmej';
## Task Generate a SQL query to answer the following question: `what is the division north when division south was kožuf and division southwest was ilinden velmej` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the division north when division south was kožuf and division southwest was ilinden velmej`: ```sql
SELECT COUNT("division_southwest") FROM "winners" WHERE "division_east"='Babi';
## Task Generate a SQL query to answer the following question: `how many division southwest was there when division east was babi` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); ### SQL Given the database schema, here is the SQL query that answers `how many division southwest was there when division east was babi`: ```sql
SELECT "division_east" FROM "winners" WHERE "division_north"='Milano';
## Task Generate a SQL query to answer the following question: `what is the division east when division north was milano` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the division east when division north was milano`: ```sql
SELECT "written_by" FROM "table1_17901155_3" WHERE "no_in_season"=3;
## Task Generate a SQL query to answer the following question: `who co-wrote Season 2, Episode 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `who co-wrote Season 2, Episode 3?`: ```sql
SELECT MAX("no_in_series") FROM "table1_17901155_3" WHERE "directed_by"='Kelly Sandefur';
## Task Generate a SQL query to answer the following question: `what is the series # for the episode directed by Kelly Sandefur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the series # for the episode directed by Kelly Sandefur?`: ```sql
SELECT COUNT("prod_code") FROM "table1_17901155_3" WHERE "no_in_series"=32;
## Task Generate a SQL query to answer the following question: `how many production codes were there for the episode that was 32 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `how many production codes were there for the episode that was 32 in the series?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Milagros';
## Task Generate a SQL query to answer the following question: `What year was the film Milagros submitted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the film Milagros submitted?`: ```sql
SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='The Blossoming of Maximo Oliveros';
## Task Generate a SQL query to answer the following question: `How many years was the film The Blossoming of Maximo Oliveros entered?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was the film The Blossoming of Maximo Oliveros entered?`: ```sql
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='The Moises Padilla Story';
## Task Generate a SQL query to answer the following question: `How many directors were there for the film with the original title of The Moises Padilla Story?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many directors were there for the film with the original title of The Moises Padilla Story?`: ```sql
SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "launch_complex"='LC34';
## Task Generate a SQL query to answer the following question: `What spacecraft was launched from the LC34 launch complex? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What spacecraft was launched from the LC34 launch complex? `: ```sql
SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='22 Orbital';
## Task Generate a SQL query to answer the following question: `What spacecrafts had 22 orbital flights? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What spacecrafts had 22 orbital flights? `: ```sql
SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital';
## Task Generate a SQL query to answer the following question: `What launcher had spacecrafts that did 37 orbital flights? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What launcher had spacecrafts that did 37 orbital flights? `: ```sql
SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital';
## Task Generate a SQL query to answer the following question: `What launcher had spacecrafts that did 37 orbital flights? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What launcher had spacecrafts that did 37 orbital flights? `: ```sql
SELECT "years" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='134 Orbital';
## Task Generate a SQL query to answer the following question: `What years had 134 orbital flights? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What years had 134 orbital flights? `: ```sql
SELECT "country" FROM "table1_1792122_11" WHERE "title"='\"Amsterdam''s Futuristic Floating City\"';
## Task Generate a SQL query to answer the following question: `In what country did the "amsterdam's futuristic floating city" project take place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `In what country did the "amsterdam's futuristic floating city" project take place?`: ```sql
SELECT "status_at_production" FROM "table1_1792122_11" WHERE "project"='London Aquatics Centre';
## Task Generate a SQL query to answer the following question: `What is the status of the London Aquatics Centre project at the time of production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the London Aquatics Centre project at the time of production?`: ```sql
SELECT "original_air_date" FROM "table1_1792122_11" WHERE "no_in_series"=71;
## Task Generate a SQL query to answer the following question: `What was the original are date of series number 71?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original are date of series number 71?`: ```sql
SELECT MIN("no_in_series") FROM "table1_1792122_11" WHERE "title"='\"Rebuilding New York City''s Subway\"';
## Task Generate a SQL query to answer the following question: `What series number was the "rebuilding new york city's subway" project?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What series number was the "rebuilding new york city's subway" project?`: ```sql
SELECT "status_at_production" FROM "table1_1792122_11" WHERE "title"='\"Azerbaijan''s Amazing Transformation\"';
## Task Generate a SQL query to answer the following question: `What is the status of the "azerbaijan's amazing transformation" project at the time of production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the "azerbaijan's amazing transformation" project at the time of production?`: ```sql
SELECT "length" FROM "onshore_pipelines" WHERE "maximum_diameter"='450 mm';
## Task Generate a SQL query to answer the following question: `What is the length for a diameter totaling 450 mm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the length for a diameter totaling 450 mm?`: ```sql
SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "owner_operator"='Esperance Pipeline Co';
## Task Generate a SQL query to answer the following question: `What is Esperance pipeline co total diameter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Esperance pipeline co total diameter?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='December 8';
## Task Generate a SQL query to answer the following question: `Name the opponent for december 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent for december 8`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "date"='October 26';
## Task Generate a SQL query to answer the following question: `Name the number of weeks for october 26` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of weeks for october 26`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `What is the attendance record for week 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the attendance record for week 6?`: ```sql
SELECT "result" FROM "schedule" WHERE "game_site"='Schaefer Stadium';
## Task Generate a SQL query to answer the following question: `For game site Schaefer Stadium, what were the results?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `For game site Schaefer Stadium, what were the results?`: ```sql
SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='João Pereira';
## Task Generate a SQL query to answer the following question: `Who was the outgoing manager when the incoming manager was joão pereira?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the outgoing manager when the incoming manager was joão pereira?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manage"='João Alves';
## Task Generate a SQL query to answer the following question: `What team(s) had an outgoing manager of joão alves?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What team(s) had an outgoing manager of joão alves?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manage"='Bogićević';
## Task Generate a SQL query to answer the following question: `What day did the job open up when bogićević was outgoing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What day did the job open up when bogićević was outgoing?`: ```sql
SELECT "0_100km_h_s" FROM "engines" WHERE "name"='2.0 8v';
## Task Generate a SQL query to answer the following question: `Name the 0-100 km/hs for name of 2.0 8v` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 0-100 km/hs for name of 2.0 8v`: ```sql
SELECT "top_speed" FROM "engines" WHERE "0_100km_h_s"='12.7';
## Task Generate a SQL query to answer the following question: `Name the top speed for 0-100 km/hs for 12.7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the top speed for 0-100 km/hs for 12.7`: ```sql
SELECT COUNT("co_2") FROM "engines" WHERE "engine_id_code_s"='ATD/AXR';
## Task Generate a SQL query to answer the following question: `Name the total number for co 2 for atd/axr` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number for co 2 for atd/axr`: ```sql
SELECT "volume" FROM "engines" WHERE "co_2"='168 g/km';
## Task Generate a SQL query to answer the following question: `Name the volume for co 2 for 168 g/km` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the volume for co 2 for 168 g/km`: ```sql
SELECT "tries_for" FROM "league_table" WHERE "tries_against"='60';
## Task Generate a SQL query to answer the following question: `When 60 is the tries against what is the tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 60 is the tries against what is the tries for?`: ```sql
SELECT "lost" FROM "league_table" WHERE "tries_for"='22';
## Task Generate a SQL query to answer the following question: `When 22 is the tries for what is the lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 22 is the tries for what is the lost?`: ```sql
SELECT "club" FROM "league_table" WHERE "points"='98';
## Task Generate a SQL query to answer the following question: `When 98 is the points what is the club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 98 is the points what is the club?`: ```sql
SELECT "try_bonus" FROM "league_table" WHERE "tries_for"='80';
## Task Generate a SQL query to answer the following question: `When 80 is the tries for what is the try bonus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 80 is the tries for what is the try bonus?`: ```sql
SELECT "lost" FROM "league_table" WHERE "tries_for"='55';
## Task Generate a SQL query to answer the following question: `When 55 is the tries for what is the lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 55 is the tries for what is the lost?`: ```sql
SELECT "points_against" FROM "league_table" WHERE "tries_for"='17';
## Task Generate a SQL query to answer the following question: `When 17 is the tries for what is the points against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `When 17 is the tries for what is the points against?`: ```sql
SELECT "drawn" FROM "league_table" WHERE "played"='Played';
## Task Generate a SQL query to answer the following question: `How many draws were there in played games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many draws were there in played games?`: ```sql
SELECT "club" FROM "league_table" WHERE "drawn"='1' AND "won"='2';
## Task Generate a SQL query to answer the following question: `Which club had 2 wins and 1 draw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club had 2 wins and 1 draw?`: ```sql
SELECT "played" FROM "league_table" WHERE "tries_for"='56';
## Task Generate a SQL query to answer the following question: `How many times were there plays with a try of 56?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times were there plays with a try of 56?`: ```sql
SELECT "tries_against" FROM "league_table" WHERE "points_for"='150';
## Task Generate a SQL query to answer the following question: `How many tries against were there with points of 150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tries against were there with points of 150?`: ```sql