question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the report for the race name V Ulster Trophy?
CREATE TABLE table_1140117_5 (report VARCHAR, race_name VARCHAR)
SELECT report FROM table_1140117_5 WHERE race_name = "V Ulster Trophy"
Name the number of countries that have the us dollar
CREATE TABLE table_2764267_2 (country VARCHAR, currency VARCHAR)
SELECT COUNT(country) FROM table_2764267_2 WHERE currency = "US dollar"
What is Record, when Attendance is 30,110?
CREATE TABLE table_name_84 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_84 WHERE attendance = "30,110"
I want the manner of departure for date of appointment being 12 october 2007
CREATE TABLE table_name_87 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = "12 october 2007"
display all the details from Employees table for those employees who was hired before 2002-06-21.
CREATE TABLE employees (hire_date INTEGER)
SELECT * FROM employees WHERE hire_date < '2002-06-21'
What did the home team score against the away team Hawthorn?
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn"
What was the score of the game when Blackpool was away?
CREATE TABLE table_name_77 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_77 WHERE away_team = "blackpool"
What is the name of the building that has more than 31 floors and built prior to 1964?
CREATE TABLE table_name_91 (name VARCHAR, floors VARCHAR, year VARCHAR)
SELECT name FROM table_name_91 WHERE floors > 31 AND year < 1964
what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119?
CREATE TABLE table_name_99 (place INTEGER, artist VARCHAR, points VARCHAR)
SELECT AVG(place) FROM table_name_99 WHERE artist = "juliana pasha & luiz ejlli" AND points > 119
Evening gown scores of participants with 8.988 swimsuit score
CREATE TABLE table_17088705_2 (evening_gown VARCHAR, swimsuit VARCHAR)
SELECT evening_gown FROM table_17088705_2 WHERE swimsuit = "8.988"
When Kerry# was 199060, what was the percentage?
CREATE TABLE table_1756284_1 (kerry_percentage VARCHAR, kerry_number VARCHAR)
SELECT kerry_percentage FROM table_1756284_1 WHERE kerry_number = 199060
Name the karen when nicky is 2.5
CREATE TABLE table_19744915_4 (karen VARCHAR, nicky VARCHAR)
SELECT karen FROM table_19744915_4 WHERE nicky = "2.5"
What was the score when Bornor Regis Town was the opponent?
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_58 WHERE opponent = "bornor regis town"
What is the sum of year with the local host Sai?
CREATE TABLE table_name_37 (year INTEGER, local_host_s_ VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE local_host_s_ = "sai"
Who directed the nominated film, Badmouth?
CREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth"
How many cfl teams had pick # 21?
CREATE TABLE table_16575609_3 (cfl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(cfl_team) FROM table_16575609_3 WHERE pick__number = 21
What's the Denomination listed for the Date of Issue 12 April 2005?
CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR)
SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005"
What is the product ID of the most frequently ordered item on invoices?
CREATE TABLE INVOICES (Product_ID VARCHAR)
SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
What is the Versus with a Player with ko otieno, with Venue with bloemfontein?
CREATE TABLE table_name_37 (versus VARCHAR, player VARCHAR, venue VARCHAR)
SELECT versus FROM table_name_37 WHERE player = "ko otieno" AND venue = "bloemfontein"
How many names does nature reserve 54 have?
CREATE TABLE table_26013618_1 (name_of_the_nature_reserve VARCHAR, nsg_nr VARCHAR)
SELECT COUNT(name_of_the_nature_reserve) FROM table_26013618_1 WHERE nsg_nr = 54
Name the birth date for taavi sadam
CREATE TABLE table_25058562_2 (birth_date VARCHAR, player VARCHAR)
SELECT birth_date FROM table_25058562_2 WHERE player = "Taavi Sadam"
Name the least number of believers
CREATE TABLE table_24613895_1 (number_of_believers INTEGER)
SELECT MIN(number_of_believers) FROM table_24613895_1
Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?
CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR)
SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = "national stadium, karachi" AND year < 1996
What is the track in Washington state?
CREATE TABLE table_name_83 (track VARCHAR, state VARCHAR)
SELECT track FROM table_name_83 WHERE state = "washington"
What are the lowest points past the year 1978?
CREATE TABLE table_name_51 (points INTEGER, year INTEGER)
SELECT MIN(points) FROM table_name_51 WHERE year > 1978
When was the game played when the opponent was 'at Los Angeles Rams'?
CREATE TABLE table_17972193_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_17972193_1 WHERE opponent = "at Los Angeles Rams"
What was the course type on 22 May?
CREATE TABLE table_name_13 (type VARCHAR, date VARCHAR)
SELECT type FROM table_name_13 WHERE date = "22 may"
What is the highest rank of Tokyo International Airport?
CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)
SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"
What is the total number of To Par, when Score is "70-75-76=221"?
CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR)
SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221
What is the total points for the tean with 8 losses?
CREATE TABLE table_13015539_1 (points VARCHAR, lost VARCHAR)
SELECT COUNT(points) FROM table_13015539_1 WHERE lost = 8
The Ring of Steel possesses what ISBN?
CREATE TABLE table_2950964_5 (isbn VARCHAR, title VARCHAR)
SELECT isbn FROM table_2950964_5 WHERE title = "The Ring Of Steel"
What is the sum of March, when Score is "2 - 2", and when Game is greater than 67?
CREATE TABLE table_name_56 (march INTEGER, score VARCHAR, game VARCHAR)
SELECT SUM(march) FROM table_name_56 WHERE score = "2 - 2" AND game > 67
what is the to par for geoff ogilvy?
CREATE TABLE table_name_65 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_65 WHERE player = "geoff ogilvy"
What was the To par for the player who finished t56?
CREATE TABLE table_name_84 (to_par VARCHAR, finish VARCHAR)
SELECT to_par FROM table_name_84 WHERE finish = "t56"
Which team did the Boston Beaneaters host at the South End Grounds?
CREATE TABLE table_name_36 (opponent VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_36 WHERE venue = "south end grounds"
What is the network brand name of the company vodafone group in Germany?
CREATE TABLE table_name_45 (network_brand_name VARCHAR, company_name VARCHAR, country VARCHAR)
SELECT network_brand_name FROM table_name_45 WHERE company_name = "vodafone group" AND country = "germany"
what is the name of award when the awardee(s) is elangbam natasha?
CREATE TABLE table_25926120_7 (name_of_award VARCHAR, awardee_s_ VARCHAR)
SELECT name_of_award FROM table_25926120_7 WHERE awardee_s_ = "Elangbam Natasha"
How many provinces are named Wellington?
CREATE TABLE table_275023_1 (formed_date VARCHAR, province VARCHAR)
SELECT COUNT(formed_date) FROM table_275023_1 WHERE province = "Wellington"
Name the latitude for 3810536900
CREATE TABLE table_18600760_8 (latitude VARCHAR, geo_id VARCHAR)
SELECT latitude FROM table_18600760_8 WHERE geo_id = 3810536900
Name the guest 4 for 8 december
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"
Who directed the episode with production code 28?
CREATE TABLE table_12226390_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_12226390_2 WHERE production_code = 28
What is the Score with an Opponent that is flavia pennetta?
CREATE TABLE table_name_55 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_55 WHERE opponent = "flavia pennetta"
Which City has a Country of spain, and a Stadium of palacio de deportes de santander?
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_57 WHERE country = "spain" AND stadium = "palacio de deportes de santander"
What is the Date with a Format that is cd?
CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR)
SELECT date FROM table_name_87 WHERE format = "cd"
How many writers had an US air date of september 25, 1993?
CREATE TABLE table_10470082_3 (writer VARCHAR, us_air_date VARCHAR)
SELECT COUNT(writer) FROM table_10470082_3 WHERE us_air_date = "September 25, 1993"
When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there?
CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)
SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz"
In which championship was the partner Jie Zheng?
CREATE TABLE table_2516282_3 (championship VARCHAR, partner VARCHAR)
SELECT championship FROM table_2516282_3 WHERE partner = "Jie Zheng"
What is the 2011 value with a 134 in 2008?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT 2011 FROM table_name_31 WHERE 2008 = "134"
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r"
Who was the home team at the game held at Princes Park?
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_76 WHERE venue = "princes park"
What name is associated with a longer length than 903?
CREATE TABLE table_name_64 (name VARCHAR, length INTEGER)
SELECT name FROM table_name_64 WHERE length > 903
Name the production code for 60 number in series
CREATE TABLE table_26702078_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60
What year has a finish of 19?
CREATE TABLE table_name_92 (year VARCHAR, finish VARCHAR)
SELECT year FROM table_name_92 WHERE finish = "19"
Which date has a PSOE of 36.1%?
CREATE TABLE table_name_86 (date VARCHAR, psoe VARCHAR)
SELECT date FROM table_name_86 WHERE psoe = "36.1%"
Who wrote Episode 2-15 (56)?
CREATE TABLE table_name_51 (writer_s_ VARCHAR, episode VARCHAR)
SELECT writer_s_ FROM table_name_51 WHERE episode = "2-15 (56)"
Which customer is associated with the latest policy?
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (start_date INTEGER); CREATE TABLE policies (customer_id VARCHAR, start_date INTEGER)
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT MAX(start_date) FROM policies)
Name the w/l for czech republic
CREATE TABLE table_22825058_23 (w_l VARCHAR, against VARCHAR)
SELECT w_l FROM table_22825058_23 WHERE against = "Czech Republic"
Find the number of students for the cities where have more than one student.
CREATE TABLE student (city_code VARCHAR)
SELECT COUNT(*), city_code FROM student GROUP BY city_code HAVING COUNT(*) > 1
Which Set 2 has a Set 1 of 25–15, and a Score of 3–0?
CREATE TABLE table_name_41 (set_2 VARCHAR, set_1 VARCHAR, score VARCHAR)
SELECT set_2 FROM table_name_41 WHERE set_1 = "25–15" AND score = "3–0"
What's the greatest losses for those with more than 13 wins?
CREATE TABLE table_name_20 (losses INTEGER, wins INTEGER)
SELECT MAX(losses) FROM table_name_20 WHERE wins > 13
How many totals had more than 4 bronze?
CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)
SELECT SUM(total) FROM table_name_93 WHERE bronze > 4
What's the language of Draw number 9?
CREATE TABLE table_name_65 (language VARCHAR, draw VARCHAR)
SELECT language FROM table_name_65 WHERE draw = 9
COunt the Founded which has a Venue of villa park?
CREATE TABLE table_name_5 (founded INTEGER, venue VARCHAR)
SELECT SUM(founded) FROM table_name_5 WHERE venue = "villa park"
Which venue has a Result of w, and a Goal of deacon 5/5?
CREATE TABLE table_name_84 (venue VARCHAR, result VARCHAR, goals VARCHAR)
SELECT venue FROM table_name_84 WHERE result = "w" AND goals = "deacon 5/5"
Which team plays in Goa, Salcette?
CREATE TABLE table_name_63 (home_venue VARCHAR, state VARCHAR, city VARCHAR)
SELECT home_venue FROM table_name_63 WHERE state = "goa" AND city = "salcette"
What is the most points for South Ossetia?
CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR)
SELECT highest_point FROM table_name_46 WHERE country = "south ossetia"
What is the Home team when Motagua is the Away team?
CREATE TABLE table_name_68 (home VARCHAR, away VARCHAR)
SELECT home FROM table_name_68 WHERE away = "motagua"
Find the title of all the albums of the artist "AC/DC".
CREATE TABLE ARTIST (ArtistId VARCHAR, Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR)
SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"
What position that has a Height larger than 179, and Player is Ezgi Arslan?
CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR)
SELECT position FROM table_name_54 WHERE height > 179 AND player = "ezgi arslan"
Switzerland has how many gold and less than 0 silver?
CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0
what's the height (ft) with name being leadenhall building
CREATE TABLE table_13463790_2 (height__ft_ VARCHAR, name VARCHAR)
SELECT height__ft_ FROM table_13463790_2 WHERE name = "Leadenhall Building"
What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti?
CREATE TABLE table_name_27 (grid INTEGER, driver VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "engine" AND laps < 45 AND driver = "giancarlo baghetti"
Name the audition city for hyatt regency chicago
CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago"
How many different drivers were there for the team when the manufacturer was Toyota?
CREATE TABLE table_2241101_1 (driver VARCHAR, manufacturer VARCHAR)
SELECT COUNT(driver) FROM table_2241101_1 WHERE manufacturer = "Toyota"
Who is the visitor team of game 19 with Los Angeles as the home team?
CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR, game__number VARCHAR)
SELECT visitor FROM table_name_30 WHERE home = "los angeles" AND game__number = 19
List the name of artworks in ascending alphabetical order.
CREATE TABLE artwork (Name VARCHAR)
SELECT Name FROM artwork ORDER BY Name
What is the name of the Leading scorer when the Home was the Trail blazers?
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?
CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT MIN(tries) FROM table_name_84 WHERE player = "matt diskin" AND points > 16
Name the competition on august 25, 2007
CREATE TABLE table_name_83 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_83 WHERE date = "august 25, 2007"
Which music is jive?
CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR)
SELECT music FROM table_name_20 WHERE style = "jive"
What was the score of the game with a decision of Peeters and a record of 29–3–11?
CREATE TABLE table_name_25 (score VARCHAR, decision VARCHAR, record VARCHAR)
SELECT score FROM table_name_25 WHERE decision = "peeters" AND record = "29–3–11"
Which mix artists have shlomo as artist 1?
CREATE TABLE table_23649244_1 (mix_artist VARCHAR, artist_1 VARCHAR)
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Shlomo"
What day in March is the game with a 48-13-11 record and a game number less than 72?
CREATE TABLE table_name_12 (march INTEGER, record VARCHAR, game VARCHAR)
SELECT SUM(march) FROM table_name_12 WHERE record = "48-13-11" AND game < 72
What rank has a rating of 146.8?
CREATE TABLE table_19517448_3 (rank VARCHAR, rating VARCHAR)
SELECT rank FROM table_19517448_3 WHERE rating = "146.8"
WHo has a Position of end and a School/Club Team of oregon state?
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_22 WHERE position = "end" AND school_club_team = "oregon state"
What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?
CREATE TABLE table_name_79 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_79 WHERE home = "montreal canadiens" AND date = "may 16"
WHAT IS THE FORWARD CASTE WITH A SCHEDULED TRIBE OF 0.90%?
CREATE TABLE table_name_87 (forward_caste VARCHAR, scheduled_tribe VARCHAR)
SELECT forward_caste FROM table_name_87 WHERE scheduled_tribe = "0.90%"
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?
CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR)
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township"
Which Lost has Seasons of 2, and Goals against larger than 43?
CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)
SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43
Who earned third place when the winner was Paul Haarhuis?
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR)
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis"
How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?
CREATE TABLE table_name_89 (silver INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_89 WHERE total < 3 AND rank = 6 AND bronze > 1
What is the Almali village with the Süskən village zərnə?
CREATE TABLE table_name_77 (almalı__qax_ VARCHAR, süskən VARCHAR)
SELECT almalı__qax_ FROM table_name_77 WHERE süskən = "zərnə"
What is the score for the game in which Manchester United was the home team?
CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_85 WHERE home_team = "manchester united"
What is the Result with a Venue that is n?
CREATE TABLE table_name_45 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_45 WHERE venue = "n"
Name the slope length for gondola
CREATE TABLE table_17814458_1 (slope_length INTEGER, type VARCHAR)
SELECT MIN(slope_length) FROM table_17814458_1 WHERE type = "gondola"
What is the lowest number played with a position of 6 and less than 1 draw?
CREATE TABLE table_name_89 (played INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MIN(played) FROM table_name_89 WHERE position = 6 AND drawn < 1
What is the week 12 result?
CREATE TABLE table_name_17 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_17 WHERE week = 12
What is the alignment that predicts an alignment of the linuxbinary link?
CREATE TABLE table_name_27 (_ VARCHAR, alignment_alignment VARCHAR, link VARCHAR)
SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM table_name_27 WHERE link = "linuxbinary"
Name the saka era for malayalam മിഥുനം
CREATE TABLE table_169955_1 (saka_era VARCHAR, in_malayalam VARCHAR)
SELECT saka_era FROM table_169955_1 WHERE in_malayalam = "മിഥുനം"
What is the average capacity that has rod laver arena as the stadium?
CREATE TABLE table_name_97 (capacity INTEGER, stadium VARCHAR)
SELECT AVG(capacity) FROM table_name_97 WHERE stadium = "rod laver arena"