instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which Wins has a Country of new zealand and a Last title larger than 1968?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR)
SELECT MIN(wins) FROM table_name_25 WHERE country = "new zealand" AND last_title > 1968
Write a SQL query that answers the following question: What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (last_title VARCHAR, country VARCHAR, wins VARCHAR, first_title VARCHAR)
SELECT COUNT(last_title) FROM table_name_79 WHERE wins < 71 AND first_title > 1968 AND country = "fiji"
Write a SQL query that answers the following question: Which First title has Wins smaller than 8 and in Canada?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (first_title VARCHAR, wins VARCHAR, country VARCHAR)
SELECT COUNT(first_title) FROM table_name_41 WHERE wins < 8 AND country = "canada"
Write a SQL query that answers the following question: How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (winners INTEGER, first_title VARCHAR, wins VARCHAR, country VARCHAR)
SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = "fiji" AND first_title < 2004
Write a SQL query that answers the following question: What is the latest opened year of the team in Glasgow, Scotland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (opened INTEGER, city VARCHAR)
SELECT MAX(opened) FROM table_name_34 WHERE city = "glasgow, scotland"
Write a SQL query that answers the following question: What is the average opened year of Mini Estadi stadium in Barcelona, Spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (opened INTEGER, city VARCHAR, stadium VARCHAR)
SELECT AVG(opened) FROM table_name_62 WHERE city = "barcelona, spain" AND stadium = "mini estadi"
Write a SQL query that answers the following question: What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (winning__percentage INTEGER, lost VARCHAR, goals_for VARCHAR)
SELECT MIN(winning__percentage) FROM table_name_95 WHERE lost > 23 AND goals_for > 386
Write a SQL query that answers the following question: What is the total number of losses for teams with less than 5 ties and more than 330 goals for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (lost VARCHAR, tied VARCHAR, goals_for VARCHAR)
SELECT COUNT(lost) FROM table_name_3 WHERE tied < 5 AND goals_for > 330
Write a SQL query that answers the following question: What is the Score of the Competition with a Result of 5-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_7 WHERE result = "5-0"
Write a SQL query that answers the following question: What is the Score of the Competition with a 5-0 Result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_33 WHERE result = "5-0"
Write a SQL query that answers the following question: What is the Date of the Competition with a Score of 4-0 and 5-0 Result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (date VARCHAR, result VARCHAR, score VARCHAR)
SELECT date FROM table_name_47 WHERE result = "5-0" AND score = "4-0"
Write a SQL query that answers the following question: What is the title for YI?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_45 WHERE name = "yi"
Write a SQL query that answers the following question: What is the state Yi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (state VARCHAR, name VARCHAR)
SELECT state FROM table_name_35 WHERE name = "yi"
Write a SQL query that answers the following question: What state has the king title?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (state VARCHAR, title VARCHAR)
SELECT state FROM table_name_58 WHERE title = "king"
Write a SQL query that answers the following question: What was the score when the partner was arnaud clément?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (score VARCHAR, partner VARCHAR)
SELECT score FROM table_name_60 WHERE partner = "arnaud clément"
Write a SQL query that answers the following question: What is the Outcome when the partner was kristof vliegen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_20 WHERE partner = "kristof vliegen"
Write a SQL query that answers the following question: What is the Surface of the match with winner as outcome and a score of 7–5, 7–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (surface VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT surface FROM table_name_76 WHERE outcome = "winner" AND score = "7–5, 7–5"
Write a SQL query that answers the following question: What is the Outcome when christophe rochus was partner, on 31 july 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_38 WHERE partner = "christophe rochus" AND date = "31 july 2005"
Write a SQL query that answers the following question: What is the Opponents on a clay surface with christophe rochus as partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (opponents VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT opponents FROM table_name_57 WHERE surface = "clay" AND partner = "christophe rochus"
Write a SQL query that answers the following question: What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date VARCHAR, partner VARCHAR, score VARCHAR)
SELECT date FROM table_name_97 WHERE partner = "christophe rochus" AND score = "2–6, 7–6 (7–5) , 0–6"
Write a SQL query that answers the following question: In what City/town was their institution founded in 1860?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR)
SELECT city__town FROM table_name_34 WHERE year_founded = 1860
Write a SQL query that answers the following question: What year was Waynesburg University founded in Pennsylvania?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (year_founded VARCHAR, state__province VARCHAR, institution_name VARCHAR)
SELECT year_founded FROM table_name_82 WHERE state__province = "pennsylvania" AND institution_name = "waynesburg university"
Write a SQL query that answers the following question: What is Howard Payne University's total enrollment?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (total_enrollment VARCHAR, institution_name VARCHAR)
SELECT total_enrollment FROM table_name_67 WHERE institution_name = "howard payne university"
Write a SQL query that answers the following question: What is the To par when fredrik andersson hed was runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (to_par VARCHAR, runner_s__up VARCHAR)
SELECT to_par FROM table_name_86 WHERE runner_s__up = "fredrik andersson hed"
Write a SQL query that answers the following question: What is the Margin of victory when rhys davies was runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_34 WHERE runner_s__up = "rhys davies"
Write a SQL query that answers the following question: What is the Winning score when the To par was −21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (winning_score VARCHAR, to_par VARCHAR)
SELECT winning_score FROM table_name_21 WHERE to_par = "−21"
Write a SQL query that answers the following question: What is the Date for the wgc-accenture match play championship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_83 WHERE tournament = "wgc-accenture match play championship"
Write a SQL query that answers the following question: What is the Margin of victory on 27 feb 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (margin_of_victory VARCHAR, date VARCHAR)
SELECT margin_of_victory FROM table_name_43 WHERE date = "27 feb 2011"
Write a SQL query that answers the following question: What is the Tournament when the winning score was 65-67-68-67=267?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_70 WHERE winning_score = 65 - 67 - 68 - 67 = 267
Write a SQL query that answers the following question: Which Mission has a Apogee of 705 km?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (mission VARCHAR, apogee VARCHAR)
SELECT mission FROM table_name_3 WHERE apogee = "705 km"
Write a SQL query that answers the following question: What kind of Motor has a Apogee of 713 km?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (motor VARCHAR, apogee VARCHAR)
SELECT motor FROM table_name_98 WHERE apogee = "713 km"
Write a SQL query that answers the following question: What kind of Mission has a Apogee of 707 km?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (mission VARCHAR, apogee VARCHAR)
SELECT mission FROM table_name_47 WHERE apogee = "707 km"
Write a SQL query that answers the following question: Which Apogee has a Mission of maxus 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (apogee VARCHAR, mission VARCHAR)
SELECT apogee FROM table_name_46 WHERE mission = "maxus 3"
Write a SQL query that answers the following question: Which Mission is on 2003 apr 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (mission VARCHAR, date VARCHAR)
SELECT mission FROM table_name_21 WHERE date = "2003 apr 1"
Write a SQL query that answers the following question: What was the ranking for the episode number before 24 that had a rating of 25.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (ranking VARCHAR, ep__number VARCHAR, rating VARCHAR)
SELECT ranking FROM table_name_21 WHERE ep__number < 24 AND rating = "25.7"
Write a SQL query that answers the following question: What is the rating of the season 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (rating VARCHAR, season VARCHAR)
SELECT rating FROM table_name_12 WHERE season = "season 10"
Write a SQL query that answers the following question: What was the rating of the season that had 18.17 million household viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (rating VARCHAR, viewers__households_in_millions_ VARCHAR)
SELECT rating FROM table_name_23 WHERE viewers__households_in_millions_ = "18.17"
Write a SQL query that answers the following question: How many totals have 2 for the bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (total VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_40 WHERE bronze = 2
Write a SQL query that answers the following question: What is the smallest silver that has a bronze less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (silver INTEGER, bronze INTEGER)
SELECT MIN(silver) FROM table_name_34 WHERE bronze < 0
Write a SQL query that answers the following question: What college received Pick 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_93 WHERE pick = 5
Write a SQL query that answers the following question: For the United States International University, what was the highest pick number allowed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (pick INTEGER, college VARCHAR)
SELECT MAX(pick) FROM table_name_53 WHERE college = "united states international university"
Write a SQL query that answers the following question: what was the date of the game on week 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_2 WHERE week = 2
Write a SQL query that answers the following question: What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of û?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (subj_pres VARCHAR, sing_pres VARCHAR, plur_pret VARCHAR, sing_pret VARCHAR)
SELECT subj_pres FROM table_name_78 WHERE plur_pret = "u" AND sing_pret = "ou" AND sing_pres = "û"
Write a SQL query that answers the following question: What is the plural present that has a past participle of e and an infinitive stem of e?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (plur_pres VARCHAR, past_part VARCHAR, inf_stem VARCHAR)
SELECT plur_pres FROM table_name_61 WHERE past_part = "e" AND inf_stem = "e"
Write a SQL query that answers the following question: What is the infinitive stem that has a subjunctive present of ou?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (inf_stem VARCHAR, subj_pres VARCHAR)
SELECT inf_stem FROM table_name_10 WHERE subj_pres = "ou"
Write a SQL query that answers the following question: What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (inf_stem VARCHAR, subj_pres VARCHAR, plur_pret VARCHAR)
SELECT inf_stem FROM table_name_13 WHERE subj_pres = "a" AND plur_pret = "uo"
Write a SQL query that answers the following question: What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (sing_pres VARCHAR, sing_pret VARCHAR, subj_pres VARCHAR)
SELECT sing_pres FROM table_name_51 WHERE sing_pret = "ou" AND subj_pres = "ie"
Write a SQL query that answers the following question: What is the plural preterite that is associated with a subjunctive preterite of ü and has an infinitive stem of e + l/r + cons.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (plur_pret VARCHAR, subj_pret VARCHAR, inf_stem VARCHAR)
SELECT plur_pret FROM table_name_93 WHERE subj_pret = "ü" AND inf_stem = "e + l/r + cons."
Write a SQL query that answers the following question: What is the history behind the vessel Speedrunner IV (SSC4) built after 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (history VARCHAR, built VARCHAR, name VARCHAR)
SELECT history FROM table_name_95 WHERE built > 1997 AND name = "speedrunner iv (ssc4)"
Write a SQL query that answers the following question: What is the most recent year that Queen Nefertiti (pegasus two) was built?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (built INTEGER, name VARCHAR)
SELECT MAX(built) FROM table_name_44 WHERE name = "queen nefertiti (pegasus two)"
Write a SQL query that answers the following question: What is the history behind Speedrunner III (SSC3)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (history VARCHAR, name VARCHAR)
SELECT history FROM table_name_88 WHERE name = "speedrunner iii (ssc3)"
Write a SQL query that answers the following question: What was the opponent on november 8, 1981?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_6 WHERE date = "november 8, 1981"
Write a SQL query that answers the following question: What is the longest Time (seconds), when the Nation - athlete(s) is Sylke Otto - Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (time__seconds_ INTEGER, nation___athlete_s_ VARCHAR)
SELECT MAX(time__seconds_) FROM table_name_99 WHERE nation___athlete_s_ = "sylke otto - germany"
Write a SQL query that answers the following question: What is the Date, when the Sport is luge - men's doubles, and when the Record is, "start"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date VARCHAR, sport VARCHAR, record VARCHAR)
SELECT date FROM table_name_90 WHERE sport = "luge - men's doubles" AND record = "start"
Write a SQL query that answers the following question: What is the Nation - athlete(s), when the Sport is luge - men's singles, and when the Record is, "track"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (nation___athlete_s_ VARCHAR, sport VARCHAR, record VARCHAR)
SELECT nation___athlete_s_ FROM table_name_12 WHERE sport = "luge - men's singles" AND record = "track"
Write a SQL query that answers the following question: What is the Date, when the Record is, "track", when the Time (seconds) is longer than 43.564, and when the Sport is luge - women's singles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, sport VARCHAR, record VARCHAR, time__seconds_ VARCHAR)
SELECT date FROM table_name_66 WHERE record = "track" AND time__seconds_ > 43.564 AND sport = "luge - women's singles"
Write a SQL query that answers the following question: What is the highest Z (p) when arsenic is the element, and the N (n) is more than 42
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (z___p__ INTEGER, element VARCHAR, n___n__ VARCHAR)
SELECT MAX(z___p__) FROM table_name_46 WHERE element = "arsenic" AND n___n__ > 42
Write a SQL query that answers the following question: What is the highest Z (p) when the N (n) is less than 30, and scandium is the element?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (z___p__ INTEGER, n___n__ VARCHAR, element VARCHAR)
SELECT AVG(z___p__) FROM table_name_37 WHERE n___n__ < 30 AND element = "scandium"
Write a SQL query that answers the following question: What is the isotopic mass (u) when the nuclide is 89 y?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (isotopic_mass___u__ VARCHAR, nuclide VARCHAR)
SELECT isotopic_mass___u__ FROM table_name_6 WHERE nuclide = "89 y"
Write a SQL query that answers the following question: What is the Element when the Nuclide is 55 mn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (element VARCHAR, nuclide VARCHAR)
SELECT element FROM table_name_79 WHERE nuclide = "55 mn"
Write a SQL query that answers the following question: What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_46 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
Write a SQL query that answers the following question: What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT date FROM table_name_95 WHERE venue = "melbourne cricket ground" AND result = "eng by inns&225 runs"
Write a SQL query that answers the following question: What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912"
Write a SQL query that answers the following question: What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (away_captain VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_38 WHERE date = "30 dec, 1,2,3 jan 1911/2"
Write a SQL query that answers the following question: What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
Write a SQL query that answers the following question: What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (home_captain VARCHAR, date VARCHAR)
SELECT home_captain FROM table_name_48 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
Write a SQL query that answers the following question: What is Catalog, when the Region is UK, and when Label is Razor Records?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (catalog VARCHAR, region VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_16 WHERE region = "uk" AND label = "razor records"
Write a SQL query that answers the following question: What is the latest Date, when Label is Captain Oi! Records?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (date INTEGER, label VARCHAR)
SELECT MAX(date) FROM table_name_58 WHERE label = "captain oi! records"
Write a SQL query that answers the following question: What is Region, when Date is 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_61 WHERE date = 2004
Write a SQL query that answers the following question: What is Catalog, when Format is CD, when Region is US, when Date is before 2004, and when Label is Taang! Records?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (catalog VARCHAR, label VARCHAR, date VARCHAR, format VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_32 WHERE format = "cd" AND region = "us" AND date < 2004 AND label = "taang! records"
Write a SQL query that answers the following question: What is the largest amount of top division titles featuring the tammeka club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (top_division_titles INTEGER, club VARCHAR)
SELECT MAX(top_division_titles) FROM table_name_56 WHERE club = "tammeka"
Write a SQL query that answers the following question: What is the largest number of top division titles with a 2012 position of 10th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (top_division_titles INTEGER, position_in_2012 VARCHAR)
SELECT MAX(top_division_titles) FROM table_name_13 WHERE position_in_2012 = "10th"
Write a SQL query that answers the following question: How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (number_of_seasons_in_meistriliiga VARCHAR, club VARCHAR, first_season_in_top_division VARCHAR)
SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000
Write a SQL query that answers the following question: Who attended Columbia law school and was appointed in 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (name VARCHAR, law_school_attended VARCHAR, appointed VARCHAR)
SELECT name FROM table_name_30 WHERE law_school_attended = "columbia law school" AND appointed = 2004
Write a SQL query that answers the following question: Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (term_expiration INTEGER, appointing_governor VARCHAR, appointed VARCHAR)
SELECT SUM(term_expiration) FROM table_name_22 WHERE appointing_governor = "george pataki, republican" AND appointed > 2004
Write a SQL query that answers the following question: Which law school did judge sheila abdus-salaam attend, who was appointed in 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (law_school_attended VARCHAR, appointed VARCHAR, name VARCHAR)
SELECT law_school_attended FROM table_name_14 WHERE appointed > 2004 AND name = "judge sheila abdus-salaam"
Write a SQL query that answers the following question: What is the number of races having top 5s over 2 and average starts of 6.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (races VARCHAR, top_5 VARCHAR, avg_start VARCHAR)
SELECT races FROM table_name_51 WHERE top_5 > 2 AND avg_start = 6.5
Write a SQL query that answers the following question: What is the lowest average finish having top 5s of 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (avg_finish INTEGER, top_5 INTEGER)
SELECT MIN(avg_finish) FROM table_name_7 WHERE top_5 < 0
Write a SQL query that answers the following question: What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)
SELECT volume AS :issue FROM table_name_97 WHERE weeks_on_top > 1 AND artist = "peter cetera"
Write a SQL query that answers the following question: What is the longest weeks on top when the Artist was Bruce Hornsby and the Range?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (weeks_on_top INTEGER, artist VARCHAR)
SELECT MAX(weeks_on_top) FROM table_name_74 WHERE artist = "bruce hornsby and the range"
Write a SQL query that answers the following question: What is the Score of the game with arsenal win 4-2 on penalties in the attendance field?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_85 WHERE attendance = "arsenal win 4-2 on penalties"
Write a SQL query that answers the following question: What team was the Away team when the Tie no was 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_55 WHERE tie_no = "3"
Write a SQL query that answers the following question: What is the Tie no when the away team was Burnley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_30 WHERE away_team = "burnley"
Write a SQL query that answers the following question: What shows for Tie no when Sheffield United was the Away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_10 WHERE away_team = "sheffield united"
Write a SQL query that answers the following question: What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(rank) FROM table_name_32 WHERE silver = 1 AND bronze = 3 AND total < 8
Write a SQL query that answers the following question: Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (balls_faced INTEGER, average VARCHAR, runs_scored VARCHAR)
SELECT SUM(balls_faced) FROM table_name_4 WHERE average = 39.13 AND runs_scored > 313
Write a SQL query that answers the following question: Which Name has an Average of 48.83?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (name VARCHAR, average VARCHAR)
SELECT name FROM table_name_47 WHERE average = 48.83
Write a SQL query that answers the following question: Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR)
SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318
Write a SQL query that answers the following question: How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (sr INTEGER, runs_scored VARCHAR, average VARCHAR)
SELECT SUM(sr) FROM table_name_35 WHERE runs_scored = 161 AND average > 26.83
Write a SQL query that answers the following question: What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (average INTEGER, sr VARCHAR, runs_scored VARCHAR)
SELECT MIN(average) FROM table_name_74 WHERE sr = 70.43 AND runs_scored < 293
Write a SQL query that answers the following question: Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR)
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
Write a SQL query that answers the following question: What is the Acquisition that has less than 22, in the 2002 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (acquisition_via VARCHAR, number VARCHAR, season VARCHAR)
SELECT acquisition_via FROM table_name_41 WHERE number < 22 AND season = "2002"
Write a SQL query that answers the following question: What is the number of the acquisition of import in the 2002 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (number VARCHAR, acquisition_via VARCHAR, season VARCHAR)
SELECT number FROM table_name_19 WHERE acquisition_via = "import" AND season = "2002"
Write a SQL query that answers the following question: What is the name from the 2002 season, and acquired via free agency?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (name VARCHAR, season VARCHAR, acquisition_via VARCHAR)
SELECT name FROM table_name_80 WHERE season = "2002" AND acquisition_via = "free agency"
Write a SQL query that answers the following question: What is the name of the player acquired via import and larger than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR)
SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 22
Write a SQL query that answers the following question: Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
SELECT prohibition_ticket FROM table_name_39 WHERE greenback_ticket = "abraham j. cuddeback"
Write a SQL query that answers the following question: Which office was Richard M. Griffin vying for on the Greenback ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (office VARCHAR, greenback_ticket VARCHAR)
SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin"
Write a SQL query that answers the following question: Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
SELECT prohibition_ticket FROM table_name_73 WHERE greenback_ticket = "thomas armstrong"
Write a SQL query that answers the following question: Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong"
Write a SQL query that answers the following question: Who was on the Republican ticket for the office of Inspector of state prisons?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (republican_ticket VARCHAR, office VARCHAR)
SELECT republican_ticket FROM table_name_8 WHERE office = "inspector of state prisons"