answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT grand_finaldate FROM table_11236195_5 WHERE losingteam = "St. George-Illawarra Dragons"
What was the date that the st. george-illawarra dragons lost?
CREATE TABLE table_11236195_5 (grand_finaldate VARCHAR, losingteam VARCHAR)
SELECT race_winner FROM table_28925058_1 WHERE date = "May 1"
Who won the race on May 1?
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
SELECT callsign FROM table_name_34 WHERE commenced_operations = 2011
What callsign has commenced operations in 2011?
CREATE TABLE table_name_34 (callsign VARCHAR, commenced_operations VARCHAR)
SELECT country FROM table_name_77 WHERE player = "jay haas"
What country was Jay Haas representing?
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock"
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)
SELECT second FROM table_name_48 WHERE alternate = "margarita fomina"
Who is the second for the curling team which has alternate Margarita Fomina?
CREATE TABLE table_name_48 (second VARCHAR, alternate VARCHAR)
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5
How many u.s. viewers (millions) have 5 as the season #?
CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, season__number VARCHAR)
SELECT block_a FROM table_name_85 WHERE antonio_thomas = "kondo (13:24)"
Tell me the block A for antonio thomas of kondo (13:24)
CREATE TABLE table_name_85 (block_a VARCHAR, antonio_thomas VARCHAR)
SELECT COUNT(time) FROM table_name_44 WHERE name = "matt targett" AND lane > 7
how many times is the name matt targett and the lane higher than 7?
CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel"
How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi
CREATE TABLE table_15059783_1 (combination_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT place_of_birth FROM table_name_31 WHERE elector = "soffredo"
What is listed as the Place of birth for the Elector of Soffredo?
CREATE TABLE table_name_31 (place_of_birth VARCHAR, elector VARCHAR)
SELECT doha_, _qatar FROM table_name_93 WHERE snatch = "clean & jerk"
What is the Doha, Qatar when the snatch is clean & jerk?
CREATE TABLE table_name_93 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR)
SELECT 1995 FROM table_name_96 WHERE 1990 = "lq"
What is 1995 Grand Slam Tournament if 1990 is LQ?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT date FROM table_1140090_6 WHERE winning_driver = "Chris Amon"
What was the date when Chris Amon won?
CREATE TABLE table_1140090_6 (date VARCHAR, winning_driver VARCHAR)
SELECT province_city FROM table_25597136_1 WHERE lighthouse = "Corregidor Island (2)"
The province/city corregidor island (2) is where the lighthouse is located.
CREATE TABLE table_25597136_1 (province_city VARCHAR, lighthouse VARCHAR)
SELECT township FROM table_18600760_18 WHERE land___sqmi__ = "34.781"
What township is 34.781 square miles?
CREATE TABLE table_18600760_18 (township VARCHAR, land___sqmi__ VARCHAR)
SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'
Find the title of course that is provided by both Statistics and Psychology departments.
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
SELECT result FROM table_name_63 WHERE artist = "linn nygård"
Name the result for linn nygård
CREATE TABLE table_name_63 (result VARCHAR, artist VARCHAR)
SELECT speed FROM table_name_26 WHERE rank = "1"
What is the speed for rank 1?
CREATE TABLE table_name_26 (speed VARCHAR, rank VARCHAR)
SELECT date FROM table_name_42 WHERE actual_title = "archie bunker's place"
What is the Date for the actual title archie bunker's place?
CREATE TABLE table_name_42 (date VARCHAR, actual_title VARCHAR)
SELECT visitor FROM table_name_98 WHERE date = "april 4"
What is the visitor team on April 4?
CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR)
SELECT gt_winning_team FROM table_27743641_2 WHERE results = "Report"
Who were the GT winning team when the results were "report"?
CREATE TABLE table_27743641_2 (gt_winning_team VARCHAR, results VARCHAR)
SELECT MAX(crowd) FROM table_name_41 WHERE away_team = "essendon"
What was the size of the largest crowd that Essendon played in front of as the away team?
CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR)
SELECT team_classification FROM table_name_26 WHERE points_classification = "alejandro valverde" AND winner = "alejandro valverde" AND stage = "3"
What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage?
CREATE TABLE table_name_26 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1
Which park had most attendances in 2008?
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)
SELECT name_of_king FROM table_name_54 WHERE sno > 1 AND no_of_villages = 600
What king has an S. number over 1 and a number of villages of 600?
CREATE TABLE table_name_54 (name_of_king VARCHAR, sno VARCHAR, no_of_villages VARCHAR)
SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
Find the first name and gender of student who have more than one pet.
CREATE TABLE student (fname VARCHAR, sex VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)
SELECT country FROM table_name_2 WHERE place = "t6" AND player = "seve ballesteros"
What country has t6 as the place, with seve ballesteros as the player?
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT county FROM table_1940144_1 WHERE population_2011 = 17908
In what counties is the 2011 population 17908?
CREATE TABLE table_1940144_1 (county VARCHAR, population_2011 VARCHAR)
SELECT opponent FROM table_13258876_2 WHERE date = "September 4, 1983"
Who did the Seahawks play on September 4, 1983?
CREATE TABLE table_13258876_2 (opponent VARCHAR, date VARCHAR)
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"
what is the runner-up for the intercontinental cup
CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR)
SELECT sample_size FROM table_name_84 WHERE date_s__administered = "june 30, 2010"
How many people were surveyed in the poll from June 30, 2010?
CREATE TABLE table_name_84 (sample_size VARCHAR, date_s__administered VARCHAR)
SELECT winning_team FROM table_26334740_3 WHERE race = 17
What team won Race 17?
CREATE TABLE table_26334740_3 (winning_team VARCHAR, race VARCHAR)
SELECT AVG(game) FROM table_name_45 WHERE date = "january 30"
What average game has January 30 as the date?
CREATE TABLE table_name_45 (game INTEGER, date VARCHAR)
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277
What is To par, when Score is "70-68-68-71=277"?
CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR)
SELECT MAX(against) FROM table_name_43 WHERE draws > 0
What's the most against when the draws are more than 0?
CREATE TABLE table_name_43 (against INTEGER, draws INTEGER)
SELECT MIN(overall) FROM table_name_86 WHERE pick > 9
What was the Overall number that is the lowest, and has a pick greater than 9?
CREATE TABLE table_name_86 (overall INTEGER, pick INTEGER)
SELECT event FROM table_name_24 WHERE score = "209-197"
Name the Event which has a Score of 209-197?
CREATE TABLE table_name_24 (event VARCHAR, score VARCHAR)
SELECT score FROM table_23486853_8 WHERE location = "Verizon Center" AND points = 68
What is every score at the location of Verizon Center and points of 68?
CREATE TABLE table_23486853_8 (score VARCHAR, location VARCHAR, points VARCHAR)
SELECT mens_singles FROM table_12104319_1 WHERE womens_doubles = "Marina Yakusheva Elena Shimko"
Name the men's singles of marina yakusheva elena shimko
CREATE TABLE table_12104319_1 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT MAX(total_seats) FROM table_name_28 WHERE pr_seats = 48 AND district_seats > 73
Who had the highest total PR seats of 48 with a District seat larger than than 73?
CREATE TABLE table_name_28 (total_seats INTEGER, pr_seats VARCHAR, district_seats VARCHAR)
SELECT nation FROM table_name_31 WHERE gold > 1 AND total = 62
What is the nation that had more than 1 gold medal and a total of 62 medals?
CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, total VARCHAR)
SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8
What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?
CREATE TABLE table_name_7 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
CREATE TABLE table_name_88 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT place FROM table_name_49 WHERE nation = "cuba"
What is the Place associated with Cuba?
CREATE TABLE table_name_49 (place VARCHAR, nation VARCHAR)
SELECT COUNT(external_link) FROM table_2140071_13 WHERE coach = "Katie Kansas"
What is the number of external links with a coach named Katie Kansas?
CREATE TABLE table_2140071_13 (external_link VARCHAR, coach VARCHAR)
SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
SELECT 1992 FROM table_name_3 WHERE 2001 = "1r" AND 1994 = "1r" AND 2002 = "qf"
What shows for 1992 when 2001 is 1r, 1994 is 1r, and the 2002 is qf?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT number_range FROM table_name_60 WHERE quantity = "56"
What is the number range for the 56 quantity?
CREATE TABLE table_name_60 (number_range VARCHAR, quantity VARCHAR)
SELECT codename__main_article_ FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-32xxT"
What is the codename for the Core i3-32xxt?
CREATE TABLE table_24538587_11 (codename__main_article_ VARCHAR, brand_name__list_ VARCHAR)
SELECT original_airdate FROM table_24798489_1 WHERE challenge = "Three overstuffed sandwiches"
What is the original airdate of the episode where the challenge was three overstuffed sandwiches?
CREATE TABLE table_24798489_1 (original_airdate VARCHAR, challenge VARCHAR)
SELECT country FROM table_name_18 WHERE player = "howard clark"
Which country is Howard Clark from?
CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)
SELECT score FROM table_name_77 WHERE runner_up = "utc" AND winners = "saint-gaudens bears"
What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?
CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR)
SELECT COUNT(music_by) FROM table_191105_2 WHERE performed_by = "Zachary Sanders"
When zachary sanders is the performer how many people is the music by?
CREATE TABLE table_191105_2 (music_by VARCHAR, performed_by VARCHAR)
SELECT SUM(avg_g) FROM table_name_71 WHERE long = 93 AND loss < 249
Which Avg/G has a Long of 93, and a Loss smaller than 249?
CREATE TABLE table_name_71 (avg_g INTEGER, long VARCHAR, loss VARCHAR)
SELECT pinyin FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = "تىزناپ"
Name the pinyin for تىزناپ
CREATE TABLE table_2008069_2 (pinyin VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR)
SELECT length FROM table_17918238_1 WHERE maximum_diameter = "450 mm"
What is the length for a diameter totaling 450 mm?
CREATE TABLE table_17918238_1 (length VARCHAR, maximum_diameter VARCHAR)
SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"
What's the region for an item on November 10, 2007 that's a cd?
CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR)
SELECT country FROM table_name_20 WHERE place = "t9" AND player = "stephen ames"
What country is Stephen Ames from with a place value of t9?
CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = "Asia"
What is the total population and maximum GNP in Asia?
CREATE TABLE country (Population INTEGER, GNP INTEGER, Continent VARCHAR)
SELECT height FROM table_name_57 WHERE year_born < 1975
What is the height of the person born before 1975?
CREATE TABLE table_name_57 (height VARCHAR, year_born INTEGER)
SELECT winnings FROM table_1875157_1 WHERE position = "33rd"
How many wins in the season he finished 33rd
CREATE TABLE table_1875157_1 (winnings VARCHAR, position VARCHAR)
SELECT player FROM table_name_24 WHERE rank = 1
Which player has rank 1?
CREATE TABLE table_name_24 (player VARCHAR, rank VARCHAR)
SELECT incumbent FROM table_name_55 WHERE status = "re-elected" AND party = "democratic"
Who is the democratic incumbent that was re-elected?
CREATE TABLE table_name_55 (incumbent VARCHAR, status VARCHAR, party VARCHAR)
SELECT category FROM table_1430913_1 WHERE name_of_place = "Hemkunt Sahib"
If the place is hemkunt sahib what is the category?
CREATE TABLE table_1430913_1 (category VARCHAR, name_of_place VARCHAR)
SELECT system FROM table_name_58 WHERE current_version = "3.0.0"
What is the System with the Current version 3.0.0?
CREATE TABLE table_name_58 (system VARCHAR, current_version VARCHAR)
SELECT length___ft__ FROM table_name_47 WHERE length___m__ = "64.2"
What is the length in feet when the length in meters is 64.2?
CREATE TABLE table_name_47 (length___ft__ VARCHAR, length___m__ VARCHAR)
SELECT pos FROM table_name_53 WHERE height = "m (ft 6in)" AND name = "martina miceli"
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?
CREATE TABLE table_name_53 (pos VARCHAR, height VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_93 WHERE event = "ufc 19"
Who was the opponent in UFC 19?
CREATE TABLE table_name_93 (opponent VARCHAR, event VARCHAR)
SELECT SUM(capacity) FROM table_name_58 WHERE team = "denizlispor"
What is the sum of Capacity, when Team is "Denizlispor"?
CREATE TABLE table_name_58 (capacity INTEGER, team VARCHAR)
SELECT team FROM table_27721131_6 WHERE date = "November 25"
What is the team they played on november 25?
CREATE TABLE table_27721131_6 (team VARCHAR, date VARCHAR)
SELECT week_5 FROM table_name_68 WHERE week_2 = "jenna jordan"
Who is week 5 if week 2 is Jenna Jordan?
CREATE TABLE table_name_68 (week_5 VARCHAR, week_2 VARCHAR)
SELECT airport FROM table_name_68 WHERE icao = "bgbw"
What airport has an ICAP of BGBW?
CREATE TABLE table_name_68 (airport VARCHAR, icao VARCHAR)
SELECT height FROM table_10966926_2 WHERE weight = 320
What is the height of the person that weighs 320 pounds?
CREATE TABLE table_10966926_2 (height VARCHAR, weight VARCHAR)
SELECT COUNT(title) FROM table_28859177_2 WHERE series__number = 4
How many episode titles have series number 4?
CREATE TABLE table_28859177_2 (title VARCHAR, series__number VARCHAR)
SELECT MAX(round) FROM table_name_72 WHERE college = "penn state"
what is the highest round when the college is penn state?
CREATE TABLE table_name_72 (round INTEGER, college VARCHAR)
SELECT home_team FROM table_name_54 WHERE away_team = "melbourne"
Which Home team has an Away team of melbourne?
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR)
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 2"
Who was the home team on January 2 with 23 points?
CREATE TABLE table_name_57 (home VARCHAR, points VARCHAR, date VARCHAR)
SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296
What was the average value for Fall 07 when Fall 09 is less than 296?
CREATE TABLE table_name_99 (fall_07 INTEGER, fall_09 INTEGER)
SELECT points_against FROM table_name_19 WHERE tries_against = "53"
What is the number of points against when the tries against was 53?
CREATE TABLE table_name_19 (points_against VARCHAR, tries_against VARCHAR)
SELECT result FROM table_1341472_15 WHERE district = "Illinois 15"
what's the result with district illinois 15
CREATE TABLE table_1341472_15 (result VARCHAR, district VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
how many years has сенки been nominated?
CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT chassis FROM table_name_36 WHERE constructor = "shadow"
What chassis does the shadow built car use?
CREATE TABLE table_name_36 (chassis VARCHAR, constructor VARCHAR)
SELECT 2 AS nd_round FROM table_name_63 WHERE team_2 = "girondins de bordeaux (d1)"
What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?
CREATE TABLE table_name_63 (team_2 VARCHAR)
SELECT 1 AS st_member FROM table_name_51 WHERE election = "1832"
which 1st Member has a Election of 1832
CREATE TABLE table_name_51 (election VARCHAR)
SELECT icao FROM table_name_34 WHERE iata = "ist"
What is the ICAO when the IATA is ist?
CREATE TABLE table_name_34 (icao VARCHAR, iata VARCHAR)
SELECT AVG(year) FROM table_name_78 WHERE artist = "christie paquet" AND issue_price = "$34.95"
What is the Year of Christie Paquet with Issue Price of $34.95?
CREATE TABLE table_name_78 (year INTEGER, artist VARCHAR, issue_price VARCHAR)
SELECT home_leg FROM table_name_88 WHERE opponents = "rotor volgograd"
What is the home leg who are opponents of rotor volgograd
CREATE TABLE table_name_88 (home_leg VARCHAR, opponents VARCHAR)
SELECT COUNT(application) FROM table_19495707_1 WHERE mainly_used_for = "Modeling, Computer Aided Design, Animation"
Name the number of application for modeling, computer aided design, animation
CREATE TABLE table_19495707_1 (application VARCHAR, mainly_used_for VARCHAR)
SELECT AVG(rank) FROM table_name_7 WHERE rmax_rpeak___pflops__ = "17.173 20.133"
What is the rank of Rmax Rpeak ( Pflops ) of 17.173 20.133?
CREATE TABLE table_name_7 (rank INTEGER, rmax_rpeak___pflops__ VARCHAR)
SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING SUM(hoursperweek) > 10
Show all student IDs with more than total 10 hours per week on all sports played.
CREATE TABLE Sportsinfo (StuID VARCHAR, hoursperweek INTEGER)
SELECT result FROM table_name_78 WHERE director = "mirza idrizović category:articles with hcards"
What is Result, when Director is Mirza Idrizović category:articles with hcards?
CREATE TABLE table_name_78 (result VARCHAR, director VARCHAR)
SELECT area FROM table_1204998_2 WHERE english_name = "Shanghang County"
What is the area of the English name Shanghang County?
CREATE TABLE table_1204998_2 (area VARCHAR, english_name VARCHAR)
SELECT record_set FROM table_name_30 WHERE actor = "walter brennan" AND year < 1941
What record was set by walter brennan before 1941?
CREATE TABLE table_name_30 (record_set VARCHAR, actor VARCHAR, year VARCHAR)
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs"
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
CREATE TABLE table_name_62 (date VARCHAR, description VARCHAR)
SELECT driver FROM table_name_84 WHERE grid < 10 AND laps < 70
What driver has a grid of under 10, and under 70 laps?
CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT COUNT(week) FROM table_name_5 WHERE result = "w 10-0" AND attendance < 58 OFFSET 571
Which Week had a Result of w 10-0, and an Attendance smaller than 58,571?
CREATE TABLE table_name_5 (week VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT COUNT(built) FROM table_1886270_1 WHERE hr_name = "River Ness"
When river ness is the hr name how many builts are there?
CREATE TABLE table_1886270_1 (built VARCHAR, hr_name VARCHAR)
SELECT theme FROM table_25468520_1 WHERE date_of_issue = "11 January 2010"
What is the theme when the date of issue is 11 january 2010?
CREATE TABLE table_25468520_1 (theme VARCHAR, date_of_issue VARCHAR)
SELECT COUNT(draws) FROM table_name_76 WHERE against = 1465 AND byes < 2
What is the total number of draws when there are 1465 against matches and less than 2 byes?
CREATE TABLE table_name_76 (draws VARCHAR, against VARCHAR, byes VARCHAR)