sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Visitor FROM table WHERE Home = los angeles
CREATE TABLE INST, Here is a database schema( table schema);
Which visitor has a Los Angeles home?.It is not neccessary to use all the tables.
SELECT dar FROM table_15887683_17 WHERE nΒ° = 912
CREATE TABLE INST, Here is a database schema( table schema);
Name the dar for 912It is not neccessary to use all the tables.
SELECT Language FROM table WHERE Network = ary digital
CREATE TABLE INST, Here is a database schema( table schema);
What language does the Ary Digital network broadcast in?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Name = sanctuary
CREATE TABLE INST, Here is a database schema( table schema);
What is the film type for the movie Sanctuary?.It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Gold > 1 AND Bronze > 0
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of total with gold more than 1 and bronze more than 0.It is not neccessary to use all the tables.
SELECT model_number FROM table_name_59 WHERE fsb_speed = "400 mhz"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Model Number which has a FSB Speed of 400 mhz?It is not neccessary to use all the tables.
SELECT player FROM table_name_31 WHERE nationality = "usa" AND pick = 33
CREATE TABLE INST, Here is a database schema( table schema);
Which player is Pick 33 and has a Nationality of USA?It is not neccessary to use all the tables.
SELECT narrated_by FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
CREATE TABLE INST, Here is a database schema( table schema);
Name the narraed by for beluga shippingIt is not neccessary to use all the tables.
SELECT MIN meas. num. FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest measure number? .It is not neccessary to use all the tables.
SELECT Country FROM table WHERE % change = 5.7
CREATE TABLE INST, Here is a database schema( table schema);
Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?.It is not neccessary to use all the tables.
SELECT African Spoonbill FROM table WHERE Hadeda Ibis = Flernecked Nightjar
CREATE TABLE INST, Here is a database schema( table schema);
What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar?.It is not neccessary to use all the tables.
SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7
CREATE TABLE INST, Here is a database schema( table schema);
Which Against is the highest one that has a Drawn larger than 1 and a Team of corinthians and a Played smaller than 7?It is not neccessary to use all the tables.
SELECT MIN("Crowd") FROM table_55491 WHERE "Home team" = 'essendon'
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd at a home game for essendon?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = l 17–0
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest Week on which the Result was l 17–0?.It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE race_title = "dhl turkish grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Race Title of dhl turkish grand prix?It is not neccessary to use all the tables.
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'PHILADELPHIA' AND ground_service.city_code = city.city_code
CREATE TABLE INST, Here is a database schema( table schema);
what types of ground transportation are available in PHILADELPHIAIt is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Tyre = c AND Pole position = eugenio castellotti
CREATE TABLE INST, Here is a database schema( table schema);
Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?.It is not neccessary to use all the tables.
SELECT Presenter FROM table WHERE UK Broadcast Date = 1996-09-25
CREATE TABLE INST, Here is a database schema( table schema);
Who is the presenter of the episode broadcast in the UK on 1996-09-25?.It is not neccessary to use all the tables.
SELECT NiCd FROM table WHERE Type = capacity under 500ma constant drain
CREATE TABLE INST, Here is a database schema( table schema);
What is NiCd, when Type is "Capacity under 500mA constant Drain"?.It is not neccessary to use all the tables.
SELECT (SELECT "margin of\nvictory" FROM table_203_151 WHERE "tournament" = 'klm open') - (SELECT "margin of\nvictory" FROM table_203_151 WHERE "tournament" = 'barclays scottish open')
CREATE TABLE INST, Here is a database schema( table schema);
how many more strokes were in the klm open than the barclays scottish open ?It is not neccessary to use all the tables.
SELECT MAX(latitude) FROM table_name_4 WHERE ansi_code > 1759541 AND pop__2010_ = 72
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 10.17 (77)
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the home team, when the score for home team was 10.17 (77)?.It is not neccessary to use all the tables.
SELECT publisher FROM book_club GROUP BY publisher ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the publisher with most number of books?It is not neccessary to use all the tables.
SELECT streak FROM table_name_45 WHERE attendance = "33,013"
CREATE TABLE INST, Here is a database schema( table schema);
Which streak had an attendance of 33013?It is not neccessary to use all the tables.
SELECT Elevation + Height FROM table WHERE Delivery = barge AND Location = bikini, yurochi aka irioj (dog)
CREATE TABLE INST, Here is a database schema( table schema);
Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)?.It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_name_5 WHERE time = "+31.982"
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest lap number when the time was +31.982?It is not neccessary to use all the tables.
SELECT tamil FROM table_name_89 WHERE hindi = "sukravar"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TAMIL WITH A SUKRAVAR ?It is not neccessary to use all the tables.
SELECT MIN Season # FROM table WHERE Title = "Vision Impossible"
CREATE TABLE INST, Here is a database schema( table schema);
What number episode of the season was titled "Vision Impossible"?.It is not neccessary to use all the tables.
SELECT MIN(grid) FROM table_name_39 WHERE driver = "louis rosier" AND laps > 78
CREATE TABLE INST, Here is a database schema( table schema);
what is the grid when the driver is louis rosier and the laps is more than 78?It is not neccessary to use all the tables.
SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM employment)
CREATE TABLE INST, Here is a database schema( table schema);
List the names of people that are not employed by any companyIt is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Tues 24 Aug = 19' 19.83 117.110mph
CREATE TABLE INST, Here is a database schema( table schema);
How many times was tues 24 aug 19' 19.83 117.110mph?.It is not neccessary to use all the tables.
SELECT "Young rider classification" FROM table_30586 WHERE "Winner" = 'Alessandro Petacchi'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the young rider classification when Alessandro Petacchi won?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 12-9
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game when the liberty had a record of 12-9?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Directed by = Richard Thorpe
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that Richard Thorpe directed?.It is not neccessary to use all the tables.
SELECT COUNT(appearances) FROM table_name_84 WHERE team = "shakhtar donetsk"
CREATE TABLE INST, Here is a database schema( table schema);
How many apperances for shakhtar donetsk?It is not neccessary to use all the tables.
SELECT MAX(founded) FROM table_27816698_2 WHERE nickname = "Titans"
CREATE TABLE INST, Here is a database schema( table schema);
When was the Titans founded?It is not neccessary to use all the tables.
SELECT No. of Cu-O planes in unit cell FROM table WHERE Formula = Tl 2 Ba 2 CuO 6
CREATE TABLE INST, Here is a database schema( table schema);
How many times is the formula tl 2 ba 2 cuo 6?.It is not neccessary to use all the tables.
SELECT SUM Games FROM table WHERE Team = lietuvos rytas vilnius AND Rebounds < 43
CREATE TABLE INST, Here is a database schema( table schema);
How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?.It is not neccessary to use all the tables.
SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt"
CREATE TABLE INST, Here is a database schema( table schema);
In game 34 Curtis Borchardt played on which team with less than 275 rebounds?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Res. = win AND Round > 2 AND Opponent = makoto ishikawa
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of the match with a win result, more than 2 rounds, and Makoto Ishikawa as the opponent?.It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE away_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
What day is hawthorn the away side?It is not neccessary to use all the tables.
SELECT "Left Office" FROM table_8220 WHERE "Location" = 'washington'
CREATE TABLE INST, Here is a database schema( table schema);
What left office date happened in Washington?It is not neccessary to use all the tables.
SELECT AVG Drawn FROM table WHERE Lost > 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of games drawn among the teams that lost over 13 games?.It is not neccessary to use all the tables.
SELECT COUNT Surface FROM table WHERE Score = 3–6, 7–6(5), 6–3
CREATE TABLE INST, Here is a database schema( table schema);
How many matched scored 3–6, 7–6(5), 6–3?.It is not neccessary to use all the tables.
SELECT stadium FROM table_name_76 WHERE club = "west ham united"
CREATE TABLE INST, Here is a database schema( table schema);
What stadium has a club of west ham united?It is not neccessary to use all the tables.
SELECT tournament_location FROM table_name_43 WHERE country = "south korea"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament location has south korea as the country?It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney"
CREATE TABLE INST, Here is a database schema( table schema);
How many original air dates did the episode directed by Bethany rooney have?It is not neccessary to use all the tables.
SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the stadium name and capacity with most number of concerts in year 2014 or after.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home = deportes savio
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game wehre the deportes savio were the home team?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Score = 7–5, 2–6, 7–6
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament had a score of 7–5, 2–6, 7–6?.It is not neccessary to use all the tables.
SELECT AVG Round1 FROM table WHERE Round3 < 51 AND Total Points < 273 AND Round2 < 98 AND Round5 < 24
CREATE TABLE INST, Here is a database schema( table schema);
what is round1 when round3 is less than 51, total points is less than 273, round2 is less than 98 and round5 is less than 24?.It is not neccessary to use all the tables.
SELECT COUNT High rebounds FROM table WHERE Date = March 13
CREATE TABLE INST, Here is a database schema( table schema);
How many different values if the number is high rebounds can be found for the game on March 13?.It is not neccessary to use all the tables.
SELECT airport FROM table_name_59 WHERE iata = "bkk"
CREATE TABLE INST, Here is a database schema( table schema);
Which airport has IATA of BKK?It is not neccessary to use all the tables.
SELECT "Time" FROM table_46289 WHERE "Grid" = '21'
CREATE TABLE INST, Here is a database schema( table schema);
What is time of manufacturer with grid 21?It is not neccessary to use all the tables.
SELECT AVG(lost) FROM table_name_32 WHERE points_for = 545
CREATE TABLE INST, Here is a database schema( table schema);
What's the average loss when the points were 545?It is not neccessary to use all the tables.
SELECT appointed_by FROM table_name_15 WHERE title = "envoy extraordinary and minister plenipotentiary" AND termination_of_mission = "march 16, 1905"
CREATE TABLE INST, Here is a database schema( table schema);
Who was appointed with the title of envoy extraordinary and minister plenipotentiary and a termination of mission of march 16 1905?It is not neccessary to use all the tables.
SELECT prothrombin_time FROM table_1226250_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Prolonged"
CREATE TABLE INST, Here is a database schema( table schema);
Is prothrombin time long when thromboplastin is prolonged?It is not neccessary to use all the tables.
SELECT "points" AS _against FROM table_name_21 WHERE "points" = "points"
CREATE TABLE INST, Here is a database schema( table schema);
How many points against did the club with points have?It is not neccessary to use all the tables.
SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = "The Blossoming of Maximo Oliveros"
CREATE TABLE INST, Here is a database schema( table schema);
How many years was the film The Blossoming of Maximo Oliveros entered?It is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Silver > 6 AND Gold < 8
CREATE TABLE INST, Here is a database schema( table schema);
Which nation has more than 6 Silver medals and fewer than 8 Gold medals?.It is not neccessary to use all the tables.
SELECT MIN(roll) FROM table_name_37 WHERE name = "katikati college"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest roll number of Katikati college?It is not neccessary to use all the tables.
SELECT SUM(floors) FROM table_name_57 WHERE street_address = "01.0 10 light street"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Score = 1–0 AND Goal = 16
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has a Score of 1–0, and a Goal of 16?.It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest crowd at a game where Collingwood was the away team?.It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table WHERE Title = "Haunted"
CREATE TABLE INST, Here is a database schema( table schema);
What season was the episode "haunted" in?.It is not neccessary to use all the tables.
SELECT Balls FROM table WHERE Venue = bristol AND Score = 104*
CREATE TABLE INST, Here is a database schema( table schema);
What is Balls, when Venue is "Bristol", and when Score is "104*"?.It is not neccessary to use all the tables.
SELECT U.S. viewers (million) FROM table WHERE Production code = 1ARC03
CREATE TABLE INST, Here is a database schema( table schema);
How many million U.S. viewers watched the episode with a production code of 1arc03?.It is not neccessary to use all the tables.
SELECT score FROM table_name_96 WHERE venue = "shay stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score at shay stadium?It is not neccessary to use all the tables.
SELECT SUM Drawn FROM table WHERE First game < 2006 AND Played < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?.It is not neccessary to use all the tables.
SELECT 1992 FROM table_name_3 WHERE 2001 = "1r" AND 1994 = "1r" AND 2002 = "qf"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 1992 when 2001 is 1r 1994 is 1r and the 2002 is qf?It is not neccessary to use all the tables.
SELECT 1st Party FROM table WHERE Election = 1849 by-election
CREATE TABLE INST, Here is a database schema( table schema);
Which 1st Party has an Election of 1849 by-election?.It is not neccessary to use all the tables.
SELECT contribution FROM table_name_49 WHERE album = "board up the house"
CREATE TABLE INST, Here is a database schema( table schema);
For the album Board Up the House what is the contribution?It is not neccessary to use all the tables.
SELECT gold_medals FROM table_1305623_12 WHERE total_medals = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many gold medals does each school who has a total of 1 medal have?It is not neccessary to use all the tables.
SELECT driver FROM table_name_99 WHERE points = "50+3"
CREATE TABLE INST, Here is a database schema( table schema);
What Driver had 50+3 Points?It is not neccessary to use all the tables.
SELECT location FROM table_name_58 WHERE score = "w 105-99"
CREATE TABLE INST, Here is a database schema( table schema);
what is the location when the score is w 105-99?It is not neccessary to use all the tables.
SELECT COUNT Index (Year) FROM table WHERE Countries sampled = 157
CREATE TABLE INST, Here is a database schema( table schema);
How many years were listed under index when there were 157 countries sampled?.It is not neccessary to use all the tables.
SELECT distance FROM table_2923917_4 WHERE brisbane = "$5.20"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance when brisbane is $5.20?It is not neccessary to use all the tables.
SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2
CREATE TABLE INST, Here is a database schema( table schema);
What's the total in 2005 if there's more than 10.2 in 2006 less than 29.5 in 2007 more than 4.9 in 2009 and less than 43.8 in 2010?It is not neccessary to use all the tables.
SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'
CREATE TABLE INST, Here is a database schema( table schema);
Which college has any student who is a goalie and succeeded in the tryout.It is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_38 WHERE total = 295
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of To Par, when Total is '295'?It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_15 WHERE frequency_mhz > 88.7 AND erp_w = 99
CREATE TABLE INST, Here is a database schema( table schema);
Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?It is not neccessary to use all the tables.
SELECT country FROM table_28281704_1 WHERE stadium = "Lusail National stadium"
CREATE TABLE INST, Here is a database schema( table schema);
Name the country for lusail national stadiumIt is not neccessary to use all the tables.
SELECT genre FROM table_name_50 WHERE origin_of_programming = "india" AND network = "star plus"
CREATE TABLE INST, Here is a database schema( table schema);
What genre is Star Plus from India?It is not neccessary to use all the tables.
SELECT MAX Losses FROM table WHERE Goals Against = 32 AND Goals For > 45
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of losses where a team scored more than 45 goals and had 32 against?.It is not neccessary to use all the tables.
SELECT Team Name FROM table WHERE Tumbling = 44.5
CREATE TABLE INST, Here is a database schema( table schema);
Which team names have 44.5 for tumbling?.It is not neccessary to use all the tables.
SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
what are the top 3 highest support rates?It is not neccessary to use all the tables.
SELECT COUNT Episode FROM table WHERE Performer 3 = hugh laurie
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of episodes where hugh laurie was the 3rd performer?.It is not neccessary to use all the tables.
SELECT MIN Season # FROM table WHERE Episode Title = "Stumped Again / The Kick Stays in the Picture"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number was "Stumped Again / The Kick Stays in the Picture"?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "55" AND prescriptions.formulary_drug_cd = "WARF1"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients who have drug code warf1 and are less than 55 years of age.It is not neccessary to use all the tables.
SELECT doha_, _qatar FROM table_name_93 WHERE snatch = "clean & jerk"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Doha Qatar when the snatch is clean & jerk?It is not neccessary to use all the tables.
SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE ((SEM...
CREATE TABLE INST, Here is a database schema( table schema);
Am I able to take 400 -level classes in Fall or Winter term ?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE React > 0.257 AND Name = fadwa al bouza
CREATE TABLE INST, Here is a database schema( table schema);
In what country did fadwa al bouza have larger than 0.257 react score?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE College/junior/club team = Molot Perm (Russia)
CREATE TABLE INST, Here is a database schema( table schema);
What positions does the college/junior/club team, molot perm (russia) have?.It is not neccessary to use all the tables.
SELECT Game site FROM table WHERE Attendance = 51478
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game where attendance was 51478?.It is not neccessary to use all the tables.
SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-6"
CREATE TABLE INST, Here is a database schema( table schema);
Game site of kingdome and a Result of w 24-6 has what record?It is not neccessary to use all the tables.
SELECT 2006 FROM table_name_22 WHERE 2008 = "1r" AND 2004 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2006 with 2008 of 1r and 2004 of 1rIt is not neccessary to use all the tables.
SELECT MAX 3rd runner-up FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. .It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Women's doubles = no competition AND Women's singles = no competition
CREATE TABLE INST, Here is a database schema( table schema);
What year had a Women's doubles and Women's singles with no competition?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = 23 february 1986
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Date of 23 february 1986?.It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE ICAO = birk
CREATE TABLE INST, Here is a database schema( table schema);
What airport has an ICAO of Birk?.It is not neccessary to use all the tables.