instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What did the team score when playing at home in victoria park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park"
Write a SQL query that answers the following question: What did st kilda score at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: Which team plays home in western oval venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_16 WHERE venue = "western oval"
Write a SQL query that answers the following question: When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland"
Write a SQL query that answers the following question: How many laps does peter arundell have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_65 WHERE driver = "peter arundell"
Write a SQL query that answers the following question: Which driver has a grid value larger than 11, and drove more than 52 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52
Write a SQL query that answers the following question: What is the crowd for away team of north melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_16 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: What is the date when the away team is essendon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_93 WHERE away_team = "essendon"
Write a SQL query that answers the following question: Name the visitor from vancouver on february 24
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24"
Write a SQL query that answers the following question: Which description is dated 1962?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR)
SELECT description FROM table_name_56 WHERE date = "1962"
Write a SQL query that answers the following question: Moorabbin oval is home to what team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval"
Write a SQL query that answers the following question: Who was the leader at the summit for the race in 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (leader_at_the_summit VARCHAR, year VARCHAR)
SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005
Write a SQL query that answers the following question: What is the sum of the stages for category 1 races after the year 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (stage INTEGER, category VARCHAR, year VARCHAR)
SELECT SUM(stage) FROM table_name_73 WHERE category = "1" AND year > 2003
Write a SQL query that answers the following question: What is the stadium of melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (record VARCHAR, decision VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_42 WHERE decision = "backstrom" AND attendance > 18 OFFSET 568
Write a SQL query that answers the following question: For Getafe CF, what is the highest number of goals scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR)
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf"
Write a SQL query that answers the following question: For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR)
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06
Write a SQL query that answers the following question: For averages of 1.58 and matches under 38, what is the average number of goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR)
SELECT AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38
Write a SQL query that answers the following question: Which Ranking has a Season of 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR)
SELECT ranking FROM table_name_14 WHERE season = "2009"
Write a SQL query that answers the following question: Which Champions have a Runner-up of tobol, and a Coeff of 1.125?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR)
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125"
Write a SQL query that answers the following question: Which Champion has a Coeff of 1.000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR)
SELECT champions FROM table_name_85 WHERE coeff = "1.000"
Write a SQL query that answers the following question: what is the game for 23 april when batting 2nd is england 5/113 (19)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR)
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)"
Write a SQL query that answers the following question: what is the game when batting 2nd is new zealand 6/133 (18)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR)
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (18)"
Write a SQL query that answers the following question: what is the game when the result is new zealand by 4 wickets?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (game INTEGER, result VARCHAR)
SELECT MAX(game) FROM table_name_25 WHERE result = "new zealand by 4 wickets"
Write a SQL query that answers the following question: who is batting 1st in game 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR)
SELECT batting_1st FROM table_name_20 WHERE game = 8
Write a SQL query that answers the following question: What is the playoffs 2 result of season 2010-11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR)
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11"
Write a SQL query that answers the following question: What is the playoffs 1 result of season 2004-05?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR)
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05"
Write a SQL query that answers the following question: Which Grid did Alain Prost drive on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR)
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost"
Write a SQL query that answers the following question: What was Riccardo Patrese's time/retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese"
Write a SQL query that answers the following question: How many rounds did geoff lees drive with chassis of n180?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees"
Write a SQL query that answers the following question: What is the tyres for Didier pironi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR)
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"
Write a SQL query that answers the following question: Who was the constructor of the car that Jan Lammers made 7-14 rounds in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR)
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14"
Write a SQL query that answers the following question: What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6"
Write a SQL query that answers the following question: Which Competition has a Venue of Seoul, and Result of 4-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR)
SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1"
Write a SQL query that answers the following question: What's the Result listed that has a Date of June 12, 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_76 WHERE date = "june 12, 1997"
Write a SQL query that answers the following question: What's the Score listed that has a Result of 1-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_70 WHERE result = "1-0"
Write a SQL query that answers the following question: What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993"
Write a SQL query that answers the following question: Which Competition had a Result of 3-0 and VEnue of Suwon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (competition VARCHAR, result VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon"
Write a SQL query that answers the following question: What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (result VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok"
Write a SQL query that answers the following question: Who had the decision with boston at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_34 WHERE home = "boston"
Write a SQL query that answers the following question: Who is the home team that played at MCG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
Write a SQL query that answers the following question: What is the score of the away team that played richmond?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_27 WHERE home_team = "richmond"
Write a SQL query that answers the following question: What is the score for the game that Colin Fleming Scott Lipsky played in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (score VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_5 WHERE opponents = "colin fleming scott lipsky"
Write a SQL query that answers the following question: Which tournament was Dieter Kindlmann a partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"
Write a SQL query that answers the following question: When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER)
SELECT MIN(goals) FROM table_name_33 WHERE apps < 22
Write a SQL query that answers the following question: What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR)
SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1
Write a SQL query that answers the following question: What is the average crowd at victoria park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_1 WHERE venue = "victoria park"
Write a SQL query that answers the following question: What is the Away team score with north melbourne as home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (general_classification VARCHAR, stage VARCHAR, mountains_classification VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)
SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = "mapei-bricobi" AND points_classification = "mariano piccoli" AND mountains_classification = "marco pantani" AND stage = "22"
Write a SQL query that answers the following question: Who was the winner in stage 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (winner VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_49 WHERE stage = "3"
Write a SQL query that answers the following question: Which state was first elected in 1914, and a Member of edward jolley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley"
Write a SQL query that answers the following question: Which state is frederick bamford a member of?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
SELECT state FROM table_name_24 WHERE member = "frederick bamford"
Write a SQL query that answers the following question: Which first election for the labor party is James Sharpe a part of?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
Write a SQL query that answers the following question: Which party is sydney sampson a member of?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (party VARCHAR, member VARCHAR)
SELECT party FROM table_name_10 WHERE member = "sydney sampson"
Write a SQL query that answers the following question: What position for doug gibson with 2 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)
SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson"
Write a SQL query that answers the following question: How many receptions does Chris Watton with yards of less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (rec VARCHAR, player VARCHAR, yards VARCHAR)
SELECT COUNT(rec) FROM table_name_84 WHERE player = "chris watton" AND yards < 1
Write a SQL query that answers the following question: What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (the_american VARCHAR, total_games VARCHAR, years VARCHAR, tied VARCHAR)
SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022
Write a SQL query that answers the following question: Who was the away team when Melbourne was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_35 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What is the Away team score for Away team North Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_13 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: Which Away team is associated with the Richmond Home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_13 WHERE home_team = "richmond"
Write a SQL query that answers the following question: What is the birth date of the member with the Defining characteristic of pink hair?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (birthdate VARCHAR, defining_characteristics VARCHAR)
SELECT birthdate FROM table_name_63 WHERE defining_characteristics = "pink hair"
Write a SQL query that answers the following question: Who is the person with the defining characteristic of the shortest band member?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR)
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
Write a SQL query that answers the following question: What is the name of the member with a costume Role of monster?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (name VARCHAR, costume_role VARCHAR)
SELECT name FROM table_name_9 WHERE costume_role = "monster"
Write a SQL query that answers the following question: What was the final score for the match played in Venue H and the opponent was Newcastle United?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
Write a SQL query that answers the following question: What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5
Write a SQL query that answers the following question: How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3
Write a SQL query that answers the following question: What is the largest total for a nation with 1 bronze and more than 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 1
Write a SQL query that answers the following question: What is the smallest total for a nation with more than 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (total INTEGER, silver INTEGER)
SELECT MIN(total) FROM table_name_75 WHERE silver > 1
Write a SQL query that answers the following question: What was the aggregate for a team #2 of Okk Beograd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR)
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd"
Write a SQL query that answers the following question: What was the 2nd leg score for Chemie Halle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle"
Write a SQL query that answers the following question: What was South Melbourne's score as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What was the attendance when Geelong played as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_70 WHERE away_team = "geelong"
Write a SQL query that answers the following question: Where did Footscray play as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_27 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What was the attendance when the Arden Street Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_54 WHERE venue = "arden street oval"
Write a SQL query that answers the following question: What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20
Write a SQL query that answers the following question: Which pick's player was Marc Lewis (lhp)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_name_76 WHERE player = "marc lewis (lhp)"
Write a SQL query that answers the following question: Which is the biggest pick for Naperville Central High School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (pick INTEGER, school VARCHAR)
SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school"
Write a SQL query that answers the following question: What is the media market ranking for new york, new york?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR)
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york"
Write a SQL query that answers the following question: Is it home or away when opponent is Pride with a W 11-10 result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"
Write a SQL query that answers the following question: Who is the opponent at Bishop Kearney Field?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR)
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field"
Write a SQL query that answers the following question: On what date were the opponents the Bayhawks at a home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, home_away VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_17 WHERE home_away = "home" AND opponent = "bayhawks"
Write a SQL query that answers the following question: What city or Raion (district) has 8,600 Bessarabian Bulgarians?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR)
SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600"
Write a SQL query that answers the following question: what is the Moldovans number when there are 14,200 Ukrainians?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (moldovans VARCHAR, ukrainians VARCHAR)
SELECT moldovans FROM table_name_81 WHERE ukrainians = "14,200"
Write a SQL query that answers the following question: Name the lowest reported isn for russia
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (reported_isn INTEGER, citizenship VARCHAR)
SELECT MIN(reported_isn) FROM table_name_28 WHERE citizenship = "russia"
Write a SQL query that answers the following question: Name the average reported isn for july 2007 for kuwait release of no
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (reported_isn INTEGER, on_july_2007_press_release VARCHAR, citizenship VARCHAR)
SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = "no" AND citizenship = "kuwait"
Write a SQL query that answers the following question: What is the highest region number with a 499 population?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (region INTEGER, population VARCHAR)
SELECT MAX(region) FROM table_name_10 WHERE population = 499
Write a SQL query that answers the following question: What was the series score on april 17 with minnesota at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (series VARCHAR, home VARCHAR, date VARCHAR)
SELECT series FROM table_name_52 WHERE home = "minnesota" AND date = "april 17"
Write a SQL query that answers the following question: How many attended the game on april 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"
Write a SQL query that answers the following question: Who was at home on april 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_8 WHERE date = "april 14"
Write a SQL query that answers the following question: What is the name of the away team that played Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_91 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What date was the game played at Punt Road Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "punt road oval"
Write a SQL query that answers the following question: What is the name of the home team that played against Hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: What is the home team score that played at Kardinia Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: I want the total number of Laps for Rubens Barrichello
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR)
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "rubens barrichello"
Write a SQL query that answers the following question: Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = "+0.294"
Write a SQL query that answers the following question: What is the name of the rider with a time of 1:45.52.84, and a Rank of 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (rider VARCHAR, time VARCHAR, rank VARCHAR)
SELECT rider FROM table_name_56 WHERE time = "1:45.52.84" AND rank = 8
Write a SQL query that answers the following question: What is the name of the team with a rank smaller than 5 and a time of 1:37.58.38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, rank VARCHAR, time VARCHAR)
SELECT team FROM table_name_10 WHERE rank < 5 AND time = "1:37.58.38"
Write a SQL query that answers the following question: What is the highest rank for Peter Symes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR)
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
Write a SQL query that answers the following question: What was the score for the away team at Glenferrie Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_53 WHERE venue = "glenferrie oval"
Write a SQL query that answers the following question: When was a game played where the away team is St Kilda?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "st kilda"