output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "series" FROM "nba_finals" WHERE "game"='game 6';
## Task Generate a SQL query to answer the following question: `Name the series with game of game 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "result" text, "site" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the series with game of game 6`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "high_points"='dwyane wade (27)';
## Task Generate a SQL query to answer the following question: `What is the location attendance from Dwyane Wade (27) high points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 is the location attendance from Dwyane Wade (27) high points?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "high_points"='dorell wright (20)';
## Task Generate a SQL query to answer the following question: `What was the high assists from a high points of dorell wright (20)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 high assists from a high points of dorell wright (20)?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='april 14';
## Task Generate a SQL query to answer the following question: `What was the high rebounds from the date of April 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 high rebounds from the date of April 14?`: ```sql
SELECT "fuel_propulsion" FROM "retired" WHERE "year"=1975 AND "numbers_quantity_ordered"='4756-4788 (33 buses)';
## Task Generate a SQL query to answer the following question: `For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired" ( "make_model" text, "length" text, "year" real, "numbers_quantity_ordered" text, "fuel_propulsion" text, "year_retired" text ); ### SQL Given the database schema, here is the SQL query that answers `For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?`: ```sql
SELECT "make_model" FROM "retired" WHERE "year_retired"='2004' AND "numbers_quantity_ordered"='961-967 (7 buses)';
## Task Generate a SQL query to answer the following question: `What is the make and model that retires in 2004, and has a numbers (quantity ordered) of 961-967 (7 buses)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired" ( "make_model" text, "length" text, "year" real, "numbers_quantity_ordered" text, "fuel_propulsion" text, "year_retired" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the make and model that retires in 2004, and has a numbers (quantity ordered) of 961-967 (7 buses)?`: ```sql
SELECT "year_retired" FROM "retired" WHERE "fuel_propulsion"='diesel' AND "length"='40''' AND "numbers_quantity_ordered"='3701-3729 (29 buses)';
## Task Generate a SQL query to answer the following question: `What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired" ( "make_model" text, "length" text, "year" real, "numbers_quantity_ordered" text, "fuel_propulsion" text, "year_retired" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='27-22';
## Task Generate a SQL query to answer the following question: `What is the location attendance of the game with a 27-22 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 is the location attendance of the game with a 27-22 record?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 25';
## Task Generate a SQL query to answer the following question: `What is the location attendance of the game on February 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 is the location attendance of the game on February 25?`: ```sql
SELECT MAX("fall_08") FROM "geography_of_students" WHERE "fall_09"<82 AND "fall_06"=5 AND "fall_05"<3;
## Task Generate a SQL query to answer the following question: `What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?`: ```sql
SELECT AVG("fall_09") FROM "geography_of_students" WHERE "fall_05"<3;
## Task Generate a SQL query to answer the following question: `What is the mean Fall 09 number where fall 05 is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean Fall 09 number where fall 05 is less than 3?`: ```sql
SELECT COUNT("fall_05") FROM "geography_of_students" WHERE "fall_08">5 AND "fall_06">7 AND "states"='maryland' AND "fall_09">471;
## Task Generate a SQL query to answer the following question: `What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?`: ```sql
SELECT MIN("fall_05") FROM "geography_of_students" WHERE "fall_09"<14 AND "fall_08">5;
## Task Generate a SQL query to answer the following question: `What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?`: ```sql
SELECT "notes" FROM "personal_records" WHERE "time"='men''s speed skating';
## Task Generate a SQL query to answer the following question: `What is in the notes for men's speed skating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is in the notes for men's speed skating?`: ```sql
SELECT "date" FROM "personal_records" WHERE "location"='berlin';
## Task Generate a SQL query to answer the following question: `What's the date when the location is Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date when the location is Berlin?`: ```sql
SELECT "location" FROM "personal_records" WHERE "distance"='men''s speed skating';
## Task Generate a SQL query to answer the following question: `What's the location for men's speed skating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location for men's speed skating?`: ```sql
SELECT "location" FROM "personal_records" WHERE "notes"='notes';
## Task Generate a SQL query to answer the following question: `What's the location when the notes area is notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location when the notes area is notes?`: ```sql
SELECT "notes" FROM "personal_records" WHERE "location"='berlin';
## Task Generate a SQL query to answer the following question: `What is the notes left for Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the notes left for Berlin?`: ```sql
SELECT "name" FROM "deepwater" WHERE "location"='angola' AND "entered_service"='1988';
## Task Generate a SQL query to answer the following question: `Which is located in Angola and entered service in 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which is located in Angola and entered service in 1988?`: ```sql
SELECT "type" FROM "deepwater" WHERE "entered_service"='2000';
## Task Generate a SQL query to answer the following question: `What type entered service in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What type entered service in 2000?`: ```sql
SELECT "water_depth" FROM "deepwater" WHERE "location"='nigeria' AND "name"='sedco 702';
## Task Generate a SQL query to answer the following question: `What is the water depth of Sedco 702, located in Nigeria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the water depth of Sedco 702, located in Nigeria?`: ```sql
SELECT "name" FROM "deepwater" WHERE "location"='nigeria';
## Task Generate a SQL query to answer the following question: `Which is located in Nigeria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which is located in Nigeria?`: ```sql
SELECT "type" FROM "deepwater" WHERE "location"='brazil' AND "entered_service"='1976/1997';
## Task Generate a SQL query to answer the following question: `Which type entered service in 1976/1997 and is located in Brazil?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which type entered service in 1976/1997 and is located in Brazil?`: ```sql
SELECT "location" FROM "deepwater" WHERE "type"='semi' AND "entered_service"='1988' AND "name"='transocean richardson';
## Task Generate a SQL query to answer the following question: `Where is Transocean Richardson, a semi entered into service in 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "deepwater" ( "name" text, "type" text, "entered_service" text, "water_depth" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is Transocean Richardson, a semi entered into service in 1988?`: ```sql
SELECT COUNT("yds_att") FROM "college_career" WHERE "net_yds"=1818 AND "rank">1;
## Task Generate a SQL query to answer the following question: `What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career" ( "rank" real, "name" text, "attempts" real, "net_yds" real, "yds_att" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?`: ```sql
SELECT MIN("rank") FROM "college_career" WHERE "attempts"=319 AND "year">2000;
## Task Generate a SQL query to answer the following question: `What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career" ( "rank" real, "name" text, "attempts" real, "net_yds" real, "yds_att" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?`: ```sql
SELECT COUNT("attempts") FROM "college_career" WHERE "rank">4 AND "net_yds"<1674;
## Task Generate a SQL query to answer the following question: `What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career" ( "rank" real, "name" text, "attempts" real, "net_yds" real, "yds_att" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?`: ```sql
SELECT "new_conference" FROM "former_members" WHERE "team_nickname"='gauchos';
## Task Generate a SQL query to answer the following question: `What is the new conference for the Gauchos team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_nickname" text, "tenure" text, "new_conference" text, "new_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the new conference for the Gauchos team?`: ```sql
SELECT "new_classification" FROM "former_members" WHERE "location"='la mirada, california';
## Task Generate a SQL query to answer the following question: `What is the new classification for La Mirada, California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_nickname" text, "tenure" text, "new_conference" text, "new_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the new classification for La Mirada, California?`: ```sql
SELECT "tenure" FROM "former_members" WHERE "team_nickname"='tritons';
## Task Generate a SQL query to answer the following question: `What is the tenure for the Tritons team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_nickname" text, "tenure" text, "new_conference" text, "new_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tenure for the Tritons team?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "march"=28;
## Task Generate a SQL query to answer the following question: `Which opponent was present on March 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent was present on March 28?`: ```sql
SELECT AVG("game") FROM "regular_season" WHERE "points">99;
## Task Generate a SQL query to answer the following question: `What is the mean game number when the points scored were more than 99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean game number when the points scored were more than 99?`: ```sql
SELECT "opponent" FROM "schedule_and_results" WHERE "game"=7;
## Task Generate a SQL query to answer the following question: `Who is the opponent in game 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the opponent in game 7?`: ```sql
SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='7-2-2' AND "game"<11;
## Task Generate a SQL query to answer the following question: `What day in December was the game before game 11 with a record of 7-2-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day in December was the game before game 11 with a record of 7-2-2?`: ```sql
SELECT COUNT("december") FROM "schedule_and_results" WHERE "opponent"='boston bruins';
## Task Generate a SQL query to answer the following question: `What is the day in December of the game against the Boston Bruins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the day in December of the game against the Boston Bruins?`: ```sql
SELECT AVG("december") FROM "schedule_and_results" WHERE "record"='8-2-3';
## Task Generate a SQL query to answer the following question: `What is the average day in December of the game with a 8-2-3 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average day in December of the game with a 8-2-3 record?`: ```sql
SELECT SUM("seats") FROM "production" WHERE "quantity">45;
## Task Generate a SQL query to answer the following question: `How many seats have a quantity over 45?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "system" text, "owner" text, "quantity" real, "delivery" text, "length" text, "gauge" text, "operation" text, "seats" real, "standing" real ); ### SQL Given the database schema, here is the SQL query that answers `How many seats have a quantity over 45?`: ```sql
SELECT "owner" FROM "production" WHERE "seats"=84;
## Task Generate a SQL query to answer the following question: `Which owner has 84 seats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "system" text, "owner" text, "quantity" real, "delivery" text, "length" text, "gauge" text, "operation" text, "seats" real, "standing" real ); ### SQL Given the database schema, here is the SQL query that answers `Which owner has 84 seats?`: ```sql
SELECT "delivery" FROM "production" WHERE "quantity"=16 AND "standing">128;
## Task Generate a SQL query to answer the following question: `Which deliver has 16 and a standing more than 128?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "system" text, "owner" text, "quantity" real, "delivery" text, "length" text, "gauge" text, "operation" text, "seats" real, "standing" real ); ### SQL Given the database schema, here is the SQL query that answers `Which deliver has 16 and a standing more than 128?`: ```sql
SELECT "host_city" FROM "host_cities" WHERE "hosts"='alicia keys';
## Task Generate a SQL query to answer the following question: `What is the host city that has Alicia Keys listed as a host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "host_cities" ( "year" text, "theme" text, "host_city" text, "venue" text, "hosts" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the host city that has Alicia Keys listed as a host?`: ```sql
SELECT "host_city" FROM "host_cities" WHERE "venue"='singapore indoor stadium' AND "theme"='valentine''s day';
## Task Generate a SQL query to answer the following question: `What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "host_cities" ( "year" text, "theme" text, "host_city" text, "venue" text, "hosts" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?`: ```sql
SELECT "year" FROM "host_cities" WHERE "host_city"='bangkok' AND "hosts"='alicia keys';
## Task Generate a SQL query to answer the following question: `What year will Bangkok be the host city and Alicia Keys host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "host_cities" ( "year" text, "theme" text, "host_city" text, "venue" text, "hosts" text ); ### SQL Given the database schema, here is the SQL query that answers `What year will Bangkok be the host city and Alicia Keys host?`: ```sql
SELECT "hosts" FROM "host_cities" WHERE "host_city"='bangkok' AND "theme"='codehunters';
## Task Generate a SQL query to answer the following question: `Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "host_cities" ( "year" text, "theme" text, "host_city" text, "venue" text, "hosts" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?`: ```sql
SELECT "hosts" FROM "host_cities" WHERE "year"='2004';
## Task Generate a SQL query to answer the following question: `Who are the hosts for the 2004 event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "host_cities" ( "year" text, "theme" text, "host_city" text, "venue" text, "hosts" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the hosts for the 2004 event?`: ```sql
SELECT "date" FROM "pga_tour_wins_10" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='greg kraft';
## Task Generate a SQL query to answer the following question: `What date has a margin of victory of 1 stroke over Greg Kraft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has a margin of victory of 1 stroke over Greg Kraft?`: ```sql
SELECT "margin_of_victory" FROM "pga_tour_wins_10" WHERE "runner_s_up"='steve rintoul';
## Task Generate a SQL query to answer the following question: `What was the margin of victory over Steve Rintoul?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the margin of victory over Steve Rintoul?`: ```sql
SELECT "margin_of_victory" FROM "pga_tour_wins_10" WHERE "runner_s_up"='brad faxon';
## Task Generate a SQL query to answer the following question: `What was the margin of victory over Brad Faxon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the margin of victory over Brad Faxon?`: ```sql
SELECT "years" FROM "engines" WHERE "model"='2.0 tdi (cr) dpf';
## Task Generate a SQL query to answer the following question: `What years show Model of 2.0 tdi (cr) dpf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displ" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What years show Model of 2.0 tdi (cr) dpf?`: ```sql
SELECT "power" FROM "engines" WHERE "model"='2.0 tdi (cr) dpf' AND "years"='2010–2011';
## Task Generate a SQL query to answer the following question: `What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displ" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?`: ```sql
SELECT "torque" FROM "engines" WHERE "model"='2.0 bitdi (cr) dpf' AND "years"='2010–';
## Task Generate a SQL query to answer the following question: `What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displ" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?`: ```sql
SELECT "engine" FROM "engines" WHERE "model"='2.0 bitdi (cr) dpf' AND "torque"='n·m (lb·ft) @ 1500–2000 rpm';
## Task Generate a SQL query to answer the following question: `What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displ" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?`: ```sql
SELECT "court_rank" FROM "list_of_daimy" WHERE "lineage"='son of norihiro';
## Task Generate a SQL query to answer the following question: `What is the Court Rank of Son of Norihiro's Lineage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_daimy" ( "name" text, "tenure" text, "courtesy_title" text, "court_rank" text, "revenues" text, "lineage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Court Rank of Son of Norihiro's Lineage?`: ```sql
SELECT "1811" FROM "demography" WHERE "1801"='1801';
## Task Generate a SQL query to answer the following question: `Name the 1811 for 1801 of 1801` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demography" ( "year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1811 for 1801 of 1801`: ```sql
SELECT "1861" FROM "demography" WHERE "1851"='5291';
## Task Generate a SQL query to answer the following question: `Name the 1861 with 1851 of 5291` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demography" ( "year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1861 with 1851 of 5291`: ```sql
SELECT "1901" FROM "demography" WHERE "1851"='1961';
## Task Generate a SQL query to answer the following question: `Name the 1901 with 1851 of 1961` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demography" ( "year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1901 with 1851 of 1961`: ```sql
SELECT "1821" FROM "demography" WHERE "1811"='1921';
## Task Generate a SQL query to answer the following question: `Name the 1821 with 1811 of 1921` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demography" ( "year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1821 with 1811 of 1921`: ```sql
SELECT "1821" FROM "demography" WHERE "1861"='3733';
## Task Generate a SQL query to answer the following question: `Name the 1821 with 1861 of 3733` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demography" ( "year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1821 with 1861 of 3733`: ```sql
SELECT COUNT("code") FROM "main_places" WHERE "population">'1,752' AND "most_spoken_language"='xhosa' AND "place"='bontrug' AND "area_km_2">2.33;
## Task Generate a SQL query to answer the following question: `What's the sum of Code with a Population that's larger than 1,752, a Most Spoken Language of Xhosa, a Place of Bontrug, and an Area (KM 2) that's larger than 2.33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of Code with a Population that's larger than 1,752, a Most Spoken Language of Xhosa, a Place of Bontrug, and an Area (KM 2) that's larger than 2.33?`: ```sql
SELECT COUNT("area_km_2") FROM "main_places" WHERE "population"<90;
## Task Generate a SQL query to answer the following question: `What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?`: ```sql
SELECT MIN("code") FROM "main_places" WHERE "most_spoken_language"='xhosa' AND "place"='addo elephant national park' AND "area_km_2"<1.08;
## Task Generate a SQL query to answer the following question: `What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=31;
## Task Generate a SQL query to answer the following question: `What is the score at game 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score at game 31?`: ```sql
SELECT MIN("grid") FROM "superbike_race_1_classification" WHERE "rider"='ruben xaus';
## Task Generate a SQL query to answer the following question: `What is the Grid for Rider Ruben Xaus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Grid for Rider Ruben Xaus?`: ```sql
SELECT MIN("laps") FROM "superbike_race_1_classification" WHERE "grid">3 AND "time"='39:24.967';
## Task Generate a SQL query to answer the following question: `What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?`: ```sql
SELECT "rider" FROM "superbike_race_1_classification" WHERE "time"='+1:08.291';
## Task Generate a SQL query to answer the following question: `What Rider had a Time of +1:08.291?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What Rider had a Time of +1:08.291?`: ```sql
SELECT COUNT("laps") FROM "superbike_race_1_classification" WHERE "bike"='ducati 999 f06' AND "time"='+53.488' AND "grid">11;
## Task Generate a SQL query to answer the following question: `Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='13–17–3';
## Task Generate a SQL query to answer the following question: `When was there a record of 13–17–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When was there a record of 13–17–3?`: ```sql
SELECT "record" FROM "game_log" WHERE "home"='vancouver' AND "date"='december 8';
## Task Generate a SQL query to answer the following question: `What record was made in vancouver on December 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record was made in vancouver on December 8?`: ```sql
SELECT "home" FROM "game_log" WHERE "visitor"='california';
## Task Generate a SQL query to answer the following question: `What was the home who had California visiting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home who had California visiting?`: ```sql
SELECT "score" FROM "game_log" WHERE "visitor"='philadelphia' AND "date"='december 1';
## Task Generate a SQL query to answer the following question: `What's the score on December 1 when Philadelphia visited?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the score on December 1 when Philadelphia visited?`: ```sql
SELECT "type_of_game" FROM "1966" WHERE "results"='1:6';
## Task Generate a SQL query to answer the following question: `What was the type of game with a 1:6 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1966" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the type of game with a 1:6 result?`: ```sql
SELECT "opponent" FROM "1966" WHERE "city"='belgrade' AND "results"='0:2';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game in Belgrade with a 0:2 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1966" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game in Belgrade with a 0:2 result?`: ```sql
SELECT "city" FROM "1966" WHERE "results"='1:0';
## Task Generate a SQL query to answer the following question: `What city held the game with a result of 1:0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1966" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What city held the game with a result of 1:0?`: ```sql
SELECT "type_of_game" FROM "1966" WHERE "results"='1:2';
## Task Generate a SQL query to answer the following question: `What type of game had a result of 1:2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1966" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of game had a result of 1:2?`: ```sql
SELECT "results" FROM "1966" WHERE "opponent"='hungary';
## Task Generate a SQL query to answer the following question: `What was the result of the game against Hungary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1966" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the game against Hungary?`: ```sql
SELECT "remixed_by" FROM "official_versions" WHERE "version"='radio edit';
## Task Generate a SQL query to answer the following question: `Who was the Radio Edit Version remixed by?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Radio Edit Version remixed by?`: ```sql
SELECT "version" FROM "official_versions" WHERE "year"<1996;
## Task Generate a SQL query to answer the following question: `What was the Version prior to 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the Version prior to 1996?`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"='573 194-2';
## Task Generate a SQL query to answer the following question: `What is the Date of Catalog 573 194-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of Catalog 573 194-2?`: ```sql
SELECT "label" FROM "release_history" WHERE "format"='cd maxi';
## Task Generate a SQL query to answer the following question: `What is the Label of the release in CD Maxi Format?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Label of the release in CD Maxi Format?`: ```sql
SELECT "catalog" FROM "release_history" WHERE "format"='cd single';
## Task Generate a SQL query to answer the following question: `What is the Catalog number of the CD Single?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Catalog number of the CD Single?`: ```sql
SELECT "make" FROM "mountain_dew_250" WHERE "pos">9;
## Task Generate a SQL query to answer the following question: `Which Make has a Pos larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mountain_dew_250" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Make has a Pos larger than 9?`: ```sql
SELECT SUM("pos") FROM "mountain_dew_250" WHERE "driver"='brian scott (r)';
## Task Generate a SQL query to answer the following question: `Which Pos has a Driver of brian scott (r)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mountain_dew_250" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pos has a Driver of brian scott (r)?`: ```sql
SELECT COUNT("pos") FROM "mountain_dew_250" WHERE "driver"='todd bodine' AND "car_num">30;
## Task Generate a SQL query to answer the following question: `How many Pos have a Driver of todd bodine, and a Car # larger than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mountain_dew_250" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Pos have a Driver of todd bodine, and a Car # larger than 30?`: ```sql
SELECT MAX("car_num") FROM "mountain_dew_250" WHERE "make"='toyota' AND "pos"=7;
## Task Generate a SQL query to answer the following question: `Which Car # has a Make of toyota, and a Pos of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mountain_dew_250" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Car # has a Make of toyota, and a Pos of 7?`: ```sql
SELECT COUNT("track_number") FROM "track_listing" WHERE "recording_date"='november 16, 1959' AND "title"='i couldn''t hear nobody pray';
## Task Generate a SQL query to answer the following question: `How many track numbers were recorded on November 16, 1959 for the title of I Couldn't Hear Nobody Pray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "track_number" real, "title" text, "songwriter_s" text, "recording_date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `How many track numbers were recorded on November 16, 1959 for the title of I Couldn't Hear Nobody Pray?`: ```sql
SELECT "recording_date" FROM "track_listing" WHERE "title"='my lord what a mornin''';
## Task Generate a SQL query to answer the following question: `On what date was My Lord What a Mornin' recorded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "track_number" real, "title" text, "songwriter_s" text, "recording_date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was My Lord What a Mornin' recorded?`: ```sql
SELECT AVG("track_number") FROM "track_listing" WHERE "time"='3:25' AND "title"='great getting up mornin''';
## Task Generate a SQL query to answer the following question: `What is the average track number 3:25 long and a title of Great Getting up Mornin'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "track_number" real, "title" text, "songwriter_s" text, "recording_date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average track number 3:25 long and a title of Great Getting up Mornin'?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='2–7–0–1';
## Task Generate a SQL query to answer the following question: `WHich Date has a Record of 2–7–0–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHich Date has a Record of 2–7–0–1?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "date"='march 16';
## Task Generate a SQL query to answer the following question: `Who is the Visitor on march 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Visitor on march 16?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='november 16';
## Task Generate a SQL query to answer the following question: `Which Record is on november 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record is on november 16?`: ```sql
SELECT "home" FROM "game_log" WHERE "date"='december 10';
## Task Generate a SQL query to answer the following question: `What is the Home on december 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Home on december 10?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='november 11';
## Task Generate a SQL query to answer the following question: `WHich Score has a Date on november 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHich Score has a Date on november 11?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='december 18';
## Task Generate a SQL query to answer the following question: `Which Record has a Date on december 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Date on december 18?`: ```sql
SELECT "visitor" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='march 26';
## Task Generate a SQL query to answer the following question: `What visitor has march 26 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What visitor has march 26 as the date?`: ```sql
SELECT "visitor" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "home"='detroit red wings' AND "date"='march 30';
## Task Generate a SQL query to answer the following question: `What visitor has detroit red wings as the home, and march 30 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What visitor has detroit red wings as the home, and march 30 as the date?`: ```sql
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "visitor"='chicago black hawks' AND "date"='march 23';
## Task Generate a SQL query to answer the following question: `What record has chicago black hawks as the visitor and march 23 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has chicago black hawks as the visitor and march 23 as the date?`: ```sql
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='march 30';
## Task Generate a SQL query to answer the following question: `What record has march 30 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has march 30 as the date?`: ```sql
SELECT "unanimous" FROM "ncaa_consensus_all_american_team" WHERE "school"='michigan dartmouth';
## Task Generate a SQL query to answer the following question: `What is the unanimous result of the player from Michigan Dartmouth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the unanimous result of the player from Michigan Dartmouth?`: ```sql
SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "unanimous"='no' AND "college_hall_of_fame"='no';
## Task Generate a SQL query to answer the following question: `What is the position of the player with a unanimous no result without a college hall of fame?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player with a unanimous no result without a college hall of fame?`: ```sql
SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "college_hall_of_fame"='nevers hof profile';
## Task Generate a SQL query to answer the following question: `What is the school of the player with a college hall of fame nevers hof profile?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the school of the player with a college hall of fame nevers hof profile?`: ```sql
SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='ends';
## Task Generate a SQL query to answer the following question: `What is the school of the player who plays ends?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the school of the player who plays ends?`: ```sql