output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "attendance" FROM "schedule" WHERE "result"='w61-7'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance when the result was w61-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attend... |
SELECT AVG("miles_one_way") FROM "head_to_head" WHERE "fans_took"='340'; |
## Task
Generate a SQL query to answer the following question:
`What shows for miles [One Way] when the fans took 340?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_to_head" (
"team" text,
"miles_one_way" real,
"home_result" text,
"fans_... |
SELECT "reported_birth_date" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='110 years, 185 days'; |
## Task
Generate a SQL query to answer the following question:
`what is the reported birth date when the reported age is 110 years, 185 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name"... |
SELECT "reported_age" FROM "oldest_norwegian_person_by_region" WHERE "reported_birth_date"='22 december 1878'; |
## Task
Generate a SQL query to answer the following question:
`what is the reported age when the reported birth date is 22 december 1878?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name" te... |
SELECT "region" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 107 days'; |
## Task
Generate a SQL query to answer the following question:
`what is the region when the reported age is 111 years, 107 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name" text,
"rep... |
SELECT "reported_death_date" FROM "oldest_norwegian_person_by_region" WHERE "name"='laura svehaug'; |
## Task
Generate a SQL query to answer the following question:
`what is the reported death date for laura svehaug?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name" text,
"reported_birth_da... |
SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 66 days'; |
## Task
Generate a SQL query to answer the following question:
`Who has a reported age of 111 years, 66 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name" text,
"reported_birth_date" t... |
SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_death_date"='6 march 1998'; |
## Task
Generate a SQL query to answer the following question:
`Who has a reported death of 6 march 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_norwegian_person_by_region" (
"region" text,
"name" text,
"reported_birth_date" text,... |
SELECT "date" FROM "general" WHERE "countries_surveyed"<122 AND "pct_rank"='47'; |
## Task
Generate a SQL query to answer the following question:
`Date for less than 122 countries and a 47% rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general" (
"overall_ranking" text,
"lat_am_ranking" text,
"countries_surveyed" real,
... |
SELECT "high_assists" FROM "game_log" WHERE "high_points"='andrew bynum (23)'; |
## Task
Generate a SQL query to answer the following question:
`What high assists has the high points of andrew bynum (23)?`
### 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... |
SELECT "score" FROM "game_log" WHERE "team"='charlotte'; |
## Task
Generate a SQL query to answer the following question:
`What score is the team of charlotte?`
### 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_... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='strikeforce: barnett vs. cormier'; |
## Task
Generate a SQL query to answer the following question:
`What was strikeforce: barnett vs. cormier's record?`
### 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... |
SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1"<'7,801,334' AND "q_1_05">'812,499'; |
## Task
Generate a SQL query to answer the following question:
`What is the total q > 1.4 with a q > 1 less than 7,801,334, and a q > 1.05 greater than 812,499?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution_of_triples_with_q_1" (
"q_1"... |
SELECT COUNT("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_05">'18,233' AND "q_1_4"<112 AND "q_1_1"='13,266'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of q > 1 when q > 1.05 is bigger than 18,233, and a q > 1.4 less than 112, and q > 1.1 is 13,266?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution_of_triples_wi... |
SELECT AVG("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_2"<'3,028' AND "q_1_4"=51 AND "q_1_05">'18,233'; |
## Task
Generate a SQL query to answer the following question:
`What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution_of_triples_with... |
SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1_3"=455 AND "q_1_2"<'3,028'; |
## Task
Generate a SQL query to answer the following question:
`What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "distribution_of_triples_with_q_1" (
"q_1" real,
"q_1_05... |
SELECT "losing_team" FROM "lowest_scoring_matches" WHERE "total"=24 AND "winning_team"='sydney roosters'; |
## Task
Generate a SQL query to answer the following question:
`Who was the losing team with a total of 24 when the winning team was Sydney Roosters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lowest_scoring_matches" (
"total" real,
"score" te... |
SELECT "venue" FROM "lowest_scoring_matches" WHERE "losing_team"='south sydney rabbitohs'; |
## Task
Generate a SQL query to answer the following question:
`Which venue had a losing team of south sydney rabbitohs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lowest_scoring_matches" (
"total" real,
"score" text,
"winning_team" text,
... |
SELECT "date" FROM "lowest_scoring_matches" WHERE "total"<19 AND "venue"='anz stadium'; |
## Task
Generate a SQL query to answer the following question:
`What day was the total smaller than 19 at Venue of anz stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lowest_scoring_matches" (
"total" real,
"score" text,
"winning_team" t... |
SELECT COUNT("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"<'114,287' AND "year">2008; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Total trade (tonnes) when the Imports is smaller than 114,287 tonnes and the year is higher than 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "port_trad... |
SELECT SUM("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"='111,677' AND "vessels_entering_port"<129; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total trade (tonnes) where the Imports are 111,677 tonnes and there are fewer than 129 vessels entering port?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "port_trade"... |
SELECT MAX("total_trade_tonnes") FROM "port_trade" WHERE "year">2001 AND "vessels_entering_port">91 AND "imports_tonnes"='144,368' AND "exports_tonnes">'4,024,311'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Total trade (tonnes) after 2001 when the Imports are 144,368 tonnes, the Exports are more than 4,024,311 tonnes, and there are more than 91 vessels entering port?`
### Database Schema
This query will run on a database whose schema is ... |
SELECT "attendance" FROM "schedule" WHERE "week"<17 AND "record"='bye'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance before Week 17 with a Record of Bye?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
... |
SELECT "kickoff_time" FROM "schedule" WHERE "date"='january 7, 2002'; |
## Task
Generate a SQL query to answer the following question:
`What is the Kickoff Time on January 7, 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
... |
SELECT "opponent" FROM "schedule" WHERE "result"='l 24β14'; |
## Task
Generate a SQL query to answer the following question:
`What was the Opponent in the game with a Result of L 24β14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
... |
SELECT "result" FROM "schedule" WHERE "attendance"='69,365'; |
## Task
Generate a SQL query to answer the following question:
`What was the Result of the game with an Attendance of 69,365?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
... |
SELECT "events_won_by_kcl" FROM "results" WHERE "winner"='kclms' AND "events_won_by_kclms"<10 AND "year"=2008; |
## Task
Generate a SQL query to answer the following question:
`Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"date_held" text,
"winn... |
SELECT COUNT("year") FROM "results" WHERE "events_won_by_kclms"<7; |
## Task
Generate a SQL query to answer the following question:
`How many years were the events won by KCLMS less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"date_held" text,
"winner" text,
"events_won_by_kcl... |
SELECT AVG("events_won_by_kcl") FROM "results" WHERE "year"<2004; |
## Task
Generate a SQL query to answer the following question:
`What is the average value for events won by KCL in a year earlier than 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"date_held" text,
"winner" text,
... |
SELECT "date_of_appointment" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the appointment day for 4 December 2008 vacancy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "during_the_season" (
"team" text,
"outgoing_manager" text,
"manner_of_departu... |
SELECT "outgoing_manager" FROM "during_the_season" WHERE "position_in_table"='16th'; |
## Task
Generate a SQL query to answer the following question:
`Which outgoing manager has tabled 16th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "during_the_season" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text... |
SELECT "position_in_table" FROM "during_the_season" WHERE "team"='mons' AND "replaced_by"='christophe dessy (caretaker)'; |
## Task
Generate a SQL query to answer the following question:
`Which position is team mons who was replaced by Christophe Dessy (caretaker)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "during_the_season" (
"team" text,
"outgoing_manager" text,... |
SELECT "position_in_table" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the table position for 4 December 2008 vacancy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "during_the_season" (
"team" text,
"outgoing_manager" text,
"manner_of_departur... |
SELECT "laps" FROM "race_results" WHERE "points"='50'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have 50 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_l... |
SELECT "grid" FROM "race_results" WHERE "team"='dreyer & reinbold racing' AND "points"='26'; |
## Task
Generate a SQL query to answer the following question:
`What is the grid of team dreyer & reinbold racing, which has 26 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"ti... |
SELECT "points" FROM "race_results" WHERE "laps"='75'; |
## Task
Generate a SQL query to answer the following question:
`How many points have 75 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_l... |
SELECT "laps" FROM "race_results" WHERE "laps_led"='0' AND "points"='13'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have 0 laps led and 13 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" ... |
SELECT "points" FROM "race_results" WHERE "laps"='88' AND "grid"='14'; |
## Task
Generate a SQL query to answer the following question:
`How many points have 88 laps and a grid of 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid... |
SELECT "laps" FROM "race_results" WHERE "time_retired"='+0.4865'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have a +0.4865 time/retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" te... |
SELECT "launch_date" FROM "atv_missions" WHERE "deorbit_date"='29 september 2008'; |
## Task
Generate a SQL query to answer the following question:
`When did the ATV that deorbited on 29 september 2008, launch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atv_missions" (
"designation" text,
"name" text,
"launch_date" text,
"... |
SELECT "launch_date" FROM "atv_missions" WHERE "designation"='atv-002'; |
## Task
Generate a SQL query to answer the following question:
`When did the atv-002 launch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atv_missions" (
"designation" text,
"name" text,
"launch_date" text,
"iss_docking_date" text,
"deorbi... |
SELECT "launch_date" FROM "atv_missions" WHERE "name"='edoardo amaldi'; |
## Task
Generate a SQL query to answer the following question:
`When did Edoardo Amaldi launch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atv_missions" (
"designation" text,
"name" text,
"launch_date" text,
"iss_docking_date" text,
"deo... |
SELECT "deorbit_date" FROM "atv_missions" WHERE "launch_date"='9 march 2008'; |
## Task
Generate a SQL query to answer the following question:
`When did the ATV that launched on 9 March 2008, deorbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atv_missions" (
"designation" text,
"name" text,
"launch_date" text,
"iss_d... |
SELECT "partner" FROM "doubles_23_11_12" WHERE "outcome"='runner-up' AND "surface"='clay' AND "opponents"='marco chiudinelli michael lammer'; |
## Task
Generate a SQL query to answer the following question:
`Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE... |
SELECT "opponents" FROM "doubles_23_11_12" WHERE "surface"='clay' AND "score"='6β3, 7β6 (11β9)'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponent in the match on a clay surface that had a score of 6β3, 7β6 (11β9)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_23_11_12" (
"outcome" text,
"date" tex... |
SELECT "season" FROM "by_seasons_and_teams" WHERE "races"<16; |
## Task
Generate a SQL query to answer the following question:
`What is Season, when Races is less than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" text,
"races" real,
"wins" real,
"podiums" real,
"pol... |
SELECT SUM("poles") FROM "by_seasons_and_teams" WHERE "podiums"=0 AND "races"=17; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Poles, when Podiums is 0, and when Races is 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" text,
"races" real,
"wins" real,
... |
SELECT "poles" FROM "by_seasons_and_teams" WHERE "races"<16; |
## Task
Generate a SQL query to answer the following question:
`What is Poles, when Races is less than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" text,
"races" real,
"wins" real,
"podiums" real,
"pole... |
SELECT MIN("races") FROM "by_seasons_and_teams" WHERE "podiums">1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Races, when Podiums is greater than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons_and_teams" (
"season" text,
"races" real,
"wins" real,
"podiums... |
SELECT AVG("attendance") FROM "schedule" WHERE "week"=14; |
## Task
Generate a SQL query to answer the following question:
`How many people on average attended the game in week 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"at... |
SELECT "result" FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`The game in week 11 has what result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
##... |
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='san francisco 49ers'; |
## Task
Generate a SQL query to answer the following question:
`For the game against the San Francisco 49ers what was the total attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"... |
SELECT "place" FROM "third_round" WHERE "to_par"='β1' AND "score"='71-68-76=215'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place that has a To standard of β1, and a Score of 71-68-76=215?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" tex... |
SELECT "player" FROM "third_round" WHERE "to_par"='β7'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of β7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par... |
SELECT "player" FROM "third_round" WHERE "to_par"='β4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of β4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par... |
SELECT "player" FROM "third_round" WHERE "to_par"='β1' AND "score"='71-68-76=215'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of β1, and a Score of 71-68-76=215?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" te... |
SELECT "player" FROM "third_round" WHERE "to_par"='β4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of β4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par... |
SELECT "1980_81" FROM "competition_timeline" WHERE "1973_74"='did not participate' AND "2001_02"='did not participate'; |
## Task
Generate a SQL query to answer the following question:
`What shows for 1980β81 when 1973β74, and 2001β02 did not participate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_timeline" (
"competition" text,
"1970_71" text,
"197... |
SELECT "2004_05" FROM "competition_timeline" WHERE "2003_04"='grp'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2004β05 answer when 2003β04 shows grp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_timeline" (
"competition" text,
"1970_71" text,
"1971_72" text,
"1972... |
SELECT "1999_00" FROM "competition_timeline" WHERE "2010_11"='grp'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1999β00 answer when the 2010β11 shows grp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_timeline" (
"competition" text,
"1970_71" text,
"1971_72" text,
"... |
SELECT "1997_98" FROM "competition_timeline" WHERE "2003_04"='grp'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1997β98 answer when the 2003β04 shows grp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_timeline" (
"competition" text,
"1970_71" text,
"1971_72" text,
"... |
SELECT "1989_90" FROM "competition_timeline" WHERE "2004_05"='grp'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1989β90 answer when the 2004β05 shows grp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competition_timeline" (
"competition" text,
"1970_71" text,
"1971_72" text,
"... |
SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "player"='daniel marsh'; |
## Task
Generate a SQL query to answer the following question:
`Which rank is 40 for s Wicket with a player of Daniel Marsh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"ma... |
SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "average"='28.42'; |
## Task
Generate a SQL query to answer the following question:
`Which rank has a s wicket at 40 and 28.42 is the average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"match... |
SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young'; |
## Task
Generate a SQL query to answer the following question:
`Which value for s wicket is associated with Shaun Young?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matche... |
SELECT "player" FROM "most_career_wickets" WHERE "s_wicket"='48'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a s wicket at 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" t... |
SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young'; |
## Task
Generate a SQL query to answer the following question:
`What is the s wicket value associated with Shaun Young?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches... |
SELECT "date" FROM "game_log" WHERE "home"='ny islanders'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where the NY Islanders are the home team?`
### 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"... |
SELECT "score" FROM "game_log" WHERE "home"='ny islanders'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game where the NY Islanders are the home team?`
### 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... |
SELECT "home" FROM "game_log" WHERE "date"='february 3'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team on February 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,
"points"... |
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round"<24 AND "college"='north carolina state'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"ro... |
SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "overall">91 AND "round">21 AND "college"='mississippi'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Pick, when Position is OT, when Overall is greater than 91, when Round is greater than 21, and when College is Mississippi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CR... |
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='hardin-simmons' AND "round">26; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round... |
SELECT "score" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='younes el aynaoui'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the tournament with younes el aynaoui as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_21_10_titles_11_runner_ups" (
"outcome" text,
"date"... |
SELECT "date" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='carlos moyΓ '; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the tournament with carlos moyΓ as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_21_10_titles_11_runner_ups" (
"outcome" text,
"date" text,
... |
SELECT "tournament" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='greg rusedski'; |
## Task
Generate a SQL query to answer the following question:
`What is the tournament with greg rusedski as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_21_10_titles_11_runner_ups" (
"outcome" text,
"date" text,
"tournam... |
SELECT "surface" FROM "singles_21_10_titles_11_runner_ups" WHERE "date"='26 may 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface on 26 May 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_21_10_titles_11_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" ... |
SELECT "club" FROM "top_goalscorers_by_season" WHERE "nationality"='united states' AND "player"='ty harden'; |
## Task
Generate a SQL query to answer the following question:
`What club did united states player ty harden play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers_by_season" (
"season" real,
"player" text,
"club" text,
"nati... |
SELECT COUNT("season") FROM "top_goalscorers_by_season" WHERE "player"='rohan ricketts'; |
## Task
Generate a SQL query to answer the following question:
`Which seaosn had a player of rohan ricketts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers_by_season" (
"season" real,
"player" text,
"club" text,
"nationality" t... |
SELECT "tries_against" FROM "pool_2" WHERE "points_against"='213'; |
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Points Against is 213?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_2" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
... |
SELECT "tries_against" FROM "pool_2" WHERE "tries_for"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Tries For is 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_2" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poin... |
SELECT "try_diff" FROM "pool_2" WHERE "points_diff"='+71'; |
## Task
Generate a SQL query to answer the following question:
`What is Try Diff, when Points Diff is +71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_2" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points... |
SELECT "try_diff" FROM "pool_2" WHERE "points_against"='213'; |
## Task
Generate a SQL query to answer the following question:
`What is Try Diff, when Points Against is 213?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_2" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poi... |
SELECT "tries_against" FROM "pool_2" WHERE "try_diff"='+15'; |
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Try Diff is +15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_2" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poin... |
SELECT "archbishop" FROM "archbishops" WHERE "vacated_throne"='may 17, 1907'; |
## Task
Generate a SQL query to answer the following question:
`Which archbishop vacated the throne on May 17, 1907?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordained_priest" text,
"ordaine... |
SELECT "died" FROM "archbishops" WHERE "ordained_bishop"='july 25, 1902'; |
## Task
Generate a SQL query to answer the following question:
`When did the archbishop that was ordained a bishop on July 25, 1902 die?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordained_prie... |
SELECT "ordained_bishop" FROM "archbishops" WHERE "born"='february 10, 1858'; |
## Task
Generate a SQL query to answer the following question:
`When was the archbishop that was born on February 10, 1858 ordained a bishop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordained... |
SELECT "vacated_throne" FROM "archbishops" WHERE "archbishop"='albert daeger'; |
## Task
Generate a SQL query to answer the following question:
`When did Archbishop Albert Daeger vacate the throne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordained_priest" text,
"ordaine... |
SELECT "born" FROM "archbishops" WHERE "ordained_bishop"='november 30, 1925'; |
## Task
Generate a SQL query to answer the following question:
`When was the archbishop that was ordained as a bishop on November 30, 1925 born?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordai... |
SELECT "ordained_bishop" FROM "archbishops" WHERE "born"='february 22, 1825'; |
## Task
Generate a SQL query to answer the following question:
`When was the archbishop that was born on February 22, 1825 ordained as a bishop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "archbishops" (
"archbishop" text,
"born" text,
"ordai... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='pat barry'; |
## Task
Generate a SQL query to answer the following question:
`Which event was against Pat Barry?`
### 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,
"event"... |
SELECT "event" FROM "athletics" WHERE "200_m">922; |
## Task
Generate a SQL query to answer the following question:
`What event is 200m larger than 922?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "athletics" (
"athlete" text,
"event" text,
"100_h" real,
"200_m" real,
"800_m" text,
"final"... |
SELECT "player" FROM "second_round" WHERE "score"='71-71=142'; |
## Task
Generate a SQL query to answer the following question:
`What Player has a Score of 71-71=142?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
... |
SELECT "to_par" FROM "second_round" WHERE "place"='t9' AND "player"='ernie els'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par of T9 Place Player Ernie Els?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_pa... |
SELECT "score" FROM "second_round" WHERE "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Player from South Africa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_... |
SELECT "place" FROM "second_round" WHERE "score"='70-71=141'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 70-71=141?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text... |
SELECT "date" FROM "pool_f" WHERE "set_1"='25β20'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Set 1 of 25β20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_f" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"... |
SELECT "score" FROM "pool_f" WHERE "total"='80β72'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Total of 80β72?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_f" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
... |
SELECT "date" FROM "pool_f" WHERE "set_1"='21β25'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Set 1 of 21β25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_f" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"... |
SELECT "set_2" FROM "pool_f" WHERE "set_3"='25β20' AND "time"='13:45'; |
## Task
Generate a SQL query to answer the following question:
`Which Set 2 has a Set 3 of 25β20, and a Time of 13:45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_f" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" tex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.