question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Airdate of the episode that ranked #29 and had a share greater than 10?
CREATE TABLE table_name_88 (airdate VARCHAR, share VARCHAR, rank VARCHAR)
SELECT airdate FROM table_name_88 WHERE share = 10 AND rank = "#29"
Which Congress has a # of cosponsors of 19?
CREATE TABLE table_name_51 (congress VARCHAR, _number_of_cosponsors VARCHAR)
SELECT congress FROM table_name_51 WHERE _number_of_cosponsors = 19
What is the set 1 for the date jun 26, and a set 2 of 25-16?
CREATE TABLE table_name_90 (set_1 VARCHAR, date VARCHAR, set_2 VARCHAR)
SELECT set_1 FROM table_name_90 WHERE date = "jun 26" AND set_2 = "25-16"
Who was the opponent on September 8?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "september 8"
What is Average Height, when Weight is less than 93, when Spike is less than 336, and when Block is 305?
CREATE TABLE table_name_82 (height INTEGER, block VARCHAR, weight VARCHAR, spike VARCHAR)
SELECT AVG(height) FROM table_name_82 WHERE weight < 93 AND spike < 336 AND block = 305
What was the To Par [a] when Charles Coody Category:Articles with hCards was champion and the year was earlier than 1973?
CREATE TABLE table_name_6 (to_par_ VARCHAR, a_ VARCHAR, year VARCHAR, champion VARCHAR)
SELECT to_par_[a_] FROM table_name_6 WHERE year < 1973 AND champion = "charles coody category:articles with hcards"
What is the maximum McCain population turnout number?
CREATE TABLE table_20684390_1 (mccain_number INTEGER)
SELECT MAX(mccain_number) FROM table_20684390_1
Of the years that had exactly 17096 departures, what is the greatest number of aircraft kilometers flown?
CREATE TABLE table_105344_2 (aircraft_kilometers INTEGER, departures VARCHAR)
SELECT MAX(aircraft_kilometers) FROM table_105344_2 WHERE departures = 17096
What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_64 WHERE surface = "hard" AND opponent = "ruben de kleijn"
What was the average year that Xuxa 3 earned the certification 2x platinum, and that the sales were higher than 750,000?
CREATE TABLE table_name_60 (year INTEGER, sales VARCHAR, certification VARCHAR, álbum VARCHAR)
SELECT AVG(year) FROM table_name_60 WHERE certification = "2x platinum" AND álbum = "xuxa 3" AND sales > 750 OFFSET 000
What are the minimum indoor results that have a 5 for inspection?
CREATE TABLE table_19534874_2 (indoor INTEGER, inspection VARCHAR)
SELECT MIN(indoor) FROM table_19534874_2 WHERE inspection = 5
Who was the father of the person born in 1363?
CREATE TABLE table_name_97 (father VARCHAR, birth VARCHAR)
SELECT father FROM table_name_97 WHERE birth = "1363"
Name the record for 21 january 2008
CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_4 WHERE date = "21 january 2008"
Name the D 48 when it has a D 44 of d 33
CREATE TABLE table_name_29 (d_48 VARCHAR, d_44 VARCHAR)
SELECT d_48 FROM table_name_29 WHERE d_44 = "d 33"
what is the amount of silver when gold is 2 and the rank is more than 1?
CREATE TABLE table_name_6 (silver INTEGER, gold VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_6 WHERE gold = 2 AND rank > 1
What tournament had a score of 5–7, 6–4, 6–4?
CREATE TABLE table_name_65 (tournament_name VARCHAR, score VARCHAR)
SELECT tournament_name FROM table_name_65 WHERE score = "5–7, 6–4, 6–4"
What Surface had a Rally HQ of salou?
CREATE TABLE table_name_58 (surface VARCHAR, rally_hq VARCHAR)
SELECT surface FROM table_name_58 WHERE rally_hq = "salou"
Which Region has an Area of 9,451km²?
CREATE TABLE table_name_65 (region VARCHAR, area__km²_ VARCHAR)
SELECT region FROM table_name_65 WHERE area__km²_ = "9,451"
How many draws feature artist wendy fierce?
CREATE TABLE table_name_18 (draw INTEGER, artist VARCHAR)
SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce"
What is the number of losses for the team with 1 draw and 34 tries against?
CREATE TABLE table_name_49 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
SELECT lost FROM table_name_49 WHERE drawn = "1" AND tries_against = "34"
How many entries are shown for high points when the score was l 87–89 (ot)?
CREATE TABLE table_27722408_6 (high_points VARCHAR, score VARCHAR)
SELECT COUNT(high_points) FROM table_27722408_6 WHERE score = "L 87–89 (OT)"
What is the name of the deputy in 1992–93?
CREATE TABLE table_name_41 (deputy VARCHAR, year VARCHAR)
SELECT deputy FROM table_name_41 WHERE year = "1992–93"
Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?
CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected"
Which team has 16 points and ranks 14th?
CREATE TABLE table_name_90 (team VARCHAR, points VARCHAR, rank VARCHAR)
SELECT team FROM table_name_90 WHERE points = 16 AND rank = "14th"
What is the total of pick numbers with a Reg GP larger than 0?
CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER)
SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0
What is the 1990–1991 Team that had Joel Otto?
CREATE TABLE table_name_41 (name VARCHAR)
SELECT 1990 AS _1991_team FROM table_name_41 WHERE name = "joel otto"
What was Barreto's song choice where the original artist was Patricia Marx?
CREATE TABLE table_27614571_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_27614571_1 WHERE original_artist = "Patricia Marx"
What was the team's record on August 4?
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_8 WHERE date = "august 4"
What position did the player who was picked in round 3 play?
CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR)
SELECT position FROM table_name_18 WHERE round = 3
What position did Lee Gilmour play while having more than 4 Tries and 20 points?
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, tries VARCHAR, points VARCHAR)
SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = "lee gilmour"
What Attendance has a Result of l12–21?
CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_13 WHERE result = "l12–21"
In what conflicts was the Italian Navy Combatants B?
CREATE TABLE table_26977890_1 (conflict VARCHAR, combatants_b VARCHAR)
SELECT conflict FROM table_26977890_1 WHERE combatants_b = "Italian Navy"
What was the points againt when played is played?
CREATE TABLE table_12828723_5 (points_against VARCHAR)
SELECT points_against FROM table_12828723_5 WHERE "played" = "played"
What is the lowest rank for the team that raced a time of 6:17.62 and a notes of sa/b?
CREATE TABLE table_name_87 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_87 WHERE notes = "sa/b" AND time = "6:17.62"
What was the record on May 21?
CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_15 WHERE date = "may 21"
What country has a time of 3:19.167?
CREATE TABLE table_name_36 (country VARCHAR, time VARCHAR)
SELECT country FROM table_name_36 WHERE time = "3:19.167"
Who is the Candidate when the Riding is Hochelaga?
CREATE TABLE table_name_13 (candidate VARCHAR, riding VARCHAR)
SELECT candidate FROM table_name_13 WHERE riding = "hochelaga"
What college has a pick smaller than 87 for the position of tackle?
CREATE TABLE table_name_73 (college VARCHAR, position VARCHAR, pick VARCHAR)
SELECT college FROM table_name_73 WHERE position = "tackle" AND pick < 87
Please show different types of artworks with the corresponding number of artworks of each type.
CREATE TABLE artwork (TYPE VARCHAR)
SELECT TYPE, COUNT(*) FROM artwork GROUP BY TYPE
What was the number of dances for the competition finish of 3?
CREATE TABLE table_25557556_5 (number_of_dances INTEGER, competition_finish VARCHAR)
SELECT MAX(number_of_dances) FROM table_25557556_5 WHERE competition_finish = 3
what is the total number of deadline for completion where description is facebook becomes a publicly traded company
CREATE TABLE table_12078626_1 (deadline_for_completion VARCHAR, description VARCHAR)
SELECT COUNT(deadline_for_completion) FROM table_12078626_1 WHERE description = "Facebook becomes a publicly traded company"
Which jockey had a group of G3?
CREATE TABLE table_name_76 (jockey VARCHAR, group VARCHAR)
SELECT jockey FROM table_name_76 WHERE group = "g3"
What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals?
CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE bronze > 1 AND nation = "west germany" AND gold > 2
Which venue did the match where Collingwood was the home team take place?
CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_32 WHERE home_team = "collingwood"
What theme is associated with a year before 2006 and Issue Price of $25.22?
CREATE TABLE table_name_14 (theme VARCHAR, year VARCHAR, issue_price VARCHAR)
SELECT theme FROM table_name_14 WHERE year < 2006 AND issue_price = "$25.22"
What is the height m/ft where 207 w. hastings st. is the address?
CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR)
SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."
What kind of Rarotongan has a Tahitian of /metua/?
CREATE TABLE table_name_15 (rarotongan VARCHAR, tahitian VARCHAR)
SELECT rarotongan FROM table_name_15 WHERE tahitian = "/metua/"
What was the attendance at Windy Hill?
CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill"
What is the cumulative time (min and seconds) that has more than 6 seconds in shuttle time and a total level time of 64.8 seconds?
CREATE TABLE table_name_93 (cumulative_time__min_and_seconds_ VARCHAR, shuttle_time__seconds_ VARCHAR, total_level_time__s_ VARCHAR)
SELECT cumulative_time__min_and_seconds_ FROM table_name_93 WHERE shuttle_time__seconds_ > 6 AND total_level_time__s_ = 64.8
What engine has g tyres and is driven by elio de angelis?
CREATE TABLE table_name_30 (engine VARCHAR, tyres VARCHAR, driver VARCHAR)
SELECT engine FROM table_name_30 WHERE tyres = "g" AND driver = "elio de angelis"
Which Losses is the lowest one that has Wins smaller than 0?
CREATE TABLE table_name_92 (losses INTEGER, wins INTEGER)
SELECT MIN(losses) FROM table_name_92 WHERE wins < 0
What is the record when Danilo Pereira was the opponent?
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_58 WHERE opponent = "danilo pereira"
WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?
CREATE TABLE table_name_73 (points VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR)
SELECT COUNT(points) FROM table_name_73 WHERE wins < 14 AND club = "sd indauchu" AND position > 12
What is the tie no for the home team swansea city?
CREATE TABLE table_name_26 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_26 WHERE home_team = "swansea city"
What is the margin of victory of the tournament on 15 Jul 2007?
CREATE TABLE table_name_34 (margin_of_victory VARCHAR, date VARCHAR)
SELECT margin_of_victory FROM table_name_34 WHERE date = "15 jul 2007"
What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?
CREATE TABLE table_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_59 WHERE position = "guard" AND school_club_team = "notre dame"
How many runs allowed did the team ranked 2 with more than 2 losses have?
CREATE TABLE table_name_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR)
SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2
For the Player from Brampton, ON what is their NBA Draft status?
CREATE TABLE table_name_99 (nba_draft VARCHAR, hometown VARCHAR)
SELECT nba_draft FROM table_name_99 WHERE hometown = "brampton, on"
On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?
CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR)
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn"
Find the number of concerts happened in the stadium with the highest capacity .
CREATE TABLE concert (stadium_id VARCHAR, capacity VARCHAR); CREATE TABLE stadium (stadium_id VARCHAR, capacity VARCHAR)
SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)
How many locations were recorded when the opponent Columbus Blue Jackets?
CREATE TABLE table_17360840_9 (location VARCHAR, opponent VARCHAR)
SELECT COUNT(location) FROM table_17360840_9 WHERE opponent = "Columbus Blue Jackets"
Which date has a Result of won, and a Score of 1-0?
CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR, score VARCHAR)
SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0"
Name the site for game of game 2
CREATE TABLE table_name_26 (site VARCHAR, game VARCHAR)
SELECT site FROM table_name_26 WHERE game = "game 2"
When +20.3 is the ± yes side 2008 (%) what is the for percentage?
CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)
SELECT for___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+20.3"
The color sapphire is assigned to which Terminus?
CREATE TABLE table_name_4 (terminus VARCHAR, color VARCHAR)
SELECT terminus FROM table_name_4 WHERE color = "sapphire"
Who was the away team at Victoria Park?
CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_1 WHERE venue = "victoria park"
Which League Cup has a Scottish Cup larger than 69?
CREATE TABLE table_name_42 (league INTEGER, scottish_cup INTEGER)
SELECT SUM(league) AS Cup FROM table_name_42 WHERE scottish_cup > 69
What is Damien Martyn's bowling style?
CREATE TABLE table_name_49 (bowling_style VARCHAR, player VARCHAR)
SELECT bowling_style FROM table_name_49 WHERE player = "damien martyn"
What is the detailed family information where the sequence is aagtact?
CREATE TABLE table_26708105_2 (detailed_family_information VARCHAR, sequence VARCHAR)
SELECT COUNT(detailed_family_information) FROM table_26708105_2 WHERE sequence = "aAGTAct"
What entrant has a P tyre and was constructed by Alfa Romeo?
CREATE TABLE table_name_1 (entrant VARCHAR, tyre VARCHAR, constructor VARCHAR)
SELECT entrant FROM table_name_1 WHERE tyre = "p" AND constructor = "alfa romeo"
When was the kickoff time of the SB XXXVI?
CREATE TABLE table_name_93 (kickoff VARCHAR, week VARCHAR)
SELECT kickoff FROM table_name_93 WHERE week = "sb xxxvi"
Show the home city with the most number of drivers.
CREATE TABLE driver (home_city VARCHAR)
SELECT home_city FROM driver GROUP BY home_city ORDER BY COUNT(*) DESC LIMIT 1
who is the outgoing manager when the manner of departure is contract terminated and the date of vacancy is 1 september 2008?
CREATE TABLE table_name_22 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT outgoing_manager FROM table_name_22 WHERE manner_of_departure = "contract terminated" AND date_of_vacancy = "1 september 2008"
Who was the incumbent in the Kentucky 8 district?
CREATE TABLE table_2668367_7 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_2668367_7 WHERE district = "Kentucky 8"
Which stadium can hold 63,443 people?
CREATE TABLE table_name_97 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_97 WHERE attendance = "63,443"
Name the least evening gown for interview more than 7.97 and swimsui of 7.24
CREATE TABLE table_name_25 (evening_gown INTEGER, swimsuit VARCHAR, interview VARCHAR)
SELECT MIN(evening_gown) FROM table_name_25 WHERE swimsuit = 7.24 AND interview > 7.97
What s the episode number in the season that was written by Nancy Oliver?
CREATE TABLE table_2182654_6 (no_in_season INTEGER, written_by VARCHAR)
SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver"
Which highest overall has a College of idaho, and a Round smaller than 1?
CREATE TABLE table_name_31 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_31 WHERE college = "idaho" AND round < 1
What score did Ed Furgol get to come in at T6?
CREATE TABLE table_name_7 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_7 WHERE place = "t6" AND player = "ed furgol"
What opponent has october less than 20, and 8 for points?
CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8
Which arena has a capactiy of 1,100?
CREATE TABLE table_name_8 (arena VARCHAR, capacity VARCHAR)
SELECT arena FROM table_name_8 WHERE capacity = "1,100"
How many joined Manchester University?
CREATE TABLE table_255205_1 (joined VARCHAR, institution VARCHAR)
SELECT joined FROM table_255205_1 WHERE institution = "Manchester University"
In Ascot (UK), what was the result?
CREATE TABLE table_14981555_3 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_14981555_3 WHERE venue = "Ascot (UK)"
Show card type codes with at least 5 cards.
CREATE TABLE Customers_cards (card_type_code VARCHAR)
SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING COUNT(*) >= 5
what year was cryptogramophon released
CREATE TABLE table_name_11 (year VARCHAR, label VARCHAR)
SELECT year FROM table_name_11 WHERE label = "cryptogramophon"
in which year the season was in 5th position
CREATE TABLE table_29697744_1 (season VARCHAR, position VARCHAR)
SELECT season FROM table_29697744_1 WHERE position = "5th"
What opponent is at Richmond Academy?
CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_38 WHERE location_attendance = "richmond academy"
What was the venue where the result was 12th?
CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_73 WHERE result = "12th"
What was the runner-up when champion is 0, 4th place is 0 and rank is 6?
CREATE TABLE table_name_18 (runner_up VARCHAR, rank VARCHAR, champion VARCHAR, fourth_place VARCHAR)
SELECT runner_up FROM table_name_18 WHERE champion = "0" AND fourth_place = "0" AND rank = 6
What is the number of Seats for Leader Enda kenny?
CREATE TABLE table_name_49 (seats VARCHAR, leader VARCHAR)
SELECT seats FROM table_name_49 WHERE leader = "enda kenny"
who is the artist when the televote/sms is 3.20%?
CREATE TABLE table_name_20 (artist VARCHAR, televote_sms VARCHAR)
SELECT artist FROM table_name_20 WHERE televote_sms = "3.20%"
What is Samuel Smith's party?
CREATE TABLE table_2668329_11 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_2668329_11 WHERE incumbent = "Samuel Smith"
Which Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500?
CREATE TABLE table_name_16 (year VARCHAR, quarter_finalists VARCHAR, semi_finalists VARCHAR)
SELECT year FROM table_name_16 WHERE quarter_finalists = "£1,000" AND semi_finalists = "£1,500"
What is the Flattening ratio associated with the Equatorial diameter of 120,536km?
CREATE TABLE table_name_75 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
SELECT flattening_ratio FROM table_name_75 WHERE equatorial_diameter = "120,536km"
Who did they play when the score was 95-114?
CREATE TABLE table_name_11 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_11 WHERE score = "95-114"
How many periods had 15 goals?
CREATE TABLE table_24565004_11 (period VARCHAR, goals¹ VARCHAR)
SELECT COUNT(period) FROM table_24565004_11 WHERE goals¹ = 15
How many points does g a vandervell have?
CREATE TABLE table_name_95 (points VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_95 WHERE entrant = "g a vandervell"
What is the average Wins, when F/Laps is greater than 1, and when Points is 80?
CREATE TABLE table_name_18 (wins INTEGER, f_laps VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_18 WHERE f_laps > 1 AND points = "80"
Show the name of the party that has at least two records.
CREATE TABLE party (Party VARCHAR)
SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2
Game larger than 34, and a December smaller than 23 had what record?
CREATE TABLE table_name_20 (record VARCHAR, game VARCHAR, december VARCHAR)
SELECT record FROM table_name_20 WHERE game > 34 AND december < 23