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