output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("season") FROM "career_summary" WHERE "position"='4th';
## Task Generate a SQL query to answer the following question: `Name the season for position 4th` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the season for position 4th`: ```sql
SELECT MIN("f_laps") FROM "career_summary";
## Task Generate a SQL query to answer the following question: `Name the least f/laps` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least f/laps`: ```sql
SELECT MIN("podiums") FROM "career_summary" WHERE "position"='9th';
## Task Generate a SQL query to answer the following question: `Name the least podiums for 9th position` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least podiums for 9th position`: ```sql
SELECT COUNT("shot_pct") FROM "round_robin_standings" WHERE "pa"=79;
## Task Generate a SQL query to answer the following question: `How many results are listed for shot PCT Where PA is 79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `How many results are listed for shot PCT Where PA is 79?`: ```sql
SELECT "locale" FROM "round_robin_standings" WHERE "stolen_ends"=15;
## Task Generate a SQL query to answer the following question: `Where were stolen ends recorded as 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Where were stolen ends recorded as 15?`: ```sql
SELECT "sl_no" FROM "karaikudi_ssa_bsnl" WHERE "contact_person"='SDE (P), Thiruppattur';
## Task Generate a SQL query to answer the following question: `What was the SlNo no of contact person SDE (P), Thiruppattur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "karaikudi_ssa_bsnl" ( "sl_no" real, "name_of_the_city" text, "address" text, "contact_person" text, "telephone_no" text, "facilities_offered" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the SlNo no of contact person SDE (P), Thiruppattur?`: ```sql
SELECT "air_date" FROM "table1_25390694_2" WHERE "title"='\"Rowley 1898\"';
## Task Generate a SQL query to answer the following question: `When did the episode "rowley 1898" air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25390694_2" ( "series_num" real, "title" text, "director" text, "writer" text, "air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode "rowley 1898" air?`: ```sql
SELECT "production_code" FROM "table1_25390694_2" WHERE "writer"='Brendan Cowell';
## Task Generate a SQL query to answer the following question: `What was the production code of the episode written by Brendan Cowell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25390694_2" ( "series_num" real, "title" text, "director" text, "writer" text, "air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the production code of the episode written by Brendan Cowell?`: ```sql
SELECT COUNT("f_laps") FROM "career_summary" WHERE "position"='20th';
## Task Generate a SQL query to answer the following question: `How many f/laps did Pedro Nunes have when he was in 20th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many f/laps did Pedro Nunes have when he was in 20th position?`: ```sql
SELECT "f_laps" FROM "career_summary" WHERE "series"='GP3 Series';
## Task Generate a SQL query to answer the following question: `How many f/laps did Pedro Nunes have when he was at the gp3 series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many f/laps did Pedro Nunes have when he was at the gp3 series?`: ```sql
SELECT MIN("races") FROM "career_summary";
## Task Generate a SQL query to answer the following question: `What is the fewest number of races Pedro Nunes completed in any series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of races Pedro Nunes completed in any series?`: ```sql
SELECT MAX("podiums") FROM "career_summary" WHERE "position"='17th';
## Task Generate a SQL query to answer the following question: `What is the most podiums Pedro Nunes had when in 17th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the most podiums Pedro Nunes had when in 17th position?`: ```sql
SELECT "founding_university" FROM "jewish" WHERE "organization"='Tau Epsilon Phi 1';
## Task Generate a SQL query to answer the following question: `What was the founding university of the organization Tau Epsilon Phi 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the founding university of the organization Tau Epsilon Phi 1?`: ```sql
SELECT "founding_date" FROM "jewish" WHERE "nickname"='\"AEPi\"';
## Task Generate a SQL query to answer the following question: `What was the founding date for the "AEPI"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the founding date for the "AEPI"?`: ```sql
SELECT "type" FROM "jewish" WHERE "letters"='ΣΑΕΠ';
## Task Generate a SQL query to answer the following question: `What type is σαεπ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What type is σαεπ?`: ```sql
SELECT "founding_university" FROM "jewish" WHERE "letters"='ΑΕΦ';
## Task Generate a SQL query to answer the following question: `What was the founding university of αεφ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jewish" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the founding university of αεφ?`: ```sql
SELECT "type" FROM "lgbt" WHERE "organization"='Gamma Rho Lambda 1';
## Task Generate a SQL query to answer the following question: `What is the type if the organization name is Gamma RHO Lambda 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type if the organization name is Gamma RHO Lambda 1?`: ```sql
SELECT "founding_date" FROM "lgbt" WHERE "letters"='ΦΑΝ';
## Task Generate a SQL query to answer the following question: `If the letters is φαν, what is the founding date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `If the letters is φαν, what is the founding date?`: ```sql
SELECT "nickname" FROM "lgbt" WHERE "founding_university"='Charlotte, NC';
## Task Generate a SQL query to answer the following question: `If the founding university is in Charlotte, NC, what is the nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `If the founding university is in Charlotte, NC, what is the nickname?`: ```sql
SELECT "founding_date" FROM "lgbt" WHERE "nickname"='\"Canes\", \"K-PSIs\", \"Diamonds\", or \"Angels\"';
## Task Generate a SQL query to answer the following question: `What is the founding date if the nickname is '"Canes", "k-psis", "Diamonds", or "Angels"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the founding date if the nickname is '"Canes", "k-psis", "Diamonds", or "Angels"?`: ```sql
SELECT "founding_date" FROM "lgbt" WHERE "letters"='ΚΨΚ';
## Task Generate a SQL query to answer the following question: `What is the founding date if the letters are κψκ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the founding date if the letters are κψκ?`: ```sql
SELECT "founding_date" FROM "lgbt" WHERE "founding_university"='Washington, D.C.';
## Task Generate a SQL query to answer the following question: `If the founding university is in Washington, D.C., what was the founding date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lgbt" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `If the founding university is in Washington, D.C., what was the founding date?`: ```sql
SELECT MIN("rank_by_average") FROM "averages" WHERE "average"='22.8';
## Task Generate a SQL query to answer the following question: `What is the rank by average for the team who averaged 22.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "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 the rank by average for the team who averaged 22.8?`: ```sql
SELECT "number_of_dances" FROM "averages" WHERE "average"='20.6';
## Task Generate a SQL query to answer the following question: `What is the number of dances for the team that averages 20.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "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 the number of dances for the team that averages 20.6?`: ```sql
SELECT "couple" FROM "averages" WHERE "average"='15.5';
## Task Generate a SQL query to answer the following question: `What couple averaged 15.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "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 couple averaged 15.5?`: ```sql
SELECT MIN("rank_by_average") FROM "averages" WHERE "average"='22.8';
## Task Generate a SQL query to answer the following question: `What is the smallest rank by average for a team averaging 22.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "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 the smallest rank by average for a team averaging 22.8?`: ```sql
SELECT "italian" FROM "table1_25401_15" WHERE "english"='part';
## Task Generate a SQL query to answer the following question: `What is every value for Italian when the part is English?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for Italian when the part is English?`: ```sql
SELECT "proto_italo_western_1" FROM "table1_25401_15" WHERE "english"='door';
## Task Generate a SQL query to answer the following question: `What is every entry for Proto-Italo-Western 1 when door is English?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Proto-Italo-Western 1 when door is English?`: ```sql
SELECT COUNT("italian") FROM "table1_25401_15" WHERE "conservative_central_italian_1"='unu';
## Task Generate a SQL query to answer the following question: `How many entries for Italian correspond to the Conservative Central Italian of Unu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries for Italian correspond to the Conservative Central Italian of Unu?`: ```sql
SELECT "latin" FROM "table1_25401_15" WHERE "catalan"='mar';
## Task Generate a SQL query to answer the following question: `What is every entry for Latin when Catalan is Mar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25401_15" ( "english" text, "latin" text, "proto_italo_western_1" text, "conservative_central_italian_1" text, "italian" text, "spanish" text, "catalan" text, "old_french" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Latin when Catalan is Mar?`: ```sql
SELECT "stadium" FROM "2011_2012" WHERE "indian_scorers"='Chinadorai Sabeeth';
## Task Generate a SQL query to answer the following question: `If the Indian Scorers is Chinadorai Sabeeth, what is the name of the stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `If the Indian Scorers is Chinadorai Sabeeth, what is the name of the stadium?`: ```sql
SELECT "date" FROM "2011_2012" WHERE "stadium"='Thuwunna Stadium';
## Task Generate a SQL query to answer the following question: `If the stadium name is the Thuwunna Stadium, what is the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `If the stadium name is the Thuwunna Stadium, what is the date?`: ```sql
SELECT "score" FROM "2011_2012" WHERE "indian_scorers"='Chinadorai Sabeeth';
## Task Generate a SQL query to answer the following question: `If the Indian scorers is the Chinadorai Sabeeth, what is the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `If the Indian scorers is the Chinadorai Sabeeth, what is the score?`: ```sql
SELECT COUNT("opponent") FROM "2011_2012" WHERE "location"='Yangon, Myanmar';
## Task Generate a SQL query to answer the following question: `If the location is Yangon, Myanmar, what is the opponent total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_2012" ( "date" text, "tournament" text, "location" text, "opponent" text, "stadium" text, "score" text, "indian_scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `If the location is Yangon, Myanmar, what is the opponent total number?`: ```sql
SELECT COUNT("iso") FROM "list_of_provincial_level_divisions" WHERE "chinese_name"='青海省 Qīnghǎi Shěng';
## Task Generate a SQL query to answer the following question: `How many provinces are named 青海省 qīnghǎi shěng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `How many provinces are named 青海省 qīnghǎi shěng?`: ```sql
SELECT MAX("area") FROM "list_of_provincial_level_divisions" WHERE "density"='533.59';
## Task Generate a SQL query to answer the following question: `What is the area of the province with a density of 533.59?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the area of the province with a density of 533.59?`: ```sql
SELECT COUNT("iso") FROM "list_of_provincial_level_divisions" WHERE "density"='165.81';
## Task Generate a SQL query to answer the following question: `How many provinces have a density of 165.81?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `How many provinces have a density of 165.81?`: ```sql
SELECT "abbreviation_symbol" FROM "list_of_provincial_level_divisions" WHERE "chinese_name"='辽宁省 Liáoníng Shěng';
## Task Generate a SQL query to answer the following question: `What is the abbreviation/symbol of 辽宁省 liáoníng shěng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the abbreviation/symbol of 辽宁省 liáoníng shěng?`: ```sql
SELECT COUNT("gb") FROM "list_of_provincial_level_divisions" WHERE "iso"='CN-65';
## Task Generate a SQL query to answer the following question: `How many gb's have an iso number of cn-65?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `How many gb's have an iso number of cn-65?`: ```sql
SELECT "chinese_name" FROM "list_of_provincial_level_divisions" WHERE "capital"='Hangzhou';
## Task Generate a SQL query to answer the following question: `What is the chinese name of the province whose capital is hangzhou?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provincial_level_divisions" ( "gb" text, "iso" text, "province" text, "chinese_name" text, "capital" text, "population" real, "density" text, "area" real, "abbreviation_symbol" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the chinese name of the province whose capital is hangzhou?`: ```sql
SELECT MIN("races") FROM "career_summary";
## Task Generate a SQL query to answer the following question: `What is the fewest amount of races in any season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest amount of races in any season? `: ```sql
SELECT MIN("races") FROM "career_summary" WHERE "points"='38';
## Task Generate a SQL query to answer the following question: `How many races were there when Sigachev had 38 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races were there when Sigachev had 38 points?`: ```sql
SELECT "team_name" FROM "career_summary" WHERE "points"='38';
## Task Generate a SQL query to answer the following question: `What team was Sigachev on when he had 38 points? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was Sigachev on when he had 38 points? `: ```sql
SELECT "season" FROM "career_summary" WHERE "final_placing"='NC†' AND "team_name"='SL Formula Racing';
## Task Generate a SQL query to answer the following question: `In what season was the final placing NC† and the team SL Formula Racing? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "points" text, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `In what season was the final placing NC† and the team SL Formula Racing? `: ```sql
SELECT COUNT("distance") FROM "finishing_order" WHERE "position"='7th';
## Task Generate a SQL query to answer the following question: `what is distance for the 7th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `what is distance for the 7th position?`: ```sql
SELECT "jockey" FROM "finishing_order" WHERE "position"='10th';
## Task Generate a SQL query to answer the following question: `who isthe jockey in 10th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `who isthe jockey in 10th position?`: ```sql
SELECT "position" FROM "finishing_order" WHERE "number"=22;
## Task Generate a SQL query to answer the following question: `what position is number 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `what position is number 22?`: ```sql
SELECT "horse" FROM "finishing_order" WHERE "position"='6th';
## Task Generate a SQL query to answer the following question: `what horse is in the 6th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `what horse is in the 6th position?`: ```sql
SELECT "position" FROM "finishing_order" WHERE "handicap"='10-2';
## Task Generate a SQL query to answer the following question: `what position has a handicap of 10-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `what position has a handicap of 10-2?`: ```sql
SELECT "handicap" FROM "finishing_order" WHERE "distance"='9 lengths';
## Task Generate a SQL query to answer the following question: `what is the handicap where the distance is 9 lengths?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "number" real, "horse" text, "jockey" text, "age" real, "handicap" text, "sp" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the handicap where the distance is 9 lengths?`: ```sql
SELECT "indonesia_super_series_2008" FROM "other_results" WHERE "7800_00"='5040.00';
## Task Generate a SQL query to answer the following question: `Which series occurred when the 7800 was 5040.00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which series occurred when the 7800 was 5040.00?`: ```sql
SELECT "indonesia_super_series_2008" FROM "other_results" WHERE "runner_up"='Semi-Finalist' AND "7800_00"='6420.00';
## Task Generate a SQL query to answer the following question: `Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?`: ```sql
SELECT "s_series" FROM "other_results" WHERE "22_06_2008"='06/05/2007';
## Task Generate a SQL query to answer the following question: `Which s.series occurred on 06/05/2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_results" ( "22_06_2008" text, "indonesia_super_series_2008" text, "s_series" text, "7800_00" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which s.series occurred on 06/05/2007?`: ```sql
SELECT "road" FROM "table1_25438110_5" WHERE "county"='Carson Valley';
## Task Generate a SQL query to answer the following question: `What road is associated with Carson Valley county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What road is associated with Carson Valley county?`: ```sql
SELECT "casinos" FROM "table1_25438110_5" WHERE "1_jul_08"=1865746;
## Task Generate a SQL query to answer the following question: `How many casinos are associated with a July 1, 2008 value of 1865746?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many casinos are associated with a July 1, 2008 value of 1865746?`: ```sql
SELECT "county" FROM "table1_25438110_5" WHERE "casinos"=17;
## Task Generate a SQL query to answer the following question: `What county has exactly 17 casinos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What county has exactly 17 casinos?`: ```sql
SELECT COUNT("casinos") FROM "table1_25438110_5" WHERE "fy09_millions"='$279';
## Task Generate a SQL query to answer the following question: `How many casinos are associated with a FY2009 $mil value of exactly $279?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many casinos are associated with a FY2009 $mil value of exactly $279?`: ```sql
SELECT "fy08_millions" FROM "table1_25438110_5" WHERE "fy07_millions"='$120';
## Task Generate a SQL query to answer the following question: `What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25438110_5" ( "casinos" real, "county" text, "road" text, "1_jul_08" real, "fy07_millions" text, "fy08_millions" text, "fy09_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?`: ```sql
SELECT "country" FROM "official_delegates" WHERE "contestant"='Danissa Zurek';
## Task Generate a SQL query to answer the following question: `What country was Danissa Zurek from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What country was Danissa Zurek from?`: ```sql
SELECT MIN("height_cm") FROM "official_delegates" WHERE "country"='Honduras';
## Task Generate a SQL query to answer the following question: `What is the smallest height associated with Honduras?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest height associated with Honduras?`: ```sql
SELECT "height_ft" FROM "official_delegates" WHERE "country"='Paraguay';
## Task Generate a SQL query to answer the following question: `What is the height associated with Paraguay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the height associated with Paraguay?`: ```sql
SELECT COUNT("contestant") FROM "official_delegates" WHERE "age"=18;
## Task Generate a SQL query to answer the following question: `What is the number of contestants who are aged exactly 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of contestants who are aged exactly 18?`: ```sql
SELECT COUNT("contestant") FROM "official_delegates" WHERE "height_ft"='5''7\"' AND "age"=26;
## Task Generate a SQL query to answer the following question: `What is the number of contestants who are 5'7" and exactly 26 years of age?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of contestants who are 5'7" and exactly 26 years of age?`: ```sql
SELECT "high_points" FROM "schedule" WHERE "date"='November 17';
## Task Generate a SQL query to answer the following question: `Who scored the most points on November 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who scored the most points on November 17?`: ```sql
SELECT "score" FROM "schedule" WHERE "team"='Virginia Tech';
## Task Generate a SQL query to answer the following question: `What was the final score when the Temple Owls beat Virginia Tech?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score when the Temple Owls beat Virginia Tech?`: ```sql
SELECT COUNT("record") FROM "schedule" WHERE "date"='November 27';
## Task Generate a SQL query to answer the following question: `How many games were played on november 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games were played on november 27?`: ```sql
SELECT "pole_position" FROM "race_calendar_and_results" WHERE "supporting"='USAC National Midget Series';
## Task Generate a SQL query to answer the following question: `Who got the pole position if the supporting is USAC National Midget Series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Who got the pole position if the supporting is USAC National Midget Series?`: ```sql
SELECT "fastest_lap" FROM "race_calendar_and_results" WHERE "pole_position"='Anders Krohn';
## Task Generate a SQL query to answer the following question: `Who won the fastest lap if Anders Krohn won the pole position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the fastest lap if Anders Krohn won the pole position?`: ```sql
SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "fastest_lap"='João Victor Horto';
## Task Generate a SQL query to answer the following question: `How many rounds did João Victor Horto achieved the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds did João Victor Horto achieved the fastest lap?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "date"='August 21';
## Task Generate a SQL query to answer the following question: `What circuit was used on August 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `What circuit was used on August 21?`: ```sql
SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "fastest_lap"='Alex Ardoin';
## Task Generate a SQL query to answer the following question: `How many rounds did Alex Ardoin achieved a fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds did Alex Ardoin achieved a fastest lap?`: ```sql
SELECT "design" FROM "2010" WHERE "quantity"='5,000,000';
## Task Generate a SQL query to answer the following question: `What is the design when quantity is 5,000,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the design when quantity is 5,000,000?`: ```sql
SELECT COUNT("printing_process") FROM "2010" WHERE "theme"='Rotary International : 100 Years in Canada';
## Task Generate a SQL query to answer the following question: `How many time is the theme rotary international : 100 years in canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many time is the theme rotary international : 100 years in canada?`: ```sql
SELECT "paper_type" FROM "2010" WHERE "date_of_issue"='July 8';
## Task Generate a SQL query to answer the following question: `What is the paper type for the date of issue July 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the paper type for the date of issue July 8?`: ```sql
SELECT "theme" FROM "2010" WHERE "printing_process"='Litho in 3 cols and intaglio';
## Task Generate a SQL query to answer the following question: `What is the theme when the printing process is litho in 3 cols and intaglio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the theme when the printing process is litho in 3 cols and intaglio?`: ```sql
SELECT COUNT("quantity") FROM "2010" WHERE "theme"='Roadside Attractions: Wawa Goose';
## Task Generate a SQL query to answer the following question: `How many times is the theme roadside attractions: wawa goose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times is the theme roadside attractions: wawa goose?`: ```sql
SELECT "theme" FROM "2010" WHERE "date_of_issue"='11 January 2010';
## Task Generate a SQL query to answer the following question: `What is the theme when the date of issue is 11 january 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "quantity" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the theme when the date of issue is 11 january 2010?`: ```sql
SELECT "date" FROM "schedule" WHERE "team"='Dayton';
## Task Generate a SQL query to answer the following question: `When did they play Dayton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When did they play Dayton?`: ```sql
SELECT "platform" FROM "table1_25474825_1" WHERE "software"='GeWorkbench';
## Task Generate a SQL query to answer the following question: `What is the platform of Geworkbench?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the platform of Geworkbench?`: ```sql
SELECT "description" FROM "table1_25474825_1" WHERE "license"='GNU GPL v2 or Ruby license';
## Task Generate a SQL query to answer the following question: `What is the description of the license for GNU GPL v2 or Ruby license?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the description of the license for GNU GPL v2 or Ruby license?`: ```sql
SELECT "license" FROM "table1_25474825_1" WHERE "description"='Tool for designing and executing workflows';
## Task Generate a SQL query to answer the following question: `What is the license that is described as a tool for designing and executing workflows?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the license that is described as a tool for designing and executing workflows?`: ```sql
SELECT "description" FROM "table1_25474825_1" WHERE "software"='IntAct';
## Task Generate a SQL query to answer the following question: `What is the description of the intact software?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25474825_1" ( "software" text, "description" text, "platform" text, "license" text, "developer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the description of the intact software?`: ```sql
SELECT "user" FROM "revised_electricity_tariffs_effective_fr" WHERE "max_demand_charge_rs_k_va"='1,100' AND "unit_k_wh_time_range"='H-2: Off-peak (22:30-05:30)';
## Task Generate a SQL query to answer the following question: `What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); ### SQL Given the database schema, here is the SQL query that answers `What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?`: ```sql
SELECT "fixed_charge_rs_k_wh" FROM "revised_electricity_tariffs_effective_fr" WHERE "tariff_rs_k_wh"='11.30';
## Task Generate a SQL query to answer the following question: `What is the fixed charge for the user who had a tariff of 11.30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fixed charge for the user who had a tariff of 11.30?`: ```sql
SELECT "fixed_charge_rs_k_wh" FROM "revised_electricity_tariffs_effective_fr" WHERE "unit_k_wh_time_range"='I-2: Peak (18:30-22:30)';
## Task Generate a SQL query to answer the following question: `What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?`: ```sql
SELECT "max_demand_charge_rs_k_va" FROM "revised_electricity_tariffs_effective_fr" WHERE "tariff_rs_k_wh"='8.85';
## Task Generate a SQL query to answer the following question: `What was the max demand charge for the user with a tariff of 8.85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "revised_electricity_tariffs_effective_fr" ( "user" text, "unit_k_wh_time_range" text, "tariff_rs_k_wh" text, "fixed_charge_rs_k_wh" text, "fuel_adjustment_charge_pct_of_total_energy_charge" text, "max_demand_charge_rs_k_va" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the max demand charge for the user with a tariff of 8.85?`: ```sql
SELECT COUNT("pick_num") FROM "round_two" WHERE "affiliation"='University of California NorCal Lamorinda United';
## Task Generate a SQL query to answer the following question: `How many picks are there with an affiliation is the University of California Norcal Lamorinda United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks are there with an affiliation is the University of California Norcal Lamorinda United?`: ```sql
SELECT "mls_team" FROM "round_two" WHERE "player"='Seth Sinovic';
## Task Generate a SQL query to answer the following question: `What team does Seth Sinovic play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What team does Seth Sinovic play for?`: ```sql
SELECT COUNT("player") FROM "round_two" WHERE "affiliation"='University of Maryland';
## Task Generate a SQL query to answer the following question: `How many players have an affiliation with University of Maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many players have an affiliation with University of Maryland?`: ```sql
SELECT "round" FROM "fed_cup_doubles_performances_10" WHERE "against"='South Africa';
## Task Generate a SQL query to answer the following question: `in what round types did the opponent come from south africa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "against" text, "surface" text, "partner" text, "opponents" text, "outcome" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `in what round types did the opponent come from south africa?`: ```sql
SELECT "outcome" FROM "fed_cup_doubles_performances_10" WHERE "partner"='Caroline Wozniacki';
## Task Generate a SQL query to answer the following question: `How did the match end when she played with caroline wozniacki?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "against" text, "surface" text, "partner" text, "opponents" text, "outcome" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How did the match end when she played with caroline wozniacki?`: ```sql
SELECT MAX("founded") FROM "current_members" WHERE "joined"=1978;
## Task Generate a SQL query to answer the following question: `When was the University founded that joined in 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the University founded that joined in 1978?`: ```sql
SELECT MAX("founded") FROM "current_members" WHERE "institution"='Piedmont College';
## Task Generate a SQL query to answer the following question: `When was Piedmont College founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); ### SQL Given the database schema, here is the SQL query that answers `When was Piedmont College founded?`: ```sql
SELECT MAX("founded") FROM "current_members" WHERE "nickname"='Avenging Angels';
## Task Generate a SQL query to answer the following question: `When were the Avenging Angels founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); ### SQL Given the database schema, here is the SQL query that answers `When were the Avenging Angels founded?`: ```sql
SELECT "institution" FROM "current_members" WHERE "joined"=1988;
## Task Generate a SQL query to answer the following question: `What institution joined in 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); ### SQL Given the database schema, here is the SQL query that answers `What institution joined in 1988?`: ```sql
SELECT "location" FROM "former_members" WHERE "nickname"='49ers';
## Task Generate a SQL query to answer the following question: `What location is nicknamed the 49ers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What location is nicknamed the 49ers?`: ```sql
SELECT "location" FROM "former_members" WHERE "institution"='University of North Carolina at Greensboro';
## Task Generate a SQL query to answer the following question: `Where is the University of North Carolina at Greensboro located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the University of North Carolina at Greensboro located?`: ```sql
SELECT "location" FROM "former_members" WHERE "institution"='University of North Carolina at Greensboro';
## Task Generate a SQL query to answer the following question: `Where is the University of North Carolina at Greensboro located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the University of North Carolina at Greensboro located?`: ```sql
SELECT "hypotenuse_0_c" FROM "triangles_and_their_sides" WHERE "vertices"='月山泛 ΔYMF';
## Task Generate a SQL query to answer the following question: `Name the hypotenuse for vertices 月山泛 δymf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triangles_and_their_sides" ( "number" real, "name" text, "vertices" text, "hypotenuse_0_c" text, "vertical_0_b" text, "horizontal_0_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the hypotenuse for vertices 月山泛 δymf`: ```sql
SELECT "vertical_0_b" FROM "triangles_and_their_sides" WHERE "name"='边 BIAN';
## Task Generate a SQL query to answer the following question: `Name the vertical for 边 bian` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triangles_and_their_sides" ( "number" real, "name" text, "vertices" text, "hypotenuse_0_c" text, "vertical_0_b" text, "horizontal_0_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the vertical for 边 bian`: ```sql