answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(average) FROM table_name_19 WHERE rank > 4 AND celebrity = "natalia lesz"
What is the highest average of celebrity Natalia Lesz, who is ranked greater than 4?
CREATE TABLE table_name_19 (average INTEGER, rank VARCHAR, celebrity VARCHAR)
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000"
Which Operator has a Width of 2.65 m, and a Type designation of m5000?
CREATE TABLE table_name_13 (operator VARCHAR, width VARCHAR, type_designation VARCHAR)
SELECT decision FROM table_name_6 WHERE attendance = "19,592"
What was the decision when the attendance was 19,592?
CREATE TABLE table_name_6 (decision VARCHAR, attendance VARCHAR)
SELECT COUNT(races) FROM table_name_70 WHERE poles > 0
What is the total number of Races with a Pole that is larger than 0?
CREATE TABLE table_name_70 (races VARCHAR, poles INTEGER)
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 2801
In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
SELECT competition FROM table_name_91 WHERE time = "23:00 cet"
What competition is at 23:00 cet?
CREATE TABLE table_name_91 (competition VARCHAR, time VARCHAR)
SELECT tournament FROM table_name_50 WHERE moves = 37 AND result = "½–½"
What is Tournament, when Moves is "37", and when Result is "½–½"?
CREATE TABLE table_name_50 (tournament VARCHAR, moves VARCHAR, result VARCHAR)
SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final"
Which premier team played the 1951 NSWRFL Grand Final?
CREATE TABLE table_name_17 (premiers VARCHAR, details VARCHAR)
SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7"
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR, game VARCHAR, december VARCHAR)
SELECT category FROM table_name_44 WHERE year < 2011
What is the category that came before 2011?
CREATE TABLE table_name_44 (category VARCHAR, year INTEGER)
SELECT month_held FROM table_26166836_3 WHERE location = "Paris"
What month is the Paris 20k Road Race held?
CREATE TABLE table_26166836_3 (month_held VARCHAR, location VARCHAR)
SELECT MAX(goals_for) FROM table_name_26 WHERE lost = 25
What is the highest number of goals for for teams with 25 losses?
CREATE TABLE table_name_26 (goals_for INTEGER, lost VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE player = "mike hyndman" AND assists > 119
How many total points does Mike Hyndman have with more than 119 assists?
CREATE TABLE table_name_98 (points INTEGER, player VARCHAR, assists VARCHAR)
SELECT opponent FROM table_name_22 WHERE date = "july 8"
Who did the Red Sox play against on July 8?
CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR)
SELECT tries_for FROM table_name_16 WHERE played = "18" AND points_against = "375"
What is the value for the item "Tries" when the value of the item "Played" is 18 and the value of the item "Points" is 375?
CREATE TABLE table_name_16 (tries_for VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT MIN(played) FROM table_name_76 WHERE position > 9
what is the lowest played when the position is more than 9?
CREATE TABLE table_name_76 (played INTEGER, position INTEGER)
SELECT title FROM table_name_26 WHERE year = "1996"
What was the title in 1996?
CREATE TABLE table_name_26 (title VARCHAR, year VARCHAR)
SELECT MAX(laps) FROM table_name_98 WHERE finish = "8"
What is the highest number of laps that also has a finish total of 8?
CREATE TABLE table_name_98 (laps INTEGER, finish VARCHAR)
SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002
What position had notes of 20km and a year earlier than 2002?
CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR)
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date
What is the day Number and date of all the documents?
CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)
SELECT home_team FROM table_name_18 WHERE away_team = "derby county"
What is the home team that played Derby County as the away team?
CREATE TABLE table_name_18 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = "March 19, 2000"
Name the total number of series for march 19, 2000
CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT DISTINCT TYPE FROM vocals
Find all the vocal types.
CREATE TABLE vocals (TYPE VARCHAR)
SELECT type FROM table_1974632_1 WHERE enrollment = 2102
what type is the institute that enrolled 2102
CREATE TABLE table_1974632_1 (type VARCHAR, enrollment VARCHAR)
SELECT branding FROM table_name_5 WHERE frequency = "1233khz"
What's the branding for frequency 1233khz?
CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR)
SELECT MAX(production_code) FROM table_23793770_1 WHERE us_viewers__millions_ = "16.10"
What the production code for the episode with 16.10 U.S. viewers?
CREATE TABLE table_23793770_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT score FROM table_16864968_7 WHERE opponent = "Columbus Blue Jackets"
What was the final score when the Maple Leafs played the Columbus Blue Jackets?
CREATE TABLE table_16864968_7 (score VARCHAR, opponent VARCHAR)
SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = "australia"
What's the status for an against below 22 with an opposing team of Australia?
CREATE TABLE table_name_86 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT transfer_window FROM table_name_19 WHERE ends = "2012"
What's the transfer window that ends in 2012?
CREATE TABLE table_name_19 (transfer_window VARCHAR, ends VARCHAR)
SELECT interaction_type, COUNT(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY COUNT(*) DESC LIMIT 1
What is the most common interaction type between enzymes and medicine? And how many are there?
CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR)
SELECT status FROM table_name_52 WHERE co_contestant__yaar_vs_pyaar_ = "tina sachdev"
Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?
CREATE TABLE table_name_52 (status VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT 2005 FROM table_name_25 WHERE 2007 = "91.100"
What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonnes?
CREATE TABLE table_name_25 (Id VARCHAR)
SELECT base_pairs FROM table_name_79 WHERE genes = 832
What base pair has 832 genes?
CREATE TABLE table_name_79 (base_pairs VARCHAR, genes VARCHAR)
SELECT MIN(total) FROM table_name_95 WHERE nation = "japan" AND rank > 3
What is the smallest total from Japan with a rank larger than 3?
CREATE TABLE table_name_95 (total INTEGER, nation VARCHAR, rank VARCHAR)
SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0
Tell me the highest league goals with total goals less than 1 and FA cups more than 0
CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT gt4_cup_winner FROM table_30060356_3 WHERE circuit = "Spa-Francorchamps Report"
List all GT4 Cup winners played on the Spa-Francorchamps Report.
CREATE TABLE table_30060356_3 (gt4_cup_winner VARCHAR, circuit VARCHAR)
SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ"
What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?
CREATE TABLE table_name_95 (sanskrit_संस्कृतम् VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1
Find the total access count of all documents in the most popular document type.
CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR)
SELECT date FROM table_name_96 WHERE opponents = "notts county" AND league_position = "1st"
What date was Notts County the opponent and the league position was 1st?
CREATE TABLE table_name_96 (date VARCHAR, opponents VARCHAR, league_position VARCHAR)
SELECT MAX(population__2008_) FROM table_name_69 WHERE created < 1857 AND county = "sinoe"
What is the highest population (2008) created earlier than 1857, and the county was Sinoe?
CREATE TABLE table_name_69 (population__2008_ INTEGER, created VARCHAR, county VARCHAR)
SELECT opponent FROM table_name_73 WHERE time = "3:00"
Who is the opponent of the 3:00 time?
CREATE TABLE table_name_73 (opponent VARCHAR, time VARCHAR)
SELECT predecessor FROM table_27730_9 WHERE ekavian = "vreme"
What's the predecessor of the Ekavian word vreme?
CREATE TABLE table_27730_9 (predecessor VARCHAR, ekavian VARCHAR)
SELECT points_for FROM table_name_50 WHERE points_against = "400"
With a club that has 400 Points against, what are the points?
CREATE TABLE table_name_50 (points_for VARCHAR, points_against VARCHAR)
SELECT club FROM table_name_58 WHERE nation = "great britain"
What was the club for Great Britain?
CREATE TABLE table_name_58 (club VARCHAR, nation VARCHAR)
SELECT name, LOCATION FROM cinema WHERE capacity > (SELECT AVG(capacity) FROM cinema)
Show the cinema name and location for cinemas with capacity above average.
CREATE TABLE cinema (name VARCHAR, LOCATION VARCHAR, capacity INTEGER)
SELECT party FROM table_1342292_42 WHERE first_elected = 1919
What was the party that was frist elected in 1919?
CREATE TABLE table_1342292_42 (party VARCHAR, first_elected VARCHAR)
SELECT standalone FROM table_name_43 WHERE console = "space invaders"
What is the Standalone in the year when Space Invaders is the Console?
CREATE TABLE table_name_43 (standalone VARCHAR, console VARCHAR)
SELECT constructor FROM table_name_19 WHERE grid < 13 AND laps < 9
What constructor has a grid less than 13 with under 9 laps?
CREATE TABLE table_name_19 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = "mj"
What is W/m², when η (%) is greater than 16.5, and when Technology is MJ?
CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR)
SELECT date FROM table_27756314_8 WHERE team = "Orlando"
What is the date for the game with team orlando?
CREATE TABLE table_27756314_8 (date VARCHAR, team VARCHAR)
SELECT MAX(att) FROM table_name_91 WHERE avg = 4.3
Tell me the greatest att with an avg of 4.3
CREATE TABLE table_name_91 (att INTEGER, avg VARCHAR)
SELECT result FROM table_1341973_6 WHERE district = "California 2"
What was the result of the election in california 2?
CREATE TABLE table_1341973_6 (result VARCHAR, district VARCHAR)
SELECT COUNT(position) FROM table_name_12 WHERE goal_difference > -17 AND played < 38
Tell me the total number of positions with goal difference more than -17 and played less than 38
CREATE TABLE table_name_12 (position VARCHAR, goal_difference VARCHAR, played VARCHAR)
SELECT club FROM table_name_64 WHERE tries_for = "tries for"
What club has tries for in the category tries for?
CREATE TABLE table_name_64 (club VARCHAR, tries_for VARCHAR)
SELECT customer_name FROM customers WHERE payment_method <> 'Cash'
Find the name of customers who did not pay with Cash.
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
SELECT place FROM table_name_96 WHERE score = 67 - 70 = 137
What is the place of the person with a score of 67-70=137?
CREATE TABLE table_name_96 (place VARCHAR, score VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = "rhode island" AND area__sq_mi_ > 38
What is the area located in Rhode Island with more than 38 sq mi area?
CREATE TABLE table_name_81 (area__km_2__ INTEGER, location VARCHAR, area__sq_mi_ VARCHAR)
SELECT MAX(grid) FROM table_name_18 WHERE laps > 24
How many grids correspond to more than 24 laps?
CREATE TABLE table_name_18 (grid INTEGER, laps INTEGER)
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"
What's the 2nd leg result in the round where team #1 is Iraklis?
CREATE TABLE table_19130829_4 (team__number1 VARCHAR)
SELECT rank FROM table_name_25 WHERE s_wicket = "65"
What Rank has a 65 s Wicket?
CREATE TABLE table_name_25 (rank VARCHAR, s_wicket VARCHAR)
SELECT MIN(total) FROM table_name_18 WHERE rank < 3 AND county = "cork"
Which Total has a Rank smaller than 3, and a County of cork?
CREATE TABLE table_name_18 (total INTEGER, rank VARCHAR, county VARCHAR)
SELECT venue FROM table_name_98 WHERE result = "1–2"
Which venue has a Result of 1–2?
CREATE TABLE table_name_98 (venue VARCHAR, result VARCHAR)
SELECT shuttle FROM table_14118521_1 WHERE primary_payload_s_ = "United States Microgravity Laboratory-1"
what's the shuttle with primary payload(s) being united states microgravity laboratory-1
CREATE TABLE table_14118521_1 (shuttle VARCHAR, primary_payload_s_ VARCHAR)
SELECT average FROM table_23465011_5 WHERE couple = "Anh & Luda"
What is the average for the couple anh & luda?
CREATE TABLE table_23465011_5 (average VARCHAR, couple VARCHAR)
SELECT duration FROM table_name_61 WHERE end_time = "21:06"
What is the duration of the flight with end time of 21:06?
CREATE TABLE table_name_61 (duration VARCHAR, end_time VARCHAR)
SELECT outcome FROM table_name_33 WHERE surface = "indoor/carpet" AND date = "13 october 1996"
What is the Surface of indoor/carpet Outcome on 13 October 1996
CREATE TABLE table_name_33 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"
What office was law preservation ticket holder William E. Barron running for?
CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR)
SELECT COUNT(pr_top_up) FROM table_name_92 WHERE percentage = "0.8%" AND total > 1
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 player FROM table_29572583_20 WHERE status = "Fourth round lost to Tsvetana Pironkova [32]"
which player had the status to the fourth round lost to tsvetana pironkova [32] Answers:
CREATE TABLE table_29572583_20 (player VARCHAR, status VARCHAR)
SELECT res FROM table_name_69 WHERE event = "ufc 85"
What was the result fot the UFC 85 event?
CREATE TABLE table_name_69 (res VARCHAR, event VARCHAR)
SELECT SUM(crowd) FROM table_name_5 WHERE home_team = "richmond"
What's the crowd population of the home team located in Richmond?
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_41 WHERE ground = "subiaco oval"
What kind of Crowd has a Ground of subiaco oval?
CREATE TABLE table_name_41 (crowd INTEGER, ground VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE age__before_ = "10,000 years"
What is the Atlantic Europe when age is 10,000 years?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, age__before_ VARCHAR)
SELECT COUNT(viewers__in_millions_) FROM table_2102898_1 WHERE broadcast_date = "21March1970"
On broadcast date is 21march1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = "7130M"
How many different L2 cache numbers are there for the 7130M model?
CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR)
SELECT directed_by FROM table_20967430_4 WHERE original_air_date = "March 18, 1988"
Who directed the episode that originally aired on March 18, 1988?
CREATE TABLE table_20967430_4 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT attendance FROM table_name_88 WHERE score = "3-5"
Which attendance has a Score of 3-5?
CREATE TABLE table_name_88 (attendance VARCHAR, score VARCHAR)
SELECT COUNT(team) FROM table_11961582_6 WHERE location_attendance = "Philips Arena 19,335"
Name the number of teams at the philips arena 19,335?
CREATE TABLE table_11961582_6 (team VARCHAR, location_attendance VARCHAR)
SELECT winners_from_previous_round FROM table_28039032_1 WHERE round = "Semi finals"
How many winners from previous round were there in the semi finals?
CREATE TABLE table_28039032_1 (winners_from_previous_round VARCHAR, round VARCHAR)
SELECT COUnT AS n FROM table_21481509_4 WHERE population = "Berbers from Siwa"
How many n are listed for berbers from siwa?
CREATE TABLE table_21481509_4 (COUnT VARCHAR, population VARCHAR)
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2
Report all advisors that advise more than 2 students.
CREATE TABLE STUDENT (Advisor VARCHAR)
SELECT SUM(stories) FROM table_name_87 WHERE city = "guadalajara" AND completed > 2007
I want the sum of stories for guadalajara done after 2007
CREATE TABLE table_name_87 (stories INTEGER, city VARCHAR, completed VARCHAR)
SELECT event FROM table_name_11 WHERE winning_skip = "patti lank"
What event did Patti Lank have the winning skip?
CREATE TABLE table_name_11 (event VARCHAR, winning_skip VARCHAR)
SELECT females FROM table_name_11 WHERE language = "ukrainian"
How many females speak Ukrainian?
CREATE TABLE table_name_11 (females VARCHAR, language VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = "greg norman"
What is the average earnings made by Greg Norman?
CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR)
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)
SELECT COUNT(points) FROM table_18888159_1 WHERE _number = 6
Name the total number of points for number 6
CREATE TABLE table_18888159_1 (points VARCHAR, _number VARCHAR)
SELECT result FROM table_name_8 WHERE location = "warsaw" AND year = 1929
Tell me the result for warsaw 1929
CREATE TABLE table_name_8 (result VARCHAR, location VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_86 WHERE venue = "windy hill"
Which home team's venue is Windy Hill?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_43 WHERE director_s_ = "2007"
What Country has a Director of 2007?
CREATE TABLE table_name_43 (country VARCHAR, director_s_ VARCHAR)
SELECT au_air_date FROM table_21055055_2 WHERE viewers__m_ = "2.267"
When did the episode seen by is 2.267 million people get aired?
CREATE TABLE table_21055055_2 (au_air_date VARCHAR, viewers__m_ VARCHAR)
SELECT away_team FROM table_name_80 WHERE tie_no = "3"
Which away team has Tie no 3?
CREATE TABLE table_name_80 (away_team VARCHAR, tie_no VARCHAR)
SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 1
When was the player born who has 1 caps?
CREATE TABLE table_name_53 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = "8"
Tell me the least silver for total less than 6 and rank of 8
CREATE TABLE table_name_17 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT AVG(round) FROM table_name_49 WHERE position = "defensive back" AND overall < 199
What is the average round when there is a defensive back and an overall smaller than 199?
CREATE TABLE table_name_49 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT SUM(enrollment) FROM table_name_72 WHERE school = "south central (union mills)"
Enrollment that has a School of south central (union mills) has what sum?
CREATE TABLE table_name_72 (enrollment INTEGER, school VARCHAR)
SELECT record FROM table_name_99 WHERE score = "100-105"
Can you tell me the Record that has the Score of 100-105?
CREATE TABLE table_name_99 (record VARCHAR, score VARCHAR)
SELECT COUNT(runs) FROM table_name_82 WHERE inns < 9
What is the total number of runs for the player with fewer than 9 Inns?
CREATE TABLE table_name_82 (runs VARCHAR, inns INTEGER)
SELECT 1993 FROM table_name_35 WHERE tournament = "cincinnati"
What is 1993, when Tournament is "Cincinnati"?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT eliminated FROM table_25016824_2 WHERE immunity = "Kent (Jürgen)"
Who was eliminated when immunity went to kent (jürgen)?
CREATE TABLE table_25016824_2 (eliminated VARCHAR, immunity VARCHAR)