answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = "hadise açıkgöz, yves jongen" AND length = "3:08"
Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?
CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR)
SELECT competition FROM table_name_31 WHERE date = "1 march 1909"
What competition was held 1 March 1909?
CREATE TABLE table_name_31 (competition VARCHAR, date VARCHAR)
SELECT location FROM table_21330550_2 WHERE time = "9:30PM"
Which location has a time of 9:30pm?
CREATE TABLE table_21330550_2 (location VARCHAR, time VARCHAR)
SELECT city FROM table_name_37 WHERE name = "universidad de santiago de compostela"
In which city is the Universidad de Santiago de Compostela located?
CREATE TABLE table_name_37 (city VARCHAR, name VARCHAR)
SELECT opponents_in_final FROM table_name_29 WHERE date = "9 january 1994"
Who were the opponents in the final on 9 January 1994?
CREATE TABLE table_name_29 (opponents_in_final VARCHAR, date VARCHAR)
SELECT home FROM table_name_21 WHERE visitor = "chicago"
Who was the home team in the game having a visitor of Chicago?
CREATE TABLE table_name_21 (home VARCHAR, visitor VARCHAR)
SELECT school_club_team FROM table_name_84 WHERE acquisition_via = "rookie draft" AND position = "guard" AND name = "dennis miranda"
What team acquired as a rookie draft in the position of guard Dennis Miranda?
CREATE TABLE table_name_84 (school_club_team VARCHAR, name VARCHAR, acquisition_via VARCHAR, position VARCHAR)
SELECT date_of_appointment FROM table_name_96 WHERE team = "dundee"
What date was Dundee appointed?
CREATE TABLE table_name_96 (date_of_appointment VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_name_86 WHERE record = "30–25–9" AND points > 69
How many games have a record of 30–25–9 and more points than 69?
CREATE TABLE table_name_86 (game VARCHAR, record VARCHAR, points VARCHAR)
SELECT worship_leader FROM table_name_17 WHERE time = "7:05"
Who was the Worship Leader for the song that was 7:05 long?
CREATE TABLE table_name_17 (worship_leader VARCHAR, time VARCHAR)
SELECT track FROM table_name_55 WHERE year = "1926"
What track was used in 1926?
CREATE TABLE table_name_55 (track VARCHAR, year VARCHAR)
SELECT visitor FROM table_name_26 WHERE home = "tampa bay"
Who was the visitor team in tampa bay?
CREATE TABLE table_name_26 (visitor VARCHAR, home VARCHAR)
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"
Which campus has the San Agustin gym?
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR)
SELECT power__kw_ FROM table_name_7 WHERE branding = "mom's radio 101.5 tacloban"
What's the power of Mom's Radio 101.5 Tacloban?
CREATE TABLE table_name_7 (power__kw_ VARCHAR, branding VARCHAR)
SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship = "gannet"
Who was the builder of Gannet from the United Kingdom?
CREATE TABLE table_name_60 (builder VARCHAR, country VARCHAR, ship VARCHAR)
SELECT result FROM table_name_2 WHERE attendance = "46,456"
What was the result when the attendance was 46,456?
CREATE TABLE table_name_2 (result VARCHAR, attendance VARCHAR)
SELECT iata FROM table_name_58 WHERE country = "china"
What is China's IATA?
CREATE TABLE table_name_58 (iata VARCHAR, country VARCHAR)
SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = "northern premier league premier division" AND fa_cup = "2q"
Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?
CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR)
SELECT COUNT(*) FROM airports WHERE name LIKE '%International%'
Find the number of airports whose name contain the word 'International'.
CREATE TABLE airports (name VARCHAR)
SELECT founded FROM table_name_59 WHERE location = "athelstone"
When was the team that plays at Athelstone founded?
CREATE TABLE table_name_59 (founded VARCHAR, location VARCHAR)
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE"
What are the start and end dates for incidents with incident type code "NOISE"?
CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, date_incident_end VARCHAR, incident_type_code VARCHAR)
SELECT type FROM table_256286_40 WHERE yes_votes = 175932
What was the type when there were 175932 yes votes?
CREATE TABLE table_256286_40 (type VARCHAR, yes_votes VARCHAR)
SELECT home_team AS score FROM table_name_66 WHERE venue = "corio oval"
What is the home team's score at corio oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) <= 1
Show the names and ids of tourist attractions that are visited at most once.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = "electronic sports"
I want the lowest Gold for silver being 2 and electronic sports
CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)
SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%"
What is the suriname with a 16.8% brokopondo?
CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR)
SELECT dept_name FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 1
Find the name of department has the highest amount of students?
CREATE TABLE student (dept_name VARCHAR)
SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21"
Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?
CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR)
SELECT 2010 FROM table_name_51 WHERE 2006 = "w"
Which 2010 has a 2006 of w?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT round FROM table_name_23 WHERE venue = "ullevaal"
What is the Round din Ullevaal?
CREATE TABLE table_name_23 (round VARCHAR, venue VARCHAR)
SELECT sponsor_s_ FROM table_name_55 WHERE date_introduced = "june 2, 2009"
Who sponsored the bill that was introduced on June 2, 2009?
CREATE TABLE table_name_55 (sponsor_s_ VARCHAR, date_introduced VARCHAR)
SELECT status FROM table_name_11 WHERE monarch = "henry i" AND reason = "succession unclear 1100-1103"
What is the Status when Henry I is the Monarch and the Reason is succession unclear 1100-1103?
CREATE TABLE table_name_11 (status VARCHAR, monarch VARCHAR, reason VARCHAR)
SELECT nasl_club_s_ FROM table_237757_9 WHERE accolades__pre_nasl_ = "Won several titles with Leeds United"
What nasl club won several titles with leeds united?
CREATE TABLE table_237757_9 (nasl_club_s_ VARCHAR, accolades__pre_nasl_ VARCHAR)
SELECT opponents FROM table_name_96 WHERE h___a = "h" AND date = "11 august 1991"
Who was the opponent on 11 August 1991 when the H/A was H?
CREATE TABLE table_name_96 (opponents VARCHAR, h___a VARCHAR, date VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2
What is the highest Money ( $ ), when To Par is less than 2?
CREATE TABLE table_name_11 (money___ INTEGER, to_par INTEGER)
SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?
CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT pair FROM table_name_14 WHERE date = "october 14, 2008" AND dance = "samba"
Who danced the Samba on October 14, 2008?
CREATE TABLE table_name_14 (pair VARCHAR, date VARCHAR, dance VARCHAR)
SELECT SUM(points) FROM table_name_16 WHERE place < 2 AND played > 18
What is the total points for a place less than 2 with a played greater than 18?
CREATE TABLE table_name_16 (points INTEGER, place VARCHAR, played VARCHAR)
SELECT year FROM table_name_54 WHERE stages = "8"
What year was stage 8 reached?
CREATE TABLE table_name_54 (year VARCHAR, stages VARCHAR)
SELECT guest_host FROM table_name_2 WHERE air_date = "8 june 2008"
What is the Guest Host for the episode on 8 june 2008?
CREATE TABLE table_name_2 (guest_host VARCHAR, air_date VARCHAR)
SELECT team FROM table_name_56 WHERE manner_of_departure = "end of tenure as caretaker"
What team did the manager come from who departed due to an end of tenure as caretaker?
CREATE TABLE table_name_56 (team VARCHAR, manner_of_departure VARCHAR)
SELECT venue FROM table_name_96 WHERE date = "1 june 1929" AND away_team = "richmond"
What is the venue for the game on 1 June 1929 where Richmond was the away team?
CREATE TABLE table_name_96 (venue VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT SUM(silver) FROM table_name_9 WHERE nation = "turkey" AND total < 2
How many Silver medals for the Nation of Turkey with a Total of less than 2?
CREATE TABLE table_name_9 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT record FROM table_27755784_8 WHERE date = "January 7"
What is the record when the date is January 7?
CREATE TABLE table_27755784_8 (record VARCHAR, date VARCHAR)
SELECT final_round FROM table_name_31 WHERE team = "milwaukee bucks"
What was the final round score for the player from the Milwaukee Bucks?
CREATE TABLE table_name_31 (final_round VARCHAR, team VARCHAR)
SELECT MAX(frequency_mhz) FROM table_name_38 WHERE city_of_license = "byron, ga"
Which Frequency MHz is the highest one that has a City of license of byron, ga?
CREATE TABLE table_name_38 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT iata FROM table_name_4 WHERE city = "guam"
What is the IATA of Guam?
CREATE TABLE table_name_4 (iata VARCHAR, city VARCHAR)
SELECT score FROM table_name_18 WHERE outcome = "winner" AND year > 2008
What score resulted in a winner after 2008?
CREATE TABLE table_name_18 (score VARCHAR, outcome VARCHAR, year VARCHAR)
SELECT score FROM table_name_5 WHERE set_3 = "26–28"
What is the score when the set 3 is 26–28?
CREATE TABLE table_name_5 (score VARCHAR, set_3 VARCHAR)
SELECT MIN(year) FROM table_name_2 WHERE city = "peabody"
What is the earliest Year when the City is Peabody?
CREATE TABLE table_name_2 (year INTEGER, city VARCHAR)
SELECT captain FROM table_1301373_7 WHERE international_marquee = "Emile Heskey"
Name the captain for emile heskey
CREATE TABLE table_1301373_7 (captain VARCHAR, international_marquee VARCHAR)
SELECT position FROM table_name_88 WHERE round < 14 AND college = "illinois"
Which Position has a Round smaller than 14, and a College of illinois?
CREATE TABLE table_name_88 (position VARCHAR, round VARCHAR, college VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE nation = "south africa (rsa)" AND bronze < 1
What is the total where the nation is South Africa (rsa) and bronze is less than 1?
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT location FROM table_name_4 WHERE round = "3" AND event = "ufc 110"
Where is the UFC 110 event with 3 rounds located?
CREATE TABLE table_name_4 (location VARCHAR, round VARCHAR, event VARCHAR)
SELECT engine FROM table_name_88 WHERE team = "dhg tom's racing"
Tell me the engine for dhg tom's racing
CREATE TABLE table_name_88 (engine VARCHAR, team VARCHAR)
SELECT COUNT(silver) FROM table_name_59 WHERE rank = "7" AND total > 1
What is the total number of silver medals of the team ranked 7 with more than 1 total medal?
CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT movie_album FROM table_2528382_5 WHERE co_stars = "Bela Bose"
What movie did Bela Bose co-star in?
CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR)
SELECT SUM(lane) FROM table_name_95 WHERE time = "1:57.71"
What lane has a time of 1:57.71?
CREATE TABLE table_name_95 (lane INTEGER, time VARCHAR)
SELECT COUNT(rank) FROM table_name_28 WHERE country = "great britain"
What was the rank for Great Britain?
CREATE TABLE table_name_28 (rank VARCHAR, country VARCHAR)
SELECT chassis FROM table_name_22 WHERE year > 1985 AND entrant = "jolly club spa"
What chassis did Jolly Club Spa used after 1985?
CREATE TABLE table_name_22 (chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT ihsaa_football_class FROM table_name_14 WHERE ihsaa_class = "aa" AND enrollment = 475
Which IHSAA Football Class has an IHSAA Class of aa, and an Enrollment of 475?
CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR)
SELECT score FROM table_name_20 WHERE player = "lee westwood"
What is Lee Westwood's score?
CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR)
SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?
CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR)
SELECT website FROM table_name_64 WHERE city_of_license = "monterrey" AND webcast = "listen live" AND frequency < 1050
Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?
CREATE TABLE table_name_64 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)
SELECT historical_references FROM table_name_38 WHERE podcast_date = "october 23, 2005"
What is the historical reference of the episode that aired on October 23, 2005?
CREATE TABLE table_name_38 (historical_references VARCHAR, podcast_date VARCHAR)
SELECT challenger FROM table_23982399_12 WHERE winner = "Kimio Nonaga"
Who was the challenger when winner was kimio nonaga?
CREATE TABLE table_23982399_12 (challenger VARCHAR, winner VARCHAR)
SELECT opponent_number FROM table_name_16 WHERE date = "october 17"
Who was the opponent that played against the Buckeyes on October 17?
CREATE TABLE table_name_16 (opponent_number VARCHAR, date VARCHAR)
SELECT last_air_date FROM table_name_2 WHERE season = 3
When is the last episode air date for season 3?
CREATE TABLE table_name_2 (last_air_date VARCHAR, season VARCHAR)
SELECT AVG(rating), AVG(resolution) FROM song WHERE languages = "bangla"
What are the average rating and resolution of songs that are in Bangla?
CREATE TABLE song (rating INTEGER, resolution INTEGER, languages VARCHAR)
SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
CREATE TABLE table_name_41 (total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT COUNT(losses) FROM table_name_54 WHERE goals_for < 73 AND wins < 11 AND points > 24 AND position > 15
What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15?
CREATE TABLE table_name_54 (losses VARCHAR, position VARCHAR, points VARCHAR, goals_for VARCHAR, wins VARCHAR)
SELECT opponent FROM table_name_26 WHERE surface = "hard" AND partner = "maria elena camerin"
Which Opponent had a Surface of hard, and a Partner of maria elena camerin?
CREATE TABLE table_name_26 (opponent VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT event FROM table_name_72 WHERE score > 673
Which event had a score of over 673 points?
CREATE TABLE table_name_72 (event VARCHAR, score INTEGER)
SELECT COUNT(school_club_team) FROM table_11545282_4 WHERE player = "Darryl Dawkins"
How many schools did darryl dawkins play for
CREATE TABLE table_11545282_4 (school_club_team VARCHAR, player VARCHAR)
SELECT MIN(grid) FROM table_name_89 WHERE time_retired = "1:56:18.22"
What is the smallest grid for a time/retired of 1:56:18.22?
CREATE TABLE table_name_89 (grid INTEGER, time_retired VARCHAR)
SELECT site FROM table_name_28 WHERE superintendent = "john barry"
What is the site when the superintendent was John Barry?
CREATE TABLE table_name_28 (site VARCHAR, superintendent VARCHAR)
SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne"
What was Collingwood's score when they played against North Melbourne at home?
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_2 WHERE home_team = "fitzroy"
What date was fitzroy the home team?
CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodele"
Akin Ayodele drafted before round 7 plays what position?
CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT theme FROM table_name_38 WHERE week = "week 3"
What was the theme for week 3?
CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR)
SELECT season FROM table_name_24 WHERE home = "0–1"
Which Season has a Home of 0–1?
CREATE TABLE table_name_24 (season VARCHAR, home VARCHAR)
SELECT home_team AS score FROM table_name_50 WHERE away_team = "richmond"
What was the home team score for the Richmond away team?
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
SELECT all_neutral FROM table_18135572_2 WHERE b10__percentage = ".833"
What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?
CREATE TABLE table_18135572_2 (all_neutral VARCHAR, b10__percentage VARCHAR)
SELECT platelet_count FROM table_1557752_1 WHERE condition = "Hemophilia"
What is the condition of the platelet counts in hemophilia?
CREATE TABLE table_1557752_1 (platelet_count VARCHAR, condition VARCHAR)
SELECT surface FROM table_24901152_2 WHERE championship = "US Open (2)"
When us open (2) is the championship what is the surface?
CREATE TABLE table_24901152_2 (surface VARCHAR, championship VARCHAR)
SELECT home__2nd_leg_ FROM table_name_87 WHERE aggregate = "3-4"
What is the home of aggregate's 3-4?
CREATE TABLE table_name_87 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT record FROM table_name_44 WHERE loss = "o'connor (0-1)"
Which Record has a Loss of o'connor (0-1)?
CREATE TABLE table_name_44 (record VARCHAR, loss VARCHAR)
SELECT TYPE FROM institution GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Show the institution type with the largest number of institutions.
CREATE TABLE institution (TYPE VARCHAR)
SELECT location FROM table_name_67 WHERE record = "23-17"
What is the location for the 23-17 record?
CREATE TABLE table_name_67 (location VARCHAR, record VARCHAR)
SELECT DISTINCT Director FROM film
List the distinct director of all films.
CREATE TABLE film (Director VARCHAR)
SELECT MAX(k_2_o) FROM table_name_40 WHERE na_2_o > 1.87 AND fe_2_o_3 > 0.07 AND objects = "ritual disk" AND al_2_o_3 < 0.62
What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?
CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)
SELECT COUNT(italian) FROM table_25401_15 WHERE conservative_central_italian_1 = "unu"
How many entries for Italian correspond to the Conservative Central Italian of Unu?
CREATE TABLE table_25401_15 (italian VARCHAR, conservative_central_italian_1 VARCHAR)
SELECT tour FROM table_21001903_2 WHERE mixed_doubles = "Zheng Bo Ma Jin" AND womens_singles = "Wang Yihan"
when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?
CREATE TABLE table_21001903_2 (tour VARCHAR, mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT date FROM table_name_25 WHERE opponent = "@ mariners" AND loss = "hernández (0-1)"
Which Date has an Opponent of @ mariners, and a Loss of hernández (0-1)?
CREATE TABLE table_name_25 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT home_team FROM table_name_57 WHERE round = "2nd" AND away_team = "vitória da conquista"
What is the name of the home team with a round of 2nd and Vitória da Conquista as the way team?
CREATE TABLE table_name_57 (home_team VARCHAR, round VARCHAR, away_team VARCHAR)
SELECT main_location FROM table_2076533_1 WHERE control = "Public" AND type = "Masters university"
Name the main location for public and masters university
CREATE TABLE table_2076533_1 (main_location VARCHAR, control VARCHAR, type VARCHAR)
SELECT highest_score FROM table_27268238_4 WHERE team = "Sussex"
What is the team Sussex' highest score?
CREATE TABLE table_27268238_4 (highest_score VARCHAR, team VARCHAR)
SELECT president FROM table_name_26 WHERE treasurer = "james davidson" AND season = "2006–2007"
Name the President who has a Treasurer of james davidson, and a Season of 2006–2007?
CREATE TABLE table_name_26 (president VARCHAR, treasurer VARCHAR, season VARCHAR)
SELECT location_attendance FROM table_name_82 WHERE high_assists = "ramon sessions (8)" AND date = "march 30"
what is the location attendance when the high assists is by ramon sessions (8) on march 30?
CREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)