instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which lane did the athlete from Zambia swim in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (lane VARCHAR, nationality VARCHAR)
SELECT lane FROM table_name_6 WHERE nationality = "zambia"
Write a SQL query that answers the following question: Who was the opponent at the game when the record was 4-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_69 WHERE record = "4-5"
Write a SQL query that answers the following question: What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR)
SELECT AVG(2009) FROM table_name_60 WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2
Write a SQL query that answers the following question: What is the listing for 2009 when 1989 is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (Id VARCHAR)
SELECT SUM(2009) FROM table_name_5 WHERE 1989 < 0
Write a SQL query that answers the following question: what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (Id VARCHAR)
SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5
Write a SQL query that answers the following question: what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (Id VARCHAR)
SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0
Write a SQL query that answers the following question: what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Id VARCHAR)
SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11
Write a SQL query that answers the following question: what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (Id VARCHAR)
SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2
Write a SQL query that answers the following question: How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (_percentage_of_1_rep_max_last_set_ VARCHAR, set_4 VARCHAR)
SELECT _percentage_of_1_rep_max_last_set_ FROM table_name_28 WHERE set_4 = "145lb x 5reps"
Write a SQL query that answers the following question: How many lbs does a set 4 of 115lb x 8reps have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (volume_lbs VARCHAR, set_4 VARCHAR)
SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps"
Write a SQL query that answers the following question: What is set 3 on week 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (set_3 VARCHAR, week VARCHAR)
SELECT set_3 FROM table_name_1 WHERE week = 6
Write a SQL query that answers the following question: What is the per-capita GDP for the country with an overall GDP of 156.640?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640"
Write a SQL query that answers the following question: What is the per-capita GDP of the country with an overall GDP of 80.955?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = "80.955"
Write a SQL query that answers the following question: Which country has an area of 871,980 square km?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (member_countries VARCHAR, area__km²_ VARCHAR)
SELECT member_countries FROM table_name_15 WHERE area__km²_ = "871,980"
Write a SQL query that answers the following question: On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_74 WHERE partner = "dora djilianova" AND date = "october 1, 1995"
Write a SQL query that answers the following question: With Lindsay Lee-Waters as a partner, what was the final score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT score_in_the_final FROM table_name_90 WHERE partner = "lindsay lee-waters"
Write a SQL query that answers the following question: Which score has a Date of august 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_58 WHERE date = "august 17"
Write a SQL query that answers the following question: Which score has an Opponent of @ athletics, and a Record of 76-57?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57"
Write a SQL query that answers the following question: Which loss has a Record of 67-51?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_37 WHERE record = "67-51"
Write a SQL query that answers the following question: Which position has 2 wins in 1992?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (position VARCHAR, wins VARCHAR, season VARCHAR)
SELECT position FROM table_name_31 WHERE wins = "2" AND season = 1992
Write a SQL query that answers the following question: How many wins have a Series of formula nippon, and a Position of 8th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR)
SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th"
Write a SQL query that answers the following question: What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR)
SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2"
Write a SQL query that answers the following question: What was Mark Brooks total score when he finished more than 2 above par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total INTEGER, to_par VARCHAR, player VARCHAR)
SELECT AVG(total) FROM table_name_88 WHERE to_par > 2 AND player = "mark brooks"
Write a SQL query that answers the following question: What was the winning to par score of the 1993 PGA Championship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_4 WHERE year_s__won = "1993"
Write a SQL query that answers the following question: How many constructions has a Wheel arrange- ment of 4-4-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (construct__tion_no INTEGER, wheel_arrange__ment VARCHAR)
SELECT SUM(construct__tion_no) FROM table_name_7 WHERE wheel_arrange__ment = "4-4-0"
Write a SQL query that answers the following question: Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR)
SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881"
Write a SQL query that answers the following question: What is the Season Outcome for the Sussex Central School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_10 WHERE school = "sussex central"
Write a SQL query that answers the following question: What is the School of Sussex Tech's Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_31 WHERE school = "sussex tech"
Write a SQL query that answers the following question: What is the Team for the Milford School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_68 WHERE school = "milford"
Write a SQL query that answers the following question: Which season was one of the players rated +33?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (season VARCHAR, rating VARCHAR)
SELECT season FROM table_name_79 WHERE rating = "+33"
Write a SQL query that answers the following question: What is the name of the team that had 1 win and a rating of +85?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR)
SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85"
Write a SQL query that answers the following question: Which season was one of the players rated +98?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (season VARCHAR, rating VARCHAR)
SELECT season FROM table_name_6 WHERE rating = "+98"
Write a SQL query that answers the following question: What is Patrice Bergeron's rating?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (rating VARCHAR, player VARCHAR)
SELECT rating FROM table_name_62 WHERE player = "patrice bergeron"
Write a SQL query that answers the following question: Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)
SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36
Write a SQL query that answers the following question: Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (pick__number VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(pick__number) FROM table_name_88 WHERE name = "jaimie thomas" AND round < 7
Write a SQL query that answers the following question: What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR)
SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation"
Write a SQL query that answers the following question: When was the opponent Poland and the match type EC -qualifier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, opponenent VARCHAR, match_type VARCHAR)
SELECT date FROM table_name_12 WHERE opponenent = "poland" AND match_type = "ec -qualifier"
Write a SQL query that answers the following question: Where was the opponent Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (location VARCHAR, opponenent VARCHAR)
SELECT location FROM table_name_96 WHERE opponenent = "germany"
Write a SQL query that answers the following question: Who was the opponent when the result was 2-2 (draw)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (opponenent VARCHAR, result VARCHAR)
SELECT opponenent FROM table_name_70 WHERE result = "2-2 (draw)"
Write a SQL query that answers the following question: What was the match type in Budapest where the opponent was Luxembourg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (match_type VARCHAR, location VARCHAR, opponenent VARCHAR)
SELECT match_type FROM table_name_64 WHERE location = "budapest" AND opponenent = "luxembourg"
Write a SQL query that answers the following question: Which player has the score 72-67-69=208?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208
Write a SQL query that answers the following question: Who has the par score of 70-76-68-214?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_23 WHERE score = "70-76-68-214"
Write a SQL query that answers the following question: Which country has the score 70-76-68-214?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_71 WHERE score = "70-76-68-214"
Write a SQL query that answers the following question: when was the first performance for the ballet with peter mazurowski in the final cast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR)
SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski"
Write a SQL query that answers the following question: who had the first performance on 3 july 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR)
SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011"
Write a SQL query that answers the following question: who had a last performance of 3 july 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR)
SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011"
Write a SQL query that answers the following question: what's the status in the style of ballet/ gymnastics?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR)
SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics"
Write a SQL query that answers the following question: what's the name with final cast status and first performance on 12 november 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR)
SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011"
Write a SQL query that answers the following question: what last performance has past status, ballet as style and tommy batchelor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR)
SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor"
Write a SQL query that answers the following question: How many goals was by Rix from Eng who started before 2005 in the youth system?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (goals VARCHAR, name VARCHAR, since VARCHAR, nat VARCHAR, transfer_fee VARCHAR)
SELECT COUNT(goals) FROM table_name_38 WHERE nat = "eng" AND transfer_fee = "youth system" AND since < 2005 AND name = "rix"
Write a SQL query that answers the following question: Where is Rix from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (nat VARCHAR, name VARCHAR)
SELECT nat FROM table_name_36 WHERE name = "rix"
Write a SQL query that answers the following question: What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (specification VARCHAR, total_produced VARCHAR, model VARCHAR)
SELECT specification FROM table_name_1 WHERE total_produced > 19 AND model = "fb-1"
Write a SQL query that answers the following question: What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (build_date VARCHAR, total_produced VARCHAR, model VARCHAR)
SELECT build_date FROM table_name_42 WHERE total_produced < 45 AND model = "fb-2"
Write a SQL query that answers the following question: What is the prime mover of the locomotive with a fa-2 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR)
SELECT prime_mover FROM table_name_16 WHERE model = "fa-2"
Write a SQL query that answers the following question: What is the build date of the locomotive with a fa-2 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (build_date VARCHAR, model VARCHAR)
SELECT build_date FROM table_name_55 WHERE model = "fa-2"
Write a SQL query that answers the following question: What region has a transmitter located at Mount Sugarloaf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (region_served VARCHAR, transmitter_location VARCHAR)
SELECT region_served FROM table_name_1 WHERE transmitter_location = "mount sugarloaf"
Write a SQL query that answers the following question: Name the finals for prelim of out of playoffs
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (finals VARCHAR, prelim VARCHAR)
SELECT finals FROM table_name_71 WHERE prelim = "out of playoffs"
Write a SQL query that answers the following question: Who is the musical director of the film Vettaiyaadu vilaiyaadu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR)
SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu"
Write a SQL query that answers the following question: What is the 2007 film in Hindi with a music director Shantanu moitra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (film VARCHAR, music_director VARCHAR, year VARCHAR, language VARCHAR)
SELECT film FROM table_name_2 WHERE year = 2007 AND language = "hindi" AND music_director = "shantanu moitra"
Write a SQL query that answers the following question: What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR)
SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9
Write a SQL query that answers the following question: What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (pct INTEGER, pts VARCHAR, wins VARCHAR)
SELECT AVG(pct) FROM table_name_45 WHERE pts < 9 AND wins > 1
Write a SQL query that answers the following question: What is the sum of PTS when there is a PCT smaller than 0.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (pts INTEGER, pct INTEGER)
SELECT SUM(pts) FROM table_name_11 WHERE pct < 0.1
Write a SQL query that answers the following question: What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (coach VARCHAR, loss VARCHAR, pct VARCHAR, pts VARCHAR)
SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19
Write a SQL query that answers the following question: What's the name of spain rank greater than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (name VARCHAR, rank VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain"
Write a SQL query that answers the following question: Spain had what time with lanes smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "spain"
Write a SQL query that answers the following question: What's the smallest rank of noriko inada?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_76 WHERE name = "noriko inada"
Write a SQL query that answers the following question: How many total losses have teams that played more than 30 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (lost VARCHAR, played INTEGER)
SELECT COUNT(lost) FROM table_name_34 WHERE played > 30
Write a SQL query that answers the following question: What is the number of the rank when the time is 2:15.98, in a lane larger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT COUNT(rank) FROM table_name_55 WHERE time = "2:15.98" AND lane > 7
Write a SQL query that answers the following question: What is the number of the rank for the name of Chen Yan in a lane less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (rank VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(rank) FROM table_name_89 WHERE name = "chen yan" AND lane < 2
Write a SQL query that answers the following question: What is the smallest lane for rank 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR)
SELECT MIN(lane) FROM table_name_64 WHERE rank = 6
Write a SQL query that answers the following question: What's the total for a league cup less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (league VARCHAR, total INTEGER)
SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1
Write a SQL query that answers the following question: What's the FA Cup that has a league less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (fa_cup INTEGER, league INTEGER)
SELECT SUM(fa_cup) FROM table_name_3 WHERE league < 1
Write a SQL query that answers the following question: Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (villages INTEGER, hanzi VARCHAR, population VARCHAR)
SELECT MAX(villages) FROM table_name_92 WHERE hanzi = "南流乡" AND population > 24 OFFSET 802
Write a SQL query that answers the following question: What position did lap 296 come in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (pos VARCHAR, laps VARCHAR)
SELECT pos FROM table_name_41 WHERE laps = 296
Write a SQL query that answers the following question: How many games did the Club that has a try bonus of 4 and 391 points against play ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (played VARCHAR, try_bonus VARCHAR, points_against VARCHAR)
SELECT played FROM table_name_21 WHERE try_bonus = "4" AND points_against = "391"
Write a SQL query that answers the following question: How many points against did Carmarthen Athletic RFC have when they played 22 games ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (points_against VARCHAR, played VARCHAR, club VARCHAR)
SELECT points_against FROM table_name_32 WHERE played = "22" AND club = "carmarthen athletic rfc"
Write a SQL query that answers the following question: Which club lost 10 games ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (club VARCHAR, lost VARCHAR)
SELECT club FROM table_name_93 WHERE lost = "10"
Write a SQL query that answers the following question: How many points for did the club that had 77 tries for have ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (points_for VARCHAR, tries_for VARCHAR)
SELECT points_for FROM table_name_43 WHERE tries_for = "77"
Write a SQL query that answers the following question: Which club has a try bonus of 2 ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (club VARCHAR, try_bonus VARCHAR)
SELECT club FROM table_name_8 WHERE try_bonus = "2"
Write a SQL query that answers the following question: Name the most attendance for october 11
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 11"
Write a SQL query that answers the following question: Name the visitor for october 19
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_52 WHERE date = "october 19"
Write a SQL query that answers the following question: The highest year for the series titled dragon laws ii: kidnapped is what?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (year INTEGER, series_title VARCHAR)
SELECT MAX(year) FROM table_name_12 WHERE series_title = "dragon laws ii: kidnapped"
Write a SQL query that answers the following question: The series titled dragon laws i: the undercover has what role?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR)
SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover"
Write a SQL query that answers the following question: Which athlete has the fastest time of 15.82?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (athlete VARCHAR, fastest_time__s_ VARCHAR)
SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.82
Write a SQL query that answers the following question: What is the total number of years that an entrant had more than 0 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (year VARCHAR, points INTEGER)
SELECT COUNT(year) FROM table_name_87 WHERE points > 0
Write a SQL query that answers the following question: Name the total number of years for brm straight-4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR)
SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4"
Write a SQL query that answers the following question: Name the total number of points for chassis of bmw t269 (f2)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR)
SELECT COUNT(points) FROM table_name_2 WHERE chassis = "bmw t269 (f2)"
Write a SQL query that answers the following question: Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR)
SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0
Write a SQL query that answers the following question: What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_32 WHERE chassis = "zakspeed 841" AND year < 1985
Write a SQL query that answers the following question: What is the lowest year with tyres in g and less than 0 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year INTEGER, tyres VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_32 WHERE tyres = "g" AND points < 0
Write a SQL query that answers the following question: Which year has an Engine(s) of yamaha v8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR)
SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8"
Write a SQL query that answers the following question: What are the average points with a Chassis of zakspeed 881?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR)
SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881"
Write a SQL query that answers the following question: Which League has a Venue of martin luther king, jr. recreation center?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR)
SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center"
Write a SQL query that answers the following question: Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (championships__years_ VARCHAR, league VARCHAR, venue VARCHAR)
SELECT championships__years_ FROM table_name_96 WHERE league = "milb, florida state league" AND venue = "ed smith stadium"
Write a SQL query that answers the following question: Which Sport has a League of continental basketball league, and a Venue of avalon middle school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR)
SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school"
Write a SQL query that answers the following question: Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR)
SELECT venue FROM table_name_38 WHERE sport = "baseball" AND championships__years_ = "0" AND league = "milb, florida state league" AND club = "jupiter hammerheads"
Write a SQL query that answers the following question: Which club has a League of american basketball association, and a Venue of tba?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR)
SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba"
Write a SQL query that answers the following question: Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR)
SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school"
Write a SQL query that answers the following question: What is the average decile with Years of 1–8, and an Area of waipara?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR)
SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara"
Write a SQL query that answers the following question: Which area has Years of 1–8, and a Name of broomfield school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (area VARCHAR, years VARCHAR, name VARCHAR)
SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school"