question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Third has a Second of agnieszka ogrodniczek?
CREATE TABLE table_name_11 (third VARCHAR, second VARCHAR)
SELECT third FROM table_name_11 WHERE second = "agnieszka ogrodniczek"
Find the names of the customers who have order status both "On Road" and "Shipped".
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
How many games were played against houston?
CREATE TABLE table_23211041_5 (game VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_23211041_5 WHERE team = "Houston"
When was Shannon Long the Centerfold model?
CREATE TABLE table_name_15 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_name_15 WHERE centerfold_model = "shannon long"
What was the score of the game that put the team at 27-32?
CREATE TABLE table_name_51 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_51 WHERE record = "27-32"
What is the highest W of the 0 L?
CREATE TABLE table_29542147_2 (w INTEGER, l VARCHAR)
SELECT MAX(w) FROM table_29542147_2 WHERE l = 0
What was the format in September 1990 for Catalog 887 847-1?
CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT format FROM table_name_84 WHERE catalog = "887 847-1" AND date = "september 1990"
How many people attended the game with a record of 86-56
CREATE TABLE table_name_39 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_39 WHERE record = "86-56"
How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?
CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_34 WHERE rank > 3 AND silver > 0
How many documents have expenses?
CREATE TABLE Documents_with_expenses (Id VARCHAR)
SELECT COUNT(*) FROM Documents_with_expenses
What was the rank of a transfer fee larger than 13 million, and after 2008?
CREATE TABLE table_name_26 (rank VARCHAR, transfer_fee___€_million_ VARCHAR, year VARCHAR)
SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008
Year of 2006-07 had what studio host?
CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)
SELECT studio_host FROM table_name_10 WHERE year = "2006-07"
List the project details of the projects launched by the organisation
CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR)
SELECT project_details FROM Projects WHERE organisation_id IN (SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY COUNT(*) DESC LIMIT 1)
Name the annual rainfail for 2002 population being 493984
CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR)
SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984
What clay surface edition had an opponent of miho saeki?
CREATE TABLE table_name_2 (edition VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT edition FROM table_name_2 WHERE surface = "clay" AND opponent = "miho saeki"
What is the score vs. Terran when the score vs. Zerg is 69?
CREATE TABLE table_name_12 (vs_terran VARCHAR, vs_zerg VARCHAR)
SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69"
Who was the team 2 in the game with a team 1 of Liege Basket?
CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege basket"
What are the notes of the patience theme?
CREATE TABLE table_name_76 (notes VARCHAR, theme VARCHAR)
SELECT notes FROM table_name_76 WHERE theme = "patience"
What player had a school of missouri
CREATE TABLE table_name_13 (player VARCHAR, school_club_team_country VARCHAR)
SELECT player FROM table_name_13 WHERE school_club_team_country = "missouri"
Show the rank, first name, and last name for all the faculty.
CREATE TABLE Faculty (rank VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT rank, Fname, Lname FROM Faculty
Name the district for anti-jacksonian
CREATE TABLE table_2668243_18 (district VARCHAR, party VARCHAR)
SELECT district FROM table_2668243_18 WHERE party = "Anti-Jacksonian"
What is the crowd size for st kilda as the home team?
CREATE TABLE table_name_17 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_17 WHERE home_team = "st kilda"
Who's the incumbent in the district that first elected in 1969?
CREATE TABLE table_1341453_51 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341453_51 WHERE first_elected = 1969
The game played 31 May 2010 was played on what surface?
CREATE TABLE table_name_98 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_98 WHERE date = "31 may 2010"
What score has devin brown (24) as the leading scorer?
CREATE TABLE table_name_36 (score VARCHAR, leading_scorer VARCHAR)
SELECT score FROM table_name_36 WHERE leading_scorer = "devin brown (24)"
Tell me the iata for icao of tjrv
CREATE TABLE table_name_2 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_2 WHERE icao = "tjrv"
What is the lowest Lost, when Goals For is greater than 52, when Points 1 is "44", and when Drawn is less than 8?
CREATE TABLE table_name_88 (lost INTEGER, drawn VARCHAR, goals_for VARCHAR, points_1 VARCHAR)
SELECT MIN(lost) FROM table_name_88 WHERE goals_for > 52 AND points_1 = "44" AND drawn < 8
how many founded dates are listed for carlow university 1
CREATE TABLE table_10581768_2 (founded VARCHAR, institution VARCHAR)
SELECT COUNT(founded) FROM table_10581768_2 WHERE institution = "Carlow University 1"
What is the average round of the match with a draw result and a record of 4-4-1?
CREATE TABLE table_name_26 (round INTEGER, res VARCHAR, record VARCHAR)
SELECT AVG(round) FROM table_name_26 WHERE res = "draw" AND record = "4-4-1"
What Tournament did he place 12th in?
CREATE TABLE table_name_58 (tournament VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_58 WHERE result = "12th"
What is the Visitor of the game on December 25?
CREATE TABLE table_name_26 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_26 WHERE date = "december 25"
Which date was the x gran premio di napoli?
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
what percentage is brooklyn when manhattan is 15.5%?
CREATE TABLE table_23837321_4 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT brooklyn FROM table_23837321_4 WHERE manhattan = "15.5_percentage"
How many total show when silver is 0, bronze is 1, and the rank is less than 3?
CREATE TABLE table_name_73 (total VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_73 WHERE silver = 0 AND bronze = 1 AND rank < 3
What is the latest number of the guard position from the Wake Forest school team?
CREATE TABLE table_15621965_17 (no INTEGER, position VARCHAR, school_club_team VARCHAR)
SELECT MAX(no) FROM table_15621965_17 WHERE position = "Guard" AND school_club_team = "Wake Forest"
Which Country that has a IATA of bal?
CREATE TABLE table_name_83 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_83 WHERE iata = "bal"
What is the highest number of laps for the driver with 5 points?
CREATE TABLE table_name_41 (laps INTEGER, points VARCHAR)
SELECT MAX(laps) FROM table_name_41 WHERE points = "5"
Can you tell me the Country that has the Year(s) Won of 1988?
CREATE TABLE table_name_21 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_21 WHERE year_s__won = "1988"
I want to know the peak which is prom less than 147 and height less than 619
CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR)
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619
What is the highest number of points a player got during the game on May 25?
CREATE TABLE table_name_85 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_85 WHERE date = "may 25"
What is the total if 44 is tosses/pyramids?
CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR)
SELECT total FROM table_22014431_3 WHERE tosses_pyramids = "44"
If you get a ranking as major in the english military then what would the spanish military address you as?
CREATE TABLE table_1015521_2 (rank_in_spanish VARCHAR, rank_in_english VARCHAR)
SELECT rank_in_spanish FROM table_1015521_2 WHERE rank_in_english = "Major"
what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?
CREATE TABLE table_28232443_1 (year INTEGER, artist VARCHAR)
SELECT MIN(year) FROM table_28232443_1 WHERE artist = "Kid Creole and the Coconuts"
What is the size of the International school?
CREATE TABLE table_name_94 (size INTEGER, school VARCHAR)
SELECT MIN(size) FROM table_name_94 WHERE school = "international"
Which country does Airline "JetBlue Airways" belong to?
CREATE TABLE AIRLINES (Country VARCHAR, Airline VARCHAR)
SELECT Country FROM AIRLINES WHERE Airline = "JetBlue Airways"
What theme has special notes from calgary flames gift set?
CREATE TABLE table_name_24 (theme VARCHAR, special_notes VARCHAR)
SELECT theme FROM table_name_24 WHERE special_notes = "from calgary flames gift set"
What is the away side score when footscray is the home side?
CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE home_team = "footscray"
What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?
CREATE TABLE table_name_99 (episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT episode FROM table_name_99 WHERE entrepreneur_s_ = "luke booth and christopher eves"
Name the language for sopachuy 10
CREATE TABLE table_2509350_3 (language VARCHAR, sopachuy_municipality VARCHAR)
SELECT language FROM table_2509350_3 WHERE sopachuy_municipality = 10
What is Gil Morgan's Place?
CREATE TABLE table_name_70 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_70 WHERE player = "gil morgan"
On what date did Kim Fogh replace the previous manager?
CREATE TABLE table_27782699_3 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_27782699_3 WHERE replaced_by = "Kim Fogh"
What is the English translation of 山鬼?
CREATE TABLE table_name_93 (english_translation VARCHAR, simplified_chinese VARCHAR)
SELECT english_translation FROM table_name_93 WHERE simplified_chinese = "山鬼"
Which Home is on april 22?
CREATE TABLE table_name_45 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_45 WHERE date = "april 22"
What is the sum of Round, when College is "Norfolk State"?
CREATE TABLE table_name_32 (round INTEGER, college VARCHAR)
SELECT SUM(round) FROM table_name_32 WHERE college = "norfolk state"
Tell me the highest cuts made with wins more than 1
CREATE TABLE table_name_5 (cuts_made INTEGER, wins INTEGER)
SELECT MAX(cuts_made) FROM table_name_5 WHERE wins > 1
How many figures are given for pubs 2011 in Chennai?
CREATE TABLE table_167354_2 (pubs_2011 VARCHAR, location VARCHAR)
SELECT COUNT(pubs_2011) FROM table_167354_2 WHERE location = "Chennai"
Who was the Class D winner in round 6?
CREATE TABLE table_24852622_1 (class_d_winner VARCHAR, round VARCHAR)
SELECT class_d_winner FROM table_24852622_1 WHERE round = "6"
Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas?
CREATE TABLE table_name_9 (erp_w INTEGER, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT MAX(erp_w) FROM table_name_9 WHERE frequency_mhz > 88.3 AND city_of_license = "lewis, kansas"
Which winner of stage 1 was not awarded a mountains classification?
CREATE TABLE table_name_70 (winner VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_70 WHERE mountains_classification = "not awarded" AND stage = "1"
List all results from the 3-3 scoring game.
CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR)
SELECT result FROM table_24561550_1 WHERE record = "3-3"
What is the Diameter of the Dog Sled (gold variant) Theme coin?
CREATE TABLE table_name_74 (diameter VARCHAR, theme VARCHAR)
SELECT diameter FROM table_name_74 WHERE theme = "dog sled (gold variant)"
When the laps are over 53, what's the average grid?
CREATE TABLE table_name_32 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_32 WHERE laps > 53
Which monarch assumed office on December 15, 1876?
CREATE TABLE table_name_6 (monarch VARCHAR, assumed_office VARCHAR)
SELECT monarch FROM table_name_6 WHERE assumed_office = "december 15, 1876"
What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?
CREATE TABLE table_13555999_1 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR, specification VARCHAR)
SELECT junior_high_school__12_15_yrs_ FROM table_13555999_1 WHERE gender = "Male" AND specification = "Minimum diameter of sakigawa"
What is the average year that has far cry vengeance as the title?
CREATE TABLE table_name_93 (year INTEGER, title VARCHAR)
SELECT AVG(year) FROM table_name_93 WHERE title = "far cry vengeance"
What is the score of the September 20, 2005 match when the Opponents are FC Bayern Munich?
CREATE TABLE table_name_2 (score VARCHAR, opponents VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE opponents = "fc bayern munich" AND date = "september 20, 2005"
What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?
CREATE TABLE table_name_66 (touchdowns INTEGER, extra_points VARCHAR, player VARCHAR, points VARCHAR, field_goals VARCHAR)
SELECT MIN(touchdowns) FROM table_name_66 WHERE points > 5 AND field_goals = 0 AND player = "snow" AND extra_points > 0
What school/club did gerald wilkins attend?
CREATE TABLE table_name_24 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_24 WHERE player = "gerald wilkins"
How many dates does the ladies category correspond to Rothaus-Cube?
CREATE TABLE table_name_37 (date VARCHAR, category VARCHAR, team VARCHAR)
SELECT COUNT(date) FROM table_name_37 WHERE category = "ladies" AND team = "rothaus-cube"
How much total time was in lane 4?
CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_66 WHERE lane = 4
Which Crowd has an Away team of st kilda?
CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_28 WHERE away_team = "st kilda"
Which source date has an Internet Explorer usage of 60.2%?
CREATE TABLE table_name_52 (source VARCHAR, internet_explorer VARCHAR)
SELECT source FROM table_name_52 WHERE internet_explorer = "60.2%"
Which archbishop vacated the throne on May 17, 1907?
CREATE TABLE table_name_42 (archbishop VARCHAR, vacated_throne VARCHAR)
SELECT archbishop FROM table_name_42 WHERE vacated_throne = "may 17, 1907"
What is the original air date of the episode directed by Terrence Nightingall?
CREATE TABLE table_17356205_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_17356205_1 WHERE directed_by = "Terrence Nightingall"
Pole smaller than 0 had what lowest podium?
CREATE TABLE table_name_92 (podium INTEGER, pole INTEGER)
SELECT MIN(podium) FROM table_name_92 WHERE pole < 0
Which Title was awarded the gold RIAA Sales Certification?
CREATE TABLE table_name_5 (title VARCHAR, riaa_sales_certification VARCHAR)
SELECT title FROM table_name_5 WHERE riaa_sales_certification = "gold"
What record company has robert craft conducting?
CREATE TABLE table_name_32 (record_company VARCHAR, conductor VARCHAR)
SELECT record_company FROM table_name_32 WHERE conductor = "robert craft"
What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27?
CREATE TABLE table_name_44 (built INTEGER, entered_service VARCHAR, knots VARCHAR)
SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27
What district has a constituency of 60?
CREATE TABLE table_name_27 (district VARCHAR, constituency_number VARCHAR)
SELECT district FROM table_name_27 WHERE constituency_number = "60"
What was the vacancy date for Thomas Thomasberg?
CREATE TABLE table_27782699_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_vacancy FROM table_27782699_3 WHERE outgoing_manager = "Thomas Thomasberg"
Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
CREATE TABLE table_name_62 (author VARCHAR, release_air_date VARCHAR, role VARCHAR, year VARCHAR)
SELECT author FROM table_name_62 WHERE role = "narrator" AND year > 2009 AND release_air_date = "7 october 2010"
Tier of 2, and a Season of 2000–01 is what European competitions?
CREATE TABLE table_name_35 (european_competitions VARCHAR, tier VARCHAR, season VARCHAR)
SELECT european_competitions FROM table_name_35 WHERE tier = 2 AND season = "2000–01"
What fuel system does the diesel engines model have?
CREATE TABLE table_name_60 (fuel_system VARCHAR, model VARCHAR)
SELECT fuel_system FROM table_name_60 WHERE model = "diesel engines"
In what week was the game on August 24, 1956 played in front of 40,175 fans?
CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175
What is Tournament, when 2009 is "Grand Slam Tournaments"?
CREATE TABLE table_name_41 (tournament VARCHAR)
SELECT tournament FROM table_name_41 WHERE 2009 = "grand slam tournaments"
Who is the shirt sponsor for Captain Geoff Thomas' team?
CREATE TABLE table_name_10 (shirt_sponsor VARCHAR, captain VARCHAR)
SELECT shirt_sponsor FROM table_name_10 WHERE captain = "geoff thomas"
How many points does the player with 2 steals have?
CREATE TABLE table_24912693_4 (points VARCHAR, steals VARCHAR)
SELECT points FROM table_24912693_4 WHERE steals = 2
How many customers are living in city "Lake Geovannyton"?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, city VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR)
SELECT COUNT(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton"
What nation had more than 3 bronze, 0 gold, and a total of 9?
CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9
Which status is 75.35 km2 and is named sussex?
CREATE TABLE table_name_20 (status VARCHAR, area_km_2 VARCHAR, official_name VARCHAR)
SELECT status FROM table_name_20 WHERE area_km_2 < 75.35 AND official_name = "sussex"
List all of the shows with Alice Levine Jamie East is the Sunday presenter.
CREATE TABLE table_11748792_2 (series VARCHAR, sunday VARCHAR)
SELECT series FROM table_11748792_2 WHERE sunday = "Alice Levine Jamie East"
Which Score has a Place of 4?
CREATE TABLE table_name_78 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_78 WHERE place = "4"
What time was the away game played against the High Park Demons?
CREATE TABLE table_name_35 (time VARCHAR, away VARCHAR)
SELECT time FROM table_name_35 WHERE away = "high park demons"
What is the Place of the Player with a To par of +4 and Score of 70-76-71=217?
CREATE TABLE table_name_67 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_67 WHERE to_par = "+4" AND score = 70 - 76 - 71 = 217
Find the top 3 artists who have the largest number of songs works whose language is Bangla.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
What was the record for the date above 27 and an opponent of the St. Louis Blues?
CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_33 WHERE date > 27 AND opponent = "st. louis blues"
What championships were played on clay and the opponent was virginia ruano pascual paola suárez?
CREATE TABLE table_24638867_4 (championship VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez"
Name the team for 5 september 2008 for date of vacancy for 30 august 2008
CREATE TABLE table_18522916_5 (team VARCHAR, date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT team FROM table_18522916_5 WHERE date_of_appointment = "5 September 2008" AND date_of_vacancy = "30 August 2008"
what is the highest silver when the total is 4 and bronze is less than 1?
CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_54 WHERE total = "4" AND bronze < 1
What is the power in kW corresponding to the station that covers General Santos?
CREATE TABLE table_name_63 (power__kw_ VARCHAR, coverage VARCHAR)
SELECT power__kw_ FROM table_name_63 WHERE coverage = "general santos"