question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest value of Total Goals?
CREATE TABLE table_10240125_1 (total_goals INTEGER)
SELECT MAX(total_goals) FROM table_10240125_1
During race 14, what's the podiums?
CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR)
SELECT MAX(podiums) FROM table_name_78 WHERE race = 14
What player had the high assists when the Score was l 107–112 (ot)?
CREATE TABLE table_name_27 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_27 WHERE score = "l 107–112 (ot)"
Name the television service when primafila hot club
CREATE TABLE table_15887683_6 (television_service VARCHAR, content VARCHAR)
SELECT television_service FROM table_15887683_6 WHERE content = "Primafila Hot Club"
What is the lowest density of a town with a 13,708 2011 population census ?
CREATE TABLE table_name_74 (density INTEGER, population_2011_census VARCHAR)
SELECT MIN(density) FROM table_name_74 WHERE population_2011_census = 13 OFFSET 708
Who was Footscray's opponent on June 15th of 1968?
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_54 WHERE away_team = "footscray"
What team scored 4 points?
CREATE TABLE table_20396_1 (team VARCHAR, points VARCHAR)
SELECT team FROM table_20396_1 WHERE points = "4"
What is the site where the game was held in the city of Delaware?
CREATE TABLE table_name_39 (site VARCHAR, city VARCHAR)
SELECT site FROM table_name_39 WHERE city = "delaware"
What is the highest Money ( $ ), when Score is "69-71-70-74=284"?
CREATE TABLE table_name_65 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_65 WHERE score = 69 - 71 - 70 - 74 = 284
Which player was picked before 13, in a P position, and is from Georgia Tech?
CREATE TABLE table_name_98 (player VARCHAR, hometown_school VARCHAR, pick VARCHAR, position VARCHAR)
SELECT player FROM table_name_98 WHERE pick < 13 AND position = "p" AND hometown_school = "georgia tech"
What tries against value does burry port rfc have?
CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc"
What is the name of school that has the smallest enrollment in each state?
CREATE TABLE college (cName VARCHAR, state VARCHAR, enr INTEGER)
SELECT cName, state, MIN(enr) FROM college GROUP BY state
List the name of the aircraft that has been named winning aircraft the most number of times.
CREATE TABLE MATCH (Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
Name the recognised seats for pharmacology
CREATE TABLE table_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)
SELECT recognised_seats FROM table_19304764_2 WHERE discipline = "Pharmacology"
What is the Tie no of the Port Vale Away game?
CREATE TABLE table_name_56 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_56 WHERE away_team = "port vale"
What are the conditions for the athens circuit?
CREATE TABLE table_24463470_1 (conditions VARCHAR, circuit VARCHAR)
SELECT conditions FROM table_24463470_1 WHERE circuit = "Athens"
Which event had a total of 28?
CREATE TABLE table_name_51 (event VARCHAR, total VARCHAR)
SELECT event FROM table_name_51 WHERE total = "28"
Name the forward assist for a2 barrel profile
CREATE TABLE table_12834315_4 (forward_assist VARCHAR, barrel_profile VARCHAR)
SELECT forward_assist FROM table_12834315_4 WHERE barrel_profile = "A2"
Which game did rudy gay (12) have the highest points?
CREATE TABLE table_27756474_2 (game VARCHAR, high_points VARCHAR)
SELECT game FROM table_27756474_2 WHERE high_points = "Rudy Gay (12)"
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?
CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR)
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865"
What was the attendance on September 11, 1988?
CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988"
Which record is dated April 8?
CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_60 WHERE date = "april 8"
What is the total number of high points on January 21?
CREATE TABLE table_17323092_6 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(high_points) FROM table_17323092_6 WHERE date = "January 21"
Name the total number for 18-49 share being 18-49 being 3.1
CREATE TABLE table_20971444_3 (share__18_49_ VARCHAR, rating__18_49_ VARCHAR)
SELECT COUNT(share__18_49_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1"
What was the score for the team with a time of 2:44?
CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_8 WHERE time = "2:44"
What is the name of the venue when the home team is Richmond?
CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_26 WHERE home_team = "richmond"
What is the Team 2 with a Team 1 that is milli piyango sk?
CREATE TABLE table_name_34 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_34 WHERE team_1 = "milli piyango sk"
what are the order id and customer id of the oldest order?
CREATE TABLE orders (order_id VARCHAR, customer_id VARCHAR, date_order_placed VARCHAR)
SELECT order_id, customer_id FROM orders ORDER BY date_order_placed LIMIT 1
Where was game number 55 played?
CREATE TABLE table_23248940_9 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_23248940_9 WHERE game = 55
What Player had a To par of +1?
CREATE TABLE table_name_39 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_39 WHERE to_par = "+1"
What is the normal temperature of Abbotsford, British Columbia?
CREATE TABLE table_name_8 (normal_temperature VARCHAR, city VARCHAR)
SELECT normal_temperature FROM table_name_8 WHERE city = "abbotsford, british columbia"
Tell me the name for time of 25.74
CREATE TABLE table_name_2 (name VARCHAR, time VARCHAR)
SELECT name FROM table_name_2 WHERE time = 25.74
Which Year(s) won has a Total of 147?
CREATE TABLE table_name_57 (year_s__won VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_57 WHERE total = 147
What is the average number of losses when there are more than 0 ties?
CREATE TABLE table_name_49 (lost INTEGER, tied INTEGER)
SELECT AVG(lost) FROM table_name_49 WHERE tied > 0
Please show the titles of films and the types of market estimations.
CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR)
SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID
What is the surface of the tournament with david nalbandian as the opponent in the final?
CREATE TABLE table_name_53 (surface VARCHAR, opponent_in_final VARCHAR)
SELECT surface FROM table_name_53 WHERE opponent_in_final = "david nalbandian"
What is the high loss total for players with zero wins and a win % greater than 0?
CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0
Which Draws has an Against larger than 1158, and a Wins of 9, and a Losses smaller than 9?
CREATE TABLE table_name_74 (draws INTEGER, losses VARCHAR, against VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_74 WHERE against > 1158 AND wins = 9 AND losses < 9
What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?
CREATE TABLE table_name_28 (power VARCHAR, model VARCHAR, years VARCHAR)
SELECT power FROM table_name_28 WHERE model = "2.0 tdi (cr) dpf" AND years = "2010–2011"
Which artist uses a finish of selective gold plating?
CREATE TABLE table_name_29 (artist VARCHAR, finish VARCHAR)
SELECT artist FROM table_name_29 WHERE finish = "selective gold plating"
What is the rank for the period of 1973–89, with less than 423 games.
CREATE TABLE table_name_7 (rank INTEGER, period VARCHAR, games VARCHAR)
SELECT SUM(rank) FROM table_name_7 WHERE period = "1973–89" AND games < 423
Show names of technicians who are assigned to repair machines with value point more than 70.
CREATE TABLE machine (machine_id VARCHAR, value_points INTEGER); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
What title did George Fury win when on the Oran Park Raceway?
CREATE TABLE table_name_6 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT race_title FROM table_name_6 WHERE winner = "george fury" AND circuit = "oran park raceway"
What was the date of the game with a save of ||3,073?
CREATE TABLE table_name_74 (date VARCHAR, save VARCHAR)
SELECT date FROM table_name_74 WHERE save = "||3,073"
What were the results for november 25, 1973?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_36 WHERE date = "november 25, 1973"
Which attendance has a Channel of espn, and a Date of september 5, 2002?
CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_57 WHERE channel = "espn" AND date = "september 5, 2002"
What was the time for the match that had a a home team of HKSSF?
CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_17 WHERE home_team = "hkssf"
Show names for all aircrafts of which John Williams has certificates.
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Employee (eid VARCHAR, name VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)
SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = "John Williams"
Who is the challenge leader that played on 9:30 pm on Wed., Nov. 28?
CREATE TABLE table_name_42 (challenge_leader VARCHAR, time VARCHAR, date VARCHAR)
SELECT challenge_leader FROM table_name_42 WHERE time = "9:30 pm" AND date = "wed., nov. 28"
How many total No Results are recorded for less than 6 wins?
CREATE TABLE table_name_21 (no_result VARCHAR, wins INTEGER)
SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6
What was the total number of seats won where the % of votes is equal to 20.29?
CREATE TABLE table_149330_1 (seats_won VARCHAR, _percentage_of_votes VARCHAR)
SELECT COUNT(seats_won) FROM table_149330_1 WHERE _percentage_of_votes = "20.29"
Which pick played the Defensive End position?
CREATE TABLE table_name_3 (pick VARCHAR, position VARCHAR)
SELECT pick FROM table_name_3 WHERE position = "defensive end"
Name the song that has a track larger than 7 and means death.
CREATE TABLE table_name_83 (recorded VARCHAR, track VARCHAR, translation VARCHAR)
SELECT recorded FROM table_name_83 WHERE track > 7 AND translation = "death"
How many points did the team who had 132 total points have in round 1?
CREATE TABLE table_24784769_1 (round1 INTEGER, total_points VARCHAR)
SELECT MAX(round1) FROM table_24784769_1 WHERE total_points = 132
Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER)
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC
What was the race that featured stirling moss winning with a maserati at aintree?
CREATE TABLE table_name_45 (race_name VARCHAR, winning_driver VARCHAR, constructor VARCHAR, circuit VARCHAR)
SELECT race_name FROM table_name_45 WHERE constructor = "maserati" AND circuit = "aintree" AND winning_driver = "stirling moss"
What is the podium for 144 points?
CREATE TABLE table_10420426_1 (podiums VARCHAR, points VARCHAR)
SELECT podiums FROM table_10420426_1 WHERE points = 144
When 1.17 is the production code how many air dates are there?
CREATE TABLE table_20124413_1 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT COUNT(original_airdate) FROM table_20124413_1 WHERE prod_code = "1.17"
Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
What was the method of elimination in the chamber with a time of 24:02?
CREATE TABLE table_24628683_2 (method_of_elimination VARCHAR, time VARCHAR)
SELECT method_of_elimination FROM table_24628683_2 WHERE time = "24:02"
What is the Fleet Size when the EASA (EU) is no?
CREATE TABLE table_name_27 (fleet_size VARCHAR, easa__eu_ VARCHAR)
SELECT fleet_size FROM table_name_27 WHERE easa__eu_ = "no"
When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ?
CREATE TABLE table_14752049_6 (change__2010_to_2011_ VARCHAR, international_tourist_arrivals__2012_ VARCHAR)
SELECT change__2010_to_2011_ FROM table_14752049_6 WHERE international_tourist_arrivals__2012_ = "24.1 million"
How many people were elected in 1929
CREATE TABLE table_1342359_17 (candidates VARCHAR, first_elected VARCHAR)
SELECT COUNT(candidates) FROM table_1342359_17 WHERE first_elected = 1929
Which athlete is ranked less than 5 with time over 11.22?
CREATE TABLE table_name_15 (athlete VARCHAR, time___sec__ VARCHAR, rank VARCHAR)
SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 AND rank < 5
Which Quantity has an Axle arrangement of 2′c h2?
CREATE TABLE table_name_86 (quantity INTEGER, axle_arrangement VARCHAR)
SELECT AVG(quantity) FROM table_name_86 WHERE axle_arrangement = "2′c h2"
What position has less than 343 laps in 2010?
CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR)
SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010
What is the highest scored in the 2010 east asian football championship?
CREATE TABLE table_name_66 (scored INTEGER, competition VARCHAR)
SELECT MAX(scored) FROM table_name_66 WHERE competition = "2010 east asian football championship"
What is the state represented by the contestant from Mesa, AZ?
CREATE TABLE table_name_43 (state VARCHAR, hometown VARCHAR)
SELECT state FROM table_name_43 WHERE hometown = "mesa, az"
How many runs were ranked 4?
CREATE TABLE table_name_84 (runs VARCHAR, rank VARCHAR)
SELECT runs FROM table_name_84 WHERE rank = "4"
Which District was the incumbent Julius Kahn from? Answer: California 4th district
CREATE TABLE table_1346118_5 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1346118_5 WHERE incumbent = "Julius Kahn"
How many goals are associated with over 97 caps and a Latest cap of april 24, 2013?
CREATE TABLE table_name_43 (goals INTEGER, latest_cap VARCHAR, caps VARCHAR)
SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97
What were the total number scores after 2005, when the winner was David Patrick?
CREATE TABLE table_name_76 (score VARCHAR, winner VARCHAR, year VARCHAR)
SELECT COUNT(score) FROM table_name_76 WHERE winner = "david patrick" AND year > 2005
What is the average Prize fund ( US$ ), when OWGR pts is greater than 20, and when Dates is Nov 6-9?
CREATE TABLE table_name_56 (prize_fund___us INTEGER, owgr_pts VARCHAR, dates VARCHAR)
SELECT AVG(prize_fund___us) AS $__ FROM table_name_56 WHERE owgr_pts > 20 AND dates = "nov 6-9"
If the points scored were 93.45%, what's the lowest amount of games lost?
CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR)
SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45
how many vehicles where top 13 time is 1:18.72
CREATE TABLE table_20090682_4 (vehicle VARCHAR, top_13_time VARCHAR)
SELECT COUNT(vehicle) FROM table_20090682_4 WHERE top_13_time = "1:18.72"
What was the result for the game at Memorial Stadium in week 15?
CREATE TABLE table_name_24 (result VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT result FROM table_name_24 WHERE game_site = "memorial stadium" AND week = 15
How many dogs went through any treatments?
CREATE TABLE Treatments (dog_id VARCHAR)
SELECT COUNT(DISTINCT dog_id) FROM Treatments
What is the rank for total less than 5, 1 bronze and less than 1 silver?
CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1
Which ship was raided on 26 September 1940?
CREATE TABLE table_name_52 (name_of_ship VARCHAR, date VARCHAR)
SELECT name_of_ship FROM table_name_52 WHERE date = "26 september 1940"
what is the language/rebroadcast for cbc radio one?
CREATE TABLE table_name_30 (language_rebroadcast VARCHAR, branding VARCHAR)
SELECT language_rebroadcast FROM table_name_30 WHERE branding = "cbc radio one"
What date did the opponent George Khrikadze play?
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_97 WHERE opponent = "george khrikadze"
What team did Johnson (11-7) play for?
CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)"
WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012, TBA CURRENT CAR, AND MORE THAN 1 CAR?
CREATE TABLE table_name_95 (number_of_cars INTEGER, car__number VARCHAR, year_started VARCHAR, current_car VARCHAR)
SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = "tba" AND car__number > 1
Name the number of locations for geneva college
CREATE TABLE table_262476_1 (location VARCHAR, institution VARCHAR)
SELECT COUNT(location) FROM table_262476_1 WHERE institution = "Geneva College"
What is the total associated with Bronzes over 35?
CREATE TABLE table_name_15 (total VARCHAR, bronze INTEGER)
SELECT total FROM table_name_15 WHERE bronze > 35
What is the lowest played for the entry with position of 2 and fewer than 9 losses?
CREATE TABLE table_name_61 (played INTEGER, position VARCHAR, losses VARCHAR)
SELECT MIN(played) FROM table_name_61 WHERE position = 2 AND losses < 9
Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06?
CREATE TABLE table_name_39 (rank INTEGER, lane VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_39 WHERE lane = 5 AND time < 11.06
What is the date of the game away against Pride?
CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, home_away VARCHAR)
SELECT date FROM table_name_35 WHERE opponent = "pride" AND home_away = "away"
What is the minimum rnd at Laguna Seca?
CREATE TABLE table_27561505_2 (rnd INTEGER, circuit VARCHAR)
SELECT MIN(rnd) FROM table_27561505_2 WHERE circuit = "Laguna Seca"
When rory fallon category:articles with hcards is the player when is the international debut?
CREATE TABLE table_28286776_50 (international_debut VARCHAR, player VARCHAR)
SELECT international_debut FROM table_28286776_50 WHERE player = "Rory Fallon Category:Articles with hCards"
What venue has g1 as the group?
CREATE TABLE table_name_45 (venue VARCHAR, group VARCHAR)
SELECT venue FROM table_name_45 WHERE group = "g1"
Name the flagship station for cedric maxwell and year of 1995-96
CREATE TABLE table_name_74 (flagship_station VARCHAR, color_commentator_s_ VARCHAR, year VARCHAR)
SELECT flagship_station FROM table_name_74 WHERE color_commentator_s_ = "cedric maxwell" AND year = "1995-96"
What is the rank for points less than 166.96, and a Places of 166?
CREATE TABLE table_name_88 (rank INTEGER, points VARCHAR, places VARCHAR)
SELECT AVG(rank) FROM table_name_88 WHERE points < "166".96 AND places = "166"
What's Eduardo Salas' riding score?
CREATE TABLE table_12407546_1 (riding VARCHAR, athlete__noc_ VARCHAR)
SELECT riding FROM table_12407546_1 WHERE athlete__noc_ = "Eduardo Salas"
Name the uyghur for 瓦恰
CREATE TABLE table_2008069_2 (uyghur___k̢ona_yezik̢__ VARCHAR, chinese VARCHAR)
SELECT uyghur___k̢ona_yezik̢__ FROM table_2008069_2 WHERE chinese = "瓦恰"
What is Lijsttrekker, when Year is after 1990, and when Chair is "Ingrid Van Engelshoven"?
CREATE TABLE table_name_51 (lijsttrekker VARCHAR, year VARCHAR, chair VARCHAR)
SELECT lijsttrekker FROM table_name_51 WHERE year > 1990 AND chair = "ingrid van engelshoven"
how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR)
SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%"
Which Authority is set for Hauturu School?
CREATE TABLE table_name_23 (authority VARCHAR, name VARCHAR)
SELECT authority FROM table_name_23 WHERE name = "hauturu school"
What is the page count and word count greater than 5 with Bits of 18–22?
CREATE TABLE table_name_79 (page__number VARCHAR, word__number VARCHAR, bits VARCHAR)
SELECT page__number FROM table_name_79 WHERE word__number > 5 AND bits = "18–22"
What date was Richmond the home team?
CREATE TABLE table_name_17 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_17 WHERE home_team = "richmond"