question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest grid when the time is +45.162?
CREATE TABLE table_name_65 (grid INTEGER, time VARCHAR)
SELECT MAX(grid) FROM table_name_65 WHERE time = "+45.162"
How much did the girl, nicknamed Chidi, weigh at birth?
CREATE TABLE table_name_2 (weight_at_birth VARCHAR, gender VARCHAR, nickname VARCHAR)
SELECT weight_at_birth FROM table_name_2 WHERE gender = "girl" AND nickname = "chidi"
What was the lowest crowd size at MCG?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_1 WHERE venue = "mcg"
In what year is the notes distance 1.83m?
CREATE TABLE table_name_82 (year VARCHAR, notes VARCHAR)
SELECT year FROM table_name_82 WHERE notes = "1.83m"
Who are the rowers with the time of 5:54.57?
CREATE TABLE table_name_96 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_96 WHERE time = "5:54.57"
Which country placed t9 and had the player jiyai shin?
CREATE TABLE table_name_95 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_95 WHERE place = "t9" AND player = "jiyai shin"
What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?
CREATE TABLE table_name_67 (byes VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_67 WHERE draws < 1 AND wins < 8
Find the first names of all professors in the Accounting department who is teaching some course and the class room.
CREATE TABLE CLASS (class_room VARCHAR, prof_num VARCHAR); CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT T2.emp_fname, T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'
What is the population in 2011 for the name Beaubassin East?
CREATE TABLE table_26321719_1 (population__2011_ VARCHAR, name VARCHAR)
SELECT population__2011_ FROM table_26321719_1 WHERE name = "Beaubassin East"
What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist?
CREATE TABLE table_name_24 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR)
SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17
What is the height that has a year after 1983 and is named Phoenix Tower?
CREATE TABLE table_name_28 (height_ft___m VARCHAR, year VARCHAR, name VARCHAR)
SELECT height_ft___m FROM table_name_28 WHERE year > 1983 AND name = "phoenix tower"
How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?
CREATE TABLE table_29026564_9 (result VARCHAR, score VARCHAR)
SELECT COUNT(result) FROM table_29026564_9 WHERE score = "6–7 (2–7) , 6–2, 7–6 (7–3)"
What are the draws of Cobden when there are more than 3 losses?
CREATE TABLE table_name_23 (draws INTEGER, losses VARCHAR, club VARCHAR)
SELECT AVG(draws) FROM table_name_23 WHERE losses > 3 AND club = "cobden"
How many positions have 14 wins, goals against of 61 and fewer than 19 losses?
CREATE TABLE table_name_7 (position VARCHAR, losses VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT COUNT(position) FROM table_name_7 WHERE wins = 14 AND goals_against = 61 AND losses < 19
What chassis recorded 5 points?
CREATE TABLE table_name_68 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_68 WHERE points = 5
Name the Winning driver of mercedes on 22 august?
CREATE TABLE table_name_91 (winning_driver VARCHAR, winning_constructor VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_name_91 WHERE winning_constructor = "mercedes" AND date = "22 august"
What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?
CREATE TABLE table_name_99 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2
What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks is fewer than 3?
CREATE TABLE table_name_99 (no_units INTEGER, name VARCHAR, no_blocks VARCHAR)
SELECT AVG(no_units) FROM table_name_99 WHERE name = "fung shing court" AND no_blocks < 3
What is run time when there were 7.4 million viewers?
CREATE TABLE table_1723080_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR)
SELECT run_time FROM table_1723080_1 WHERE viewers__in_millions_ = "7.4"
What kind of Guest Host has a Episode Number of 7?
CREATE TABLE table_name_10 (guest_host VARCHAR, episode_number VARCHAR)
SELECT guest_host FROM table_name_10 WHERE episode_number = 7
When did they win 7 races?
CREATE TABLE table_24937583_1 (seasons VARCHAR, wins VARCHAR)
SELECT seasons FROM table_24937583_1 WHERE wins = 7
How many people have attended victoria park?
CREATE TABLE table_name_62 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_62 WHERE venue = "victoria park"
What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275?
CREATE TABLE table_name_85 (total_congregations VARCHAR, _percentage_lds VARCHAR, population VARCHAR)
SELECT COUNT(total_congregations) FROM table_name_85 WHERE _percentage_lds = "0.54%" AND population > 105 OFFSET 275
What was the score for the match on November 13, 2005?
CREATE TABLE table_name_20 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_20 WHERE date = "november 13, 2005"
What is the nationality for milwaukee hawks?
CREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR)
SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks"
What is the first elected for georgia 4?
CREATE TABLE table_1341930_11 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341930_11 WHERE district = "Georgia 4"
What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?
CREATE TABLE table_name_36 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_36 WHERE result = "l 26-16" AND week < 12
What's the score for the t10 player from zimbabwe?
CREATE TABLE table_name_19 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_19 WHERE place = "t10" AND country = "zimbabwe"
I want to know the catalog number for album and seed records label for cd and title of grey
CREATE TABLE table_name_66 (catalog_number VARCHAR, title VARCHAR, formats VARCHAR, format VARCHAR, label VARCHAR)
SELECT catalog_number FROM table_name_66 WHERE format = "album" AND label = "seed records" AND formats = "cd" AND title = "grey"
Which Authority has a Decile smaller than 6, and an Area of opoutere?
CREATE TABLE table_name_68 (authority VARCHAR, decile VARCHAR, area VARCHAR)
SELECT authority FROM table_name_68 WHERE decile < 6 AND area = "opoutere"
What is the 1999 tournament that has a Q1 in 2003 and a Q3 in 2002?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT 1999 FROM table_name_2 WHERE 2003 = "q1" AND 2002 = "q3"
What was St Kilda's home team opponents score?
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_56 WHERE away_team = "st kilda"
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR)
SELECT stadium FROM table_name_72 WHERE location = "carrick-on-shannon"
In 1975, what was the final round?
CREATE TABLE table_name_1 (final_round VARCHAR, year VARCHAR)
SELECT final_round FROM table_name_1 WHERE year = "1975"
Name the percentage of votes for 3rd finished
CREATE TABLE table_26267849_11 (percentage_of_votes VARCHAR, finished VARCHAR)
SELECT percentage_of_votes FROM table_26267849_11 WHERE finished = "3rd"
what's the percent yes where voted yes is 2410119
CREATE TABLE table_120778_2 (percent_yes VARCHAR, voted_yes VARCHAR)
SELECT percent_yes FROM table_120778_2 WHERE voted_yes = 2410119
What country had the play Cyclops?
CREATE TABLE table_name_15 (country VARCHAR, play VARCHAR)
SELECT country FROM table_name_15 WHERE play = "cyclops"
Name the score for indiana
CREATE TABLE table_27723228_12 (score VARCHAR, team VARCHAR)
SELECT score FROM table_27723228_12 WHERE team = "Indiana"
What is the English word for twie?
CREATE TABLE table_name_43 (english VARCHAR, twie VARCHAR, Limburgish VARCHAR)
SELECT english FROM table_name_43 WHERE DUTCH(Limburgish) = twie
Show the citizenship shared by singers with birth year before 1945 and after 1955.
CREATE TABLE singer (Citizenship VARCHAR, Birth_Year INTEGER)
SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955
What was the platform when the developer was Telltale Games?
CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
What country is Darren Clarke from?
CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_18 WHERE player = "darren clarke"
What is the location of the race on 11 November?
CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_14 WHERE date = "11 november"
Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2
CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR)
SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = "7 qc" AND losses > 2
The score in the final is 2–6, 6–2, 6–0, on what surface?
CREATE TABLE table_26202847_6 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0"
What is the house colour associated with the house name of Kupe?
CREATE TABLE table_1942683_1 (house_colour VARCHAR, house_name VARCHAR)
SELECT house_colour FROM table_1942683_1 WHERE house_name = "Kupe"
What is Viewers, when Event is Johnson Vs. Moraga?
CREATE TABLE table_name_1 (viewers VARCHAR, event VARCHAR)
SELECT viewers FROM table_name_1 WHERE event = "johnson vs. moraga"
What type of cartridge is used by a Winchester?
CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
SELECT cartridge FROM table_16010376_1 WHERE source = "Winchester"
How many to par for Greg Norman?
CREATE TABLE table_name_1 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_1 WHERE player = "greg norman"
WHich Club has a City of colón?
CREATE TABLE table_name_93 (club VARCHAR, city VARCHAR)
SELECT club FROM table_name_93 WHERE city = "colón"
What school classifications have trappers as mascot?
CREATE TABLE table_22058547_1 (type VARCHAR, mascot VARCHAR)
SELECT type FROM table_22058547_1 WHERE mascot = "Trappers"
What is the person's name that is from the country of SCO?
CREATE TABLE table_name_19 (name VARCHAR, country VARCHAR)
SELECT name FROM table_name_19 WHERE country = "sco"
List each language and the number of TV Channels using it.
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE
What was Juan Manuel Fangio's reported pole position and the tire of C?
CREATE TABLE table_name_34 (report VARCHAR, pole_position VARCHAR, tyre VARCHAR)
SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c"
Which Date of Birth (Age) has a Club/province of blues, and Caps larger than 0, and a Player of tom james?
CREATE TABLE table_name_47 (date_of_birth__age_ VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR)
SELECT date_of_birth__age_ FROM table_name_47 WHERE club_province = "blues" AND caps > 0 AND player = "tom james"
Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%?
CREATE TABLE table_1346118_5 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1346118_5 WHERE candidates = "John I. Nolan (R) 87% Thomas F. Feeley (S) 13%"
What's Enrique de la Fuente's weight?
CREATE TABLE table_13312864_1 (weight INTEGER, player VARCHAR)
SELECT MIN(weight) FROM table_13312864_1 WHERE player = "Enrique de la Fuente"
What is the average number of laps in 1949?
CREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)
SELECT AVG(laps) FROM table_name_15 WHERE year = "1949"
What date was the result 3-1 in Hague?
CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, location VARCHAR)
SELECT date FROM table_name_13 WHERE result = "3-1" AND location = "hague"
On what circuit was the City of Ipswich 400 race held?
CREATE TABLE table_14016079_1 (circuit VARCHAR, race_title VARCHAR)
SELECT circuit FROM table_14016079_1 WHERE race_title = "City of Ipswich 400"
Name the total number of assists for 77 blocks
CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR)
SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = "77"
What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000?
CREATE TABLE table_name_72 (opponent_in_final VARCHAR, date VARCHAR, surface VARCHAR, location VARCHAR)
SELECT opponent_in_final FROM table_name_72 WHERE surface = "hard" AND location = "wellington, new zealand" AND date = "6 february 2000"
Find all the songs whose name contains the word "the".
CREATE TABLE songs (title VARCHAR)
SELECT title FROM songs WHERE title LIKE '% the %'
Which lead had a season of 2009-10?
CREATE TABLE table_name_40 (lead VARCHAR, season VARCHAR)
SELECT lead FROM table_name_40 WHERE season = "2009-10"
What are the most wins with byes more than 0 and 1637 against?
CREATE TABLE table_name_99 (wins INTEGER, against VARCHAR, byes VARCHAR)
SELECT MAX(wins) FROM table_name_99 WHERE against = 1637 AND byes > 0
What are the vocal types used in song "Le Pop"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
How many total positions are there for utah college?
CREATE TABLE table_21321804_1 (position VARCHAR, college VARCHAR)
SELECT COUNT(position) FROM table_21321804_1 WHERE college = "Utah"
What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?
CREATE TABLE table_name_62 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_62 WHERE driver = "christian vietoris" AND grid < 6
What's the Loss listed with a Score of 5-1?
CREATE TABLE table_name_60 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_60 WHERE score = "5-1"
What is the Record of the game on January 31 with Visitors Detroit Red Wings?
CREATE TABLE table_name_74 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_74 WHERE visitor = "detroit red wings" AND date = "january 31"
How many totals have golds of 3, silvers of 3, and bronzes under 3?
CREATE TABLE table_name_37 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT SUM(total) FROM table_name_37 WHERE gold = "3" AND bronze < "3" AND silver = "3"
Which stage was being played in Romania?
CREATE TABLE table_name_34 (stage VARCHAR, venue VARCHAR)
SELECT stage FROM table_name_34 WHERE venue = "romania"
What driver has under 19 laps and a grid under 10?
CREATE TABLE table_name_89 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_89 WHERE laps < 19 AND grid < 10
What is 2006, when 2007 is "1R", and when 2002 is "Q2"?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT 2006 FROM table_name_63 WHERE 2007 = "1r" AND 2002 = "q2"
What day has a callback Venue of total tickets to hollywood? Question
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood"
What's the losing bonus of Crumlin RFC?
CREATE TABLE table_name_21 (losing_bonus VARCHAR, club VARCHAR)
SELECT losing_bonus FROM table_name_21 WHERE club = "crumlin rfc"
List all the subject names.
CREATE TABLE SUBJECTS (subject_name VARCHAR)
SELECT subject_name FROM SUBJECTS
What competition was at puskás ferenc stadium , budapest , hungary, and a Score of 1–0?
CREATE TABLE table_name_91 (competition VARCHAR, venue VARCHAR, score VARCHAR)
SELECT competition FROM table_name_91 WHERE venue = "puskás ferenc stadium , budapest , hungary" AND score = "1–0"
Show name, country, age for all singers ordered by age from the oldest to the youngest.
CREATE TABLE singer (name VARCHAR, country VARCHAR, age VARCHAR)
SELECT name, country, age FROM singer ORDER BY age DESC
what is the total tackles when the games is 16 and solo is 88?
CREATE TABLE table_name_9 (total_tackles VARCHAR, games VARCHAR, solo VARCHAR)
SELECT total_tackles FROM table_name_9 WHERE games = "16" AND solo = "88"
What is the latest year in Annecy, France?
CREATE TABLE table_name_66 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_66 WHERE venue = "annecy, france"
What is the highest Points with a Lost total of 8?
CREATE TABLE table_name_39 (points INTEGER, lost VARCHAR)
SELECT MAX(points) FROM table_name_39 WHERE lost = 8
How many teachers are there?
CREATE TABLE teacher (Id VARCHAR)
SELECT COUNT(*) FROM teacher
Which Venue has a Notes of heptathlon, and a Year of 1991?
CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR)
SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 1991
Home of buffalo happened on what date?
CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_39 WHERE home = "buffalo"
What is the INE code of the municipality whose official name is Berantevilla?
CREATE TABLE table_300283_1 (ine_code INTEGER, official_name VARCHAR)
SELECT MAX(ine_code) FROM table_300283_1 WHERE official_name = "Berantevilla"
What is the horsepower of the car with the largest accelerate?
CREATE TABLE CARS_DATA (horsepower VARCHAR, accelerate VARCHAR)
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1
How many areas (km 2) have 151511 as the census 2006 population?
CREATE TABLE table_1966992_1 (area__km_2__ VARCHAR, census_2006_population VARCHAR)
SELECT COUNT(area__km_2__) FROM table_1966992_1 WHERE census_2006_population = 151511
Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
CREATE TABLE table_name_64 (points_2 INTEGER, position VARCHAR, goal_average_1 VARCHAR, goals_against VARCHAR)
SELECT SUM(points_2) FROM table_name_64 WHERE goal_average_1 > 1.17 AND goals_against > 48 AND position > 6
Who was the visiting team where the decision was Biron on October 4?
CREATE TABLE table_name_43 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_43 WHERE decision = "biron" AND date = "october 4"
How many times did Boston Red Stockings lose in 2009 postseason?
CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009
What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?
CREATE TABLE table_name_18 (first_member VARCHAR, second_member VARCHAR)
SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney"
What is the total of the team with a T score greater than 8 and an E score less than 8.4?
CREATE TABLE table_name_57 (total INTEGER, t_score VARCHAR, e_score VARCHAR)
SELECT SUM(total) FROM table_name_57 WHERE t_score > 8 AND e_score < 8.4
when coverage is dumaguete central visayas region, what is the callsign?
CREATE TABLE table_24418525_1 (callsign VARCHAR, coverage VARCHAR)
SELECT callsign FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region"
Which EC Comics title ran from 1950 to 1953?
CREATE TABLE table_name_61 (title VARCHAR, last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
SELECT title FROM table_name_61 WHERE first_year = "1950" AND publisher = "ec comics" AND last_year = "1953"
Which away game was played on 2008-07-18?
CREATE TABLE table_name_5 (away VARCHAR, date VARCHAR)
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
Name the country for 188.77 market value
CREATE TABLE table_1682026_9 (country VARCHAR, market_value__billion_$_ VARCHAR)
SELECT country FROM table_1682026_9 WHERE market_value__billion_$_ = "188.77"
Who was the first team when the second team was Kalise Gran Canaria?
CREATE TABLE table_name_71 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT team__number1 FROM table_name_71 WHERE team__number2 = "kalise gran canaria"
ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ?
CREATE TABLE table_16732659_2 (rnd INTEGER, date VARCHAR)
SELECT MIN(rnd) FROM table_16732659_2 WHERE date = "June 11"
On which dates did the episodes directed by TR Babu Subramaniam air?
CREATE TABLE table_17355820_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"