output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "notes" FROM "table1_1000181_1" WHERE "current_slogan"='SOUTH AUSTRALIA'; |
## Task
Generate a SQL query to answer the following question:
`Tell me what the notes are for South Australia `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" te... |
SELECT "current_series" FROM "table1_1000181_1" WHERE "notes"='New series began in June 2011'; |
## Task
Generate a SQL query to answer the following question:
`What is the current series where the new series began in June 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour"... |
SELECT "format" FROM "table1_1000181_1" WHERE "state_territory"='South Australia'; |
## Task
Generate a SQL query to answer the following question:
`What is the format for South Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" text,
"format" text,
"c... |
SELECT "text_background_colour" FROM "table1_1000181_1" WHERE "state_territory"='Australian Capital Territory'; |
## Task
Generate a SQL query to answer the following question:
`Name the background colour for the Australian Capital Territory`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1000181_1" (
"state_territory" text,
"text_background_colour" tex... |
SELECT COUNT("fleet_series_quantity") FROM "fleet" WHERE "fuel_propulsion"='CNG'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the fuel propulsion is cng?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity"... |
SELECT "fuel_propulsion" FROM "fleet" WHERE "fleet_series_quantity"='310-329 (20)'; |
## Task
Generate a SQL query to answer the following question:
`what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model... |
SELECT "manufacturer" FROM "fleet" WHERE "order_year"='1998'; |
## Task
Generate a SQL query to answer the following question:
`who is the manufacturer for the order year 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quanti... |
SELECT COUNT("manufacturer") FROM "fleet" WHERE "model"='GE40LFR'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the model ge40lfr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_series_quantity" text,
... |
SELECT COUNT("order_year") FROM "fleet" WHERE "fleet_series_quantity"='468-473 (6)'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the fleet series (quantity) is 468-473 (6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" text,
"fleet_... |
SELECT "powertrain_engine_transmission" FROM "fleet" WHERE "order_year"='2000'; |
## Task
Generate a SQL query to answer the following question:
`what is the powertrain (engine/transmission) when the order year is 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"order_year" text,
"manufacturer" text,
"model" tex... |
SELECT "description" FROM "disk_loading_comparison" WHERE "aircraft"='CH-47D Chinook'; |
## Task
Generate a SQL query to answer the following question:
`What if the description of a ch-47d chinook?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disk_loading_comparison" (
"aircraft" text,
"description" text,
"max_gross_weight" text,
... |
SELECT "max_gross_weight" FROM "disk_loading_comparison" WHERE "aircraft"='Robinson R-22'; |
## Task
Generate a SQL query to answer the following question:
`What is the max gross weight of the Robinson R-22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disk_loading_comparison" (
"aircraft" text,
"description" text,
"max_gross_weight" ... |
SELECT "school_club_team" FROM "a" WHERE "no"='6'; |
## Task
Generate a SQL query to answer the following question:
`What school did player number 6 come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" ... |
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2012-present'; |
## Task
Generate a SQL query to answer the following question:
`What school did the player that has been in Toronto from 2012-present come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
... |
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2010-2012'; |
## Task
Generate a SQL query to answer the following question:
`What school did the player that has been in Toronto from 2010-2012 go to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"positi... |
SELECT "position" FROM "a" WHERE "school_club_team"='Baylor'; |
## Task
Generate a SQL query to answer the following question:
`What position did the player from Baylor play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toron... |
SELECT "player" FROM "o" WHERE "years_in_toronto"='1995-96'; |
## Task
Generate a SQL query to answer the following question:
`Who played in the Toronto Raptors from 1995-96?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toro... |
SELECT "no" FROM "o" WHERE "player"='Patrick O''Bryant'; |
## Task
Generate a SQL query to answer the following question:
`Which number was Patrick O'Bryant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
... |
SELECT "school_club_team" FROM "o" WHERE "player"='Patrick O''Bryant'; |
## Task
Generate a SQL query to answer the following question:
`What school did Patrick O'Bryant play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" ... |
SELECT COUNT("no") FROM "o" WHERE "school_club_team"='Fordham'; |
## Task
Generate a SQL query to answer the following question:
`How many number does Fordham school have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" t... |
SELECT "school_club_team" FROM "o" WHERE "years_in_toronto"='2001-02'; |
## Task
Generate a SQL query to answer the following question:
`Which school was in Toronto in 2001-02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" tex... |
SELECT "school_club_team" FROM "w" WHERE "years_in_toronto"='2004-05'; |
## Task
Generate a SQL query to answer the following question:
`Which school did the player that played 2004-05 attend?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years... |
SELECT "position" FROM "w" WHERE "player"='Loren Woods'; |
## Task
Generate a SQL query to answer the following question:
`Which position does Loren Woods play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,... |
SELECT MIN("no") FROM "w" WHERE "years_in_toronto"='1998-2001'; |
## Task
Generate a SQL query to answer the following question:
`What number is the player that played 1998-2001`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toro... |
SELECT "nationality" FROM "w" WHERE "school_club_team"='Georgetown'; |
## Task
Generate a SQL query to answer the following question:
`Which country is the player that went to Georgetown from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"yea... |
SELECT "school_club_team" FROM "w" WHERE "player"='Herb Williams'; |
## Task
Generate a SQL query to answer the following question:
`Which school did Herb Williams go to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "w" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,... |
SELECT "years_in_toronto" FROM "c" WHERE "school_club_team"='Hawaii'; |
## Task
Generate a SQL query to answer the following question:
`When did the player from Hawaii play for Toronto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_to... |
SELECT "years_in_toronto" FROM "c" WHERE "player"='Dell Curry'; |
## Task
Generate a SQL query to answer the following question:
`During what period did Dell Curry play for Toronto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_... |
SELECT "no" FROM "c" WHERE "school_club_team"='Boise State'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the player from Boise State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_to... |
SELECT "nationality" FROM "c" WHERE "player"='Dell Curry'; |
## Task
Generate a SQL query to answer the following question:
`What's Dell Curry nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "c" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"sch... |
SELECT "player" FROM "g" WHERE "school_club_team"='Georgia'; |
## Task
Generate a SQL query to answer the following question:
`which player is from georgia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"schoo... |
SELECT "school_club_team" FROM "g" WHERE "player"='Rudy Gay'; |
## Task
Generate a SQL query to answer the following question:
`what school is rudy gay from`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_toronto" text,
"schoo... |
SELECT "nationality" FROM "g" WHERE "years_in_toronto"='1997-98'; |
## Task
Generate a SQL query to answer the following question:
`what nationality is the player who played from 1997-98`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_... |
SELECT "position" FROM "g" WHERE "school_club_team"='Connecticut'; |
## Task
Generate a SQL query to answer the following question:
`what position did the player from connecticut play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_in_t... |
SELECT "years_in_toronto" FROM "b" WHERE "player"='Marcus Banks'; |
## Task
Generate a SQL query to answer the following question:
`During which years was Marcus Banks in Toronto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toro... |
SELECT "position" FROM "b" WHERE "years_in_toronto"='2004'; |
## Task
Generate a SQL query to answer the following question:
`Which positions were in Toronto in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toronto" te... |
SELECT "nationality" FROM "b" WHERE "player"='Muggsy Bogues'; |
## Task
Generate a SQL query to answer the following question:
`What nationality is the player Muggsy Bogues?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_toront... |
SELECT "years_in_toronto" FROM "b" WHERE "player"='Lonny Baxter'; |
## Task
Generate a SQL query to answer the following question:
`What years was the player Lonny Baxter in Toronto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_in_t... |
SELECT COUNT("player") FROM "b" WHERE "school_club_team"='La Salle'; |
## Task
Generate a SQL query to answer the following question:
`How many players were with the school or club team La Salle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "b" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"... |
SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_rank"='117'; |
## Task
Generate a SQL query to answer the following question:
`When the scoring rank was 117, what was the best finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_mad... |
SELECT "2nd" FROM "lpga_tour_career_summary" WHERE "best_finish"='T69'; |
## Task
Generate a SQL query to answer the following question:
`When the best finish was T69, how many people came in 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_m... |
SELECT COUNT("wins") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='183'; |
## Task
Generate a SQL query to answer the following question:
`How many wins were there when the money list rank was 183?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_m... |
SELECT "scoring_average" FROM "lpga_tour_career_summary" WHERE "money_list_rank"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`When the money list rank was n/a, what was the scoring average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"c... |
SELECT MAX("2nd") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What time was the highest for 2nd finishers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"... |
SELECT MIN("season") FROM "winners" WHERE "team"='MetroStars'; |
## Task
Generate a SQL query to answer the following question:
`When did the Metrostars have their first Rookie of the Year winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"natio... |
SELECT "college" FROM "winners" WHERE "team"='Columbus Crew'; |
## Task
Generate a SQL query to answer the following question:
`What college did the Rookie of the Year from the Columbus Crew attend?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"na... |
SELECT COUNT("team") FROM "winners" WHERE "draft_pick_num"='1'; |
## Task
Generate a SQL query to answer the following question:
`How many teams had a #1 draft pick that won the Rookie of the Year Award?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
... |
SELECT "position" FROM "winners" WHERE "draft_pick_num"='10'; |
## Task
Generate a SQL query to answer the following question:
`What position did the #10 draft pick play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" real,
"player" text,
"position" text,
"nationality" text,
"team" te... |
SELECT "years_played" FROM "squad_members" WHERE "singles_w_l"='3–2'; |
## Task
Generate a SQL query to answer the following question:
`what's the years played with singles w-l of 3–2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l"... |
SELECT "doubles_w_l" FROM "squad_members" WHERE "player"='Seol Jae-Min (none)'; |
## Task
Generate a SQL query to answer the following question:
`what's the doubles w-l for player seol jae-min (none)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"single... |
SELECT "singles_w_l" FROM "squad_members" WHERE "player"='Kim Doo-Hwan'; |
## Task
Generate a SQL query to answer the following question:
`what's the singles w-l for kim doo-hwan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l" text,
... |
SELECT COUNT("singles_w_l") FROM "squad_members" WHERE "doubles_w_l"='0–0' AND "total_w_l"='3–1'; |
## Task
Generate a SQL query to answer the following question:
`what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,... |
SELECT "doubles_w_l" FROM "squad_members" WHERE "years_played"='1 (1968)'; |
## Task
Generate a SQL query to answer the following question:
`what's the doubles w-l with years played value of 1 (1968)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"s... |
SELECT "years_played" FROM "squad_members" WHERE "player"='Im Chung-Yang'; |
## Task
Generate a SQL query to answer the following question:
`what years are played for player im chung-yang`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_members" (
"player" text,
"years_played" text,
"total_w_l" text,
"singles_w_l"... |
SELECT "name" FROM "see_also" WHERE "crest_length_meters"=375; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the 375 crest length?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
... |
SELECT MIN("year_of_construction") FROM "see_also" WHERE "name"='Spitallamm'; |
## Task
Generate a SQL query to answer the following question:
`What is year of construction of spitallamm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real... |
SELECT "canton" FROM "see_also" WHERE "name"='Grande Dixence'; |
## Task
Generate a SQL query to answer the following question:
`What is the canton of grande dixence?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"t... |
SELECT "name" FROM "see_also" WHERE "name_of_the_lake"='Lago di Luzzone'; |
## Task
Generate a SQL query to answer the following question:
`What is the name where lago di luzzone is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,... |
SELECT "guardian_m_t_k" FROM "names_and_attributes" WHERE "consort"='Svāhā'; |
## Task
Generate a SQL query to answer the following question:
`What is the guardian mātṛkā for the guardian whose consort is Svāhā?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" ... |
SELECT "direction" FROM "names_and_attributes" WHERE "mantra"='Oṃ Yaṃ Vāyuve Namaḥ'; |
## Task
Generate a SQL query to answer the following question:
`Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,... |
SELECT "weapon" FROM "names_and_attributes" WHERE "consort"='Śacī'; |
## Task
Generate a SQL query to answer the following question:
`What weapon is used by the guardian whose consort is śacī?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
"we... |
SELECT "direction" FROM "names_and_attributes" WHERE "weapon"='Khaḍga (sword)'; |
## Task
Generate a SQL query to answer the following question:
`What are the directions for the guardian whose weapon is khaḍga (sword)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantr... |
SELECT "weapon" FROM "names_and_attributes" WHERE "direction"='East'; |
## Task
Generate a SQL query to answer the following question:
`What are the weapons used by guardians for the direction East?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" text,
"mantra" text,
... |
SELECT "direction" FROM "names_and_attributes" WHERE "graha_planet"='Bṛhaspati (Jupiter)'; |
## Task
Generate a SQL query to answer the following question:
`What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_and_attributes" (
"name" text,
"direction" t... |
SELECT MAX("chapters") FROM "members" WHERE "classification"='Fraternity' AND "headquarters"='Austin, Texas'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"member" text,
"headquarters" ... |
SELECT "member" FROM "members" WHERE "classification"='Sorority'; |
## Task
Generate a SQL query to answer the following question:
`What are the members listed with the sorority classification`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"... |
SELECT "member" FROM "members" WHERE "chapters"=12; |
## Task
Generate a SQL query to answer the following question:
`Name the member that has 12 chapters`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
"found... |
SELECT "headquarters" FROM "members" WHERE "member"='Alpha Nu Omega'; |
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of Alpha Nu Omega`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"member" text,
"headquarters" text,
"classification" text,
"chapters" real,
... |
SELECT MIN("relapsing_fever") FROM "incidence_of_disease_in_russian_empire_a" WHERE "malaria"='3000'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of relapsing fever when malaria is 3000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"ty... |
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1934'; |
## Task
Generate a SQL query to answer the following question:
`what is the typhoid fever number for the year 1934`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fe... |
SELECT "typhus" FROM "incidence_of_disease_in_russian_empire_a" WHERE "smallpox"=4; |
## Task
Generate a SQL query to answer the following question:
`What are all the typhus number when smallpox is 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fev... |
SELECT MAX("smallpox") FROM "incidence_of_disease_in_russian_empire_a" WHERE "typhoid_fever"=293; |
## Task
Generate a SQL query to answer the following question:
`what is the number of smallpox when typhoid fever is 293`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typh... |
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1929'; |
## Task
Generate a SQL query to answer the following question:
`what is the typhoid fever number for the year 1929`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "incidence_of_disease_in_russian_empire_a" (
"year" text,
"typhus" real,
"typhoid_fe... |
SELECT COUNT("founded") FROM "current_members" WHERE "location"='Bloomington, IN'; |
## Task
Generate a SQL query to answer the following question:
`How many schools are in Bloomington, IN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"e... |
SELECT COUNT("location") FROM "current_members" WHERE "affiliation"='Private/Presbyterian'; |
## Task
Generate a SQL query to answer the following question:
`How many of the schools are designated private/Presbyterian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"aff... |
SELECT MIN("founded") FROM "current_members" WHERE "school"='Lindenwood University'; |
## Task
Generate a SQL query to answer the following question:
`In what year was Lindenwood University founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" tex... |
SELECT COUNT("primary_conference") FROM "current_members" WHERE "location"='Ames, IA'; |
## Task
Generate a SQL query to answer the following question:
`How many of the schools listed are in Ames, IA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"school" text,
"location" text,
"founded" real,
"affiliation" tex... |
SELECT "capital_endonym" FROM "table1_1008653_9" WHERE "capital_exonym"='Douglas'; |
## Task
Generate a SQL query to answer the following question:
`What is the capital (endonym) where Douglas is the Capital (exonym)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
... |
SELECT COUNT("country_endonym") FROM "table1_1008653_9" WHERE "capital_endonym"='Jakarta'; |
## Task
Generate a SQL query to answer the following question:
`How many countries (endonym) has the capital (endonym) of Jakarta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" text,
"... |
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Icelandic'; |
## Task
Generate a SQL query to answer the following question:
`What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1008653_9" (
"country_exonym"... |
SELECT "country_endonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Irish English'; |
## Task
Generate a SQL query to answer the following question:
`In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1008653_9" (
"country_exonym" tex... |
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "country_endonym"='Isle of Man Ellan Vannin'; |
## Task
Generate a SQL query to answer the following question:
`Which country (exonym) is the country (endonym) isle of man ellan vannin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1008653_9" (
"country_exonym" text,
"capital_exonym" te... |
SELECT COUNT("network") FROM "u_s_television_ratings" WHERE "season_premiere"='September 11, 2000'; |
## Task
Generate a SQL query to answer the following question:
`The season premiere aired on September 11, 2000 aired on how many networks? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_television_ratings" (
"season" text,
"network" text,
... |
SELECT "ranking" FROM "u_s_television_ratings" WHERE "season_finale"='May 8, 2006'; |
## Task
Generate a SQL query to answer the following question:
`What was the ranking of the season finale aired on May 8, 2006? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_television_ratings" (
"season" text,
"network" text,
"season_prem... |
SELECT MIN("population_canada_2011_census") FROM "table1_1011906_1" WHERE "seat_of_rcm"='Cowansville'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum population canada 2011 census with seat of rcm being cowansville`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1011906_1" (
"regional_county_municipality_rcm... |
SELECT "land_area" FROM "table1_1011906_1" WHERE "seat_of_rcm"='Granby'; |
## Task
Generate a SQL query to answer the following question:
`what's the land area with seat of rcm being granby`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1011906_1" (
"regional_county_municipality_rcm" text,
"population_canada_2011_... |
SELECT "population" FROM "habitual_irish_speakers" WHERE "county"='County Mayo' AND "english_name"='Carrowteige'; |
## Task
Generate a SQL query to answer the following question:
`What is the population for County Mayo with the English Name Carrowteige?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,... |
SELECT "irish_name" FROM "habitual_irish_speakers" WHERE "irish_speakers"='62%'; |
## Task
Generate a SQL query to answer the following question:
`What is the Irish name listed with 62% Irish speakers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" tex... |
SELECT "population" FROM "habitual_irish_speakers" WHERE "irish_name"='Leitir Mealláin'; |
## Task
Generate a SQL query to answer the following question:
`What is the population for the Irish Name Leitir mealláin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name"... |
SELECT "county" FROM "habitual_irish_speakers" WHERE "irish_name"='Carna'; |
## Task
Generate a SQL query to answer the following question:
`What is the county for the Irish name Carna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"popu... |
SELECT COUNT("english_name") FROM "habitual_irish_speakers" WHERE "irish_speakers"='53%' AND "county"='County Kerry'; |
## Task
Generate a SQL query to answer the following question:
`How many County Kerry have 53% Irish speakers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,
"po... |
SELECT "population" FROM "habitual_irish_speakers" WHERE "english_name"='Spiddal'; |
## Task
Generate a SQL query to answer the following question:
`What is the population for the English name Spiddal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "habitual_irish_speakers" (
"county" text,
"english_name" text,
"irish_name" text,... |
SELECT MIN("chinese") FROM "us_states_by_asian_americans_population" WHERE "filipino"=1474707; |
## Task
Generate a SQL query to answer the following question:
`What is the the Chinese population for the state that has a Filipino population of 1474707?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_states_by_asian_americans_population" (
"st... |
SELECT COUNT("filipino") FROM "us_states_by_asian_americans_population" WHERE "indian"=30947; |
## Task
Generate a SQL query to answer the following question:
`How many States have an Indian population of 30947?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_states_by_asian_americans_population" (
"state_territory" text,
"asian_american_p... |
SELECT MAX("indian") FROM "us_states_by_asian_americans_population"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Indian population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_states_by_asian_americans_population" (
"state_territory" text,
"asian_american_population_201... |
SELECT "australian_role" FROM "table1_10121127_1" WHERE "un_operation_name"='UNAMA'; |
## Task
Generate a SQL query to answer the following question:
`What is Australia's role in the UN operation Unama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"locatio... |
SELECT "un_operation_title" FROM "table1_10121127_1" WHERE "un_operation_name"='UNCOK'; |
## Task
Generate a SQL query to answer the following question:
`What is the UN operation title with the UN operation name, Uncok?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" te... |
SELECT COUNT("number_of_australians_involved") FROM "table1_10121127_1" WHERE "un_operation_title"='UN Commission on Korea'; |
## Task
Generate a SQL query to answer the following question:
`How many Australians were in the UN commission on Korea?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"lo... |
SELECT "dates_of_australian_involvement" FROM "table1_10121127_1" WHERE "number_of_australians_involved"='65'; |
## Task
Generate a SQL query to answer the following question:
`When was it where 65 Australians were involved in the UN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10121127_1" (
"un_operation_name" text,
"un_operation_title" text,
"l... |
SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.73'; |
## Task
Generate a SQL query to answer the following question:
`What year is the season with the 10.73 million views?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_broadcast_and_ratings" (
"season" real,
"timeslot_et" text,
"season_premiere... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.