answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = "omnia fakhry ( egy )"
Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?
CREATE TABLE table_name_3 (equestrian_time__pts_ VARCHAR, athlete VARCHAR)
SELECT surface FROM table_2215159_2 WHERE championship = "French championships"
What is the surface of the French Championships?
CREATE TABLE table_2215159_2 (surface VARCHAR, championship VARCHAR)
SELECT venue FROM table_name_12 WHERE year = 2008 AND notes = "2:13:10"
What venue held the event in 2008 that has 2:13:10 in the notes?
CREATE TABLE table_name_12 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT communist_ticket FROM table_name_63 WHERE office = "judge of the court of appeals"
What is the name on the Communist ticket with an Office of judge of the court of appeals?
CREATE TABLE table_name_63 (communist_ticket VARCHAR, office VARCHAR)
SELECT AVG(built) FROM table_name_74 WHERE builder = "brel crewe"
Which Built has a Builder of brel crewe?
CREATE TABLE table_name_74 (built INTEGER, builder VARCHAR)
SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY COUNT(*) DESC LIMIT 1
find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.
CREATE TABLE MATCH (winning_pilot VARCHAR); CREATE TABLE pilot (name VARCHAR, age INTEGER, pilot_id VARCHAR)
SELECT shooter FROM table_name_18 WHERE total = "11" AND event = "wc munich" AND score_points = "6"
Which shooter had a total of 11 at the WC Munich with a score of 6?
CREATE TABLE table_name_18 (shooter VARCHAR, score_points VARCHAR, total VARCHAR, event VARCHAR)
SELECT country FROM table_13282157_1 WHERE player = "Phil Mickelson"
what is the country where the player is phil mickelson?
CREATE TABLE table_13282157_1 (country VARCHAR, player VARCHAR)
SELECT rider FROM table_name_5 WHERE manufacturer = "ktm" AND grid = "1"
Who is the driver of the car manufactured by ktm, who started in grid 1.
CREATE TABLE table_name_5 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT source FROM table_11381701_3 WHERE blackberry = "2.9%"
Which source shows Blackberry at 2.9%?
CREATE TABLE table_11381701_3 (source VARCHAR, blackberry VARCHAR)
SELECT band FROM table_name_17 WHERE album_or_song = "self versus self - immersion"
Which band plays Self Versus Self - Immersion?
CREATE TABLE table_name_17 (band VARCHAR, album_or_song VARCHAR)
SELECT score FROM table_name_94 WHERE attendance = "4,567"
Can you tell me the Score that has the Attendance of 4,567?
CREATE TABLE table_name_94 (score VARCHAR, attendance VARCHAR)
SELECT MIN(preliminaries) FROM table_name_94 WHERE evening_gown = 8.472
What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472?
CREATE TABLE table_name_94 (preliminaries INTEGER, evening_gown VARCHAR)
SELECT original_airdate FROM table_name_19 WHERE directed_by = "erik wiese" AND season__number > 6
What is the Original airdate of the episode after Season 6 Directed by Erik Wiese?
CREATE TABLE table_name_19 (original_airdate VARCHAR, directed_by VARCHAR, season__number VARCHAR)
SELECT MIN(first_elected) FROM table_1341472_49 WHERE district = "Washington 7"
what being the minimum first elected with district being washington 7
CREATE TABLE table_1341472_49 (first_elected INTEGER, district VARCHAR)
SELECT high_points FROM table_17323092_8 WHERE game = 69
Who earned high points in game 69?
CREATE TABLE table_17323092_8 (high_points VARCHAR, game VARCHAR)
SELECT away_captain FROM table_name_38 WHERE date = "30 dec, 1,2,3 jan 1911/2"
What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
CREATE TABLE table_name_38 (away_captain VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon"
Name the home team when the away team was essendon
CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR)
SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme
Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
SELECT christ_madeking FROM table_name_16 WHERE great_tribulation = "1925"
What was the Christ made king date with a great tribulation in 1925?
CREATE TABLE table_name_16 (christ_madeking VARCHAR, great_tribulation VARCHAR)
SELECT COUNT(premier_league) FROM table_name_53 WHERE UEfa_cup = 10 AND league_cup < 4
What is the total number of appearances in the premier league when there were 10 appearances at UEFA and less than 4 at league cup?
CREATE TABLE table_name_53 (premier_league VARCHAR, UEfa_cup VARCHAR, league_cup VARCHAR)
SELECT name FROM table_name_55 WHERE nation = "france" AND pts_game > 3 AND points < 33
what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?
CREATE TABLE table_name_55 (name VARCHAR, points VARCHAR, nation VARCHAR, pts_game VARCHAR)
SELECT try_bonus FROM table_15467476_2 WHERE tries_for = "30"
Name the try bonus and tries for 30
CREATE TABLE table_15467476_2 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT building FROM table_13397394_1 WHERE storeys = 12
what are all the building with 12 storeys
CREATE TABLE table_13397394_1 (building VARCHAR, storeys VARCHAR)
SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41
What class is after 1973 with 41 points?
CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)
SELECT city FROM table_name_46 WHERE venue = "mackey arena"
What city is Mackey Arena in?
CREATE TABLE table_name_46 (city VARCHAR, venue VARCHAR)
SELECT home FROM table_name_45 WHERE date = "april 22"
Which Home is on april 22?
CREATE TABLE table_name_45 (home VARCHAR, date VARCHAR)
SELECT player FROM table_name_22 WHERE year_born < 1980 AND current_club = "toronto raptors"
Who is the player who was born before 1980 who currently plays for the Toronto Raptors?
CREATE TABLE table_name_22 (player VARCHAR, year_born VARCHAR, current_club VARCHAR)
SELECT college FROM table_name_79 WHERE hometown = "fort lauderdale, fl"
What college did the player from Fort Lauderdale, FL attend?
CREATE TABLE table_name_79 (college VARCHAR, hometown VARCHAR)
SELECT Box AS score FROM table_name_95 WHERE home_team = "townsville crocodiles"
What was the box score for the game that had the Townsville Crocodiles as home team?
CREATE TABLE table_name_95 (Box VARCHAR, home_team VARCHAR)
SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
What surface was the città di caltanissetta played on?
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR)
SELECT district FROM table_name_88 WHERE name = "rajnagar"
What is district has a name of Rajnagar?
CREATE TABLE table_name_88 (district VARCHAR, name VARCHAR)
SELECT name FROM table_name_49 WHERE works_number = "809"
Who is the name with a works number of 809?
CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR)
SELECT position FROM table_name_92 WHERE nhl_team = "los angeles kings"
What is the position of the player on the Los Angeles Kings?
CREATE TABLE table_name_92 (position VARCHAR, nhl_team VARCHAR)
SELECT league FROM table_name_38 WHERE number < 122 AND record = "least wins"
What league has a number less than 122, and least wins as the record?
CREATE TABLE table_name_38 (league VARCHAR, number VARCHAR, record VARCHAR)
SELECT release_date FROM table_name_37 WHERE location = "europe"
What is the release date when the location is Europe?
CREATE TABLE table_name_37 (release_date VARCHAR, location VARCHAR)
SELECT partner FROM table_name_98 WHERE opponents_in_the_final = "remi tezuka shuko aoyama"
What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?
CREATE TABLE table_name_98 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT general_classification FROM table_18733814_2 WHERE winner = "Danilo Di Luca"
When danilo di luca is the winner who is the general classification?
CREATE TABLE table_18733814_2 (general_classification VARCHAR, winner VARCHAR)
SELECT AVG(rank) FROM table_name_23 WHERE total < 1
Which rank has a total smaller than 1?
CREATE TABLE table_name_23 (rank INTEGER, total INTEGER)
SELECT position FROM table_name_30 WHERE height > 2.12
What is the position of the player who is taller than 2.12?
CREATE TABLE table_name_30 (position VARCHAR, height INTEGER)
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S75"
What is the coinage metal for a KM number of S75?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)
SELECT venue FROM table_name_76 WHERE score = "1-1"
In what Venue was the Score 1-1?
CREATE TABLE table_name_76 (venue VARCHAR, score VARCHAR)
SELECT record FROM table_name_79 WHERE date = "september 26"
What was the record on September 26?
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
SELECT MAX(silver) FROM table_name_6 WHERE total > 95
What is the highest number of silvers a team with more than 95 total medals has?
CREATE TABLE table_name_6 (silver INTEGER, total INTEGER)
SELECT fastest_lap FROM table_11056278_3 WHERE race_name = "Tenneco Automotive Grand Prix of Detroit"
Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?
CREATE TABLE table_11056278_3 (fastest_lap VARCHAR, race_name VARCHAR)
SELECT place FROM table_name_84 WHERE score = 69 - 68 = 137
What place is the player with a score of 69-68=137?
CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)
SELECT candidates FROM table_2668243_22 WHERE district = "South Carolina 6"
who were the "candidate" of South Carolina 6?
CREATE TABLE table_2668243_22 (candidates VARCHAR, district VARCHAR)
SELECT record FROM table_name_88 WHERE score = "3-5"
What was the record of the game that went 3-5?
CREATE TABLE table_name_88 (record VARCHAR, score VARCHAR)
SELECT ihsaa_class FROM table_name_2 WHERE mascot = "wildcats"
Which IHSAA Class has a Mascot of wildcats?
CREATE TABLE table_name_2 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = "same" AND last_aired > 1984
Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?
CREATE TABLE table_name_8 (new_returning_same_network VARCHAR, retitled_as_same VARCHAR, last_aired VARCHAR)
SELECT goal_average_1 FROM table_17357929_1 WHERE lost = 9
What is the goal average 1 for teams that lost 9 games?
CREATE TABLE table_17357929_1 (goal_average_1 VARCHAR, lost VARCHAR)
SELECT reward FROM table_24122653_2 WHERE eliminated = "Peterson"
What is the reward for the elimination of Peterson?
CREATE TABLE table_24122653_2 (reward VARCHAR, eliminated VARCHAR)
SELECT MIN(year) FROM table_177273_2
what is the lowest year represented?
CREATE TABLE table_177273_2 (year INTEGER)
SELECT MAX(_percentage_internet_users) FROM table_name_51 WHERE _percentage_growth__2000_2008_ = 1622
What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?
CREATE TABLE table_name_51 (_percentage_internet_users INTEGER, _percentage_growth__2000_2008_ VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE position = "guard" AND pick__number > 9
Position of guard, and a Pick # larger than 9 is what highest round?
CREATE TABLE table_name_67 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT year__ceremony_ FROM table_22102732_1 WHERE english_title = "Time Out"
What year and the corresponding ceremony was the english titled movie "time out" submitted?
CREATE TABLE table_22102732_1 (year__ceremony_ VARCHAR, english_title VARCHAR)
SELECT country FROM table_name_24 WHERE moving_to = "chelsea"
Name the country moving to chelsea
CREATE TABLE table_name_24 (country VARCHAR, moving_to VARCHAR)
SELECT MIN(overall) FROM table_name_87 WHERE round = 3
Which Overall is the lowest one that has a Round of 3?
CREATE TABLE table_name_87 (overall INTEGER, round VARCHAR)
SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130"
How many civilians died in the conflict that had a total of 1,130 casualties?
CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)
SELECT notes FROM table_name_9 WHERE date = "2007"
What is Notes, when Date is 2007?
CREATE TABLE table_name_9 (notes VARCHAR, date VARCHAR)
SELECT state FROM table_name_70 WHERE region = "mideast" AND host = "university of tennessee"
Mideast region host University of Tennessee is in what state?
CREATE TABLE table_name_70 (state VARCHAR, region VARCHAR, host VARCHAR)
SELECT score FROM table_name_76 WHERE country = "scotland"
What was the score for the player from Scotland?
CREATE TABLE table_name_76 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_92 WHERE date = "october 9"
Name the score for october 9
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)
SELECT notes FROM table_name_79 WHERE title = "happy camp"
What are the notes for Happy Camp?
CREATE TABLE table_name_79 (notes VARCHAR, title VARCHAR)
SELECT result FROM table_name_17 WHERE round = 34
What is the result when the round shows 34?
CREATE TABLE table_name_17 (result VARCHAR, round VARCHAR)
SELECT Famous_Title, Age FROM artist ORDER BY Age DESC
Please list the age and famous title of artists in descending order of age.
CREATE TABLE artist (Famous_Title VARCHAR, Age VARCHAR)
SELECT COUNT(second_runner_up) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who is the second runner up when Janina San Miguel won binibining pilipinas-world?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT outcome FROM table_name_45 WHERE surface = "grass" AND date = "23 june 1997"
what is the outcome when the surface is grass on 23 june 1997?
CREATE TABLE table_name_45 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
What is the entry name of the most expensive catalog (in USD)?
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, price_in_dollars VARCHAR)
SELECT status FROM table_name_2 WHERE opposing_team = "gauteng falcons"
What status has gauteng falcons as the opposing team?
CREATE TABLE table_name_2 (status VARCHAR, opposing_team VARCHAR)
SELECT code, name, MIN(price) FROM products GROUP BY name
Select the code of the product that is cheapest in each product category.
CREATE TABLE products (code VARCHAR, name VARCHAR, price INTEGER)
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
Show id, first and last names for all customers with at least two cards.
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT circuit FROM table_20884163_2 WHERE race_title = "PlaceMakers V8 Supercars"
What circuit features the placemakers v8 supercars race?
CREATE TABLE table_20884163_2 (circuit VARCHAR, race_title VARCHAR)
SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = "Tampa"
What is the tier IV year for the tournament held in Tampa?
CREATE TABLE table_20630462_1 (tier_iv_in VARCHAR, tournament VARCHAR)
SELECT SUM(bronze) FROM table_name_69 WHERE silver = 15 AND gold < 20
Which Bronze has a Silver of 15, and a Gold smaller than 20?
CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT proximity FROM table_name_67 WHERE plural = "amader (our)"
What is Proximity, when Plural is amader (our)?
CREATE TABLE table_name_67 (proximity VARCHAR, plural VARCHAR)
SELECT attendance FROM table_name_32 WHERE opponent = "angels" AND date = "july 9"
Name the attendance with angels opponent for july 9
CREATE TABLE table_name_32 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT years_in_assembly FROM table_name_71 WHERE name = "christine kehoe"
During what years was Christine Kehoe in Assembly?
CREATE TABLE table_name_71 (years_in_assembly VARCHAR, name VARCHAR)
SELECT AVG(geo_id) FROM table_name_4 WHERE latitude < 46.57958 AND longitude = -102.109898 AND land___sqmi__ > 35.99
What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?
CREATE TABLE table_name_4 (geo_id INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR)
SELECT poll_source FROM table_name_49 WHERE nathan_deal = "13%" AND john_oxendine = "28%"
In what poll is Nathan Deal at 13% and John Oxendine at 28%?
CREATE TABLE table_name_49 (poll_source VARCHAR, nathan_deal VARCHAR, john_oxendine VARCHAR)
SELECT meaning FROM table_name_61 WHERE pīnyīn = "chē"
WHAT IS THE MEANING WITH Pīnyīn of chē?
CREATE TABLE table_name_61 (meaning VARCHAR, pīnyīn VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "stade d'abidjan"
What was the score in the 1st leg when Stade d'Abidjan was Team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco"
What's the 2nd leg for team 2 san francisco?
CREATE TABLE table_name_62 (team_2 VARCHAR)
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter"
Which party belongs to district 41, and is delegated by Jill P. Carter?
CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR)
SELECT AVG(losses) FROM table_name_23 WHERE wins < 0
What is the average number of losses for teams with fewer than 0 wins?
CREATE TABLE table_name_23 (losses INTEGER, wins INTEGER)
SELECT candidates FROM table_2668378_13 WHERE district = "Pennsylvania 5"
who was running in the section pennsylvania 5
CREATE TABLE table_2668378_13 (candidates VARCHAR, district VARCHAR)
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya"
where did marie-laure taya win?
CREATE TABLE table_name_90 (venue VARCHAR, winner VARCHAR)
SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china"
Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?
CREATE TABLE table_name_37 (company VARCHAR, incorporated_in VARCHAR, type VARCHAR, principal_activities VARCHAR)
SELECT SUM(num_of_component) FROM furniture
How many furniture components are there in total?
CREATE TABLE furniture (num_of_component INTEGER)
SELECT COUNT(afinsa) FROM table_1818471_1 WHERE value = "5P"
How many different numbers for Afinsa when value is 5p?
CREATE TABLE table_1818471_1 (afinsa VARCHAR, value VARCHAR)
SELECT date FROM table_name_38 WHERE record = "62–84"
On what date was the record 62–84?
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_35 WHERE opponent = "giants" AND attendance > 24 OFFSET 100
When did the Rockies play the Giants with an attendance over 24,100?
CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT population FROM table_101196_1 WHERE irish_name = "Leitir Mealláin"
What is the population for the Irish Name Leitir mealláin?
CREATE TABLE table_101196_1 (population VARCHAR, irish_name VARCHAR)
SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942"
What is the Name of the Ship attacked on 20February1942?
CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = "Beata Syta"
Beata syta is the minimum year for womens singles.
CREATE TABLE table_13857501_1 (year INTEGER, womens_singles VARCHAR)
SELECT COUNT(moto2_winner) FROM table_27948565_1 WHERE circuit = "Laguna Seca"
Name the total number of moto2 winners for laguna seca
CREATE TABLE table_27948565_1 (moto2_winner VARCHAR, circuit VARCHAR)
SELECT AVG(march) FROM table_name_70 WHERE record = "25–30–13" AND points < 63
What day has a record of 25–30–13 and less than 63 points?
CREATE TABLE table_name_70 (march INTEGER, record VARCHAR, points VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE record = "20–4"
Record of 20–4 involved what highest game?
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR)
SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006
How many cities have a stadium that was opened before the year of 2006?
CREATE TABLE stadium (city VARCHAR, opening_year INTEGER)
SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = "29%"
What is the democratic seat plurality with 29% democrat?
CREATE TABLE table_name_94 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR)