output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "college_country_team" FROM "expansion_draft_selections" WHERE "former_wnba_team"='cleveland rockers'; |
## Task
Generate a SQL query to answer the following question:
`What was the college team of the player whose former WNBA team was the Cleveland Rockers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expansion_draft_selections" (
"pick" real,
"pl... |
SELECT "nationality" FROM "expansion_draft_selections" WHERE "college_country_team"='georgia tech'; |
## Task
Generate a SQL query to answer the following question:
`What nationality was the player whose college team was Georgia Tech?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expansion_draft_selections" (
"pick" real,
"player" text,
"nation... |
SELECT "new_wnba_team" FROM "expansion_draft_selections" WHERE "pick">7; |
## Task
Generate a SQL query to answer the following question:
`What was the new WNBA team of the player selected with a pick over 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expansion_draft_selections" (
"pick" real,
"player" text,
"natio... |
SELECT "player" FROM "expansion_draft_selections" WHERE "pick"<6 AND "new_wnba_team"='minnesota lynx'; |
## Task
Generate a SQL query to answer the following question:
`Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expansion_draft_selections" (
"pick" real,
"player" text,
"... |
SELECT "country" FROM "third_round" WHERE "player"='billy ray brown'; |
## Task
Generate a SQL query to answer the following question:
`Billy Ray Brown plays for what country?`
### 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" text
);... |
SELECT "score" FROM "third_round" WHERE "country"='spain'; |
## Task
Generate a SQL query to answer the following question:
`The country of Spain has what score?`
### 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" text
);
##... |
SELECT "place" FROM "third_round" WHERE "country"='united states' AND "score"='72-70-69=211'; |
## Task
Generate a SQL query to answer the following question:
`The golfer from the United states with a score of 72-70-69=211 is in what place?`
### 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"... |
SELECT "country" FROM "third_round" WHERE "player"='jeff sluman'; |
## Task
Generate a SQL query to answer the following question:
`The golfer Jeff Sluman golfs for what country?`
### 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 "score" FROM "third_round" WHERE "country"='united states' AND "player"='mike reid'; |
## Task
Generate a SQL query to answer the following question:
`Mike Reid from the United States has what score?`
### 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 "score"='71-72-66=209'; |
## Task
Generate a SQL query to answer the following question:
`What player has 71-72-66=209 as the score?`
### 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" text... |
SELECT "to_par" FROM "third_round" WHERE "place"='7'; |
## Task
Generate a SQL query to answer the following question:
`What to par has 7 as the place?`
### 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" text
);
### SQL... |
SELECT "player" FROM "third_round" WHERE "score"='72-67-71=210'; |
## Task
Generate a SQL query to answer the following question:
`What player has 72-67-71=210 as the score?`
### 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" text... |
SELECT "to_par" FROM "third_round" WHERE "place"='t5' AND "player"='larry mize'; |
## Task
Generate a SQL query to answer the following question:
`What to par has t5 as the place, with larry mize as the player?`
### 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" ... |
SELECT "player" FROM "third_round" WHERE "place"='t5'; |
## Task
Generate a SQL query to answer the following question:
`What player has t5 as the place?`
### 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" text
);
### SQ... |
SELECT "score" FROM "third_round" WHERE "player"='fred couples'; |
## Task
Generate a SQL query to answer the following question:
`What score has fred couples as the player?`
### 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" text... |
SELECT "date" FROM "international_goals" WHERE "score"='4–0' AND "venue"='stade leopold senghor, dakar'; |
## Task
Generate a SQL query to answer the following question:
`On what Date in Stade Leopold Senghor, Dakar was the Score 4–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,
"res... |
SELECT "high_assists" FROM "game_log" WHERE "date"='april 28'; |
## Task
Generate a SQL query to answer the following question:
`Who has the highest assists on april 28?`
### 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,
"h... |
SELECT "name" FROM "men_s_indoor_tournament" WHERE "2008_club"='olympiacos'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the player from Olympiacos in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_indoor_tournament" (
"name" text,
"height" text,
"weight" text,
"spik... |
SELECT "name" FROM "men_s_indoor_tournament" WHERE "2008_club"='olympiacos'; |
## Task
Generate a SQL query to answer the following question:
`Who played for Olympiacos in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_indoor_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club"... |
SELECT "points" FROM "formula_3_results_summary" WHERE "series"='queensland formula ford championship' AND "position"='1st'; |
## Task
Generate a SQL query to answer the following question:
`What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_3_results_summary" (
"season" real,... |
SELECT "driver" FROM "formula_3_results_summary" WHERE "position"='2nd' AND "season"=2001; |
## Task
Generate a SQL query to answer the following question:
`What is Driver, when Position is 2nd, and when Season is 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_3_results_summary" (
"season" real,
"series" text,
"points" tex... |
SELECT "position" FROM "formula_3_results_summary" WHERE "series"='queensland formula ford championship' AND "season">2001 AND "points"='234'; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Series is Queensland Formula Ford Championship, when Season is after 2001, and when Points is 234?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_3_results_... |
SELECT "series" FROM "formula_3_results_summary" WHERE "season"=2007; |
## Task
Generate a SQL query to answer the following question:
`What is Series, when Season is 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_3_results_summary" (
"season" real,
"series" text,
"points" text,
"position" text,
"d... |
SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 26, 1971'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on September 26, 1971?`
### 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" ... |
SELECT "opponent" FROM "schedule" WHERE "week"<12 AND "date"='november 11, 1990'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent before week 12, on November 11, 1990?`
### 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 "date" FROM "schedule" WHERE "attendance"='76,518'; |
## Task
Generate a SQL query to answer the following question:
`Which date had an attendance of 76,518?`
### 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" text
);... |
SELECT "attendance" FROM "schedule" WHERE "result"='l 31-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game that ended with L 31-0`
### 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 MAX("year") FROM "current" WHERE "country"='morocco'; |
## Task
Generate a SQL query to answer the following question:
`What is the year for the country of Morocco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"continent" text,
"structure" text,
"height" text,
"year" real,
"country" ... |
SELECT COUNT("year") FROM "current" WHERE "country"='united arab emirates'; |
## Task
Generate a SQL query to answer the following question:
`What is the year for the United Arab Emirates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"continent" text,
"structure" text,
"height" text,
"year" real,
"country... |
SELECT MIN("year") FROM "current" WHERE "structure"='mercury city tower'; |
## Task
Generate a SQL query to answer the following question:
`What year was the Mercury City Tower?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"continent" text,
"structure" text,
"height" text,
"year" real,
"country" text
);... |
SELECT "structure" FROM "current" WHERE "country"='chile'; |
## Task
Generate a SQL query to answer the following question:
`What structure is in Chile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current" (
"continent" text,
"structure" text,
"height" text,
"year" real,
"country" text
);
### SQL
G... |
SELECT "2007_08_season" FROM "girone_b" WHERE "city"='marcianise'; |
## Task
Generate a SQL query to answer the following question:
`What 2007-08 season has marcianise as the city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_se... |
SELECT MAX("capacity") FROM "girone_b" WHERE "2007_08_season"='serie c2/c champions'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest capacity that has serie c2/c champions for the 2007-08 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" tex... |
SELECT AVG("capacity") FROM "girone_b" WHERE "city"='foligno'; |
## Task
Generate a SQL query to answer the following question:
`What is the average capacity that has foligno as the city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
... |
SELECT MAX("capacity") FROM "girone_b" WHERE "stadium"='stadio marcello torre'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest capacity that has stadio marcello torre as the stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_b" (
"club" text,
"city" text,
"stadium" text,
"c... |
SELECT "score" FROM "sixth_round_proper" WHERE "date"='10 march 1984' AND "home_team"='birmingham city'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the game where Birmingham City was the home team on 10 March 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team... |
SELECT "home_team" FROM "sixth_round_proper" WHERE "away_team"='derby county'; |
## Task
Generate a SQL query to answer the following question:
`Who played the away team Derby County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"dat... |
SELECT "home_team" FROM "sixth_round_proper" WHERE "tie_no"='2'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team that tied no 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date"... |
SELECT "score" FROM "sixth_round_proper" WHERE "home_team"='sheffield wednesday'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when Sheffield Wednesday was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"sco... |
SELECT "years_for_grizzlies" FROM "s" WHERE "position"='small forward' AND "school_club_team"='providence'; |
## Task
Generate a SQL query to answer the following question:
`Which years did the player from Providence play for the Grizzlies as small forward?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position"... |
SELECT "nationality" FROM "s" WHERE "player"='stromile swift'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Stromile Swift?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"s... |
SELECT "years_for_grizzlies" FROM "s" WHERE "school_club_team"='providence'; |
## Task
Generate a SQL query to answer the following question:
`Which years did the player from Providence play for Memphis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"player" text,
"nationality" text,
"position" text,
"years_for_gri... |
SELECT "opponent" FROM "game_log" WHERE "record"='7-1'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a record of 7-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" t... |
SELECT MIN("game") FROM "game_log" WHERE "location"='the summit'; |
## Task
Generate a SQL query to answer the following question:
`What game number was the first game played at the Summit this season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score"... |
SELECT "score" FROM "game_log" WHERE "opponent"='new york knicks'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game played against the New York Knicks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"sc... |
SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "score"='118-110'; |
## Task
Generate a SQL query to answer the following question:
`For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" te... |
SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='1962 , 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is Finish, when Year(s) Won is "1962 , 1967"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
... |
SELECT "player" FROM "made_the_cut" WHERE "to_par">6 AND "year_s_won"='1962 , 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is greater than 6, and when Year(s) Won is "1962 , 1967"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"... |
SELECT "finish" FROM "made_the_cut" WHERE "to_par"<14 AND "year_s_won"='1952 , 1963'; |
## Task
Generate a SQL query to answer the following question:
`What is Finish, when To Par is less than 14, and when Year(s) Won is "1952 , 1963"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"ye... |
SELECT MAX("to_par") FROM "made_the_cut" WHERE "year_s_won"='1962 , 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest To Par, when Year(s) Won is "1962 , 1967"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"to... |
SELECT "total" FROM "made_the_cut" WHERE "to_par"<14 AND "finish"='t12' AND "player"='julius boros'; |
## Task
Generate a SQL query to answer the following question:
`What is the Total, when To Par is less than 14, when Finish is T12, and when Player is "Julius Boros"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"c... |
SELECT MAX("number") FROM "list_of_hip_hop_albums_which_received_un" WHERE "artist"='scarface'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of artists on Scarface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hip_hop_albums_which_received_un" (
"number" real,
"artist" text,
"album" t... |
SELECT AVG("number") FROM "list_of_hip_hop_albums_which_received_un" WHERE "artist"='black milk'; |
## Task
Generate a SQL query to answer the following question:
`What is the average number for Black Milk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hip_hop_albums_which_received_un" (
"number" real,
"artist" text,
"album" text,
"... |
SELECT MIN("average_score") FROM "list_of_hip_hop_albums_which_received_un" WHERE "number"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest average for number 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hip_hop_albums_which_received_un" (
"number" real,
"artist" text,
"album" text,
"av... |
SELECT MAX("average_score") FROM "list_of_hip_hop_albums_which_received_un" WHERE "artist"='black milk'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest score for Black Milk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_hip_hop_albums_which_received_un" (
"number" real,
"artist" text,
"album" text,
"a... |
SELECT "surface" FROM "mixed_doubles_11_5_6" WHERE "partner"='piet norval'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on when Piet Norval was a partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_11_5_6" (
"outcome" text,
"year" real,
"championship" text,
... |
SELECT "surface" FROM "mixed_doubles_11_5_6" WHERE "outcome"='runner-up' AND "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`What was the surface played on when they were a runner-up in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_11_5_6" (
"outcome" text,
"year" real,
"championship"... |
SELECT "goals" FROM "regular_season" WHERE "assists">28 AND "player"='steve walker'; |
## Task
Generate a SQL query to answer the following question:
`What is Goals, when Assists is greater than 28, and when Player is Steve Walker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games"... |
SELECT AVG("games") FROM "regular_season" WHERE "player"='robert hock' AND "goals"<24; |
## Task
Generate a SQL query to answer the following question:
`What is the average Games, when Player is Robert Hock, and when Goals is less than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"... |
SELECT AVG("assists") FROM "regular_season" WHERE "club"='iserlohn roosters' AND "points"=71 AND "goals">44; |
## Task
Generate a SQL query to answer the following question:
`What is the average Assists, when Club is Iserlohn Roosters,when Points is 71, and when Goals is greater than 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"playe... |
SELECT AVG("goals") FROM "regular_season" WHERE "club"='iserlohn roosters' AND "games"<56; |
## Task
Generate a SQL query to answer the following question:
`What is the average Goals, when Club is Iserlohn Roosters, and when Games is less than 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,... |
SELECT "location" FROM "game_log" WHERE "score"='115-105'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the game with a 115-105 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"locat... |
SELECT "record" FROM "game_log" WHERE "score"='110-106'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a 110-106 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"locatio... |
SELECT "record" FROM "game_log" WHERE "game"=48; |
## Task
Generate a SQL query to answer the following question:
`What is the record of game 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" te... |
SELECT "record" FROM "game_log" WHERE "score"='110-106'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a 110-106 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"locatio... |
SELECT "score" FROM "game_log" WHERE "location"='the forum'; |
## Task
Generate a SQL query to answer the following question:
`What is the score at the forum location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "location"='tokyo , japan' AND "event"='rings: millennium combine 2'; |
## Task
Generate a SQL query to answer the following question:
`What is Method, when Location is "Tokyo , Japan", and when Event is "Rings: Millennium Combine 2"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chalid arrab'; |
## Task
Generate a SQL query to answer the following question:
`What is Method, when Opponent is "Chalid Arrab"?`
### 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" t... |
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "record"='19-25-5'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Round, when Record is "19-25-5"?`
### 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 "region" FROM "first_and_second_rounds" WHERE "host"='stanford university'; |
## Task
Generate a SQL query to answer the following question:
`Which region has Stanford University as host?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"s... |
SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='university of iowa'; |
## Task
Generate a SQL query to answer the following question:
`Which state contains the University of Iowa in the mideast region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text... |
SELECT "state" FROM "first_and_second_rounds" WHERE "city"='storrs'; |
## Task
Generate a SQL query to answer the following question:
`Which state includes the city of Storrs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state"... |
SELECT "state" FROM "first_and_second_rounds" WHERE "venue"='harry a. gampel pavilion'; |
## Task
Generate a SQL query to answer the following question:
`Which state includes the Harry A. Gampel Pavilion venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city"... |
SELECT "city" FROM "first_and_second_rounds" WHERE "state"='georgia'; |
## Task
Generate a SQL query to answer the following question:
`Which city is in Georgia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
### SQ... |
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='jason missiaen'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of rounds that had Jason Missiaen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationalit... |
SELECT "player" FROM "draft_picks" WHERE "nationality"='russia'; |
## Task
Generate a SQL query to answer the following question:
`What player is from Russia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_... |
SELECT "nationality" FROM "draft_picks" WHERE "round"=7; |
## Task
Generate a SQL query to answer the following question:
`What nationality is the pick from round 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"colle... |
SELECT "album" FROM "official_versions" WHERE "year">2008; |
## Task
Generate a SQL query to answer the following question:
`what is the album when the year is later than 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" t... |
SELECT "championship_game" FROM "record_by_conference" WHERE "num_of_bids"=4 AND "win_pct"='.600'; |
## Task
Generate a SQL query to answer the following question:
`What is the Championship Game that has 4 Bids and a .600 Win %?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record... |
SELECT "team_2" FROM "round_of_16" WHERE "team_1"='cobreloa'; |
## Task
Generate a SQL query to answer the following question:
`What is the team 2 with cobreloa as team 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" tex... |
SELECT "team_1" FROM "round_of_16" WHERE "2nd_leg"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the team 1 with a 3-0 2nd leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
... |
SELECT "team_1" FROM "round_of_16" WHERE "2nd_leg"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the team 1 with a 2-1 2nd leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
... |
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "round"<6 AND "overall">153; |
## Task
Generate a SQL query to answer the following question:
`How many picks had a round smaller than 6 and an overall bigger than 153?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real... |
SELECT AVG("attendance") FROM "2008_09_partick_thistle_f_c_season" WHERE "opponent"='airdrie united' AND "date"='31 january 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance on 31 January 2009 when the opponent was Airdrie United?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_09_partick_thistle_f_c_season" (
"date" text,
"opp... |
SELECT "venue" FROM "2008_09_partick_thistle_f_c_season" WHERE "date"='14 february 2009'; |
## Task
Generate a SQL query to answer the following question:
`In what venue was the event held on 14 February 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_09_partick_thistle_f_c_season" (
"date" text,
"opponent" text,
"venue" text... |
SELECT "result" FROM "2008_09_partick_thistle_f_c_season" WHERE "attendance">'3,303' AND "venue"='firhill' AND "date"='20 september 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the event on 20 September 2008, held at the Firhill venue, at which more than 3,303 were in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_09_parti... |
SELECT AVG("attendance") FROM "2008_09_partick_thistle_f_c_season" WHERE "venue"='palmerston park'; |
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for all events held at Palmerston Park venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_09_partick_thistle_f_c_season" (
"date" text,
"opponen... |
SELECT COUNT("t_m") FROM "comparison_with_other_technologies" WHERE "technology"='u c-si'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of t (µm), when Technology is u c-si?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_with_other_technologies" (
"technology" text,
"pct" real,
"v... |
SELECT "v_oc_v" FROM "comparison_with_other_technologies" WHERE "t_m">5 AND "i_sc_a"='0.8'; |
## Task
Generate a SQL query to answer the following question:
`What is the V OC (V), when t (µm) is greater than 5, and when I SC (A) is 0.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_with_other_technologies" (
"technology" text,
... |
SELECT SUM("t_m") FROM "comparison_with_other_technologies" WHERE "technology"='mj'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of t (µm), when Technology is MJ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_with_other_technologies" (
"technology" text,
"pct" real,
"v_oc_v" text,
... |
SELECT "w_m" FROM "comparison_with_other_technologies" WHERE "pct">16.5 AND "technology"='mj'; |
## Task
Generate a SQL query to answer the following question:
`What is W/m², when η (%) is greater than 16.5, and when Technology is MJ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_with_other_technologies" (
"technology" text,
"pct"... |
SELECT "type" FROM "references" WHERE "location"='stanley'; |
## Task
Generate a SQL query to answer the following question:
`What type of Bridge is in Stanley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"listed" text,
"location" text,
"county" text,
"type" text
);
### SQ... |
SELECT "type" FROM "references" WHERE "name"='colton''s crossing bridge'; |
## Task
Generate a SQL query to answer the following question:
`What type of bridge is Colton's Crossing Bridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"listed" text,
"location" text,
"county" text,
"type" ... |
SELECT "name" FROM "references" WHERE "type"='pratt pony through truss'; |
## Task
Generate a SQL query to answer the following question:
`What bridge is a pratt pony through truss tyoe bridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"listed" text,
"location" text,
"county" text,
"... |
SELECT "type" FROM "references" WHERE "location"='cooperstown'; |
## Task
Generate a SQL query to answer the following question:
`What type of bridge is in Cooperstown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"listed" text,
"location" text,
"county" text,
"type" text
);
##... |
SELECT "name" FROM "references" WHERE "location"='mcville'; |
## Task
Generate a SQL query to answer the following question:
`What bridge is in Mcville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"listed" text,
"location" text,
"county" text,
"type" text
);
### SQL
Given ... |
SELECT "tracking_method" FROM "free_open_source_floss" WHERE "supported_databases"='mysql' AND "name"='open web analytics'; |
## Task
Generate a SQL query to answer the following question:
`Which tracking method supports MySQL databases and is named Open Web Analytics?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "free_open_source_floss" (
"name" text,
"platform" text,
... |
SELECT "tracking_method" FROM "free_open_source_floss" WHERE "latest_stable_release"='2.23-05'; |
## Task
Generate a SQL query to answer the following question:
`Which tracking method has a latest stable release of 2.23-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "free_open_source_floss" (
"name" text,
"platform" text,
"supported_datab... |
SELECT "latest_stable_release" FROM "free_open_source_floss" WHERE "name"='crawltrack'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest stable release date for Crawltrack?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "free_open_source_floss" (
"name" text,
"platform" text,
"supported_databases" t... |
SELECT "tracking_method" FROM "free_open_source_floss" WHERE "latest_stable_release"='6.0'; |
## Task
Generate a SQL query to answer the following question:
`Which tracking method has a latest stable release of 6.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "free_open_source_floss" (
"name" text,
"platform" text,
"supported_databases... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.