question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who won a medal at the 2008 Beijing Olympics?
CREATE TABLE table_name_33 (name VARCHAR, games VARCHAR)
SELECT name FROM table_name_33 WHERE games = "2008 beijing"
In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz?
CREATE TABLE table_name_21 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_21 WHERE city_of_license = "los banos, california" AND erp_w < 10
What was the free score of the skater with a total of 156.67?
CREATE TABLE table_name_80 (free VARCHAR, total VARCHAR)
SELECT free FROM table_name_80 WHERE total = 156.67
what 1989 has 2002 of 4r and 2005 of 4r?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r"
when is Record of 66-95?
CREATE TABLE table_name_31 (time VARCHAR, record VARCHAR)
SELECT time FROM table_name_31 WHERE record = "66-95"
What is the callsign that has a station type of relay and a channel number of TV-2?
CREATE TABLE table_24673888_1 (callsign VARCHAR, station_type VARCHAR, ch__number VARCHAR)
SELECT callsign FROM table_24673888_1 WHERE station_type = "Relay" AND ch__number = "TV-2"
Which date had Japanese sales of 0.59 million?
CREATE TABLE table_name_70 (date VARCHAR, japan VARCHAR)
SELECT date FROM table_name_70 WHERE japan = "0.59 million"
Who was the Alabama player associated with Walt Harris?
CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR)
SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt harris"
What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0
Name the character for sophie arthuys
CREATE TABLE table_14960574_6 (character VARCHAR, french_voice_actor VARCHAR)
SELECT character FROM table_14960574_6 WHERE french_voice_actor = "Sophie Arthuys"
Name the nationality of the player with an overall of 74
CREATE TABLE table_name_66 (nationality VARCHAR, overall VARCHAR)
SELECT nationality FROM table_name_66 WHERE overall = 74
what is the worlds smallest population?
CREATE TABLE table_19017269_5 (world INTEGER)
SELECT MIN(world) FROM table_19017269_5
What method was used in the Pride 17 event?
CREATE TABLE table_name_78 (method VARCHAR, event VARCHAR)
SELECT method FROM table_name_78 WHERE event = "pride 17"
On what date was the team's record 61-66?
CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_28 WHERE record = "61-66"
What was the Winter Olympics was Japan as the country?
CREATE TABLE table_name_38 (winter_olympics VARCHAR, country VARCHAR)
SELECT winter_olympics FROM table_name_38 WHERE country = "japan"
What is the highest Quantity for PTRD Nos. 3, 15?
CREATE TABLE table_name_84 (quantity INTEGER, ptrd_nos VARCHAR)
SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = "3, 15"
Name the average year for janaprakal chandruang
CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR)
SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang"
What is the sum of Crowd when Essendon was the home team?
CREATE TABLE table_name_33 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_33 WHERE home_team = "essendon"
Which Socket has a Frequency of 2200mhz, and a Release date on june 4, 2008?
CREATE TABLE table_name_30 (socket VARCHAR, frequency VARCHAR, release_date VARCHAR)
SELECT socket FROM table_name_30 WHERE frequency = "2200mhz" AND release_date = "june 4, 2008"
How many episodes were put out in Region 4 on March 4, 2010?
CREATE TABLE table_14855908_3 (episodes INTEGER, region_4 VARCHAR)
SELECT MAX(episodes) FROM table_14855908_3 WHERE region_4 = "March 4, 2010"
Which Hindi network is based in India and uses dish service and shows general programming?
CREATE TABLE table_name_93 (network VARCHAR, genre VARCHAR, origin_of_programming VARCHAR, service VARCHAR, language VARCHAR)
SELECT network FROM table_name_93 WHERE service = "dish" AND language = "hindi" AND origin_of_programming = "india" AND genre = "general"
What type of settlement is Jazak?
CREATE TABLE table_2562572_50 (type VARCHAR, settlement VARCHAR)
SELECT type FROM table_2562572_50 WHERE settlement = "Jazak"
What was the average rank for south africa when they had more than 8 silver medals?
CREATE TABLE table_name_64 (rank INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(rank) FROM table_name_64 WHERE nation = "south africa" AND silver > 8
Which team uses lola t92/00/ buick for their chassis/engine?
CREATE TABLE table_23391714_1 (team VARCHAR, chassis_engine VARCHAR)
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
How many laps did the rider with a grid larger than 14 and a time of +33.150 have?
CREATE TABLE table_name_82 (laps VARCHAR, grid VARCHAR, time VARCHAR)
SELECT laps FROM table_name_82 WHERE grid > 14 AND time = "+33.150"
Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th?
CREATE TABLE table_name_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND position = "4th"
Name the driver for Laps less than 9 and a grid of 13
CREATE TABLE table_name_60 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13
Which Model has hybrid propulsion?
CREATE TABLE table_name_59 (model VARCHAR, propulsion VARCHAR)
SELECT model FROM table_name_59 WHERE propulsion = "hybrid"
What is the away team at glenferrie oval?
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_33 WHERE venue = "glenferrie oval"
Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?
CREATE TABLE table_name_79 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = "cristiano da matta"
What is the average number of points of the team with more than 18 played?
CREATE TABLE table_name_72 (points INTEGER, played INTEGER)
SELECT AVG(points) FROM table_name_72 WHERE played > 18
What record has c. j. miles (20) in the high points?
CREATE TABLE table_27734286_1 (record VARCHAR, high_points VARCHAR)
SELECT record FROM table_27734286_1 WHERE high_points = "C. J. Miles (20)"
What is the total number played with 8 points and a position more than 6?
CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)
SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6
Tell me the sum of wins for top 5 less than 1
CREATE TABLE table_name_77 (wins INTEGER, top_5 INTEGER)
SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 1
What is the Battle with Bulgarian Commander Ivan Asen II?
CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR)
SELECT battle FROM table_name_21 WHERE bulgarian_commander = "ivan asen ii"
What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?
CREATE TABLE table_name_78 (Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR)
SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14
What is the country with a 68-73-69=210 score?
CREATE TABLE table_name_91 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_91 WHERE score = 68 - 73 - 69 = 210
What is the score of the home team tottenham hotspur?
CREATE TABLE table_name_94 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_94 WHERE home_team = "tottenham hotspur"
What is the most points when the goals against are 354 and games less than 82?
CREATE TABLE table_name_49 (points INTEGER, goals_against VARCHAR, games VARCHAR)
SELECT MAX(points) FROM table_name_49 WHERE goals_against = 354 AND games < 82
What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis?
CREATE TABLE table_name_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = "saint kitts and nevis"
What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, june_10_11 VARCHAR)
SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = "June 10, 1964"
Who is themens doubles when the mens singles is flemming delfs?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE mens_singles = "Flemming Delfs"
Name the rank for 151 Laps
CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR)
SELECT rank FROM table_name_18 WHERE laps = 151
In which district is the incumbent John Breaux?
CREATE TABLE table_1341690_18 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341690_18 WHERE incumbent = "John Breaux"
Who was the candidate in the election in the Tennessee 9 district?
CREATE TABLE table_1342233_42 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342233_42 WHERE district = "Tennessee 9"
What is the Nationality of Mike Gatting, who played 551 games?
CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "mike gatting"
What is the earliest episode that was watched by 1.32 million viewers?
CREATE TABLE table_26736342_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT MIN(no_in_series) FROM table_26736342_1 WHERE us_viewers__millions_ = "1.32"
What is the margin of victory in the race where Justin Rose was the runner-up?
CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "justin rose"
What was the home town of Bob Geren, picked by the San Diego Padres?
CREATE TABLE table_name_18 (hometown_school VARCHAR, team VARCHAR, player VARCHAR)
SELECT hometown_school FROM table_name_18 WHERE team = "san diego padres" AND player = "bob geren"
what is the bristol & n. som where the somerset is ashcott and shapwick?
CREATE TABLE table_12043148_2 (bristol_ VARCHAR, _n_som VARCHAR, somerset VARCHAR)
SELECT bristol_ & _n_som FROM table_12043148_2 WHERE somerset = "Ashcott and Shapwick"
What is the highest sd when the status is second round lost to iveta benešová?
CREATE TABLE table_26218783_7 (sd INTEGER, status VARCHAR)
SELECT MAX(sd) FROM table_26218783_7 WHERE status = "Second round lost to Iveta Benešová"
How many Points have Drivers of adrián vallés, and a Year larger than 2006?
CREATE TABLE table_name_97 (points INTEGER, drivers VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_97 WHERE drivers = "adrián vallés" AND year > 2006
Which course has km (mi) as a type?
CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR)
SELECT course FROM table_name_15 WHERE type = "km (mi)"
what were his points when he was in 8th position?
CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR)
SELECT points FROM table_24998088_1 WHERE position = "8th"
Who was the home team when Melbourne was the away team?
CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_98 WHERE away_team = "melbourne"
Tell me the Laps for time/retired of +1:08.491
CREATE TABLE table_name_39 (laps VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_39 WHERE time_retired = "+1:08.491"
What is the attendance when the opponent was the Houston Oilers?
CREATE TABLE table_name_47 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_47 WHERE opponent = "houston oilers"
Who was the athlete in the 56kg event having a did not advance in the finals?
CREATE TABLE table_name_65 (athlete VARCHAR, finals VARCHAR, event VARCHAR)
SELECT athlete FROM table_name_65 WHERE finals = "did not advance" AND event = "56kg"
What Gold has the Year of 1994?
CREATE TABLE table_name_68 (gold VARCHAR, year VARCHAR)
SELECT gold FROM table_name_68 WHERE year = 1994
How many points for did Munster have?
CREATE TABLE table_27293285_2 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_27293285_2 WHERE club = "Munster"
Name the sum of inversions for opened of april 20, 2002
CREATE TABLE table_name_89 (inversions INTEGER, opened VARCHAR)
SELECT SUM(inversions) FROM table_name_89 WHERE opened = "april 20, 2002"
What was the away teams score when Hawthorn played as the home team?
CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE home_team = "hawthorn"
Which Placings have a Nation of west germany, and Points larger than 303.72?
CREATE TABLE table_name_31 (placings INTEGER, nation VARCHAR, points VARCHAR)
SELECT SUM(placings) FROM table_name_31 WHERE nation = "west germany" AND points > 303.72
Before round 9, when Takashi Kogure held pole position, who was the team?
CREATE TABLE table_name_85 (team VARCHAR, round VARCHAR, pole_position VARCHAR)
SELECT team FROM table_name_85 WHERE round < 9 AND pole_position = "takashi kogure"
How many video games exist?
CREATE TABLE Video_games (Id VARCHAR)
SELECT COUNT(*) FROM Video_games
What is Player, when Caps is Example, and when Position is Center?
CREATE TABLE table_name_66 (player VARCHAR, caps VARCHAR, position VARCHAR)
SELECT player FROM table_name_66 WHERE caps = "example" AND position = "center"
How many cosponsors have a Date introduced of may 22, 2008?
CREATE TABLE table_name_15 (_number_of_cosponsors VARCHAR, date_introduced VARCHAR)
SELECT COUNT(_number_of_cosponsors) FROM table_name_15 WHERE date_introduced = "may 22, 2008"
What was the launch date the satellite with cospar ID is 2008-033A?
CREATE TABLE table_18161217_2 (launch_date VARCHAR, cospar_id VARCHAR)
SELECT launch_date FROM table_18161217_2 WHERE cospar_id = "2008-033A"
Which method's opponent was chris clark?
CREATE TABLE table_name_11 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_11 WHERE opponent = "chris clark"
When the poles are 0 and the position is 14th, how much are the winnings?
CREATE TABLE table_1708014_1 (winnings VARCHAR, poles VARCHAR, position VARCHAR)
SELECT winnings FROM table_1708014_1 WHERE poles = 0 AND position = "14th"
Name the most events with cuts made more than 6 and top 25 more than 30
CREATE TABLE table_name_92 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30
What is the most goals for when there are fewer than 4 draws?
CREATE TABLE table_name_1 (goals_for INTEGER, drawn INTEGER)
SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4
How tall is player James Stanton?
CREATE TABLE table_name_19 (height VARCHAR, name VARCHAR)
SELECT height FROM table_name_19 WHERE name = "james stanton"
What tournament had a victory of a 1 stroke margin and the final winning score 69-75-71-70?
CREATE TABLE table_name_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_1 WHERE margin_of_victory = "1 stroke" AND winning_score = "69-75-71-70"
What is the average react of athlete muna lee, who is ranked greater than 3?
CREATE TABLE table_name_4 (react INTEGER, athlete VARCHAR, rank VARCHAR)
SELECT AVG(react) FROM table_name_4 WHERE athlete = "muna lee" AND rank > 3
Find Alice's friends of friends.
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice'
What is Score, when Date is "2000-05-23"?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_93 WHERE date = "2000-05-23"
What is the highest chart number for the song Yardbirds aka Roger the Engineer?
CREATE TABLE table_name_17 (chart_no INTEGER, title VARCHAR)
SELECT MAX(chart_no) FROM table_name_17 WHERE title = "yardbirds aka roger the engineer"
Name the team for ricky rudd
CREATE TABLE table_2150776_1 (team VARCHAR, driver VARCHAR)
SELECT team FROM table_2150776_1 WHERE driver = "Ricky Rudd"
What was the finishing time of the Stage that featured a distance of 24.00km and a start time of 21:27?
CREATE TABLE table_name_78 (time VARCHAR, distance VARCHAR, start_time VARCHAR)
SELECT time FROM table_name_78 WHERE distance = "24.00km" AND start_time = "21:27"
Name the total number for period of validity for upper volta
CREATE TABLE table_222666_1 (period_of_validity VARCHAR, former_country_name VARCHAR)
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR)
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti"
What is the first year course in the program where geometry is taken in the third year?
CREATE TABLE table_12148147_2 (first_year VARCHAR, third_year VARCHAR)
SELECT first_year FROM table_12148147_2 WHERE third_year = "Geometry"
Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?
CREATE TABLE table_name_34 (head_coach VARCHAR, shirt_sponsor VARCHAR)
SELECT head_coach FROM table_name_34 WHERE shirt_sponsor = "karstadt quelle versicherungen"
What was the Bronco's record when they played the Detroit Lions at Mile High Stadium?
CREATE TABLE table_name_98 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_98 WHERE game_site = "mile high stadium" AND opponent = "detroit lions"
What is the attendance for the home game at Los Angeles Lakers?
CREATE TABLE table_11964047_10 (attendance VARCHAR, home VARCHAR)
SELECT attendance FROM table_11964047_10 WHERE home = "Los Angeles Lakers"
What is the English character for Lin Ming Kuan (林明寬)?
CREATE TABLE table_name_88 (english VARCHAR, character VARCHAR)
SELECT english FROM table_name_88 WHERE character = "lin ming kuan (林明寬)"
Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?
CREATE TABLE table_name_54 (class VARCHAR, call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT class FROM table_name_54 WHERE erp_w > 205 AND frequency_mhz < 93.9 AND call_sign = "k210cb"
What date was the award of £6,600 was given?
CREATE TABLE table_name_48 (date VARCHAR, award VARCHAR)
SELECT date FROM table_name_48 WHERE award = "£6,600"
How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1?
CREATE TABLE table_name_13 (no_of_events VARCHAR, country VARCHAR, date VARCHAR)
SELECT no_of_events FROM table_name_13 WHERE country = "trinidad and tobago" AND date = "march 30-april 1"
What is the Date of the RCA release with Catalog number SF-7635?
CREATE TABLE table_name_57 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_57 WHERE label = "rca" AND catalog = "sf-7635"
What was the crowd size for the game where Footscray was the away team?
CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = "footscray"
What is the Cargo Ship located at Birkenhead?
CREATE TABLE table_name_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)
SELECT ship FROM table_name_66 WHERE class___type = "cargo ship" AND location = "birkenhead"
What are the names of festivals held in year 2007?
CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007
Which Round has a Pick of 25 (via hamilton)?
CREATE TABLE table_name_88 (round INTEGER, pick VARCHAR)
SELECT SUM(round) FROM table_name_88 WHERE pick = "25 (via hamilton)"
What is the sum of rank for the athlete kerron stewart, and a time smaller than 11.05?
CREATE TABLE table_name_10 (rank INTEGER, athlete VARCHAR, time VARCHAR)
SELECT SUM(rank) FROM table_name_10 WHERE athlete = "kerron stewart" AND time < 11.05
What tournament took place on July 17, 2005, with a clay surface?
CREATE TABLE table_name_70 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_70 WHERE surface = "clay" AND date = "july 17, 2005"
What format has United Kingdom as its region and is catalogued as 201457 9?
CREATE TABLE table_name_65 (format VARCHAR, region VARCHAR, catalogue VARCHAR)
SELECT format FROM table_name_65 WHERE region = "united kingdom" AND catalogue = "201457 9"
What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?
CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = "bury"
Name the episode summary for torae carr
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR)
SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Torae Carr"