instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Who is the Prime Minister of Antoine Wehenkel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR)
SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel"
Write a SQL query that answers the following question: What is the least amount of wins earlier than 1964 with more than 7 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR)
SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7
Write a SQL query that answers the following question: What is the least points for class 125cc with 1 win earlier than 1961?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961
Write a SQL query that answers the following question: What is the number of wins when there are 7 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR)
SELECT wins FROM table_name_6 WHERE points = 7
Write a SQL query that answers the following question: What is the least amount of points when there is 1 win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR)
SELECT MIN(points) FROM table_name_95 WHERE wins = 1
Write a SQL query that answers the following question: What club has more than 35 goals, more than 7 draws, and 20 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20
Write a SQL query that answers the following question: How many goals have more than 38 played and more than 9 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38
Write a SQL query that answers the following question: How many losses has more than 59 goals against and more than 17 position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR)
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17
Write a SQL query that answers the following question: On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR)
SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"
Write a SQL query that answers the following question: What Nationality's time is 2:07.64?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_98 WHERE time = "2:07.64"
Write a SQL query that answers the following question: What Event's Time is 4:01.00?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_4 WHERE time = "4:01.00"
Write a SQL query that answers the following question: In what Location in the United States the Time 2:25.62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (location VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT location FROM table_name_87 WHERE nationality = "united states" AND time = "2:25.62"
Write a SQL query that answers the following question: Year larger than 1975, and a Record of 13–11 is what playoffs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR)
SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–11"
Write a SQL query that answers the following question: What are the venues prior to 2005 in the World Class category that resulted in a bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (venue VARCHAR, result VARCHAR, year VARCHAR, category VARCHAR)
SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze"
Write a SQL query that answers the following question: What are the competitions that occurred before 2006 in SVK Nitra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra"
Write a SQL query that answers the following question: What are the categories of events that occurred after 2007 that were World Championships?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (category VARCHAR, year VARCHAR, competition VARCHAR)
SELECT category FROM table_name_93 WHERE year > 2007 AND competition = "world championships"
Write a SQL query that answers the following question: What was the result of events held at Nor Elverum, prior to 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR)
SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum"
Write a SQL query that answers the following question: What was the competition held in 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR)
SELECT competition FROM table_name_17 WHERE year = 2003
Write a SQL query that answers the following question: What chassis type does a scuderia ferrari with more than 1 point have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 1
Write a SQL query that answers the following question: A ferrari flat-12 engine with more than 1 point has what kind of chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1
Write a SQL query that answers the following question: What is the average year for a merzario a2 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR)
SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2"
Write a SQL query that answers the following question: What was the team's record when they played visitor team Chicago Black Hawks on November 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24"
Write a SQL query that answers the following question: What is the name of the visitor team who played home team Chicago Black Hawks on March 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20"
Write a SQL query that answers the following question: What was the team's record on November 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 12"
Write a SQL query that answers the following question: What champion has 1981 as the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR)
SELECT champion FROM table_name_33 WHERE year = "1981"
Write a SQL query that answers the following question: What date final has 1982 as the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_59 WHERE year = "1982"
Write a SQL query that answers the following question: What prize money has michelob light challenge of champions as the commercial name?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)
SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions"
Write a SQL query that answers the following question: What date final has 1989 as the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_90 WHERE year = "1989"
Write a SQL query that answers the following question: What score in final has boris becker as the champion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR)
SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker"
Write a SQL query that answers the following question: What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
Write a SQL query that answers the following question: What 1957 engine has a Chassis of connaught type b?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957
Write a SQL query that answers the following question: When was the winning score −9 (72-68-64-67=271)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_89 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271)
Write a SQL query that answers the following question: What was the margin of victory for the Mississippi Gulf Resort Classic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic"
Write a SQL query that answers the following question: What was the margin of victory when Mark Calcavecchia was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia"
Write a SQL query that answers the following question: What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
Write a SQL query that answers the following question: What was the margin of victory when the winning score was −9 (72-68-64-67=271)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_84 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271)
Write a SQL query that answers the following question: What is the average round for te position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (round INTEGER, position VARCHAR)
SELECT AVG(round) FROM table_name_65 WHERE position = "te"
Write a SQL query that answers the following question: Name the average overall for james davis
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis"
Write a SQL query that answers the following question: Name the most overall for james davis and round more than 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5
Write a SQL query that answers the following question: Name the total number of overall for villanova and round less than 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2
Write a SQL query that answers the following question: Which state is Mount Chiginagak located in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR)
SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak"
Write a SQL query that answers the following question: What were the circumstances for the Baghlan location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR)
SELECT circumstances FROM table_name_62 WHERE location = "baghlan"
Write a SQL query that answers the following question: What were the casualties in the Baghlan location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR)
SELECT casualties FROM table_name_64 WHERE location = "baghlan"
Write a SQL query that answers the following question: What was the date of natural cause situation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR)
SELECT date FROM table_name_12 WHERE circumstances = "natural cause"
Write a SQL query that answers the following question: Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR)
SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes"
Write a SQL query that answers the following question: Which Melbourne has an Auckland of no, and a Gold Coast of no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
SELECT melbourne FROM table_name_14 WHERE auckland = "no" AND gold_coast = "no"
Write a SQL query that answers the following question: Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes"
Write a SQL query that answers the following question: Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR)
SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no"
Write a SQL query that answers the following question: Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR)
SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes"
Write a SQL query that answers the following question: Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"
Write a SQL query that answers the following question: Who is the owner of RSS Racing that driver Ryan Sieg belongs to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR)
SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg"
Write a SQL query that answers the following question: Parts Plus sponsors what driver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus"
Write a SQL query that answers the following question: Who is the owner of NTS Motorsports sponsored by Qore-24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24"
Write a SQL query that answers the following question: Who is the crew chief, of driver Matt kurzejewski?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR)
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski"
Write a SQL query that answers the following question: Who is the driver that has a crew chief Gary Ritter?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
Write a SQL query that answers the following question: what is the award for the 2009 songwriter of the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR)
SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year"
Write a SQL query that answers the following question: what is the category that has the people's choice awards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR)
SELECT category FROM table_name_38 WHERE award = "people's choice awards"
Write a SQL query that answers the following question: what year has general nominated in the category or choice breakthrough artist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist"
Write a SQL query that answers the following question: What was the score on 6 February 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_35 WHERE date = "6 february 2008"
Write a SQL query that answers the following question: Which competition was held on 14 November 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_41 WHERE date = "14 november 2012"
Write a SQL query that answers the following question: What competition took place on 10 August 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_85 WHERE date = "10 august 2011"
Write a SQL query that answers the following question: What is the average Year with Chassis equalling cooper t60?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (year INTEGER, chassis VARCHAR)
SELECT AVG(year) FROM table_name_49 WHERE chassis = "cooper t60"
Write a SQL query that answers the following question: Which Chassis has an Entrant of cooper car company, and a Year of 1963?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963
Write a SQL query that answers the following question: Which Entrant has an Engine of climax straight-4, and Points larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0
Write a SQL query that answers the following question: Which tournament has hard as the surface and apr. 12, 1998 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998"
Write a SQL query that answers the following question: Which surface has wynne prakusya as the opponent in the final?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya"
Write a SQL query that answers the following question: What score has wynne prakusya as the opponent in the final?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_15 WHERE opponent_in_the_final = "wynne prakusya"
Write a SQL query that answers the following question: What tournament has nov. 21, 1999 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999"
Write a SQL query that answers the following question: Name the authority for coed gender and chanel college
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR)
SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college"
Write a SQL query that answers the following question: Name the average decile for state authority and area of fernridge
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR)
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge"
Write a SQL query that answers the following question: What was the week on October 11, 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998"
Write a SQL query that answers the following question: What is the location of the game with attendance of 63,336?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR)
SELECT game_site FROM table_name_93 WHERE attendance = "63,336"
Write a SQL query that answers the following question: What was the date of the week 13 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_96 WHERE week = 13
Write a SQL query that answers the following question: What is the Panthers' Division Record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_48 WHERE team = "panthers"
Write a SQL query that answers the following question: What is the Senators' division record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_39 WHERE team = "senators"
Write a SQL query that answers the following question: What was the record after the January 18 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_86 WHERE date = "january 18"
Write a SQL query that answers the following question: What was the record after the January 6 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_44 WHERE date = "january 6"
Write a SQL query that answers the following question: Name the former name for 49 rank
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR)
SELECT Former AS name FROM table_name_79 WHERE rank = 49
Write a SQL query that answers the following question: Which NHL team has left wing listed as the position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR)
SELECT nhl_team FROM table_name_66 WHERE position = "left wing"
Write a SQL query that answers the following question: What years does Kakahi school, with a decile of 3, have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
Write a SQL query that answers the following question: What is the average decile of Ruapehu college, which has a state authority?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college"
Write a SQL query that answers the following question: What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR)
SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8
Write a SQL query that answers the following question: On what day was Utah Blaze the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_6 WHERE opponent = "utah blaze"
Write a SQL query that answers the following question: What is the 2006 value with a 1r in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
Write a SQL query that answers the following question: What is the 2010 value with a 2r in 200r and a 3r in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (Id VARCHAR)
SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r"
Write a SQL query that answers the following question: What is the 2007 value with a 2r in 2012 and 1r in 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"
Write a SQL query that answers the following question: What is the 2004 value in the 2011 Grand Slam Tournaments?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 2004 FROM table_name_46 WHERE 2011 = "grand slam tournaments"
Write a SQL query that answers the following question: What is the 2004 value with a sf in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (Id VARCHAR)
SELECT 2004 FROM table_name_4 WHERE 2010 = "sf"
Write a SQL query that answers the following question: Name the score for 30 january 2013
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_24 WHERE date = "30 january 2013"
Write a SQL query that answers the following question: Name the result for goal # more than 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER)
SELECT result FROM table_name_92 WHERE goal__number > 4
Write a SQL query that answers the following question: What is Fred Couples to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_24 WHERE player = "fred couples"
Write a SQL query that answers the following question: What place has a score under 68?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (place VARCHAR, score INTEGER)
SELECT place FROM table_name_9 WHERE score < 68
Write a SQL query that answers the following question: Which driver won when o.m. was the winning constructor ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT winning_driver FROM table_name_96 WHERE winning_constructor = "o.m."
Write a SQL query that answers the following question: Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix"
Write a SQL query that answers the following question: What race did Meo Constantini win at the circuit of monza ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza"
Write a SQL query that answers the following question: On what date did Aymo Maggi win the Rome Grand Prix ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix"
Write a SQL query that answers the following question: Name the season outcome for smyrna
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_89 WHERE school = "smyrna"
Write a SQL query that answers the following question: Name the school for eagles
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR)
SELECT school FROM table_name_87 WHERE team = "eagles"
Write a SQL query that answers the following question: Name the school for Season Outcome of loss in first round of div. i playoffs
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (school VARCHAR, season_outcome VARCHAR)
SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs"
Write a SQL query that answers the following question: Name the division record for riders
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_28 WHERE team = "riders"