instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29
Write a SQL query that answers the following question: How many carries for jeff smoker?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (car INTEGER, player VARCHAR)
SELECT SUM(car) FROM table_name_54 WHERE player = "jeff smoker"
Write a SQL query that answers the following question: How many average carries for the player with 3 as a long?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (car INTEGER, long VARCHAR)
SELECT AVG(car) FROM table_name_58 WHERE long = "3"
Write a SQL query that answers the following question: who is the home team when tie no is less than 7 and the away team is havant & waterlooville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_24 WHERE tie_no < 7 AND away_team = "havant & waterlooville"
Write a SQL query that answers the following question: What is the Score in the final with an Outcome with runner-up, and a Date with 1970?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_95 WHERE outcome = "runner-up" AND date = 1970
Write a SQL query that answers the following question: What is the Tournament with a Opponents in the final with rod laver fred stolle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = "rod laver fred stolle"
Write a SQL query that answers the following question: What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart"
Write a SQL query that answers the following question: What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (partner VARCHAR, opponents_in_the_final VARCHAR, date VARCHAR)
SELECT partner FROM table_name_31 WHERE opponents_in_the_final = "roy emerson rod laver" AND date < 1975
Write a SQL query that answers the following question: Which driver has 45 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_92 WHERE laps = 45
Write a SQL query that answers the following question: Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT time_retired FROM table_name_16 WHERE grid < 9 AND constructor = "ferrari" AND driver = "rubens barrichello"
Write a SQL query that answers the following question: Who was the home team when the away team was Footscray?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_55 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What was the date of the game where North Melbourne was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: Which away team played at Kardinia Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_35 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: Namem the number of cities that contains Voivodeship of elbląg voivodeship
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (no_of_cities VARCHAR, voivodeship VARCHAR)
SELECT no_of_cities FROM table_name_38 WHERE voivodeship = "elbląg voivodeship"
Write a SQL query that answers the following question: How many people in 1991 have a Village (German) of rupertiberg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (number_of_people_1991 VARCHAR, village__german_ VARCHAR)
SELECT COUNT(number_of_people_1991) FROM table_name_72 WHERE village__german_ = "rupertiberg"
Write a SQL query that answers the following question: What was the score on October 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_64 WHERE date = "october 30"
Write a SQL query that answers the following question: What was the attendance on October 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_78 WHERE date = "october 6"
Write a SQL query that answers the following question: What was the record on October 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_41 WHERE date = "october 24"
Write a SQL query that answers the following question: Who was the visitor on October 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_85 WHERE date = "october 20"
Write a SQL query that answers the following question: Name the smoke point for monosaturated fat of 30g
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (smoke_point VARCHAR, monounsaturated_fat VARCHAR)
SELECT smoke_point FROM table_name_25 WHERE monounsaturated_fat = "30g"
Write a SQL query that answers the following question: Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = "100g" AND monounsaturated_fat = "20g (84g in high oleic variety)"
Write a SQL query that answers the following question: Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR)
SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g"
Write a SQL query that answers the following question: Name the polyunsaturated fat with a saturated fat of 25g
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (polyunsaturated_fat VARCHAR, saturated_fat VARCHAR)
SELECT polyunsaturated_fat FROM table_name_31 WHERE saturated_fat = "25g"
Write a SQL query that answers the following question: Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT total_fat FROM table_name_60 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "45g"
Write a SQL query that answers the following question: Name the result for friendly competition on 9 october 2010
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_79 WHERE competition = "friendly" AND date = "9 october 2010"
Write a SQL query that answers the following question: Name the result for uncaf nations cup 2009 and 6 goal
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (result VARCHAR, competition VARCHAR, goal VARCHAR)
SELECT result FROM table_name_3 WHERE competition = "uncaf nations cup 2009" AND goal = 6
Write a SQL query that answers the following question: Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_2 WHERE team_2 = "la nuova piovese (veneto a)"
Write a SQL query that answers the following question: What was the 2nd leg where the team 2 was budoni (sardinia)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_4 WHERE team_2 = "budoni (sardinia)"
Write a SQL query that answers the following question: Which was the team 1 that had a team 2 which was avigliano (basilicata)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_81 WHERE team_2 = "avigliano (basilicata)"
Write a SQL query that answers the following question: How much cash was on hand after debt of $82,741?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741"
Write a SQL query that answers the following question: What was the amount of loans received with a total debt of $169,256?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (loans_received VARCHAR, _3q VARCHAR, total_debt VARCHAR)
SELECT loans_received, _3q FROM table_name_24 WHERE total_debt = "$169,256"
Write a SQL query that answers the following question: How much money was spent when the amount after debt was $1,757,936?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (money_spent VARCHAR, _3q VARCHAR, after_debt VARCHAR)
SELECT money_spent, _3q FROM table_name_19 WHERE after_debt = "$1,757,936"
Write a SQL query that answers the following question: How much is after debt when cash on hand is $651,300?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (after_debt VARCHAR, cash_on_hand VARCHAR)
SELECT after_debt FROM table_name_11 WHERE cash_on_hand = "$651,300"
Write a SQL query that answers the following question: What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (total INTEGER, bronze VARCHAR, nation VARCHAR)
SELECT MIN(total) FROM table_name_85 WHERE bronze > 0 AND nation = "france (fra)"
Write a SQL query that answers the following question: What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1
Write a SQL query that answers the following question: What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (total VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(total) FROM table_name_61 WHERE bronze < 1 AND silver < 1 AND gold < 1
Write a SQL query that answers the following question: What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (bronze INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1
Write a SQL query that answers the following question: what is the result for 11 august 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_94 WHERE date = "11 august 2010"
Write a SQL query that answers the following question: what is the result when the competition is friendly on 8 october 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_73 WHERE competition = "friendly" AND date = "8 october 2009"
Write a SQL query that answers the following question: For the group name European Progressive Democrats what is the French abbr?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR)
SELECT french_abbr FROM table_name_23 WHERE group_name = "european progressive democrats"
Write a SQL query that answers the following question: Which Livery has a Description of 20t tanker, with a date later than 1941?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (livery VARCHAR, description VARCHAR, date VARCHAR)
SELECT livery FROM table_name_32 WHERE description = "20t tanker" AND date > 1941
Write a SQL query that answers the following question: What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (description VARCHAR, livery VARCHAR, date VARCHAR, number_ VARCHAR, _name VARCHAR)
SELECT description FROM table_name_49 WHERE livery = "black" AND date < 1897 AND number_ & _name = "scottish tar distillers no. 78"
Write a SQL query that answers the following question: What was the score of the game that Washington played at home against Florida?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_23 WHERE home = "washington" AND visitor = "florida"
Write a SQL query that answers the following question: What driver has BRM as a constructor and had more than 30 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_12 WHERE constructor = "brm" AND laps > 30
Write a SQL query that answers the following question: How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (lost VARCHAR, period VARCHAR, managed VARCHAR)
SELECT COUNT(lost) FROM table_name_66 WHERE period = "12 november 2012 – 27 november 2012" AND managed > 2
Write a SQL query that answers the following question: What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR)
SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)"
Write a SQL query that answers the following question: When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (season INTEGER, margin VARCHAR, venue VARCHAR, score VARCHAR)
SELECT MIN(season) FROM table_name_46 WHERE venue = "waverley park" AND score = "15.12 (102) – 9.14 (68)" AND margin > 34
Write a SQL query that answers the following question: How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (season VARCHAR, premier VARCHAR, score VARCHAR)
SELECT COUNT(season) FROM table_name_30 WHERE premier = "essendon" AND score = "15.12 (102) – 9.14 (68)"
Write a SQL query that answers the following question: What was the date of the game at MCG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "mcg"
Write a SQL query that answers the following question: What was the date of the game where Geelong was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_18 WHERE home_team = "geelong"
Write a SQL query that answers the following question: What was the crowd size for the game where Footscray was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What is the total round with an overall of 199 with sweden?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (round INTEGER, nationality VARCHAR, overall VARCHAR)
SELECT SUM(round) FROM table_name_65 WHERE nationality = "sweden" AND overall = 199
Write a SQL query that answers the following question: What is the total for Canada during round 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (overall VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT overall FROM table_name_12 WHERE nationality = "canada" AND round = 2
Write a SQL query that answers the following question: Which team scores 119 in round 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (club_team VARCHAR, round VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_1 WHERE round = 4 AND overall = 119
Write a SQL query that answers the following question: What was the attendance at the Kings game when Anaheim was the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (attendance VARCHAR, visitor VARCHAR)
SELECT attendance FROM table_name_22 WHERE visitor = "anaheim"
Write a SQL query that answers the following question: What was the score of the Kings game when they had a record of 8–11–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_27 WHERE record = "8–11–1"
Write a SQL query that answers the following question: Name the high points for charlotte
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_name_2 WHERE team = "charlotte"
Write a SQL query that answers the following question: Name the team on february 12
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_68 WHERE date = "february 12"
Write a SQL query that answers the following question: Name the location attendance for game more than 54 on february 25
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (location_attendance VARCHAR, game VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_17 WHERE game > 54 AND date = "february 25"
Write a SQL query that answers the following question: Name the record for february 27
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_67 WHERE date = "february 27"
Write a SQL query that answers the following question: Name the team for 48 game
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_16 WHERE game = 48
Write a SQL query that answers the following question: What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (share INTEGER, viewers__m_ VARCHAR, timeslot VARCHAR)
SELECT AVG(share) FROM table_name_29 WHERE RANK(timeslot) > 3 AND viewers__m_ < 4.87
Write a SQL query that answers the following question: Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (division VARCHAR, appearances VARCHAR, conference VARCHAR, wins VARCHAR)
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18
Write a SQL query that answers the following question: How many losses did the East Division have who appeared 18 times and lost 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (wins INTEGER, appearances VARCHAR, division VARCHAR, losses VARCHAR)
SELECT MIN(wins) FROM table_name_19 WHERE division = "east" AND losses = 8 AND appearances < 18
Write a SQL query that answers the following question: How many losses did the division who appeared less than 16 times have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (losses VARCHAR, appearances INTEGER)
SELECT losses FROM table_name_95 WHERE appearances < 16
Write a SQL query that answers the following question: How many medals for spain with 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain"
Write a SQL query that answers the following question: How many silvers for finland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (silver VARCHAR, nation VARCHAR)
SELECT silver FROM table_name_48 WHERE nation = "finland"
Write a SQL query that answers the following question: How many medals for spain that has 1 silver and 1 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (total VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain"
Write a SQL query that answers the following question: What is the record when they play the canucks and have under 98 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_61 WHERE points < 98 AND opponent = "canucks"
Write a SQL query that answers the following question: How many attended the game against the sharks with over 86 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (attendance INTEGER, points VARCHAR, opponent VARCHAR)
SELECT AVG(attendance) FROM table_name_99 WHERE points > 86 AND opponent = "sharks"
Write a SQL query that answers the following question: Name the song that has a track larger than 7 and means death.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (recorded VARCHAR, track VARCHAR, translation VARCHAR)
SELECT recorded FROM table_name_83 WHERE track > 7 AND translation = "death"
Write a SQL query that answers the following question: Which track 7 title was recorded in 1959-09-15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (title VARCHAR, recorded VARCHAR, track VARCHAR)
SELECT title FROM table_name_23 WHERE recorded = "1959-09-15" AND track = 7
Write a SQL query that answers the following question: Which track translates to Flemish Women?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (track VARCHAR, translation VARCHAR)
SELECT track FROM table_name_96 WHERE translation = "flemish women"
Write a SQL query that answers the following question: What is the high capacity that has an average under 489 and a highest over 778?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (capacity INTEGER, average VARCHAR, highest VARCHAR)
SELECT MAX(capacity) FROM table_name_90 WHERE average < 489 AND highest > 778
Write a SQL query that answers the following question: On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (other_performer_s_ VARCHAR, director_s_ VARCHAR, album VARCHAR)
SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = "melina matsoukas" AND album = "loud"
Write a SQL query that answers the following question: What is the decision when vancouver is at home and winnipeg is away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (decision VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT decision FROM table_name_44 WHERE home = "vancouver" AND visitor = "winnipeg"
Write a SQL query that answers the following question: What is the record of the team from chicago?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_6 WHERE home = "chicago"
Write a SQL query that answers the following question: Where was the away team st kilda?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "st kilda"
Write a SQL query that answers the following question: Which club has 1 cap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (club_province VARCHAR, caps VARCHAR)
SELECT club_province FROM table_name_90 WHERE caps = 1
Write a SQL query that answers the following question: Which position has a club of Meralomas and a player named David Biddle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)
SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle"
Write a SQL query that answers the following question: What is the average number of caps for Meralomas with positions of centre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (caps INTEGER, club_province VARCHAR, position VARCHAR)
SELECT AVG(caps) FROM table_name_75 WHERE club_province = "meralomas" AND position = "centre"
Write a SQL query that answers the following question: Who are the scorers when the score is 9-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR)
SELECT scorers FROM table_name_4 WHERE score = "9-2"
Write a SQL query that answers the following question: What is the smallest population in a region greater than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (population INTEGER, region INTEGER)
SELECT MIN(population) FROM table_name_94 WHERE region > 9
Write a SQL query that answers the following question: What is the average area for code 98030 with population over 312?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312
Write a SQL query that answers the following question: What is the attendance on may 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_62 WHERE date = "may 28"
Write a SQL query that answers the following question: On the Date of 4 Oct 2009, who was the Runner(s)-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009"
Write a SQL query that answers the following question: On the Date of 2 Aug 2009, who was the Runner(s)-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (runner_s__up VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_52 WHERE date = "2 aug 2009"
Write a SQL query that answers the following question: Which Tournament was on the Date 6 Sep 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "6 sep 2009"
Write a SQL query that answers the following question: What was the Winning score for the Mynavi ABC Championship Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc championship"
Write a SQL query that answers the following question: What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_29 WHERE margin_of_victory = "5 strokes" AND date = "6 sep 2009"
Write a SQL query that answers the following question: Who was the Runner(s)-up on the Date 4 Oct 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (runner_s__up VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_66 WHERE date = "4 oct 2009"
Write a SQL query that answers the following question: What is the score with third place of stefan edberg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR)
SELECT score FROM table_name_33 WHERE third_place = "stefan edberg"
Write a SQL query that answers the following question: Name the runner-up for algarve tournament
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (runner_up VARCHAR, tournament VARCHAR)
SELECT runner_up FROM table_name_40 WHERE tournament = "algarve"
Write a SQL query that answers the following question: I want to know the tournament that has a third place of magnus gustafsson
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (tournament VARCHAR, third_place VARCHAR)
SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson"
Write a SQL query that answers the following question: Who was the winner when the third place was fernando meligeni?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (winner VARCHAR, third_place VARCHAR)
SELECT winner FROM table_name_11 WHERE third_place = "fernando meligeni"
Write a SQL query that answers the following question: Name the tournament for patrick rafter winning
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (tournament VARCHAR, winner VARCHAR)
SELECT tournament FROM table_name_3 WHERE winner = "patrick rafter"
Write a SQL query that answers the following question: Who was the owner in 1996 of trainer Nick Zito?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (owner VARCHAR, trainer VARCHAR, year VARCHAR)
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996"
Write a SQL query that answers the following question: What year did jockey Ramon Dominguez have a distance of 1-1/16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (year VARCHAR, distance VARCHAR, jockey VARCHAR)
SELECT year FROM table_name_40 WHERE distance = "1-1/16" AND jockey = "ramon dominguez"
Write a SQL query that answers the following question: Who was the owner of the trainer Steve Klesaris?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (owner VARCHAR, trainer VARCHAR)
SELECT owner FROM table_name_80 WHERE trainer = "steve klesaris"
Write a SQL query that answers the following question: Who is the owner of the Raglan Road winner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (owner VARCHAR, winner VARCHAR)
SELECT owner FROM table_name_43 WHERE winner = "raglan road"