output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "team_1" FROM "second_round" WHERE "team_2"='union douala'; |
## Task
Generate a SQL query to answer the following question:
`What Team 1 has union douala as Team 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
)... |
SELECT "score" FROM "game_log" WHERE "loss"='cerutti (0-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a loss of Cerutti (0-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text... |
SELECT "opponent" FROM "game_log" WHERE "record"='93-54'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game that had a record of 93-54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total">156; |
## Task
Generate a SQL query to answer the following question:
`What was the score to par for 156 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_p... |
SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">9 AND "player"='arnold palmer'; |
## Task
Generate a SQL query to answer the following question:
`How many strokes for arnold palmer with a to par of greater than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text... |
SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1960'; |
## Task
Generate a SQL query to answer the following question:
`What was the score to par in 1960?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real... |
SELECT MIN("first_game") FROM "rugby_germany_internationals_1989" WHERE "lost"=7 AND "drawn"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest first game for a rugby team that has 7 lost games and 0 draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rugby_germany_internationals_1989" (
"first_game" real... |
SELECT SUM("played") FROM "rugby_germany_internationals_1989" WHERE "percentage"='0.00%' AND "drawn"<0; |
## Task
Generate a SQL query to answer the following question:
`How many games were played by a team that won 0.00% of their games and 0 draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rugby_germany_internationals_1989" (
"first_game" real,
... |
SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "1st_match"='30 march 1997'; |
## Task
Generate a SQL query to answer the following question:
`Name the matches for the first match being 30 march 1997`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
... |
SELECT "1st_match" FROM "team_wins_losses_and_draws" WHERE "team"='brisbane bears'; |
## Task
Generate a SQL query to answer the following question:
`Name the 1st match for brisbane bears`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
"lost" text,
"p... |
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "matches"='1 928'; |
## Task
Generate a SQL query to answer the following question:
`Name the lost for matches of 1 928`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
"lost" text,
"pct_... |
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37'; |
## Task
Generate a SQL query to answer the following question:
`Name the lost for % won of 55.37`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
"lost" text,
"pct_wo... |
SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "team"='gold coast'; |
## Task
Generate a SQL query to answer the following question:
`Name the matches for gold coast`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
"lost" text,
"pct_won... |
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37'; |
## Task
Generate a SQL query to answer the following question:
`Name the lost for % won of 55.37`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_wins_losses_and_draws" (
"team" text,
"1st_match" text,
"matches" text,
"lost" text,
"pct_wo... |
SELECT "year" FROM "statistics" WHERE "cable"='4.6%'; |
## Task
Generate a SQL query to answer the following question:
`What is the year when cable was 4.6%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"x_dsl" text,
"cable" text,
"ft_tx" text,
"other" text
);
### SQL... |
SELECT "other" FROM "statistics" WHERE "year"='2012'; |
## Task
Generate a SQL query to answer the following question:
`What is the other for 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"x_dsl" text,
"cable" text,
"ft_tx" text,
"other" text
);
### SQL
Given the... |
SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "ft_tx"='35.4%'; |
## Task
Generate a SQL query to answer the following question:
`What is the xDSL for the other of 0.6% and FTTx of 35.4%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"x_dsl" text,
"cable" text,
"ft_tx" text,
"ot... |
SELECT "other" FROM "statistics" WHERE "x_dsl"='78.2%'; |
## Task
Generate a SQL query to answer the following question:
`What is the other for a 78.2% xDSL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"x_dsl" text,
"cable" text,
"ft_tx" text,
"other" text
);
### SQL
G... |
SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "year"='2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the xDSL in 2010 when the other was 0.6%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"x_dsl" text,
"cable" text,
"ft_tx" text,
"other" tex... |
SELECT "date" FROM "international_goals" WHERE "result"='won' AND "score"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`Which date has a Result of won, and a Score of 1-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
... |
SELECT "result" FROM "international_goals" WHERE "date"='november 2, 2007'; |
## Task
Generate a SQL query to answer the following question:
`Which result has a Date of november 2, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"compe... |
SELECT "competition" FROM "international_goals" WHERE "score"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Score of 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition"... |
SELECT "venue" FROM "international_goals" WHERE "date"='january 9, 2011'; |
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Date of january 9, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competi... |
SELECT "termination_of_mission" FROM "see_also" WHERE "presentation_of_credentials"='july 4, 1898'; |
## Task
Generate a SQL query to answer the following question:
`What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"repres... |
SELECT "presentation_of_credentials" FROM "see_also" WHERE "title"='ambassador extraordinary and plenipotentiary' AND "representative"='raúl h. castro'; |
## Task
Generate a SQL query to answer the following question:
`What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (... |
SELECT "representative" FROM "see_also" WHERE "presentation_of_credentials"='february 23, 1854'; |
## Task
Generate a SQL query to answer the following question:
`Who is the representative with a presentation of credentials date on February 23, 1854?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"representative" text,
"title" text,... |
SELECT "title" FROM "see_also" WHERE "appointed_by"='james k. polk'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the representative appointed by James K. Polk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"representative" text,
"title" text,
"presentation_of_... |
SELECT "termination_of_mission" FROM "see_also" WHERE "appointed_by"='franklin pierce' AND "title"='chargé d''affaires'; |
## Task
Generate a SQL query to answer the following question:
`What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
... |
SELECT "stadium" FROM "2007_season" WHERE "date"='november 29'; |
## Task
Generate a SQL query to answer the following question:
`What is the Stadium held on november 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"... |
SELECT "visiting_team" FROM "2007_season" WHERE "date"='december 20'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Visiting team on december 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"... |
SELECT "stadium" FROM "2007_season" WHERE "visiting_team"='pittsburgh steelers'; |
## Task
Generate a SQL query to answer the following question:
`Which Stadium has a Visiting team of pittsburgh steelers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"hos... |
SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='chicago bears'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Host team that has a chicago bears as a visiting team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" text... |
SELECT "final_score" FROM "2007_season" WHERE "date"='november 22'; |
## Task
Generate a SQL query to answer the following question:
`What is the Final score on november 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"s... |
SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='indianapolis colts'; |
## Task
Generate a SQL query to answer the following question:
`What is the Host team that has indianapolis colts as a Visiting team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_season" (
"date" text,
"visiting_team" text,
"final_score" ... |
SELECT "winners" FROM "winners" WHERE "runners_up"='np cooper av cooke'; |
## Task
Generate a SQL query to answer the following question:
`Who won when np cooper av cooke was runner up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winners" text,
"club" text,
"time" text,
"runners_up" text... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='1:44'; |
## Task
Generate a SQL query to answer the following question:
`What was the record of the match that had a time of 1:44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"... |
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='gcm – d.o.g. 4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at GCM – D.O.G. 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"e... |
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='hikaru sato'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the match that ended before round 2, against Hikaru Sato?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" tex... |
SELECT "company_or_product_name" FROM "series_10" WHERE "money_requested"='75,000' AND "entrepreneur_s"='geoff and colette bell'; |
## Task
Generate a SQL query to answer the following question:
`What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_10" (
"episode" text,
"first_a... |
SELECT "investing_dragon_s" FROM "series_10" WHERE "episode"='episode 9' AND "entrepreneur_s"='ashley sayed'; |
## Task
Generate a SQL query to answer the following question:
`Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_10" (
"episode" text,
"first_aired" text,
"en... |
SELECT "episode" FROM "series_10" WHERE "entrepreneur_s"='luke booth and christopher eves'; |
## Task
Generate a SQL query to answer the following question:
`What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_10" (
"episode" text,
"first_aired" text,
"entrepre... |
SELECT "company_or_product_name" FROM "series_10" WHERE "episode"='episode 11' AND "money_requested"='70,000'; |
## Task
Generate a SQL query to answer the following question:
`Which Company or Product name requested £70,000 on Episode 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_10" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,... |
SELECT MIN("year") FROM "previous_winners" WHERE "men_s_singles"='yong yudianto'; |
## Task
Generate a SQL query to answer the following question:
`What is the year in which Yong Yudianto won the men's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles... |
SELECT "men_s_singles" FROM "previous_winners" WHERE "year"=1999; |
## Task
Generate a SQL query to answer the following question:
`Who won the men's singles in 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" te... |
SELECT MIN("height") FROM "fiba_euro_basket_2007_squads" WHERE "player"='stephen arigbabu'; |
## Task
Generate a SQL query to answer the following question:
`What is stephen arigbabu's height?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
... |
SELECT MAX("attendance") FROM "february" WHERE "visitor"='los angeles'; |
## Task
Generate a SQL query to answer the following question:
`For all games with los angeles as visitor, what is the highest attendance of all?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" tex... |
SELECT AVG("attendance") FROM "february" WHERE "home"='calgary'; |
## Task
Generate a SQL query to answer the following question:
`For all games with calgary as home, what is the average number of attendees?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
... |
SELECT "no_5" FROM "nominations" WHERE "no_1"='lena claudisabel' AND "no_2"='lena sylvie'; |
## Task
Generate a SQL query to answer the following question:
`Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_5" t... |
SELECT "no_3" FROM "nominations" WHERE "no_1"='claudio sylvie'; |
## Task
Generate a SQL query to answer the following question:
`Who is no.3 when Claudio Sylvie is no.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_5" text,
"no_6" text,
"final"... |
SELECT "score" FROM "game_log" WHERE "record"='18-20'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 18-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"at... |
SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='camilla martin'; |
## Task
Generate a SQL query to answer the following question:
`What Men's double held together with Women's singles of camilla martin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_si... |
SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='zhu lin'; |
## Task
Generate a SQL query to answer the following question:
`Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"wo... |
SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2002; |
## Task
Generate a SQL query to answer the following question:
`Who was on the Men's Doubles Team in 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_dou... |
SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='aya ohori'; |
## Task
Generate a SQL query to answer the following question:
`Which year did Aya Ohori play in the Women's Singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
... |
SELECT "partner" FROM "doubles_8" WHERE "opponents_in_the_final"='flavio cipolla simone vagnozzi'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8" (
"tournament" text,
"surface" text,
"partne... |
SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "surface"='carpet (i)'; |
## Task
Generate a SQL query to answer the following question:
`Who were the Opponents in the final that played on a carpet (i) Surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8" (
"tournament" text,
"surface" text,
"partner" tex... |
SELECT "score_in_the_final" FROM "doubles_8" WHERE "surface"='clay' AND "tournament"='dortmund'; |
## Task
Generate a SQL query to answer the following question:
`Played on Clay Surface, what was the Score of the Dortmund Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8" (
"tournament" text,
"surface" text,
"partner" text,... |
SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "partner"='frederik nielsen'; |
## Task
Generate a SQL query to answer the following question:
`Who is Partner Frederik Nielsen's Opponents in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8" (
"tournament" text,
"surface" text,
"partner" text,
"opponents... |
SELECT "score_in_the_final" FROM "doubles_8" WHERE "partner"='tomas behrend'; |
## Task
Generate a SQL query to answer the following question:
`What is Partner Tomas Behrend's Score in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_8" (
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_th... |
SELECT "country" FROM "missed_the_cut" WHERE "player"='larry mize'; |
## Task
Generate a SQL query to answer the following question:
`What Country does Larry Mize play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" ... |
SELECT MAX("total") FROM "missed_the_cut" WHERE "year_s_won"='1976'; |
## Task
Generate a SQL query to answer the following question:
`What is the winning total from 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" re... |
SELECT MAX("year") FROM "winners_since_1995" WHERE "owner"='michael e. pegram'; |
## Task
Generate a SQL query to answer the following question:
`What year was owner Michael E. Pegram's last win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_since_1995" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
... |
SELECT "trainer" FROM "winners_since_1995" WHERE "owner"='cherry valley farm'; |
## Task
Generate a SQL query to answer the following question:
`Who is the trainer for Cherry Valley Farm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_since_1995" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner... |
SELECT "owner" FROM "winners_since_1995" WHERE "year">2009 AND "winner"='blueeyesintherein'; |
## Task
Generate a SQL query to answer the following question:
`Who owned winner Blueeyesintherein after 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_since_1995" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"o... |
SELECT "opponent" FROM "game_log" WHERE "record"='33-15'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Blue Jays' opponent when their record was 33-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT "loss" FROM "game_log" WHERE "record"='36-20'; |
## Task
Generate a SQL query to answer the following question:
`Who did the Blue Jays lose to when their record was 36-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"r... |
SELECT "rank" FROM "indy_500_results" WHERE "qual"='141.471'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the qual 141.471?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"l... |
SELECT "start" FROM "indy_500_results" WHERE "laps"=55; |
## Task
Generate a SQL query to answer the following question:
`What is the start of lap 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real... |
SELECT "rank" FROM "indy_500_results" WHERE "year"='1956'; |
## Task
Generate a SQL query to answer the following question:
`What is rank of the year 1956?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" re... |
SELECT "laps" FROM "indy_500_results" WHERE "rank"='13'; |
## Task
Generate a SQL query to answer the following question:
`What is the lap number for the rank of 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,... |
SELECT "rank" FROM "indy_500_results" WHERE "year"='1961'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
)... |
SELECT SUM("laps") FROM "indy_500_results" WHERE "finish"='24'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the lap with a finish of 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" ... |
SELECT "band" FROM "discography" WHERE "album_or_song"='self versus self - immersion'; |
## Task
Generate a SQL query to answer the following question:
`Which band plays Self Versus Self - Immersion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"album_or_song" text,
"band" text,
"memebrship" text,
"role" text,
"... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "record"='9-4'; |
## Task
Generate a SQL query to answer the following question:
`What Event used submission (rear naked choke) with 9-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"me... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='donald ouimet'; |
## Task
Generate a SQL query to answer the following question:
`What event was Donald Ouimet involved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"ev... |
SELECT "event" FROM "senior" WHERE "position"='3rd' AND "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`What event did she finish 3rd in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
#... |
SELECT AVG("year") FROM "senior" WHERE "venue"='tampere, finland'; |
## Task
Generate a SQL query to answer the following question:
`What year did she compete in tampere, finland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" t... |
SELECT "place" FROM "first_round" WHERE "score">66 AND "player"='ben hogan'; |
## Task
Generate a SQL query to answer the following question:
`Ben Hogan with a score larger than 66 had a place listed of what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score... |
SELECT "player" FROM "first_round" WHERE "score"=70; |
## Task
Generate a SQL query to answer the following question:
`With a score of 70, this player's name is listed as what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
... |
SELECT "to_par" FROM "first_round" WHERE "score"<71 AND "place"='t6'; |
## Task
Generate a SQL query to answer the following question:
`With a score smaller than 71 along with a place of t6, what is the To par score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country"... |
SELECT "hanyu_pinyin" FROM "cities" WHERE "gdp_2011_billion_yuan">688.02 AND "regional_population_2010"='8,700,400'; |
## Task
Generate a SQL query to answer the following question:
`Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cities" (
"city" text... |
SELECT "hanzi" FROM "cities" WHERE "regional_population_2010"='4,591,972'; |
## Task
Generate a SQL query to answer the following question:
`Which Hanzi has a Regional Population of 4,591,972 in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cities" (
"city" text,
"hanzi" text,
"hanyu_pinyin" text,
"regional_popu... |
SELECT "name" FROM "semifinal_2" WHERE "rank"<5 AND "time"<55.62 AND "lane"<5 AND "nationality"='netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifi... |
SELECT MAX("rank") FROM "semifinal_2" WHERE "name"='karen pickering' AND "time"<55.71; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank of Karen Pickering when she had a time of less than 55.71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" te... |
SELECT MAX("lane") FROM "semifinal_2" WHERE "time">55.94 AND "rank">8; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" re... |
SELECT "date" FROM "game_log" WHERE "loss"='burns (0-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Burns (0-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT "loss" FROM "game_log" WHERE "record"='20-16'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 20-16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"att... |
SELECT "loss" FROM "game_log" WHERE "attendance"='18,769'; |
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game that had an attendance of 18,769?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,... |
SELECT "date" FROM "game_log" WHERE "loss"='geisel (0-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that had a loss of Geisel (0-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "attendance"='12,699'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game against the Royals that had an attendance of 12,699?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" te... |
SELECT MAX("floors") FROM "tallest_buildings" WHERE "name"='regions center' AND "rank"<11; |
## Task
Generate a SQL query to answer the following question:
`When Regions center has a rank less than 11, what is the greatest number o floors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"hei... |
SELECT AVG("rank") FROM "tallest_buildings" WHERE "floors"=24; |
## Task
Generate a SQL query to answer the following question:
`What is the average rank for a building with 24 floors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" ... |
SELECT SUM("rank") FROM "tallest_buildings" WHERE "name"='omni nashville hotel'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for Omni nashville hotel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
"year... |
SELECT MAX("rank") FROM "tallest_buildings" WHERE "name"='fifth third center'; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest rank for Fifth third center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
... |
SELECT AVG("year") FROM "tallest_buildings" WHERE "floors"<23 AND "height_ft_m"='292 (89)' AND "rank"<14; |
## Task
Generate a SQL query to answer the following question:
`When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings" (
"... |
SELECT "regular_season_preseason" FROM "game_summaries" WHERE "date"='august 25, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What type of regular season/preseason game was played on August 25, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_summaries" (
"date" text,
"visiting_team" text,
"home_t... |
SELECT "stadium" FROM "game_summaries" WHERE "date"='august 22, 2008'; |
## Task
Generate a SQL query to answer the following question:
`In what stadium was the game on August 22, 2008 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_summaries" (
"date" text,
"visiting_team" text,
"home_team" text,
"stad... |
SELECT "stadium" FROM "game_summaries" WHERE "home_team"='dallas cowboys 21'; |
## Task
Generate a SQL query to answer the following question:
`In what stadium was the home team Dallas Cowboys 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_summaries" (
"date" text,
"visiting_team" text,
"home_team" text,
"stadium... |
SELECT "date" FROM "game_summaries" WHERE "home_team"='dallas cowboys 34'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the home team the Dallas Cowboys 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_summaries" (
"date" text,
"visiting_team" text,
"home_team" text,
"stadiu... |
SELECT "visiting_team" FROM "game_summaries" WHERE "date"='october 15, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team on October 15, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_summaries" (
"date" text,
"visiting_team" text,
"home_team" text,
"stadium" text... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.