question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the date when the venue is stade général seyni kountché , niamey?
CREATE TABLE table_name_10 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché , niamey"
Who belong to the institution "University of Oxford"? Show the first names and last names.
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford"
What championship was played in 1981?
CREATE TABLE table_2201541_3 (championship__titles_finals_ VARCHAR, year VARCHAR)
SELECT championship__titles_finals_ FROM table_2201541_3 WHERE year = 1981
Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15?
CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR)
SELECT record FROM table_name_41 WHERE kickoff = "12:00pm cst" AND game_site = "arrowhead stadium" AND week = "15"
How many entries are listed under "current status" for the WJW-TV ++ Station?
CREATE TABLE table_1353096_2 (current_status VARCHAR, station VARCHAR)
SELECT COUNT(current_status) FROM table_1353096_2 WHERE station = "WJW-TV ++"
For each station, find its latitude and the minimum duration of trips that ended at the station.
CREATE TABLE trip (duration INTEGER, end_station_id VARCHAR); CREATE TABLE station (name VARCHAR, lat VARCHAR, id VARCHAR)
SELECT T1.name, T1.lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?
CREATE TABLE table_name_83 (seats_in_hamburgische_bürgerschaft VARCHAR, ideology VARCHAR)
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics"
WHAT IS TOTAL NUMBER OF PR TOP-UPS THAT HAVE A PERCENTAGE OF 0.8%, TOTAL LARGER THAN 1?
CREATE TABLE table_name_92 (pr_top_up VARCHAR, percentage VARCHAR, total VARCHAR)
SELECT COUNT(pr_top_up) FROM table_name_92 WHERE percentage = "0.8%" AND total > 1
How many documents have the status code done?
CREATE TABLE Documents (document_status_code VARCHAR)
SELECT COUNT(*) FROM Documents WHERE document_status_code = "done"
What were the points per game in the selection where the rebounds per game were 15.0?
CREATE TABLE table_25774493_3 (points_per_game VARCHAR, rebounds_per_game VARCHAR)
SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = "15.0"
who directed the episode james clavell wrote?
CREATE TABLE table_2626495_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_2626495_1 WHERE written_by = "James Clavell"
What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?
CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)
SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing"
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER, headquarter VARCHAR)
SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
On the date of June 15 what was the score?
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_32 WHERE date = "june 15"
What is the venue for the match on 30/03/1985?
CREATE TABLE table_name_80 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_80 WHERE date = "30/03/1985"
Who are the gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?
CREATE TABLE table_30060356_3 (gt3_pro___am_cup_winner VARCHAR, gt3_pro_cup_winner VARCHAR)
SELECT gt3_pro___am_cup_winner FROM table_30060356_3 WHERE gt3_pro_cup_winner = "No. 1 Vita4One"
Which Platelet count has a Partial thromboplastin time of prolonged or unaffected?
CREATE TABLE table_name_20 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = "prolonged or unaffected"
List all the customers in increasing order of IDs.
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR)
SELECT customer_id, customer_name FROM customers ORDER BY customer_id
What is the Pick # for brent meeke?
CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_45 WHERE player = "brent meeke"
What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?
CREATE TABLE table_name_91 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR)
SELECT elevated FROM table_name_91 WHERE cardinalatial_order_and_title = "cardinal-priest of s. pudenziana"
What team is from the United States and plays a guard position for the Grizzlies in 2012?
CREATE TABLE table_name_70 (school_club_team VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_70 WHERE nationality = "united states" AND position = "guard" AND years_for_grizzlies = "2012"
What was the score on October 24, 2005?
CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_55 WHERE date = "october 24, 2005"
Which Yards has a Long smaller than 3?
CREATE TABLE table_name_2 (yards INTEGER, long INTEGER)
SELECT AVG(yards) FROM table_name_2 WHERE long < 3
which chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II"
Which Avg/G has a Name of david allen, and a Gain larger than 371?
CREATE TABLE table_name_60 (avg_g INTEGER, name VARCHAR, gain VARCHAR)
SELECT AVG(avg_g) FROM table_name_60 WHERE name = "david allen" AND gain > 371
List the players for team brynäs if (sweden).
CREATE TABLE table_2850912_12 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT player FROM table_2850912_12 WHERE college_junior_club_team = "Brynäs IF (Sweden)"
What is Tournament, when Moves is "37", and when Result is "½–½"?
CREATE TABLE table_name_50 (tournament VARCHAR, moves VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_50 WHERE moves = 37 AND result = "½–½"
Show all advisors who have at least two students.
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor FROM Student GROUP BY advisor HAVING COUNT(*) >= 2
What is the 2008 result when 2012 and 2005 are both QF?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 2008 FROM table_name_67 WHERE 2012 = "qf" AND 2005 = "qf"
Name the least mister international
CREATE TABLE table_30007505_1 (mister_international INTEGER)
SELECT MIN(mister_international) FROM table_30007505_1
Which round has a position that is cornerback?
CREATE TABLE table_name_19 (round VARCHAR, position VARCHAR)
SELECT round FROM table_name_19 WHERE position = "cornerback"
What is the lowest played number when goals for is 47, and wins is smaller than 14?
CREATE TABLE table_name_48 (played INTEGER, goals_for VARCHAR, wins VARCHAR)
SELECT MIN(played) FROM table_name_48 WHERE goals_for = 47 AND wins < 14
Name the away team score for lake oval
CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_1 WHERE venue = "lake oval"
Who was the visiting team when Winnipeg was the home team?
CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_33 WHERE home = "winnipeg"
What is the Date of the tournament with a score of 199 (–17)?
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_58 WHERE score = "199 (–17)"
How many opponents were there when the record was 6-0?
CREATE TABLE table_21197135_1 (date VARCHAR, record VARCHAR)
SELECT date FROM table_21197135_1 WHERE record = "6-0"
what is all the broadcast date when viewers were 8.4 millions
CREATE TABLE table_2112766_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT(broadcast_date) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"
What was the home who had California visiting?
CREATE TABLE table_name_94 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_94 WHERE visitor = "california"
What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup?
CREATE TABLE table_name_43 (play_offs INTEGER, fa_cup VARCHAR)
SELECT MIN(play_offs) FROM table_name_43 WHERE fa_cup = 2
What is the name of the player from club pro recco?
CREATE TABLE table_name_87 (name_v_t_e VARCHAR, club VARCHAR)
SELECT name_v_t_e FROM table_name_87 WHERE club = "pro recco"
Which Tournament has a Score of 1–6, 0–6?
CREATE TABLE table_name_89 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_89 WHERE score = "1–6, 0–6"
What is the home team of Lake Oval?
CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_21 WHERE venue = "lake oval"
Who was the opponent when Footscray played as the home team?
CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_62 WHERE home_team = "footscray"
What is the lowest season #?
CREATE TABLE table_25800134_11 (season__number INTEGER)
SELECT MIN(season__number) FROM table_25800134_11
What is the Enrollment for the Pilots?
CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR)
SELECT MIN(enrollment) FROM table_name_3 WHERE team_nickname = "pilots"
In what rounds did Scuderia Milano participate?
CREATE TABLE table_name_48 (rounds VARCHAR, entrant VARCHAR)
SELECT rounds FROM table_name_48 WHERE entrant = "scuderia milano"
What episode was directed by Karen Gaviola?
CREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR)
SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = "Karen Gaviola"
What is the result of the match in round 1r against tunisia and on a hard surface?
CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)
SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia"
Which game site has an Opponent of buffalo bills?
CREATE TABLE table_name_75 (game_site VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_name_75 WHERE opponent = "buffalo bills"
who is the the candidates with incumbent being james o'connor
CREATE TABLE table_1342393_17 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342393_17 WHERE incumbent = "James O'Connor"
Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".
CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR)
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed"
What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?
CREATE TABLE table_name_25 (grid INTEGER, bike VARCHAR, rider VARCHAR)
SELECT AVG(grid) FROM table_name_25 WHERE bike = "suzuki gsx-r1000" AND rider = "fonsi nieto"
What is the pick number for the kansas city royals?
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
SELECT SUM(pick) FROM table_name_12 WHERE team = "kansas city royals"
Can you tell me the College/Junior/Club Team that has the Round of 4?
CREATE TABLE table_name_79 (college_junior_club_team VARCHAR, round VARCHAR)
SELECT college_junior_club_team FROM table_name_79 WHERE round = 4
What is Race 2, when Driver is "Paul Radisich"?
CREATE TABLE table_name_5 (race_2 VARCHAR, driver VARCHAR)
SELECT race_2 FROM table_name_5 WHERE driver = "paul radisich"
What week's game had a result of bye?
CREATE TABLE table_name_67 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_67 WHERE result = "bye"
What year did Omar Gonzalez graduate?
CREATE TABLE table_name_94 (graduated INTEGER, player VARCHAR)
SELECT SUM(graduated) FROM table_name_94 WHERE player = "omar gonzalez"
Which party was first elected in 1898?
CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_19 WHERE first_elected = "1898"
What week was the result l 14–9?
CREATE TABLE table_name_48 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_48 WHERE result = "l 14–9"
Where was the attempt on the Prime Minister of Sri Lanka's life made?
CREATE TABLE table_251272_4 (location VARCHAR, title_at_the_time VARCHAR)
SELECT location FROM table_251272_4 WHERE title_at_the_time = "Prime Minister of Sri Lanka"
Which record's round was 3 when the event was fight festival 27?
CREATE TABLE table_name_19 (record VARCHAR, round VARCHAR, event VARCHAR)
SELECT record FROM table_name_19 WHERE round = 3 AND event = "fight festival 27"
Name the team for launceston
CREATE TABLE table_name_60 (team VARCHAR, race_title VARCHAR)
SELECT team FROM table_name_60 WHERE race_title = "launceston"
List all location codes and location names.
CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR)
SELECT location_code, location_name FROM Ref_locations
Show all distinct lot details.
CREATE TABLE LOTS (lot_details VARCHAR)
SELECT DISTINCT lot_details FROM LOTS
What is the total number of people in attendance when the game was at TD Banknorth Garden, in a game higher than 31?
CREATE TABLE table_name_20 (attendance VARCHAR, location VARCHAR, game VARCHAR)
SELECT COUNT(attendance) FROM table_name_20 WHERE location = "td banknorth garden" AND game > 31
If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?
CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)"
What is the most amount of points for a team before 1983?
CREATE TABLE table_name_93 (points INTEGER, year INTEGER)
SELECT MAX(points) FROM table_name_93 WHERE year < 1983
Leopold VI, Duke of Austria is the father-in-law of which person?
CREATE TABLE table_name_26 (spouse VARCHAR, father VARCHAR)
SELECT spouse FROM table_name_26 WHERE father = "leopold vi, duke of austria"
How many points did piritas klaipėda get?
CREATE TABLE table_16034882_4 (points VARCHAR, club VARCHAR)
SELECT points FROM table_16034882_4 WHERE club = "Piritas Klaipėda"
Name the horizontal 0 for 明弦(ry日月)
CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, hypotenuse_0_c VARCHAR)
SELECT horizontal_0_a FROM table_25519358_1 WHERE hypotenuse_0_c = "明弦(RY日月)"
Which school has a decile of 8 and a roll of 705?
CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705
What was the score for Spain?
CREATE TABLE table_name_28 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_28 WHERE country = "spain"
When the Away team was essendon, what was the Venue they played at?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_14 WHERE away_team = "essendon"
What is the Date with a game with a Record of 2–1–1?
CREATE TABLE table_name_68 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_68 WHERE record = "2–1–1"
Name the average pop for chūgoku and prefecture of okayama
CREATE TABLE table_name_75 (pop_¹ INTEGER, region VARCHAR, prefecture VARCHAR)
SELECT AVG(pop_¹) FROM table_name_75 WHERE region = "chūgoku" AND prefecture = "okayama"
What year was the position 6/13?
CREATE TABLE table_name_75 (year VARCHAR, position VARCHAR)
SELECT year FROM table_name_75 WHERE position = "6/13"
Which team has dirk nowitski (13) as high rebounds?
CREATE TABLE table_23284271_10 (team VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_23284271_10 WHERE high_rebounds = "Dirk Nowitski (13)"
what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?
CREATE TABLE table_name_44 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, points VARCHAR)
SELECT SUM(goals_scored) FROM table_name_44 WHERE draw < 8 AND points = 19 AND goals_conceded > 26
How many games feature hawthorn as the away squad?
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_8 WHERE away_team = "hawthorn"
How much Scored has Losses smaller than 0?
CREATE TABLE table_name_75 (scored INTEGER, losses INTEGER)
SELECT SUM(scored) FROM table_name_75 WHERE losses < 0
What is the record on January 18?
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_41 WHERE date = "january 18"
What is the Home team score At Windy Hill?
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_48 WHERE venue = "windy hill"
List all the event names by year from the most recent to the oldest.
CREATE TABLE event (name VARCHAR, YEAR VARCHAR)
SELECT name FROM event ORDER BY YEAR DESC
How many FA cups were there without any league cups, but a total of 0 2?
CREATE TABLE table_name_3 (fa_cup INTEGER, total VARCHAR, league_cup VARCHAR)
SELECT MIN(fa_cup) FROM table_name_3 WHERE total = "0 2" AND league_cup < 0
For which school/club team did the player in the position of Guard/Forward play?
CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE position = "guard/forward"
Name the conference record where seed is 3 and record is 24-9
CREATE TABLE table_16295365_2 (conf_record VARCHAR, seed VARCHAR, record VARCHAR)
SELECT conf_record FROM table_16295365_2 WHERE seed = "3" AND record = "24-9"
What day in December was the game before game 11 with a record of 7-2-2?
CREATE TABLE table_name_63 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT SUM(december) FROM table_name_63 WHERE record = "7-2-2" AND game < 11
What is the average number of draws for Mortlake club when they have less than 0 wins?
CREATE TABLE table_name_11 (draws INTEGER, club VARCHAR, wins VARCHAR)
SELECT AVG(draws) FROM table_name_11 WHERE club = "mortlake" AND wins < 0
What is the total number of Attendance(s), when Away is Real Juventud?
CREATE TABLE table_name_8 (attendance VARCHAR, away VARCHAR)
SELECT COUNT(attendance) FROM table_name_8 WHERE away = "real juventud"
Who were the winners in 1998?
CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)
SELECT winners FROM table_name_11 WHERE year = 1998
How many games have the New York Islanders as an opponent before February 7?
CREATE TABLE table_name_63 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT SUM(game) FROM table_name_63 WHERE opponent = "new york islanders" AND february < 7
What is the average Year when the Competition was friendly, and a Club of everton?
CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR)
SELECT AVG(year) FROM table_name_28 WHERE competition = "friendly" AND club = "everton"
Who wrote the episode that originally aired on March 1, 1998?
CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR)
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998"
How many opponents were there at the game with 64,087 people in attendance?
CREATE TABLE table_11465521_2 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = "64,087"
The player Cecil Martin with an overall less than 268 has what total pick?
CREATE TABLE table_name_32 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT SUM(pick) FROM table_name_32 WHERE name = "cecil martin" AND overall < 268
What is the rank # of kelli miller the winning pitcher?
CREATE TABLE table_22098274_1 (rank_number VARCHAR, winning_pitcher VARCHAR)
SELECT rank_number FROM table_22098274_1 WHERE winning_pitcher = "Kelli Miller"
How many wins did Hobbs had a 15th finish at poles 0?
CREATE TABLE table_name_89 (wins VARCHAR, poles VARCHAR, final_placing VARCHAR)
SELECT wins FROM table_name_89 WHERE poles = "0" AND final_placing = "15th"
Who is the builder for br no. 31779?
CREATE TABLE table_17607663_1 (builder VARCHAR, br_no VARCHAR)
SELECT builder FROM table_17607663_1 WHERE br_no = 31779
Name the starting from amalanadhi piran
CREATE TABLE table_1852650_1 (starting_from VARCHAR, name_of_the_prabandham VARCHAR)
SELECT starting_from FROM table_1852650_1 WHERE name_of_the_prabandham = "Amalanadhi piran"
In 1981 which team picked overall 148?
CREATE TABLE table_name_8 (team VARCHAR, year VARCHAR, overall_pick VARCHAR)
SELECT team FROM table_name_8 WHERE year = 1981 AND overall_pick = "148"