answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(crowd) FROM table_name_6 WHERE away_team = "richmond"
Which was the highest crowd drawn by an Away team in Richmond?
CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR)
SELECT * FROM customer_master_index ORDER BY cmi_details DESC
List all information about customer master index, and sort them by details in descending order.
CREATE TABLE customer_master_index (cmi_details VARCHAR)
SELECT date__to_ FROM table_name_38 WHERE traction_type = "electric" AND name_of_system = "yarmouth light and power company"
What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?
CREATE TABLE table_name_38 (date__to_ VARCHAR, traction_type VARCHAR, name_of_system VARCHAR)
SELECT perpetrator FROM table_name_85 WHERE location = "baghdad"
Who went on a rampage in Baghdad?
CREATE TABLE table_name_85 (perpetrator VARCHAR, location VARCHAR)
SELECT MIN(money_list_rank) FROM table_24330912_1 WHERE year = 2011
When 2011 is the year what is the lowest money list rank?
CREATE TABLE table_24330912_1 (money_list_rank INTEGER, year VARCHAR)
SELECT points FROM table_name_12 WHERE rebounds = "al jefferson (7)"
Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?
CREATE TABLE table_name_12 (points VARCHAR, rebounds VARCHAR)
SELECT country FROM table_name_13 WHERE place = "1"
The golfer in place 1 if from what country?
CREATE TABLE table_name_13 (country VARCHAR, place VARCHAR)
SELECT week_3 FROM table_name_33 WHERE week_1 = "demi jessica"
Who is the cyber girl in week 3 when Demi Jessica was the cyber girl in week 1?
CREATE TABLE table_name_33 (week_3 VARCHAR, week_1 VARCHAR)
SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10"
Which Opponent had a Win as Res and a Time of 1:10?
CREATE TABLE table_name_44 (opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT airdate FROM table_24399615_8 WHERE bbc_three_weekly_ranking = "3"
When 3 is the bbc three weekly ranking what is the airdate?
CREATE TABLE table_24399615_8 (airdate VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils"
Where did the Centurions play the Hamburg Sea Devils?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_28 WHERE opponent = "buffalo bills"
What day did the team play the buffalo bills?
CREATE TABLE table_name_28 (date VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3"
What is the location of the game that was friendly and resulted in 2-3?
CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT COUNT(*), country FROM airport GROUP BY country
how many airports are there in each country?
CREATE TABLE airport (country VARCHAR)
SELECT 2010 AS _11 FROM table_name_99 WHERE event = "autumn gold"
WHich in 2010–11 has an Event of autumn gold?
CREATE TABLE table_name_99 (event VARCHAR)
SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17
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 date FROM table_name_7 WHERE opponent = "guillermo olaso"
What is the Date of the match against Guillermo Olaso?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(title) FROM table_21002034_4 WHERE director = "Alex Chapple"
How many titles were directed by Alex Chapple?
CREATE TABLE table_21002034_4 (title VARCHAR, director VARCHAR)
SELECT away_team FROM table_name_74 WHERE venue = "junction oval"
Who is the away team at junction oval?
CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR)
SELECT country_territory FROM table_name_33 WHERE miss_international = "małgorzata rożniecka"
What country or territory is małgorzata rożniecka from?
CREATE TABLE table_name_33 (country_territory VARCHAR, miss_international VARCHAR)
SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = "Tummien perhosten koti"
What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted?
CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR)
SELECT single FROM table_18710512_3 WHERE date = 2008 AND other_details = "4000 copies"
What single(s) released in 2008 and had 4000 copies?
CREATE TABLE table_18710512_3 (single VARCHAR, date VARCHAR, other_details VARCHAR)
SELECT AVG(capacity), MAX(capacity) FROM stadium
What is the average and maximum capacities for all stadiums ?
CREATE TABLE stadium (capacity INTEGER)
SELECT attendance FROM table_name_2 WHERE series = "0-1"
What was the attendance when the series was at 0-1?
CREATE TABLE table_name_2 (attendance VARCHAR, series VARCHAR)
SELECT date FROM table_name_92 WHERE state = "colorado"
What was the date for Colorado?
CREATE TABLE table_name_92 (date VARCHAR, state VARCHAR)
SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde"
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
CREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977"
What was the Winning Score on May 29, 1977?
CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR)
SELECT date FROM table_name_17 WHERE goal = 5
Tell me the date for goal of 5
CREATE TABLE table_name_17 (date VARCHAR, goal VARCHAR)
SELECT MAX(overall_rank) FROM table_name_68 WHERE heat_rank > 4 AND lane < 2
Tell me the highest overall rank for heat rank more than 4 and lane less than 2
CREATE TABLE table_name_68 (overall_rank INTEGER, heat_rank VARCHAR, lane VARCHAR)
SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers"
Which coach founded the Western Strikers team after 1963?
CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR)
SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui"
What is the name of the race when Lineth Chepkurui is the athlete?
CREATE TABLE table_name_17 (race VARCHAR, athlete VARCHAR)
SELECT MAX(week) FROM table_name_30 WHERE attendance = 48 OFFSET 510
Attendance of 48,510 had what highest week?
CREATE TABLE table_name_30 (week INTEGER, attendance VARCHAR)
SELECT COUNT(breadth) FROM table_28132970_5 WHERE propulsion = "Jet"
How many breadth entries are there when propulsion is jet?
CREATE TABLE table_28132970_5 (breadth VARCHAR, propulsion VARCHAR)
SELECT season FROM table_name_64 WHERE school_club_team = "cebu"
What season did the player who came from Cebu play in?
CREATE TABLE table_name_64 (season VARCHAR, school_club_team VARCHAR)
SELECT record FROM table_name_58 WHERE date = "july 1"
What was the record on July 1?
CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR)
SELECT name FROM table_16799784_2 WHERE latitude = "36.0N"
Name the name of 36.0n
CREATE TABLE table_16799784_2 (name VARCHAR, latitude VARCHAR)
SELECT date FROM table_name_33 WHERE format = "stereo lp"
What was the date for a catalog formatted in stereo LP?
CREATE TABLE table_name_33 (date VARCHAR, format VARCHAR)
SELECT high_rebounds FROM table_name_42 WHERE date = "february 14"
Who had the highest number of rebounds on February 14?
CREATE TABLE table_name_42 (high_rebounds VARCHAR, date VARCHAR)
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
What rank did Poland receive with a time of 1:50.12?
CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT MIN(drawn) FROM table_name_25 WHERE games < 7
What is the fewest ties the team had with fewer than 7 games?
CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER)
SELECT SUM(draws) FROM table_name_6 WHERE wins = 16 AND losses < 2
Name the sum of draws for losses less than 2 and wins of 16
CREATE TABLE table_name_6 (draws INTEGER, wins VARCHAR, losses VARCHAR)
SELECT away_team FROM table_name_3 WHERE venue = "princes park"
What was the away team's score at Princes Park?
CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR)
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
Show the team that have at least two technicians.
CREATE TABLE technician (Team VARCHAR)
SELECT channel FROM table_name_51 WHERE time = "03:40"
What is the channel with a 03:40 time?
CREATE TABLE table_name_51 (channel VARCHAR, time VARCHAR)
SELECT package_option FROM table_15887683_5 WHERE content = "cinema" AND n° = "333"
What package offers cinema content and is n. 333?
CREATE TABLE table_15887683_5 (package_option VARCHAR, content VARCHAR, n° VARCHAR)
SELECT 3 AS rd_place FROM table_name_39 WHERE score = "1-0"
What's in third place that's going 1-0?
CREATE TABLE table_name_39 (score VARCHAR)
SELECT rank_world FROM table_2248784_3 WHERE rank_subcontinent = 7
Name the rank world for 7 rank subcontinent
CREATE TABLE table_2248784_3 (rank_world VARCHAR, rank_subcontinent VARCHAR)
SELECT record FROM table_name_43 WHERE round = 1 AND method = "submission (rear-naked choke)"
The match that went 1 round, and had a method of submission (rear-naked choke) had what record?
CREATE TABLE table_name_43 (record VARCHAR, round VARCHAR, method VARCHAR)
SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4
What address was the document with id 4 mailed to?
CREATE TABLE Addresses (document_id VARCHAR); CREATE TABLE Documents_Mailed (document_id VARCHAR)
SELECT player FROM table_name_93 WHERE total < 293 AND country = "south africa"
Who is that player from South Africa who had a total score under 293?
CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR)
SELECT winner FROM table_12261714_2 WHERE young_rider_classification = "Francesco Casagrande" AND stage = "1a"
Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande?
CREATE TABLE table_12261714_2 (winner VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)
SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16
Who was #16 rank constructor with a grid of more than 1?
CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, rank VARCHAR)
SELECT took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock"
Which Took Office that has a Party of democrat, under the name of John Hancock
CREATE TABLE table_name_30 (took_office VARCHAR, party VARCHAR, name VARCHAR)
SELECT result FROM table_name_39 WHERE episode = "top 8"
What was the result of the singer with the top 8?
CREATE TABLE table_name_39 (result VARCHAR, episode VARCHAR)
SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan"
What numbered episode was directed by greg colton and written by patrick meighan?
CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT player FROM table_name_60 WHERE score > 67
Can you tell me the Player that has the Score larger than 67?
CREATE TABLE table_name_60 (player VARCHAR, score INTEGER)
SELECT title_rank FROM table_name_24 WHERE series = "1-8, 13" AND character = "arthur hastings"
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
CREATE TABLE table_name_24 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
SELECT competition FROM table_name_47 WHERE venue = "berlin, germany"
What competition took place in Berlin, Germany?
CREATE TABLE table_name_47 (competition VARCHAR, venue VARCHAR)
SELECT record FROM table_name_83 WHERE date = "may 31"
What is the record for May 31?
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
SELECT MAX(november) FROM table_27539535_4 WHERE game = 20
What is the highest entry in November for the game 20?
CREATE TABLE table_27539535_4 (november INTEGER, game VARCHAR)
SELECT jump_2 FROM table_name_62 WHERE jump_3 = "7.77"
What is the Jump 2 of the person that has a Jump 3 of 7.77?
CREATE TABLE table_name_62 (jump_2 VARCHAR, jump_3 VARCHAR)
SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c"
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 time FROM table_name_75 WHERE notes = "fa" AND rank < 2
What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
CREATE TABLE table_name_75 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks"
how many times is the home team wollongong hawks?
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
SELECT points_for FROM table_name_22 WHERE drawn = "1" AND try_bonus = "16"
What points have 1 for drawn, and 16 as a try bonus?
CREATE TABLE table_name_22 (points_for VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
SELECT trademark FROM table_12715053_1 WHERE molecular_target = "DNA-Binding"
What is the trademark listed for the molecular target : dna-binding?
CREATE TABLE table_12715053_1 (trademark VARCHAR, molecular_target VARCHAR)
SELECT COUNT(lost) FROM table_name_61 WHERE drawn > 1 AND points < 14 AND against > 10
How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10?
CREATE TABLE table_name_61 (lost VARCHAR, against VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_49 WHERE podiums > 1 AND points = 80 AND starts < 28
what is the average wins when the podiums is more than 1, points is 80 and starts is less than 28?
CREATE TABLE table_name_49 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR)
SELECT tv_network_s_ FROM table_29799700_2 WHERE series_finale = "May 7, 2012"
Which TV network had its series finale on May 7, 2012?
CREATE TABLE table_29799700_2 (tv_network_s_ VARCHAR, series_finale VARCHAR)
SELECT high_rebounds FROM table_13762472_5 WHERE location_attendance = "Delta Center"
Who had the high rebounds at the delta center?
CREATE TABLE table_13762472_5 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_26 WHERE score = "6–4, 6–2"
What is the Date of the game with a Score of 6–4, 6–2?
CREATE TABLE table_name_26 (date VARCHAR, score VARCHAR)
SELECT catalog FROM table_name_55 WHERE date = "19 july 2008"
What was the name of the catalog released on 19 July 2008?
CREATE TABLE table_name_55 (catalog VARCHAR, date VARCHAR)
SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951"
Name the rank for laps less than 130 and year of 1951
CREATE TABLE table_name_31 (rank VARCHAR, laps VARCHAR, year VARCHAR)
SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing"
Which Pali has an English of mindfulness of breathing?
CREATE TABLE table_name_54 (pali VARCHAR, english VARCHAR)
SELECT trigger_pack FROM table_19901_1 WHERE rear_sight_type = "A1" AND colt_model_no = "602"
What is the trigger pack on the Colt 602 with the a1 rear sight type?
CREATE TABLE table_19901_1 (trigger_pack VARCHAR, rear_sight_type VARCHAR, colt_model_no VARCHAR)
SELECT high_assists FROM table_23285805_8 WHERE team = "Oklahoma City"
Who has the high assists when the team is Oklahoma City?
CREATE TABLE table_23285805_8 (high_assists VARCHAR, team VARCHAR)
SELECT career_win_loss FROM table_name_75 WHERE 2002 = "1r" AND 2000 = "2r" AND 2001 = "2r"
Which career win-loss record has a 1r in 2002, a 2r in 2000 and a 2r in 2001?
CREATE TABLE table_name_75 (career_win_loss VARCHAR)
SELECT SUM(game) FROM table_name_58 WHERE record = "2-1-1" AND october < 21
What is the sum of Game, when Record is "2-1-1", and when October is less than 21?
CREATE TABLE table_name_58 (game INTEGER, record VARCHAR, october VARCHAR)
SELECT name FROM table_name_40 WHERE home_venue = "comunale" AND city = "darfo boario terme"
What squad plays at comunale in darfo boario terme?
CREATE TABLE table_name_40 (name VARCHAR, home_venue VARCHAR, city VARCHAR)
SELECT home_team FROM table_name_21 WHERE venue = "lake oval"
What is the home team of Lake Oval?
CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR)
SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 1
When was the player born who has 1 caps?
CREATE TABLE table_name_53 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT current_club FROM table_12962773_13 WHERE player = "Sacha Giffa"
Name the current club for player sacha giffa
CREATE TABLE table_12962773_13 (current_club VARCHAR, player VARCHAR)
SELECT explanation FROM table_2026548_1 WHERE vice_president = "Alben W. Barkley"
Name the explanation for alben w. barkley
CREATE TABLE table_2026548_1 (explanation VARCHAR, vice_president VARCHAR)
SELECT marriage FROM table_name_79 WHERE became_dauphine = "31 august 1412"
when was the marriage when became dauphine is 31 august 1412?
CREATE TABLE table_name_79 (marriage VARCHAR, became_dauphine VARCHAR)
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = "16"
What are the 2fm's for erp 16?
CREATE TABLE table_18475946_2 (erp__kw_ VARCHAR)
SELECT year_s__won FROM table_name_86 WHERE to_par = "+6"
In which years was the to par +6?
CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR)
SELECT ended_time_as_senior_g8_leader FROM table_10026563_1 WHERE person = "Jacques Chirac"
When did Jacques Chirac stop being a G8 leader?
CREATE TABLE table_10026563_1 (ended_time_as_senior_g8_leader VARCHAR, person VARCHAR)
SELECT game_site FROM table_name_35 WHERE record = "6-2"
What is the site of the game with a Record of 6-2?
CREATE TABLE table_name_35 (game_site VARCHAR, record VARCHAR)
SELECT MAX(finals_apps) FROM table_21220720_1
Name the mosst finals apps
CREATE TABLE table_21220720_1 (finals_apps INTEGER)
SELECT diameter__km_ FROM table_name_62 WHERE name = "t'ien hu colles"
What is the diameter in km of t'ien hu colles?
CREATE TABLE table_name_62 (diameter__km_ VARCHAR, name VARCHAR)
SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet"
What was the constructor for the fastest nelson piquet?
CREATE TABLE table_name_72 (constructor VARCHAR, fastest_lap VARCHAR)
SELECT place FROM table_name_84 WHERE score = 66 AND country = "united states" AND player = "dudley hart"
What is Place, when Score is "66", when Country is "United States", and when Player is "Dudley Hart"?
CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
SELECT pos FROM table_name_2 WHERE year < 1999
What is the position for years under 1999?
CREATE TABLE table_name_2 (pos VARCHAR, year INTEGER)
SELECT director_s_ FROM table_name_10 WHERE award = "£6,245"
Who directed the film that received an award of £6,245?
CREATE TABLE table_name_10 (director_s_ VARCHAR, award VARCHAR)
SELECT SUM(game) FROM table_name_80 WHERE date = "december 5"
How many games were on December 5?
CREATE TABLE table_name_80 (game INTEGER, date VARCHAR)
SELECT year FROM table_name_6 WHERE start = "13"
What year did he start at 13?
CREATE TABLE table_name_6 (year VARCHAR, start VARCHAR)
SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton"
What was Carlton's score when they were the away team?
CREATE TABLE table_name_86 (away_team VARCHAR)
SELECT winner FROM table_name_34 WHERE year = 2001
What is Winner, when Year is 2001?
CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR)
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "7:00:46"
What are the notes for the rower in ranks over 2 and having a time of 7:00:46?
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)