question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the varsity name of the university of mcgill university?
CREATE TABLE table_27369069_4 (varsity_name VARCHAR, university VARCHAR)
SELECT varsity_name FROM table_27369069_4 WHERE university = "McGill university"
What are the names of conductors whose nationalities are not "USA"?
CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR)
SELECT Name FROM conductor WHERE Nationality <> 'USA'
What is the Film title used in nomination of Cilvēka Bērns?
CREATE TABLE table_name_91 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_91 WHERE original_title = "cilvēka bērns"
What are the hometowns that are shared by at least two gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2
WHat is the them for the order #2?
CREATE TABLE table_26250145_1 (theme VARCHAR, order__number VARCHAR)
SELECT theme FROM table_26250145_1 WHERE order__number = "2"
What is the score when the team is milwaukee?
CREATE TABLE table_27734769_8 (score VARCHAR, team VARCHAR)
SELECT score FROM table_27734769_8 WHERE team = "Milwaukee"
what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம்
CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, tamil_name_தமிழ் VARCHAR)
SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE tamil_name_தமிழ் = "Punarpoosam புனர்பூசம்"
Which Transfer fee has Ends larger than 2011, and a Moving from of psv?
CREATE TABLE table_name_27 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR)
SELECT transfer_fee FROM table_name_27 WHERE ends > 2011 AND moving_from = "psv"
What was the first leg against Hibernian?
CREATE TABLE table_name_13 (first_leg VARCHAR, opposition VARCHAR)
SELECT first_leg FROM table_name_13 WHERE opposition = "hibernian"
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%"
What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?
CREATE TABLE table_name_2 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR)
SELECT model_number FROM table_name_2 WHERE voltage = "2.0v" AND frequency = "350 mhz"
What golfer has 281 as their total?
CREATE TABLE table_name_52 (player VARCHAR, total VARCHAR)
SELECT player FROM table_name_52 WHERE total = 281
What is the average played for less than 8 points?
CREATE TABLE table_name_37 (played INTEGER, points INTEGER)
SELECT AVG(played) FROM table_name_37 WHERE points < 8
How many years did the team place 2nd in Antwerp, Belgium?
CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR)
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd"
Which Conference Finals has a Seed of † denotes division championship?
CREATE TABLE table_name_32 (conference_finals VARCHAR, seed VARCHAR)
SELECT conference_finals FROM table_name_32 WHERE seed = "† denotes division championship"
What position did the #10 draft pick play?
CREATE TABLE table_1004033_1 (position VARCHAR, draft_pick__number VARCHAR)
SELECT position FROM table_1004033_1 WHERE draft_pick__number = "10"
What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?
CREATE TABLE table_name_82 (rank INTEGER, u_17_goals VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_82 WHERE u_17_goals = 7 AND player = "cesc fàbregas"
Which team does Robert Brooks play with?
CREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR)
SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks"
How many sockets are listed that have a brand name of "Core i3-2xx7m"?
CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR)
SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M"
What number episode in the season had a production code of 334?
CREATE TABLE table_29102100_1 (season__number INTEGER, prod_code VARCHAR)
SELECT MAX(season__number) FROM table_29102100_1 WHERE prod_code = 334
What is the rank of the swimmer named Petria Thomas?
CREATE TABLE table_name_34 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_34 WHERE name = "petria thomas"
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "15.28"
What is the month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider?
CREATE TABLE table_name_73 (month VARCHAR, _year VARCHAR, sunk_by_aircraft VARCHAR, sunk_by_warship_or_raider VARCHAR)
SELECT month, _year FROM table_name_73 WHERE sunk_by_aircraft < 106005 AND sunk_by_warship_or_raider = 61857
Who has the highest ranking from 1996–13, and more than 17 goals?
CREATE TABLE table_name_80 (ranking INTEGER, years VARCHAR, goals VARCHAR)
SELECT MAX(ranking) FROM table_name_80 WHERE years = "1996–13" AND goals > 17
NHL players are all centre in Florida panthers.
CREATE TABLE table_1013129_10 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT player FROM table_1013129_10 WHERE position = "Centre" AND nhl_team = "Florida Panthers"
How many departments does the college has?
CREATE TABLE department (dept_name VARCHAR)
SELECT COUNT(DISTINCT dept_name) FROM department
What is the year that saw a passenger change of +32,9%?
CREATE TABLE table_name_53 (year VARCHAR, passenger_change VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE passenger_change = "+32,9%"
What is the total number for Rank with 185.16 points and a SP+FS value greater than 5?
CREATE TABLE table_name_44 (rank VARCHAR, points VARCHAR, sp VARCHAR, fs VARCHAR)
SELECT COUNT(rank) FROM table_name_44 WHERE points = 185.16 AND sp + fs > 5
Did the I Brazilian Grand Prix have a report?
CREATE TABLE table_1140088_6 (report VARCHAR, race_name VARCHAR)
SELECT report FROM table_1140088_6 WHERE race_name = "I Brazilian Grand Prix"
What is the highest pick of the wr player with an overall less than 15?
CREATE TABLE table_name_62 (pick INTEGER, position VARCHAR, overall VARCHAR)
SELECT MAX(pick) FROM table_name_62 WHERE position = "wr" AND overall < 15
What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no.
CREATE TABLE table_26099252_1 (latest_stable_release VARCHAR, vp9___webm__ VARCHAR, h264 VARCHAR)
SELECT latest_stable_release FROM table_26099252_1 WHERE vp9___webm__ = "No" AND h264 = "3.0"
How many written by have wendey stanzler as the director?
CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(written_by) FROM table_22570439_1 WHERE directed_by = "Wendey Stanzler"
How many episodes had 11.47 million viewers?
CREATE TABLE table_24689168_5 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(episode) FROM table_24689168_5 WHERE viewers__millions_ = "11.47"
Which Builder has a Pennant number of Q149?
CREATE TABLE table_name_63 (builder VARCHAR, pennant_number VARCHAR)
SELECT builder FROM table_name_63 WHERE pennant_number = "q149"
What is the Name of Index F3?
CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR)
SELECT name FROM table_name_1 WHERE index = "f3"
What is the lowest attendance for week 2?
CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_50 WHERE week = 2
What was McCain's vote when Obama had 48.35%
CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR)
SELECT MIN(mccain_number) FROM table_20722805_1 WHERE obama_percentage = "48.35%"
What is the average earnings of poker players with height higher than 200?
CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE poker_player (Earnings INTEGER, People_ID VARCHAR)
SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
what's the date of birth with end of term being 5july1978
CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "5July1978"
What club has less than 8 draws, 37 points, and less than 71 goals?
CREATE TABLE table_name_88 (club VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR)
SELECT club FROM table_name_88 WHERE draws < 8 AND points = 37 AND goals_for < 71
What is the name for 30 september 1943?
CREATE TABLE table_1220125_4 (name VARCHAR, launched VARCHAR)
SELECT name FROM table_1220125_4 WHERE launched = "30 September 1943"
Which Description has a Year of Issue of 1983, and a Thickness of 1.7mm, and a Weight of 3.50grams?
CREATE TABLE table_name_8 (description VARCHAR, weight VARCHAR, year_of_issue VARCHAR, thickness VARCHAR)
SELECT description FROM table_name_8 WHERE year_of_issue = 1983 AND thickness = "1.7mm" AND weight = "3.50grams"
Which country does FC Atyrau represent after the 2006 season?
CREATE TABLE table_name_67 (country VARCHAR, season VARCHAR, team VARCHAR)
SELECT country FROM table_name_67 WHERE season > 2006 AND team = "fc atyrau"
Name the total number of pommel horses for vault of 9.475 and rank more than 16
CREATE TABLE table_name_65 (pommel_horse VARCHAR, rank VARCHAR, vault VARCHAR)
SELECT COUNT(pommel_horse) FROM table_name_65 WHERE rank > 16 AND vault = 9.475
What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 16
What is the average pick after Round 2?
CREATE TABLE table_name_33 (pick INTEGER, round INTEGER)
SELECT AVG(pick) FROM table_name_33 WHERE round > 2
What was the total crowd attendance at Westpac Stadium?
CREATE TABLE table_name_98 (crowd INTEGER, ground VARCHAR)
SELECT SUM(crowd) FROM table_name_98 WHERE ground = "westpac stadium"
What Week 2 has a Week 3 of casey mae?
CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR)
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae"
What date was the opponent the Boston Yanks?
CREATE TABLE table_name_44 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_44 WHERE opponent = "boston yanks"
What is the Original Artis of the Track with a Length of 2:38?
CREATE TABLE table_name_64 (original_artist VARCHAR, length VARCHAR)
SELECT original_artist FROM table_name_64 WHERE length = "2:38"
Which Award has a nominated, and outstanding choreography?
CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR)
SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography"
Who was the opponent at the game when the record was 15–15?
CREATE TABLE table_name_68 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_68 WHERE record = "15–15"
Which money is the highest one that has a To par of –1, and a Score of 73-70-73-71=287?
CREATE TABLE table_name_56 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287
When was the episode number 2 originally aired?
CREATE TABLE table_19632728_1 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT original_air_date FROM table_19632728_1 WHERE episode__number = 2
What is the score of the game with tie number 65?
CREATE TABLE table_name_23 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_23 WHERE tie_no = "65"
How many times did episode number 8 air?
CREATE TABLE table_24399615_5 (cable_rank VARCHAR, episode_no VARCHAR)
SELECT COUNT(cable_rank) FROM table_24399615_5 WHERE episode_no = 8
what is the name of the episode whose writers were jeff astrof & matt goldman?
CREATE TABLE table_27914606_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_27914606_1 WHERE written_by = "Jeff Astrof & Matt Goldman"
What is Outcome, when Date is "19 September 2012"?
CREATE TABLE table_name_97 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_97 WHERE date = "19 september 2012"
Which Make has a Pos larger than 9?
CREATE TABLE table_name_33 (make VARCHAR, pos INTEGER)
SELECT make FROM table_name_33 WHERE pos > 9
Who is the 2005 World AIDS Day Benefit "Dream" Cast when the Original Australian performer is Susan-Ann Walker?
CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR)
SELECT 2005 AS _world_aids_day_benefit_dream_cast FROM table_1901751_1 WHERE original_australian_performer = "Susan-Ann Walker"
What event had Xu Zhilin competing?
CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR)
SELECT event FROM table_name_21 WHERE name = "xu zhilin"
Who scored more than 8 goals, had more than 75 caps, and averaged 0.432?
CREATE TABLE table_name_42 (player VARCHAR, average VARCHAR, goals VARCHAR, caps VARCHAR)
SELECT player FROM table_name_42 WHERE goals > 8 AND caps > 75 AND average = 0.432
what driver has 12 in grid?
CREATE TABLE table_name_80 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_80 WHERE grid = 12
Tell me europe for japan of january 28, 2010
CREATE TABLE table_name_72 (europe VARCHAR, japan VARCHAR)
SELECT europe FROM table_name_72 WHERE japan = "january 28, 2010"
Which Competition was 1st Position with 57.03 in Notes?
CREATE TABLE table_name_57 (competition VARCHAR, position VARCHAR, notes VARCHAR)
SELECT competition FROM table_name_57 WHERE position = "1st" AND notes = "57.03"
Which English has German of leben?
CREATE TABLE table_name_26 (english VARCHAR, german VARCHAR)
SELECT english FROM table_name_26 WHERE german = "leben"
What is the away team's score when geelong is the away team?
CREATE TABLE table_name_73 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_73 WHERE away_team = "geelong"
What team lost on 20 August 1989?
CREATE TABLE table_name_82 (losingteam VARCHAR, cup_finaldate VARCHAR)
SELECT losingteam FROM table_name_82 WHERE cup_finaldate = "20 august 1989"
Who was the Home captain that played at the venue Oval?
CREATE TABLE table_name_13 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_13 WHERE venue = "oval"
Which location has 13 floors and a rank greater than 12?
CREATE TABLE table_name_83 (location VARCHAR, rank VARCHAR, floors VARCHAR)
SELECT location FROM table_name_83 WHERE rank > 12 AND floors = 13
Who had the high assists when the opponent was Indiana?
CREATE TABLE table_27882867_9 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_27882867_9 WHERE team = "Indiana"
Which opponent had a 113-124 score?
CREATE TABLE table_name_52 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_52 WHERE score = "113-124"
Name the high rebounds for american airlines center 20,557
CREATE TABLE table_23284271_11 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT high_rebounds FROM table_23284271_11 WHERE location_attendance = "American Airlines Center 20,557"
What are the distinct types of the companies that have operated any flights with velocity less than 200?
CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (type VARCHAR, id VARCHAR)
SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200
What team was the Opponent when the Score was 31-6?
CREATE TABLE table_name_83 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_83 WHERE score = "31-6"
Which text has Wade-Giles translation of ai-ma … hsin-yüan?
CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR)
SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan"
What is the Attendance at the Hereford United Away game?
CREATE TABLE table_name_94 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_94 WHERE away_team = "hereford united"
What are all the AAA classes in the school years of 2004-05?
CREATE TABLE table_14603212_5 (class_aAA VARCHAR, school_year VARCHAR)
SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05"
Who were the candidates in the district whose incumbent is Joe Waggonner?
CREATE TABLE table_1341843_19 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341843_19 WHERE incumbent = "Joe Waggonner"
What is the average year of events that took place in Antwerp, Belgium?
CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR)
SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium"
How many tons was the ship from norway?
CREATE TABLE table_name_14 (tons VARCHAR, nationality VARCHAR)
SELECT COUNT(tons) FROM table_name_14 WHERE nationality = "norway"
What is the home team that played Derby County as the away team?
CREATE TABLE table_name_18 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_18 WHERE away_team = "derby county"
What country does Adam van Koeverden play for?
CREATE TABLE table_name_31 (country VARCHAR, athletes VARCHAR)
SELECT country FROM table_name_31 WHERE athletes = "adam van koeverden"
What is the earliest closed year in the country of france?
CREATE TABLE table_name_94 (closed__as_a_rl_stadium_ INTEGER, country VARCHAR)
SELECT MIN(closed__as_a_rl_stadium_) FROM table_name_94 WHERE country = "france"
What is the lowest Rank, when the Current Seating Capacity is 137,000?
CREATE TABLE table_name_55 (rank INTEGER, current_seating_capacity VARCHAR)
SELECT MIN(rank) FROM table_name_55 WHERE current_seating_capacity = 137 OFFSET 000
Name the Latest stable release that has a Price in USD of free / negotiable?
CREATE TABLE table_name_36 (latest_stable_release VARCHAR, price_in_usd VARCHAR)
SELECT latest_stable_release FROM table_name_36 WHERE price_in_usd = "free / negotiable"
Which country has Hydra Head Records on February 2005?
CREATE TABLE table_name_96 (country VARCHAR, label VARCHAR, date VARCHAR)
SELECT country FROM table_name_96 WHERE label = "hydra head records" AND date = "february 2005"
When was the new manager of the team on 21st position appointed?
CREATE TABLE table_19359427_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date_of_appointment FROM table_19359427_6 WHERE position_in_table = "21st"
How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?
CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR)
SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = "40-4" AND goals_for > 57
Date of wed. nov. 13 had how many number of games?
CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR)
SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13"
What is the average wins in 250cc class for Bultaco with 8 points later than 1966?
CREATE TABLE table_name_84 (wins INTEGER, points VARCHAR, year VARCHAR, class VARCHAR, team VARCHAR)
SELECT AVG(wins) FROM table_name_84 WHERE class = "250cc" AND team = "bultaco" AND year > 1966 AND points = 8
What day were the Denver Broncos the opponent?
CREATE TABLE table_14655917_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_14655917_1 WHERE opponent = "Denver Broncos"
What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?
CREATE TABLE table_name_4 (opponent VARCHAR, points VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_4 WHERE points > 5 AND attendance > 13 OFFSET 567
How many figures are given for McCain's % in Davidson county?
CREATE TABLE table_20799905_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT COUNT(mccain_percentage) FROM table_20799905_1 WHERE county = "DAVIDSON"
What is the highest heat for a lane past 1 and mark of 1:48.61?
CREATE TABLE table_name_79 (heat INTEGER, lane VARCHAR, mark VARCHAR)
SELECT MAX(heat) FROM table_name_79 WHERE lane > 1 AND mark = "1:48.61"
What was the loss from the coyotes as opponents?
CREATE TABLE table_name_20 (loss VARCHAR, opponent VARCHAR)
SELECT loss FROM table_name_20 WHERE opponent = "coyotes"
Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30?
CREATE TABLE table_name_86 (top_10 INTEGER, winnings VARCHAR, avg_start VARCHAR)
SELECT MIN(top_10) FROM table_name_86 WHERE winnings = "$405,300" AND avg_start < 30
Which Home team has an Away team of fitzroy?
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_62 WHERE away_team = "fitzroy"
What is the Entered service date of the H1 Locomotive?
CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR)
SELECT entered_service FROM table_name_54 WHERE locomotive = "h1"
Who are the studio analysts for the year 2008-09?
CREATE TABLE table_14902507_2 (studio_analysts VARCHAR, year VARCHAR)
SELECT studio_analysts FROM table_14902507_2 WHERE year = "2008-09"