answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT state FROM table_name_67 WHERE host = "university of california, los angeles"
CREATE TABLE table_name_67 (state VARCHAR, host VARCHAR)
What state has the University of California, Los Angeles?
SELECT region FROM table_name_37 WHERE state = "california" AND host = "university of california, los angeles"
CREATE TABLE table_name_37 (region VARCHAR, state VARCHAR, host VARCHAR)
What region does the University of California, Los Angeles play in?
SELECT venue FROM table_name_58 WHERE state = "california" AND city = "santa barbara"
CREATE TABLE table_name_58 (venue VARCHAR, state VARCHAR, city VARCHAR)
What venue is in Santa Barbara, California?
SELECT venue FROM table_name_19 WHERE state = "colorado"
CREATE TABLE table_name_19 (venue VARCHAR, state VARCHAR)
What Venue is in Colorado?
SELECT city FROM table_name_46 WHERE venue = "mackey arena"
CREATE TABLE table_name_46 (city VARCHAR, venue VARCHAR)
What city is Mackey Arena in?
SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry"
CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR)
What lane is David Carry in heat 1?
SELECT opponent FROM table_name_29 WHERE week > 9 AND game_site = "rich stadium"
CREATE TABLE table_name_29 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
Who is the opponent after week 9 at rich stadium?
SELECT attendance FROM table_name_54 WHERE date = "1997-12-14"
CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)
What was the attendance on 1997-12-14?
SELECT COUNT(week) FROM table_name_93 WHERE opponent = "minnesota vikings" AND attendance < 68 OFFSET 431
CREATE TABLE table_name_93 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?
SELECT MIN(attendance) FROM table_name_37 WHERE week < 10 AND date = "november 12, 1967"
CREATE TABLE table_name_37 (attendance INTEGER, week VARCHAR, date VARCHAR)
What is the lowest attendance for a game before 10 weeks on November 12, 1967
SELECT MIN(injured) FROM table_name_49 WHERE place = "mayurbhanj, odisha" AND killed < 1
CREATE TABLE table_name_49 (injured INTEGER, place VARCHAR, killed VARCHAR)
What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?
SELECT away_team FROM table_name_96 WHERE home_team = "carlton"
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
Which Away team has Carlton for it's Home team?
SELECT venue FROM table_name_3 WHERE home_team = "footscray"
CREATE TABLE table_name_3 (venue VARCHAR, home_team VARCHAR)
Which Venue has Footscray as it's Home team?
SELECT home_team FROM table_name_69 WHERE away_team = "richmond"
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
What home team has Richmond listed as their Away team?
SELECT SUM(crowd) FROM table_name_18 WHERE home_team = "south melbourne"
CREATE TABLE table_name_18 (crowd INTEGER, home_team VARCHAR)
What is the number of the crowd for the home team of South Melbourne?
SELECT away_team AS score FROM table_name_16 WHERE home_team = "footscray"
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
What is the away team score for the home team listed as Footscray?
SELECT venue FROM table_name_26 WHERE crowd > 33 OFFSET 642
CREATE TABLE table_name_26 (venue VARCHAR, crowd INTEGER)
Which venue exceeded a crowd size of 33,642?
SELECT attendance FROM table_name_63 WHERE game_site = "the meadowlands" AND opponent = "new england patriots"
CREATE TABLE table_name_63 (attendance VARCHAR, game_site VARCHAR, opponent VARCHAR)
What was the attendance at the Meadowlands against the New England Patriots?
SELECT game_site FROM table_name_8 WHERE attendance = "78,722"
CREATE TABLE table_name_8 (game_site VARCHAR, attendance VARCHAR)
What game did Jets have an attendance of 78,722?
SELECT opponent FROM table_name_22 WHERE date = "october 2, 2005"
CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR)
Who played the Rams on October 2, 2005?
SELECT attendance FROM table_name_82 WHERE date = "december 11, 2005"
CREATE TABLE table_name_82 (attendance VARCHAR, date VARCHAR)
What was the attendance of the game on December 11, 2005?
SELECT result FROM table_name_19 WHERE attendance = "65,473"
CREATE TABLE table_name_19 (result VARCHAR, attendance VARCHAR)
What was the result of the game played in front of 65,473?
SELECT COUNT(crowd) FROM table_name_10 WHERE home_team = "carlton"
CREATE TABLE table_name_10 (crowd VARCHAR, home_team VARCHAR)
How large was the crowd at Carlton's home game?
SELECT home_team AS score FROM table_name_59 WHERE home_team = "st kilda"
CREATE TABLE table_name_59 (home_team VARCHAR)
What was the score when St Kilda played as the home team?
SELECT SUM(crowd) FROM table_name_49 WHERE venue = "windy hill"
CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)
What was the crowd when the VFL played Windy Hill?
SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton"
CREATE TABLE table_name_86 (away_team VARCHAR)
What was Carlton's score when they were the away team?
SELECT away_team FROM table_name_9 WHERE venue = "corio oval"
CREATE TABLE table_name_9 (away_team VARCHAR, venue VARCHAR)
What was the away team that played at Corio Oval?
SELECT home_team FROM table_name_9 WHERE away_team = "hawthorn"
CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR)
Which Home team faced the Away team, Hawthorn?
SELECT home_team AS score FROM table_name_95 WHERE venue = "mcg"
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
What was the Home team's score when the Venue was mcg?
SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = "round of 16" AND season > 2012
CREATE TABLE table_name_9 (division VARCHAR, fa_cup VARCHAR, season VARCHAR)
What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup?
SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8
CREATE TABLE table_name_36 (division VARCHAR, tms VARCHAR, pos VARCHAR)
What is the division in the season with 13 tms and pos smaller than 8?
SELECT date FROM table_name_88 WHERE week < 3 AND attendance > 65 OFFSET 904
CREATE TABLE table_name_88 (date VARCHAR, week VARCHAR, attendance VARCHAR)
Of the games before week 3 which had attendance great than 65,904?
SELECT MIN(week) FROM table_name_31 WHERE attendance = 65 OFFSET 866
CREATE TABLE table_name_31 (week INTEGER, attendance VARCHAR)
What was the first week to have attendance of 65,866?
SELECT location FROM table_name_23 WHERE current_conference = "ssac" AND institution = "belhaven college"
CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR)
Where is the Belhaven College SSAC conference location?
SELECT institution FROM table_name_87 WHERE founded > 1883 AND current_conference = "american southwest"
CREATE TABLE table_name_87 (institution VARCHAR, founded VARCHAR, current_conference VARCHAR)
What American Southwest Conference school was founded in 1883?
SELECT league FROM table_name_20 WHERE attendance_average = "7,975"
CREATE TABLE table_name_20 (league VARCHAR, attendance_average VARCHAR)
Which League showed 7,975 for an average attendance?
SELECT attendance_average FROM table_name_68 WHERE reg_season = "2nd aisa, 24-16"
CREATE TABLE table_name_68 (attendance_average VARCHAR, reg_season VARCHAR)
What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16?
SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia
CREATE TABLE table_name_75 (group_vI VARCHAR, group_iII VARCHAR, valencia VARCHAR, group_i VARCHAR, group_iV VARCHAR, sevilla VARCHAR)
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?
SELECT group_iII FROM table_name_99 WHERE group_i = "racing club"
CREATE TABLE table_name_99 (group_iII VARCHAR, group_i VARCHAR)
Who won group III when group 1 was of the racing club?
SELECT team FROM table_name_7 WHERE rider = "john williams"
CREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR)
Which team is John Williams a rider for?
SELECT COUNT(crowd) FROM table_name_96 WHERE home_team = "geelong"
CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR)
How big was the crowd when Geelong was the home team?
SELECT away_team AS score FROM table_name_23 WHERE home_team = "hawthorn"
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
Who was the away team when Hawthorn was the home team?
SELECT AVG(total) FROM table_name_96 WHERE lecturers = 6 AND professors < 48
CREATE TABLE table_name_96 (total INTEGER, lecturers VARCHAR, professors VARCHAR)
What is the total in the case where theere are 6 lecturers and fewer than 48 professors?
SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40
CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81
CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
SELECT MAX(associate_professors) FROM table_name_29 WHERE assistant_professors > 5 AND professors < 14
CREATE TABLE table_name_29 (associate_professors INTEGER, assistant_professors VARCHAR, professors VARCHAR)
What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
SELECT origin_of_programming FROM table_name_85 WHERE network = "banglavision"
CREATE TABLE table_name_85 (origin_of_programming VARCHAR, network VARCHAR)
Which country has the banglavision Network?
SELECT service FROM table_name_96 WHERE origin_of_programming = "india" AND genre = "general" AND network = "zee variasi"
CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
Which general service in India is a part of the zee variasi network?
SELECT sliding_tackle FROM table_name_3 WHERE dump_tackle = "no" AND shoulder_charge = "restricted"
CREATE TABLE table_name_3 (sliding_tackle VARCHAR, dump_tackle VARCHAR, shoulder_charge VARCHAR)
Which sliding tackle has no dump tackle and a restricted shoulder charge?
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes"
CREATE TABLE table_name_49 (bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR)
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
SELECT body_tackle FROM table_name_56 WHERE diving_tackle = "yes" AND sliding_tackle = "classified as a trip"
CREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR)
Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?
SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = "no"
CREATE TABLE table_name_76 (chicken_wing VARCHAR, steal_intercept_ball VARCHAR)
Which Chicken wing has no steal/intercept ball?
SELECT steal_intercept_ball FROM table_name_37 WHERE sliding_tackle = "no" AND dump_tackle = "no"
CREATE TABLE table_name_37 (steal_intercept_ball VARCHAR, sliding_tackle VARCHAR, dump_tackle VARCHAR)
Which steal/intercept ball has no for both the sliding tackle and dump tackle?
SELECT shoulder_charge FROM table_name_45 WHERE body_tackle = "restricted"
CREATE TABLE table_name_45 (shoulder_charge VARCHAR, body_tackle VARCHAR)
Which shoulder charge has restricted as the body tackle?
SELECT player FROM table_name_11 WHERE school_country = "west virginia"
CREATE TABLE table_name_11 (player VARCHAR, school_country VARCHAR)
Which player has West Virginia listed as their school/country?
SELECT AVG(crowd) FROM table_name_41 WHERE home_team = "fitzroy"
CREATE TABLE table_name_41 (crowd INTEGER, home_team VARCHAR)
What is the average crowd size when fitzroy plays at home?
SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871
CREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER)
What is the result of the election with 3,871 total votes?
SELECT MIN(_number_of_bids) FROM table_name_47 WHERE conference = "missouri valley"
CREATE TABLE table_name_47 (_number_of_bids INTEGER, conference VARCHAR)
What is the lowest number of bids in the Missouri Valley conference?
SELECT attendance FROM table_name_3 WHERE date = "bye"
CREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR)
What was the attendance on the bye week?
SELECT MAX(week) FROM table_name_58 WHERE result = "bye"
CREATE TABLE table_name_58 (week INTEGER, result VARCHAR)
What was the last week when the team had a bye week?
SELECT venue FROM table_name_89 WHERE away_team = "north melbourne"
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
Where was the game held where North Melbourne was the away team?
SELECT MIN(crowd) FROM table_name_47 WHERE home_team = "richmond"
CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR)
What was the smallest crowd size for a home game for Richmond?
SELECT date FROM table_name_98 WHERE opponent = "green bay packers"
CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR)
When did the 1966 Cleveland Browns play the Green Bay Packers?
SELECT home_team AS score FROM table_name_26 WHERE home_team = "south melbourne"
CREATE TABLE table_name_26 (home_team VARCHAR)
How many points did South Melbourne score as the home team?
SELECT date FROM table_name_49 WHERE home_team = "footscray"
CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR)
On what date was the home team Footscray?
SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12
CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
SELECT COUNT(goals_for) FROM table_name_80 WHERE club = "lokomotiv plovdiv" AND goals_against > 58
CREATE TABLE table_name_80 (goals_for VARCHAR, club VARCHAR, goals_against VARCHAR)
How many goals have a Lokomotiv Plovdiv club and goals against larger than 58?
SELECT AVG(goal_difference) FROM table_name_8 WHERE club = "slavia sofia"
CREATE TABLE table_name_8 (goal_difference INTEGER, club VARCHAR)
What is the average goal difference using slavia sofia club?
SELECT AVG(played) FROM table_name_43 WHERE club = "botev plovdiv" AND wins > 11
CREATE TABLE table_name_43 (played INTEGER, club VARCHAR, wins VARCHAR)
What is the played average that has botev plovdiv as the club and wins larger than 11?
SELECT game_site FROM table_name_83 WHERE record = "bye"
CREATE TABLE table_name_83 (game_site VARCHAR, record VARCHAR)
Where did they play on their bye week?
SELECT kickoff FROM table_name_53 WHERE nflcom_recap = "recap" AND week < 17 AND game_site = "arrowhead stadium"
CREATE TABLE table_name_53 (kickoff VARCHAR, game_site VARCHAR, nflcom_recap VARCHAR, week VARCHAR)
What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium?
SELECT home_team FROM table_name_17 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
Who is the home team at brunswick street oval?
SELECT home_team AS score FROM table_name_82 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
What is the home team's score at brunswick street oval?
SELECT MAX(crowd) FROM table_name_43 WHERE away_team = "north melbourne"
CREATE TABLE table_name_43 (crowd INTEGER, away_team VARCHAR)
Which match had the largest crowd size where the away team was North Melbourne?
SELECT away_team AS score FROM table_name_66 WHERE away_team = "north melbourne"
CREATE TABLE table_name_66 (away_team VARCHAR)
What was North Melbourne's score as an away team?
SELECT away_team AS score FROM table_name_9 WHERE home_team = "hawthorn"
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
What was the away team's score against Hawthorn?
SELECT away_team FROM table_name_49 WHERE home_team = "geelong"
CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR)
What was the away team that played the home team of Geelong?
SELECT MAX(week) FROM table_name_52 WHERE opponent = "green bay packers"
CREATE TABLE table_name_52 (week INTEGER, opponent VARCHAR)
Which week with Green Bay Packers as an opponent is the highest?
SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 4
CREATE TABLE table_name_11 (start INTEGER, lost VARCHAR, tries VARCHAR)
What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?
SELECT COUNT(lost) FROM table_name_19 WHERE pens < 51 AND tries = 3 AND start = 45
CREATE TABLE table_name_19 (lost VARCHAR, start VARCHAR, pens VARCHAR, tries VARCHAR)
What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts?
SELECT AVG(crowd) FROM table_name_16 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_16 (crowd INTEGER, venue VARCHAR)
What is the average crowd size at glenferrie oval?
SELECT away_team AS score FROM table_name_16 WHERE away_team = "geelong"
CREATE TABLE table_name_16 (away_team VARCHAR)
What is the away team's score when the away team is geelong?
SELECT MAX(crowd) FROM table_name_98 WHERE home_team = "melbourne"
CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR)
What is the largest crowd when melbourne plays at home?
SELECT championship_game FROM table_name_63 WHERE conference = "southwest"
CREATE TABLE table_name_63 (championship_game VARCHAR, conference VARCHAR)
What was the championship game for the Southwest conference?
SELECT manager FROM table_name_29 WHERE captain = "sol campbell"
CREATE TABLE table_name_29 (manager VARCHAR, captain VARCHAR)
Which manager has Sol Campbell as captain?
SELECT team FROM table_name_52 WHERE shirt_sponsor = "carlsberg"
CREATE TABLE table_name_52 (team VARCHAR, shirt_sponsor VARCHAR)
What team does Carlsberg sponsor?
SELECT shirt_sponsor FROM table_name_74 WHERE team = "middlesbrough"
CREATE TABLE table_name_74 (shirt_sponsor VARCHAR, team VARCHAR)
Who sponsors Middlesbrough?
SELECT shirt_sponsor FROM table_name_23 WHERE manager = "mark hughes"
CREATE TABLE table_name_23 (shirt_sponsor VARCHAR, manager VARCHAR)
Which sponsor has Mark Hughes as manager?
SELECT kit_maker FROM table_name_42 WHERE team = "aston villa"
CREATE TABLE table_name_42 (kit_maker VARCHAR, team VARCHAR)
Which kit maker does Aston Villa use?
SELECT captain FROM table_name_9 WHERE team = "portsmouth"
CREATE TABLE table_name_9 (captain VARCHAR, team VARCHAR)
Who captains Portsmouth?
SELECT event FROM table_name_98 WHERE location = "brighton, uk"
CREATE TABLE table_name_98 (event VARCHAR, location VARCHAR)
What bombing happened in Brighton, UK?
SELECT result FROM table_name_50 WHERE score = "3–0"
CREATE TABLE table_name_50 (result VARCHAR, score VARCHAR)
What result had a score of 3–0?
SELECT result FROM table_name_74 WHERE venue = "suwon world cup stadium , suwon , south korea" AND score = "3–0"
CREATE TABLE table_name_74 (result VARCHAR, venue VARCHAR, score VARCHAR)
For the venue of suwon world cup stadium , suwon , south korea and a Score of 3–0 what is the result?
SELECT MAX(goal) FROM table_name_39 WHERE result = "2–3"
CREATE TABLE table_name_39 (goal INTEGER, result VARCHAR)
What is the top goal for the result of 2–3?
SELECT MIN(year) FROM table_name_7 WHERE time = "12:49:08"
CREATE TABLE table_name_7 (year INTEGER, time VARCHAR)
When was the time of 12:49:08 first set?
SELECT date FROM table_name_90 WHERE attendance = "77,918"
CREATE TABLE table_name_90 (date VARCHAR, attendance VARCHAR)
What was the date when the attendance was 77,918?
SELECT attendance FROM table_name_6 WHERE game_site = "georgia dome"
CREATE TABLE table_name_6 (attendance VARCHAR, game_site VARCHAR)
What was the attendance of the game played in the Georgia Dome?
SELECT date FROM table_name_89 WHERE attendance = "73,529"
CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR)
What was the date when the attendance was 73,529?
SELECT away_team FROM table_name_75 WHERE venue = "western oval"
CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR)
What away team played at Western Oval?
SELECT MIN(crowd) FROM table_name_95 WHERE home_team = "footscray"
CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR)
What was the smallest crowd when Footscray played at home?