question
stringlengths
12
243
answer
stringlengths
18
557
context
stringlengths
27
489
Who were all the candidates when the first elected year was 1961?
SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961
CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR)
What is the number of households in the county with median income of $65,240 and population greater than 744,344?
SELECT SUM(number_of_households) FROM table_name_76 WHERE median_family_income = "$65,240" AND population > 744 OFFSET 344
CREATE TABLE table_name_76 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR)
Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?
SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = "tour match" AND venue = "rugby park, gisborne"
CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR)
Name the number of class aaaaa for 1988-89
SELECT COUNT(class_aAAAA) FROM table_14601528_2 WHERE school_year = "1988-89"
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
What is 1994, when 2002 is ATP Masters Series?
SELECT 1994 FROM table_name_76 WHERE 2002 = "atp masters series"
CREATE TABLE table_name_76 (Id VARCHAR)
What is the Weight of the Spandau 04 Player with a Height of m (ft 5in)?
SELECT weight FROM table_name_61 WHERE club = "spandau 04" AND height = "m (ft 5in)"
CREATE TABLE table_name_61 (weight VARCHAR, club VARCHAR, height VARCHAR)
Who were all of the opponents in 1984?
SELECT opponents FROM table_1399994_5 WHERE year = "1984"
CREATE TABLE table_1399994_5 (opponents VARCHAR, year VARCHAR)
What is the location of the track that opened in 1950?
SELECT location FROM table_1245148_1 WHERE year_opened = 1950
CREATE TABLE table_1245148_1 (location VARCHAR, year_opened VARCHAR)
What is the date of the game at Olympic Stadium?
SELECT date FROM table_24989925_2 WHERE game_site = "Olympic Stadium"
CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR)
What is the Rank of the couple with less than 408.8 Points and Placings of 160?
SELECT rank FROM table_name_77 WHERE points < 408.8 AND placings = 160
CREATE TABLE table_name_77 (rank VARCHAR, points VARCHAR, placings VARCHAR)
Who was Class AAA during the school year of 2000-01?
SELECT class_aAA FROM table_10399701_2 WHERE school_year = "2000-01"
CREATE TABLE table_10399701_2 (class_aAA VARCHAR, school_year VARCHAR)
What team did team carlton play while away?
SELECT home_team FROM table_name_42 WHERE away_team = "carlton"
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
What is the drawn value for furnace united rfc?
SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc"
CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR)
What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2
SELECT AVG(2009) FROM table_name_60 WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2
CREATE TABLE table_name_60 (Id VARCHAR)
Where was the game played when the score was 14.16 (100)-12.12 (84)?
SELECT venue FROM table_24919137_2 WHERE score = "14.16 (100)-12.12 (84)"
CREATE TABLE table_24919137_2 (venue VARCHAR, score VARCHAR)
Where was the final game played in 2007
SELECT location FROM table_11214772_2 WHERE year = 2007
CREATE TABLE table_11214772_2 (location VARCHAR, year VARCHAR)
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201?
SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201
CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR)
Which Frequency has a Facility ID of 13598?
SELECT frequency FROM table_name_33 WHERE facility_id = 13598
CREATE TABLE table_name_33 (frequency VARCHAR, facility_id VARCHAR)
What is the score of the tournament with younes el aynaoui as the opponent?
SELECT score FROM table_name_37 WHERE opponent = "younes el aynaoui"
CREATE TABLE table_name_37 (score VARCHAR, opponent VARCHAR)
Which Pada 3 has a Pada 1 of टे te?
SELECT pada_3 FROM table_name_41 WHERE pada_1 = "टे te"
CREATE TABLE table_name_41 (pada_3 VARCHAR, pada_1 VARCHAR)
Find the average and maximum hours for the students whose tryout decision is yes.
SELECT AVG(T1.HS), MAX(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR)
What was the result when the attendance was 25,418?
SELECT result FROM table_name_99 WHERE attendance = "25,418"
CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)
What's the type of muzzle devices on the models with round hand guards?
SELECT muzzle_device FROM table_12834315_1 WHERE hand_guards = "Round"
CREATE TABLE table_12834315_1 (muzzle_device VARCHAR, hand_guards VARCHAR)
What country does the player who joined the Vancouver Canucks originally hail from?
SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"
CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)
Name the director for coup de torchon
SELECT director FROM table_18987377_1 WHERE film_title_used_in_nomination = "Coup de Torchon"
CREATE TABLE table_18987377_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
On what date was Patty Fendick an opponent?
SELECT date FROM table_name_95 WHERE opponent = "patty fendick"
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)
When there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks?
SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40
CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR)
Which player debuted before 1943, played for the club in 1942, played less than 12 games, and scored less than 11 goals?
SELECT player FROM table_name_27 WHERE debut_year < 1943 AND games < 12 AND goals < 11 AND years_at_club = "1942"
CREATE TABLE table_name_27 (player VARCHAR, years_at_club VARCHAR, goals VARCHAR, debut_year VARCHAR, games VARCHAR)
What's the score of Lee Janzen in T4 place?
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
CREATE TABLE table_name_94 (score VARCHAR, place VARCHAR, player VARCHAR)
What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?
SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)"
CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR)
Who won the Granada course?
SELECT winner FROM table_name_33 WHERE course = "granada"
CREATE TABLE table_name_33 (winner VARCHAR, course VARCHAR)
Who was the man of the match when the Rockets won by 9 wickets?
SELECT man_of_the_match FROM table_19576091_1 WHERE result = "Rockets won by 9 wickets"
CREATE TABLE table_19576091_1 (man_of_the_match VARCHAR, result VARCHAR)
Tell me the country for lane of 6
SELECT country FROM table_name_66 WHERE lane = 6
CREATE TABLE table_name_66 (country VARCHAR, lane VARCHAR)
Who is the professional partner of celebrity małgorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10?
SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = "małgorzata foremniak"
CREATE TABLE table_name_52 (professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR)
What Gold Coast has Auckland cancelled, and Adelaide yes?
SELECT gold_coast FROM table_name_58 WHERE auckland = "cancelled" AND adelaide = "yes"
CREATE TABLE table_name_58 (gold_coast VARCHAR, auckland VARCHAR, adelaide VARCHAR)
How many countries are there in total?
SELECT COUNT(*) FROM country
CREATE TABLE country (Id VARCHAR)
What is the year when the spoksperson is Ruslana?
SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = "Ruslana"
CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR)
What the highest Year with a Remixed by Laurent Boutonnat?
SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat"
CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)
Who was the team's opponent of October 25, 1970?
SELECT opponent FROM table_14966537_1 WHERE date = "October 25, 1970"
CREATE TABLE table_14966537_1 (opponent VARCHAR, date VARCHAR)
If the district is Virginia 8, who is the Incumbent?
SELECT incumbent FROM table_2668416_18 WHERE district = "Virginia 8"
CREATE TABLE table_2668416_18 (incumbent VARCHAR, district VARCHAR)
What was the Record at the game that had an attendance of 21,191?
SELECT record FROM table_name_22 WHERE attendance = "21,191"
CREATE TABLE table_name_22 (record VARCHAR, attendance VARCHAR)
What is the largest numbered?
SELECT MAX(division) FROM table_14723382_1
CREATE TABLE table_14723382_1 (division INTEGER)
What is the largest attendance that has December 16, 1962 as the date?
SELECT MAX(attendance) FROM table_name_84 WHERE date = "december 16, 1962"
CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
What was the method of elimination in the chamber with a time of 24:02?
SELECT method_of_elimination FROM table_24628683_2 WHERE time = "24:02"
CREATE TABLE table_24628683_2 (method_of_elimination VARCHAR, time VARCHAR)
What is the rank of the team with 11 total medals and more than 4 silver medals has?
SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 4
CREATE TABLE table_name_95 (rank INTEGER, total VARCHAR, silver VARCHAR)
What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop"
CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR)
What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?
SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1"
CREATE TABLE table_name_32 (Id VARCHAR)
What is the English spelling of the strongs transliteration: 'adoniyah?
SELECT english_spelling FROM table_1242447_2 WHERE strongs_transliteration = "'Adoniyah"
CREATE TABLE table_1242447_2 (english_spelling VARCHAR, strongs_transliteration VARCHAR)
What is the average number of golds for teams in rank 17 with more than 4 silver?
SELECT AVG(gold) FROM table_name_13 WHERE rank = "17" AND silver > 4
CREATE TABLE table_name_13 (gold INTEGER, rank VARCHAR, silver VARCHAR)
Gold smaller than 2, and a Rank of 4, and a Nation of hungary (hun), and a Bronze smaller than 1 had what total number of silver?
SELECT COUNT(silver) FROM table_name_48 WHERE gold < 2 AND rank = "4" AND nation = "hungary (hun)" AND bronze < 1
CREATE TABLE table_name_48 (silver VARCHAR, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
What are the numbers for the order number 713096-713119?
SELECT numbers FROM table_2351952_1 WHERE order_number = "713096-713119"
CREATE TABLE table_2351952_1 (numbers VARCHAR, order_number VARCHAR)
What language has sky famiglia as the package/option?
SELECT language FROM table_name_82 WHERE package_option = "sky famiglia"
CREATE TABLE table_name_82 (language VARCHAR, package_option VARCHAR)
Who was the lyricist for composer Haewon Park?
SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = "haewon park"
CREATE TABLE table_name_36 (lyricist_s_ VARCHAR, composer_s_ VARCHAR)
What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts?
SELECT COUNT(lost) FROM table_name_19 WHERE pens < 51 AND tries = 3 AND start = 45
CREATE TABLE table_name_19 (lost VARCHAR, start VARCHAR, pens VARCHAR, tries VARCHAR)
What is the ab ripper x when the length is 92:24?
SELECT ab_ripper_x FROM table_27512025_1 WHERE length = "92:24"
CREATE TABLE table_27512025_1 (ab_ripper_x VARCHAR, length VARCHAR)
give the location of subtrate coproporphyrinogen iii
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
Find the names of all patients who have an undergoing treatment and are staying in room 111.
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111
CREATE TABLE undergoes (patient VARCHAR, Stay VARCHAR); CREATE TABLE stay (StayID VARCHAR, room VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR)
What category was nominated in 2010 fo the British Soap Awards?
SELECT category FROM table_name_38 WHERE year = 2010 AND result = "nominated" AND awards = "british soap awards"
CREATE TABLE table_name_38 (category VARCHAR, awards VARCHAR, year VARCHAR, result VARCHAR)
What is the highest displacement value for the R Fwd Auto Phase1?
SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1"
CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR)
How many episodes were released on DVD in the US on October 13, 2009?
SELECT episodes FROM table_14855908_3 WHERE region_1__us_ = "October 13, 2009"
CREATE TABLE table_14855908_3 (episodes VARCHAR, region_1__us_ VARCHAR)
Which Totora Municipality (%) is the highest one that has a Chimoré Municipality (%) of 5.1, and a Pocona Municipality (%) smaller than 0.2?
SELECT MAX(totora_municipality___percentage_) FROM table_name_72 WHERE chimoré_municipality___percentage_ = 5.1 AND pocona_municipality___percentage_ < 0.2
CREATE TABLE table_name_72 (totora_municipality___percentage_ INTEGER, chimoré_municipality___percentage_ VARCHAR, pocona_municipality___percentage_ VARCHAR)
The winner, Craig Lowndes, was in what location/state?
SELECT location___state FROM table_name_57 WHERE winner = "craig lowndes"
CREATE TABLE table_name_57 (location___state VARCHAR, winner VARCHAR)
what is the sum of matches when the player is jim laker and wikets is less than 9?
SELECT SUM(matches) FROM table_name_25 WHERE player = "jim laker" AND wickets < 9
CREATE TABLE table_name_25 (matches INTEGER, player VARCHAR, wickets VARCHAR)
What is the year of the ceremony with a not nominated result and ničiji sin as the original title?
SELECT year__ceremony_ FROM table_name_12 WHERE result = "not nominated" AND original_title = "ničiji sin"
CREATE TABLE table_name_12 (year__ceremony_ VARCHAR, result VARCHAR, original_title VARCHAR)
Name the number of high assists for july 1
SELECT COUNT(high_assists) FROM table_17103645_10 WHERE date = "July 1"
CREATE TABLE table_17103645_10 (high_assists VARCHAR, date VARCHAR)
What role was at the Sydney Film Festival in 2008?
SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = "sydney film festival"
CREATE TABLE table_name_4 (role VARCHAR, year VARCHAR, festival_organization VARCHAR)
Which opponent completed a challenge competition with a result of 8-2 w?
SELECT opponent FROM table_name_73 WHERE competition = "challenge" AND result = "8-2 w"
CREATE TABLE table_name_73 (opponent VARCHAR, competition VARCHAR, result VARCHAR)
What is Method, when Opponent is "Chalid Arrab"?
SELECT method FROM table_name_4 WHERE opponent = "chalid arrab"
CREATE TABLE table_name_4 (method VARCHAR, opponent VARCHAR)
What Nature reserve number was established on 19961220 20.12.1996
SELECT MIN(nsg_nr) FROM table_26013618_1 WHERE date_established = "19961220 20.12.1996"
CREATE TABLE table_26013618_1 (nsg_nr INTEGER, date_established VARCHAR)
Who had the most high assists with a record of 32-19?
SELECT high_assists FROM table_23284271_8 WHERE record = "32-19"
CREATE TABLE table_23284271_8 (high_assists VARCHAR, record VARCHAR)
Which Surface has Semifinalists of wally masur malivai washington?
SELECT surface FROM table_name_92 WHERE semifinalists = "wally masur malivai washington"
CREATE TABLE table_name_92 (surface VARCHAR, semifinalists VARCHAR)
What is the part 2 entry for class 3a?
SELECT part_2 FROM table_name_36 WHERE class = "3a"
CREATE TABLE table_name_36 (part_2 VARCHAR, class VARCHAR)
Which Province has a IATA of aku?
SELECT province FROM table_name_62 WHERE iata = "aku"
CREATE TABLE table_name_62 (province VARCHAR, iata VARCHAR)
Who was the lyricist for the song with music directed by madan mohan kohli?
SELECT lyricist FROM table_2528382_1 WHERE music_director = "Madan Mohan Kohli"
CREATE TABLE table_2528382_1 (lyricist VARCHAR, music_director VARCHAR)
What tournament did Nadal win and had a nadal of 16?
SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16
CREATE TABLE table_name_75 (tournament VARCHAR, winner VARCHAR)
Which Year has Notes of 87.17 m?
SELECT year FROM table_name_74 WHERE notes = "87.17 m"
CREATE TABLE table_name_74 (year VARCHAR, notes VARCHAR)
What was the location and attendance on the May 22 game?
SELECT location_attendance FROM table_name_13 WHERE date = "may 22"
CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR)
What is the engine for the Bettenhausen Motorsports team?
SELECT engine FROM table_name_3 WHERE team = "bettenhausen motorsports"
CREATE TABLE table_name_3 (engine VARCHAR, team VARCHAR)
What's Auburn's percentage?
SELECT percentage FROM table_22993636_2 WHERE team = "Auburn"
CREATE TABLE table_22993636_2 (percentage VARCHAR, team VARCHAR)
Opponent of @mil, and a Record of 45-16 happened on what date?
SELECT date FROM table_name_95 WHERE opponent = "@mil" AND record = "45-16"
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, record VARCHAR)
What was the attendance when the series was at 0-1?
SELECT attendance FROM table_name_2 WHERE series = "0-1"
CREATE TABLE table_name_2 (attendance VARCHAR, series VARCHAR)
What was the attendance on september 29?
SELECT MAX(attendance) FROM table_name_83 WHERE date = "september 29"
CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR)
What is the report for races where Will Power had both pole position and fastest lap?
SELECT report FROM table_16099880_5 WHERE pole_position = "Will Power" AND fastest_lap = "Will Power"
CREATE TABLE table_16099880_5 (report VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
When did the High Park Demons play Away?
SELECT date FROM table_name_64 WHERE away = "high park demons"
CREATE TABLE table_name_64 (date VARCHAR, away VARCHAR)
What is the home team against the away team Norwich City?
SELECT home_team FROM table_name_39 WHERE away_team = "norwich city"
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
Who was the entrant before 1988?
SELECT entrant FROM table_name_41 WHERE year < 1988
CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER)
What is the average Draw when the Place is larger than 5?
SELECT AVG(draw) FROM table_name_65 WHERE place > 5
CREATE TABLE table_name_65 (draw INTEGER, place INTEGER)
When was the incumbent first elected in the district where the result was a democratic-republican gain?
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain"
CREATE TABLE table_2668401_17 (first_elected VARCHAR, result VARCHAR)
What is the most points recorded for a right halfback?
SELECT MAX(points) FROM table_25711913_8 WHERE position = "Right halfback"
CREATE TABLE table_25711913_8 (points INTEGER, position VARCHAR)
When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?
SELECT runner_up FROM table_name_85 WHERE tier = "tier ii" AND winner = "gigi fernández natalia zvereva 6–2, 6–1"
CREATE TABLE table_name_85 (runner_up VARCHAR, tier VARCHAR, winner VARCHAR)
Result of l 17–20 had what attendance?
SELECT attendance FROM table_name_31 WHERE result = "l 17–20"
CREATE TABLE table_name_31 (attendance VARCHAR, result VARCHAR)
Record of 0–8 had what lowest week?
SELECT MIN(week) FROM table_name_25 WHERE record = "0–8"
CREATE TABLE table_name_25 (week INTEGER, record VARCHAR)
What is the birth date for Mervyn Dillon?
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon"
CREATE TABLE table_name_11 (date_of_birth VARCHAR, player VARCHAR)
What is Record, when High Rebounds is "Tyson Chandler (6)"?
SELECT record FROM table_name_68 WHERE high_rebounds = "tyson chandler (6)"
CREATE TABLE table_name_68 (record VARCHAR, high_rebounds VARCHAR)
Which Year(s) won has a Total larger than 295?
SELECT year_s__won FROM table_name_31 WHERE total > 295
CREATE TABLE table_name_31 (year_s__won VARCHAR, total INTEGER)
What is the 1995 value with A in 1986 and 2r in 1992?
SELECT 1995 FROM table_name_29 WHERE 1986 = "a" AND 1992 = "2r"
CREATE TABLE table_name_29 (Id VARCHAR)
Which frequency is located in Dagupan?
SELECT frequency FROM table_name_23 WHERE location = "dagupan"
CREATE TABLE table_name_23 (frequency VARCHAR, location VARCHAR)
what is the round for jake gardiner?
SELECT AVG(round) FROM table_name_3 WHERE player = "jake gardiner"
CREATE TABLE table_name_3 (round INTEGER, player VARCHAR)
Tell me the build year for total production of 150
SELECT build_year FROM table_name_44 WHERE total_production = 150
CREATE TABLE table_name_44 (build_year VARCHAR, total_production VARCHAR)
What shows for House 1950 when the General 1950 is general 1986?
SELECT house_1950 FROM table_name_19 WHERE general_1950 = "general 1986"
CREATE TABLE table_name_19 (house_1950 VARCHAR, general_1950 VARCHAR)