answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT rank FROM table_name_64 WHERE games = "426"
What is the rank that shows 426 games?
CREATE TABLE table_name_64 (rank VARCHAR, games VARCHAR)
SELECT MAX(matches) FROM table_name_31 WHERE player = "ian ryan" AND total < 29
With a Total of less than 29, what is Ian Ryan's most Matches?
CREATE TABLE table_name_31 (matches INTEGER, player VARCHAR, total VARCHAR)
SELECT COUNT(season_in_tamil) FROM table_1740431_3 WHERE season_in_sanskrit = "Grishma"
How many seasons in Tamil occur when the season in Sanskrit is Grishma?
CREATE TABLE table_1740431_3 (season_in_tamil VARCHAR, season_in_sanskrit VARCHAR)
SELECT position FROM table_name_19 WHERE player = "bert coan"
Which position does bert coan play?
CREATE TABLE table_name_19 (position VARCHAR, player VARCHAR)
SELECT incumbent FROM table_1341453_11 WHERE district = "Florida 6"
Who's the incumbent in Florida 6?
CREATE TABLE table_1341453_11 (incumbent VARCHAR, district VARCHAR)
SELECT place FROM table_name_2 WHERE player = "emmet french"
In which place is Emmet French?
CREATE TABLE table_name_2 (place VARCHAR, player VARCHAR)
SELECT SUM(total) FROM table_name_25 WHERE nation = "switzerland"
What is the sum of all total values for Switzerland?
CREATE TABLE table_name_25 (total INTEGER, nation VARCHAR)
SELECT competition FROM table_name_79 WHERE final_score = "6:5"
what is the competition that had a final score of 6:5?
CREATE TABLE table_name_79 (competition VARCHAR, final_score VARCHAR)
SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957
What 1957 engine has a Chassis of connaught type b?
CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT MIN(round) FROM table_name_57 WHERE position = "defensive back" AND player = "corey chavous"
Name the Round which has a Position of defensive back and corey chavous?
CREATE TABLE table_name_57 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT title FROM table_name_28 WHERE language = "portuguese"
Which title is in Portuguese?
CREATE TABLE table_name_28 (title VARCHAR, language VARCHAR)
SELECT COUNT(points) FROM table_23346303_5 WHERE assists = 7
What is the points total number if the assists is 7?
CREATE TABLE table_23346303_5 (points VARCHAR, assists VARCHAR)
SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?
CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)
SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158
Which Draws has a Wins smaller than 17, and an Against smaller than 1158?
CREATE TABLE table_name_64 (draws VARCHAR, wins VARCHAR, against VARCHAR)
SELECT country FROM table_name_77 WHERE player = "rocco mediate"
What country does Rocco Mediate play for?
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547
Tell me the right ascension for open cluster and NGC number more than 2547
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
SELECT venue FROM table_name_72 WHERE result = "5-1" AND score = "1-0"
Which Venue has a Result of 5-1, and a Score of 1-0?
CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR, score VARCHAR)
SELECT SUM(attendance) FROM table_name_50 WHERE away = "real juventud"
Which Attendance has an Away of real juventud?
CREATE TABLE table_name_50 (attendance INTEGER, away VARCHAR)
SELECT COUNT(matches) FROM table_name_14 WHERE draw < 7 AND lost_point = 16 AND lose > 4
I want the total number of matches for draw less than 7 and lost point of 16 with lose more than 4
CREATE TABLE table_name_14 (matches VARCHAR, lose VARCHAR, draw VARCHAR, lost_point VARCHAR)
SELECT lost FROM table_name_56 WHERE "points" = "points"
what team lost the most points
CREATE TABLE table_name_56 (lost VARCHAR)
SELECT relationship FROM table_name_95 WHERE age_at_death = "96"
What is the relationship of the woman who died at 96?
CREATE TABLE table_name_95 (relationship VARCHAR, age_at_death VARCHAR)
SELECT school_club_team FROM table_name_10 WHERE years_for_grizzlies = "1995-1998"
What's the school that played for the Grizzlie from 1995-1998?
CREATE TABLE table_name_10 (school_club_team VARCHAR, years_for_grizzlies VARCHAR)
SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0
What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?
CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR)
SELECT COUNT(mark) FROM table_name_65 WHERE country = "russia" AND react < 0.165
What is the total number of Mark, when Country is "Russia", and when React is less than 0.165?
CREATE TABLE table_name_65 (mark VARCHAR, country VARCHAR, react VARCHAR)
SELECT games_played FROM table_28628309_8 WHERE player = "Jimmy Alapag"
What is the listed in games played when the player is jimmy alapag?
CREATE TABLE table_28628309_8 (games_played VARCHAR, player VARCHAR)
SELECT date FROM table_17118657_10 WHERE high_assists = "Dupree (6)"
On which date is high assists Dupree (6)?
CREATE TABLE table_17118657_10 (date VARCHAR, high_assists VARCHAR)
SELECT high_rebounds FROM table_name_35 WHERE date = "september 11"
What were the high rebounds on september 11?
CREATE TABLE table_name_35 (high_rebounds VARCHAR, date VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING COUNT(*) > 1
Find the name of physicians who are in charge of more than one patient.
CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)
SELECT date FROM table_name_11 WHERE record = "34-41"
What date was the record 34-41?
CREATE TABLE table_name_11 (date VARCHAR, record VARCHAR)
SELECT episode FROM table_name_25 WHERE year > 1998 AND nominee_s_ = "john wells"
What episode after 1998 had John Wells as the nominee?
CREATE TABLE table_name_25 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
SELECT COUNT(kei) FROM table_23050383_1 WHERE economic_incentive_regime = "2.56"
How many KEI catagories are listed when the economic incentive regime is 2.56?
CREATE TABLE table_23050383_1 (kei VARCHAR, economic_incentive_regime VARCHAR)
SELECT COUNT(poles) FROM table_27279050_1 WHERE points = "0" AND nation = "Mexico"
How many pole position achieved 0 points from Mexico?
CREATE TABLE table_27279050_1 (poles VARCHAR, points VARCHAR, nation VARCHAR)
SELECT attendance FROM table_name_40 WHERE visitor = "warriors" AND date = "2006-11-04"
What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?
CREATE TABLE table_name_40 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT game_1 FROM table_name_13 WHERE position = "halfback"
What game 1 has halfback as a position?
CREATE TABLE table_name_13 (game_1 VARCHAR, position VARCHAR)
SELECT date FROM table_name_93 WHERE versus = "source: cricinfo.com"
What date had a versus of source: cricinfo.com?
CREATE TABLE table_name_93 (date VARCHAR, versus VARCHAR)
SELECT years FROM table_name_46 WHERE representative = "james robert jones"
Which years did James Robert Jones serve?
CREATE TABLE table_name_46 (years VARCHAR, representative VARCHAR)
SELECT score FROM table_name_1 WHERE player = "tiger woods"
What is Tiger Woods's score?
CREATE TABLE table_name_1 (score VARCHAR, player VARCHAR)
SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85
Goals for of 288, and Points smaller than 85 what is the highest goals against?
CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR)
SELECT MAX(place) FROM table_name_97 WHERE artist = "jacques raymond" AND draw > 14
What was the highest place a song by Jacques Raymond reached, with a draw over 14?
CREATE TABLE table_name_97 (place INTEGER, artist VARCHAR, draw VARCHAR)
SELECT name FROM table_name_1 WHERE index = "f3"
What is the Name of Index F3?
CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR)
SELECT losing_bonus FROM table_name_64 WHERE tries_against = "80"
What is the Losing bonus of the club that has 80 tries against ?
CREATE TABLE table_name_64 (losing_bonus VARCHAR, tries_against VARCHAR)
SELECT SUM(wins) FROM table_name_12 WHERE latest_win = "1999 italian grand prix" AND rank > 15
How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?
CREATE TABLE table_name_12 (wins INTEGER, latest_win VARCHAR, rank VARCHAR)
SELECT score FROM table_name_23 WHERE date = "january 23"
What was the final score for the January 23 game?
CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)
SELECT COUNT(area__km_2__) FROM table_1966992_1 WHERE census_2006_population = 151511
How many areas (km 2) have 151511 as the census 2006 population?
CREATE TABLE table_1966992_1 (area__km_2__ VARCHAR, census_2006_population VARCHAR)
SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107
What is the col location with a col height (m) of 1107?
CREATE TABLE table_2731431_1 (col_location VARCHAR, col_height__m_ VARCHAR)
SELECT iata FROM table_name_72 WHERE country = "france" AND icao = "lfrn"
What is the IATA when France was the country, and the ICAO was lfrn?
CREATE TABLE table_name_72 (iata VARCHAR, country VARCHAR, icao VARCHAR)
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders"
What is the date where the winner was the Oakland Raiders in 1975?
CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR)
SELECT viewers__in_millions_ FROM table_175980_2 WHERE season = "1st"
What are all values for viewers for 1st season?
CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, season VARCHAR)
SELECT COUNT(contestant) FROM table_27946889_2 WHERE height__mtr_ = "1.80"
How many contestants are 1.80 mtr. in height?
CREATE TABLE table_27946889_2 (contestant VARCHAR, height__mtr_ VARCHAR)
SELECT men_doubles FROM table_14903355_2 WHERE womens_singles = "Els Baert"
Name the men doubles for els baert
CREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_singles VARCHAR)
SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000
Find the names of all instructors in Comp. Sci. department with salary > 80000.
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)
SELECT conference FROM table_name_8 WHERE season = 2009 AND format = "super leg final"
What conference has 2009 as the season, with super leg final as the format?
CREATE TABLE table_name_8 (conference VARCHAR, season VARCHAR, format VARCHAR)
SELECT opponent FROM table_name_69 WHERE attendance = "38,642"
Which opponent had 38,642 attendance?
CREATE TABLE table_name_69 (opponent VARCHAR, attendance VARCHAR)
SELECT tournament FROM table_name_46 WHERE date = "22 october 2012"
What is the tournament on 22 October 2012?
CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR)
SELECT date FROM table_name_86 WHERE tie_no = "11"
Which Date has a Tie no of 11?
CREATE TABLE table_name_86 (date VARCHAR, tie_no VARCHAR)
SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand
Find the number of medications prescribed for each brand.
CREATE TABLE medication (name VARCHAR, brand VARCHAR, code VARCHAR); CREATE TABLE prescribes (medication VARCHAR)
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
Which round has the mv agusta f4 1000 mt?
CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR)
SELECT date_of_vacancy FROM table_17933600_2 WHERE outgoing_manage = "Bogićević"
What day did the job open up when bogićević was outgoing?
CREATE TABLE table_17933600_2 (date_of_vacancy VARCHAR, outgoing_manage VARCHAR)
SELECT team FROM table_name_16 WHERE laps < 105 AND grid < 18 AND points = 11
Which Team has Laps smaller than 105, and a Grid smaller than 18, and Points of 11?
CREATE TABLE table_name_16 (team VARCHAR, points VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT province FROM table_name_7 WHERE iata = "wnz"
WHich province has an IATA of WNZ?
CREATE TABLE table_name_7 (province VARCHAR, iata VARCHAR)
SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons"
When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR)
SELECT host_city FROM table_name_43 WHERE hosts = "alicia keys"
What is the host city that has Alicia Keys listed as a host?
CREATE TABLE table_name_43 (host_city VARCHAR, hosts VARCHAR)
SELECT song FROM table_name_33 WHERE label = "central station" AND album = "various - wild nights 4"
Which song had Central Station as a label and whose album was Various - Wild Nights 4?
CREATE TABLE table_name_33 (song VARCHAR, label VARCHAR, album VARCHAR)
SELECT gender, COUNT(*) FROM Customers GROUP BY gender
Show the number of customers for each gender.
CREATE TABLE Customers (gender VARCHAR)
SELECT time FROM table_name_23 WHERE set_3 = "31–29"
What is the time when the set 3 score is 31–29?
CREATE TABLE table_name_23 (time VARCHAR, set_3 VARCHAR)
SELECT 2008 AS _09 FROM table_name_13 WHERE event = "autumn gold"
Which 2008–09 has an Event of autumn gold?
CREATE TABLE table_name_13 (event VARCHAR)
SELECT 2004 FROM table_name_61 WHERE 2012 = "21"
Tell me the 2004 for 2012 of 21
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT player FROM table_name_20 WHERE hometown = "bay city, tx"
Who's from Bay City, TX?
CREATE TABLE table_name_20 (player VARCHAR, hometown VARCHAR)
SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn"
What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?
CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR)
SELECT venue FROM table_name_39 WHERE opposing_teams = "wales"
Where did Wales play?
CREATE TABLE table_name_39 (venue VARCHAR, opposing_teams VARCHAR)
SELECT attendance FROM table_name_23 WHERE date = "october 7, 1990"
What is the attandance figure on October 7, 1990?
CREATE TABLE table_name_23 (attendance VARCHAR, date VARCHAR)
SELECT variant__with_niqqud__ FROM table_name_84 WHERE phonetic_realisation = "[[[|u]]]"
When phonetic realisation is [[[|u]]], what is the variant with niqqud?
CREATE TABLE table_name_84 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR)
SELECT built FROM table_name_93 WHERE builder = "stephenson"
What year was Stephenson the builder?
CREATE TABLE table_name_93 (built VARCHAR, builder VARCHAR)
SELECT title FROM table_name_58 WHERE songwriter_s_ = "nigel stock" AND time = "4:12"
Which song was written by Nigel Stock and is 4:12 long?
CREATE TABLE table_name_58 (title VARCHAR, songwriter_s_ VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_95 WHERE loss = "wells (1-3)"
Which opponent has a loss of wells (1-3)?
CREATE TABLE table_name_95 (opponent VARCHAR, loss VARCHAR)
SELECT location FROM table_name_90 WHERE call_sign = "cjtw-fm"
Which Location has a Call sign of cjtw-fm?
CREATE TABLE table_name_90 (location VARCHAR, call_sign VARCHAR)
SELECT COUNT(laps) FROM table_name_62 WHERE time_retired = "+ 1:25.475"
How many laps associated with a Time/Retired of + 1:25.475?
CREATE TABLE table_name_62 (laps VARCHAR, time_retired VARCHAR)
SELECT date FROM table_name_90 WHERE catalogue = "asw 40362"
What date has a catalogue of asw 40362?
CREATE TABLE table_name_90 (date VARCHAR, catalogue VARCHAR)
SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = "Jagdgeschwader 6"
Name the aircraft type for jagdgeschwader 6
CREATE TABLE table_28342423_1 (aircraft_type VARCHAR, parent_unit VARCHAR)
SELECT points_difference FROM table_name_39 WHERE points_against = "615"
What is the points difference for the team that has allowed 615 points against?
CREATE TABLE table_name_39 (points_difference VARCHAR, points_against VARCHAR)
SELECT MAX(laps) FROM table_17319931_1 WHERE driver = "Darren Manning"
What is the highest number of laps for Darren Manning?
CREATE TABLE table_17319931_1 (laps INTEGER, driver VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq"
Name the guest 4 for steve lamacq
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR)
SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356
What is the lowest number of blocks for players with height of 206 and more than 356 spikes?
CREATE TABLE table_name_69 (block INTEGER, height VARCHAR, spike VARCHAR)
SELECT opponent FROM table_name_53 WHERE record = "56-59"
Which opponent led to a 56-59 record?
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR)
SELECT player FROM table_name_41 WHERE score = 72 - 67 - 71 = 210
What player has 72-67-71=210 as the score?
CREATE TABLE table_name_41 (player VARCHAR, score VARCHAR)
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
Which character was in the sexiest female category of the British Soap Awards?
CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR)
SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?
CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)
SELECT points_against FROM table_12807904_5 WHERE points = "63"
what are the total points agains the score of 63?
CREATE TABLE table_12807904_5 (points_against VARCHAR, points VARCHAR)
SELECT channels FROM table_142573_1 WHERE designation = "PC700"
Name the channels when designation is pc700
CREATE TABLE table_142573_1 (channels VARCHAR, designation VARCHAR)
SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dodge Viper" AND rnd = 1
Who was supporting in round 1 where the gt winning car was dodge viper?
CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR, rnd VARCHAR)
SELECT parent_magazine FROM table_name_42 WHERE title = "dengeki 5pb."
What is the parent magazine for Dengeki 5pb.?
CREATE TABLE table_name_42 (parent_magazine VARCHAR, title VARCHAR)
SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%"
In the county where Bush won 77.76%, how many total votes were cast?
CREATE TABLE table_13625792_1 (total__number VARCHAR, bush__percentage VARCHAR)
SELECT opponent FROM table_name_67 WHERE result = "bye"
Who was the opponent of the Bye result?
CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR)
SELECT language FROM table_name_64 WHERE title = "strong heart"
What is the language for Strong Heart?
CREATE TABLE table_name_64 (language VARCHAR, title VARCHAR)
SELECT directx FROM table_26860595_2 WHERE core___mhz__ = "700 700"
What was the model's DirectX if it has a Core of 700 700 mhz?
CREATE TABLE table_26860595_2 (directx VARCHAR, core___mhz__ VARCHAR)
SELECT SUM(rank) FROM table_name_19 WHERE title = "eddie murphy raw"
What is the sum of the ranks for the film, eddie murphy raw?
CREATE TABLE table_name_19 (rank INTEGER, title VARCHAR)
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = "74.4"
What is the reunion weight of the contestant who lost 74.4 lbs at the finale?
CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_finale VARCHAR)
SELECT county FROM table_name_95 WHERE median_family_income = "$37,667"
What county has a Median family income of $37,667?
CREATE TABLE table_name_95 (county VARCHAR, median_family_income VARCHAR)
SELECT score_points FROM table_name_53 WHERE rank_points = "3"
What is the score points when the rank points is 3?
CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)
SELECT SUM(lane) FROM table_name_24 WHERE nationality = "sweden" AND split__50m_ < 26.25
What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?
CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR)