sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT handicap FROM table_25429986_1 WHERE distance = "9 lengths"
CREATE TABLE INST, Here is a database schema( table schema);
what is the handicap where the distance is 9 lengths?It is not neccessary to use all the tables.
SELECT Sex, SUM(Weight) FROM people GROUP BY Sex
CREATE TABLE INST, Here is a database schema( table schema);
Give me the comparison about the sum of Weight over the Sex , and group by attribute Sex by a bar chart.It is not neccessary to use all the tables.
SELECT height FROM table_name_72 WHERE college = "wyoming" AND name = "guy frazier"
CREATE TABLE INST, Here is a database schema( table schema);
Which height has a College of wyoming and a Name of guy frazier?It is not neccessary to use all the tables.
SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = "29 May"
CREATE TABLE INST, Here is a database schema( table schema);
Who left a position on 29 May?It is not neccessary to use all the tables.
SELECT DISTINCT yearid FROM hall_of_fame WHERE needed_note != ""
CREATE TABLE INST, Here is a database schema( hall of fame);
What were the years when any special elections happened in hall of fame?. It is not neccessary to use all the tables.
SELECT final_date FROM table_name_75 WHERE housemates = 16
CREATE TABLE INST, Here is a database schema( table schema);
What final date had 16 housemates?It is not neccessary to use all the tables.
SELECT First airdate FROM table WHERE Episodes < 24 AND Nielsen ranking = #38
CREATE TABLE INST, Here is a database schema( table schema);
What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38?.It is not neccessary to use all the tables.
SELECT "flight" FROM table_204_514 ORDER BY "dead" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which airliner attack on the list had the most dead ?It is not neccessary to use all the tables.
SELECT Lost FROM table WHERE Played = 22 AND Losing BP = 2 AND Club = merthyr rfc
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC?.It is not neccessary to use all the tables.
SELECT location FROM table_name_74 WHERE opponent_team = "napoli"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Milan play against Napoli?It is not neccessary to use all the tables.
SELECT rider FROM table_name_44 WHERE laps < 15 AND grid > 32 AND time_retired = "accident"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rider with less than 15 laps more than 32 grids and an accident time/retired?It is not neccessary to use all the tables.
SELECT att_cmp_int FROM table_name_73 WHERE effic < 117.88 AND gp_gs = "10-0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_81 WHERE years = "1960β€”"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Rank 1960β€”?It is not neccessary to use all the tables.
SELECT MLS team FROM table WHERE Pick # = 41
CREATE TABLE INST, Here is a database schema( table schema);
Which MLS team has the #41 pick?.It is not neccessary to use all the tables.
SELECT region FROM table_name_77 WHERE year = "may 1974"
CREATE TABLE INST, Here is a database schema( table schema);
Which region had the year May 1974?It is not neccessary to use all the tables.
SELECT MIN Lowest FROM table WHERE Stadium = East End Park
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest attendance that East End Park has ever had?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Money ( $ ) = 187,500 AND Score = 66-75-71-69=281
CREATE TABLE INST, Here is a database schema( table schema);
what player has $187,500 and score 66-75-71-69=281.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = bottom 3 AND Partner = endre jansen
CREATE TABLE INST, Here is a database schema( table schema);
In what Week resulting in the bottom 3 was Endre Jansen Partner?.It is not neccessary to use all the tables.
SELECT subtitles FROM table_name_85 WHERE classifaction = "15"
CREATE TABLE INST, Here is a database schema( table schema);
What subtitles have 15 as the classification?It is not neccessary to use all the tables.
SELECT year FROM table_name_84 WHERE date = "not played"
CREATE TABLE INST, Here is a database schema( table schema);
what is the year when the date is not played?It is not neccessary to use all the tables.
SELECT MAX(mohsen_rezaee) FROM table_23390604_1 WHERE mir_hossein_mousavi = 837858
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?It is not neccessary to use all the tables.
SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College"
CREATE TABLE INST, Here is a database schema( table schema);
Name the location for chattahoochee technical collegeIt is not neccessary to use all the tables.
SELECT score FROM table_27721131_6 WHERE high_points = "Andray Blatche , Al Thornton (20)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when andray blatche al thornton (20) had the high points?It is not neccessary to use all the tables.
SELECT TOTAL FROM table WHERE WEEK = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the total rating on week 3? .It is not neccessary to use all the tables.
SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213
CREATE TABLE INST, Here is a database schema( table schema);
What was the date that the episode with a production code of 213 was originally aired?It is not neccessary to use all the tables.
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Score = 6–3, 2–6, 6–3
CREATE TABLE INST, Here is a database schema( table schema);
What Partner had a Score of 6–3, 2–6, 6–3?.It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE U.S. viewers (million) = 3.39
CREATE TABLE INST, Here is a database schema( table schema);
When there are 3.39 million u.s viewers what is the production code?.It is not neccessary to use all the tables.
SELECT MAX F/Laps FROM table
CREATE TABLE INST, Here is a database schema( table schema);
what are the maximum f/laps?.It is not neccessary to use all the tables.
SELECT "name" FROM table_203_268 WHERE "nationality" = 'venezuela'
CREATE TABLE INST, Here is a database schema( table schema);
the only submarine from venezuela was named what ?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = tony jacklin
CREATE TABLE INST, Here is a database schema( table schema);
What Place has a Player of tony jacklin?.It is not neccessary to use all the tables.
SELECT power FROM table_name_71 WHERE city_of_license = "belleville"
CREATE TABLE INST, Here is a database schema( table schema);
what is the power when the city of license is belleville?It is not neccessary to use all the tables.
SELECT lead FROM table_name_15 WHERE nation = "switzerland"
CREATE TABLE INST, Here is a database schema( table schema);
Which Lead has a Nation of switzerland?It is not neccessary to use all the tables.
SELECT Altitude m FROM table WHERE Distance MedellΓ­n Downtown ( km ) = 42
CREATE TABLE INST, Here is a database schema( table schema);
What is the altitude for the distance medellin downtown (km) is 42?.It is not neccessary to use all the tables.
SELECT athlete FROM table_21276428_21 WHERE place = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the athlete for 3It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = Montreal
CREATE TABLE INST, Here is a database schema( table schema);
What player went to montreal college?.It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2010 = grand slam tournaments
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2011 when the 2010 shows grand slam tournaments?.It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Tournament = hamburg
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner at the tournament in Hamburg?.It is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Year(s) won = 1969
CREATE TABLE INST, Here is a database schema( table schema);
What is the average total in 1969?.It is not neccessary to use all the tables.
SELECT Terminus FROM table WHERE Length = 3.5km
CREATE TABLE INST, Here is a database schema( table schema);
What terminus is 3.5km in lenght?.It is not neccessary to use all the tables.
SELECT Starts FROM table WHERE Seasons = 1977
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of starts in 1977.It is not neccessary to use all the tables.
SELECT COUNT Pick # FROM table WHERE CFL Team = edmonton eskimos
CREATE TABLE INST, Here is a database schema( table schema);
What is the Pick # for the Edmonton Eskimos?.It is not neccessary to use all the tables.
SELECT 1st Party FROM table WHERE 1st Member = william denison AND Election = 1832
CREATE TABLE INST, Here is a database schema( table schema);
Which party's 1st member is William Denison in the election of 1832?.It is not neccessary to use all the tables.
SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = "Peter Kox Roman Rusinov"
CREATE TABLE INST, Here is a database schema( table schema);
When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Crowd > 12,500 AND Home team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the away team that played against Richmond and has a crowd over 12,500?.It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total silver with a Rank larger than 9 and a Total larger than 1?It is not neccessary to use all the tables.
SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2
CREATE TABLE INST, Here is a database schema( table schema);
What contestant had a starting BMI of 42.2?It is not neccessary to use all the tables.
SELECT english_spelling FROM table_1242447_2 WHERE strongs_transliteration = "'Adoniyah"
CREATE TABLE INST, Here is a database schema( table schema);
What is the English spelling of the strongs transliteration: 'adoniyah?It is not neccessary to use all the tables.
SELECT Claimed sales FROM table WHERE Genre = rock
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of claimed sales in the rock genre?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game site = San Diego Stadium
CREATE TABLE INST, Here is a database schema( table schema);
What is the record when the game was at the San Diego Stadium? .It is not neccessary to use all the tables.
SELECT Name of Deity FROM table WHERE Name of the State where found in India = bihar
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the deity that the state of Bihar was named after?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_32195 WHERE "Crowd" > '19,500' AND "Venue" = 'brunswick street oval'
CREATE TABLE INST, Here is a database schema( table schema);
On what date did Brunswick Street Oval see more than 19,500 people?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Position = 6/13
CREATE TABLE INST, Here is a database schema( table schema);
What year was the position 6/13?.It is not neccessary to use all the tables.
SELECT MIN Minutes FROM table WHERE Player = Sue Bird
CREATE TABLE INST, Here is a database schema( table schema);
How many minutes were played by Sue Bird?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE No. in series = 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date of the episode that was number 31 in the series? .It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Wins = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is Year, when Wins is "0"?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Chassis = cadillac northstar lmp02
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the cadillac northstar lmp02 chassis?.It is not neccessary to use all the tables.
SELECT Turbo FROM table WHERE Part number(s) = cm8062300834302bx80623i72600bxc80623i72600
CREATE TABLE INST, Here is a database schema( table schema);
what is the turbo when the part number is cm8062300834302bx80623i72600bxc80623i72600?.It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_34 WHERE rank = "14" AND gold > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest total when the rank is 14 and the gold medals is larger than 0?It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Result = l 24-20 AND Week < 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the total attendance in a week less than 5 when the result was l 24-20?.It is not neccessary to use all the tables.
SELECT Writer FROM table WHERE Title = "the six stages of marshall"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote "The Six Stages of Marshall"?.It is not neccessary to use all the tables.
SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of stadiums that the most swimmers have been to.It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = South Carolina 7
CREATE TABLE INST, Here is a database schema( table schema);
Who was the "incumbent" of district south carolina 7?.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Week = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the Week 8 game when Denver played Buffalo?.It is not neccessary to use all the tables.
SELECT Vinculum FROM table WHERE Parentheses = 0.(81)
CREATE TABLE INST, Here is a database schema( table schema);
How much is vinculum when the parentheses are 0.(81)?.It is not neccessary to use all the tables.
SELECT MAX Interview FROM table WHERE Evening Gown = 9.286
CREATE TABLE INST, Here is a database schema( table schema);
Which biggest interview score had an evening gown stat of 9.286?.It is not neccessary to use all the tables.
SELECT "Colors" FROM table_58762 WHERE "Host" = 'christopher'
CREATE TABLE INST, Here is a database schema( table schema);
What are the colors of the team hosted by Christopher?It is not neccessary to use all the tables.
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-18025' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
CREATE TABLE INST, Here is a database schema( table schema);
is patient 012-18025 mch last measured on the last hospital visit greater than second to last measured on the last hospital visit.It is not neccessary to use all the tables.
SELECT league FROM table_name_20 WHERE sport = "football" AND venue = "stadion polonii"
CREATE TABLE INST, Here is a database schema( table schema);
Sport of football and a Venue of stadion polonii is what league?It is not neccessary to use all the tables.
SELECT Language FROM table WHERE Country = Niger AND R1b1c (R-V88) = 0.0%
CREATE TABLE INST, Here is a database schema( table schema);
What languages are spoken in Niger with r1b1c (r-v88) of 0.0%?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the away team when the home team is Essendon?.It is not neccessary to use all the tables.
SELECT SUM Lost FROM table WHERE Points < 3 AND Drawn > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many losses have points less than 3, with a drawn greater than 0?.It is not neccessary to use all the tables.
SELECT COUNT Date FROM table WHERE High assists = Stu Douglass (5) – 4
CREATE TABLE INST, Here is a database schema( table schema);
how many dates where high assists is stu douglass (5) – 4.It is not neccessary to use all the tables.
SELECT city___state FROM table_name_80 WHERE circuit = "calder park raceway"
CREATE TABLE INST, Here is a database schema( table schema);
Which city or state contains Calder Park Raceway?It is not neccessary to use all the tables.
SELECT Date of vacancy FROM table WHERE Team = Kartalspor
CREATE TABLE INST, Here is a database schema( table schema);
When was the date of vacancy for the manager of Kartalspor? .It is not neccessary to use all the tables.
SELECT incumbent FROM table_2668416_18 WHERE district = "Virginia 8"
CREATE TABLE INST, Here is a database schema( table schema);
If the district is Virginia 8 who is the Incumbent?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = vijay singh
CREATE TABLE INST, Here is a database schema( table schema);
From Country is Vijay Singh?.It is not neccessary to use all the tables.
SELECT date FROM table_name_13 WHERE region = "europe" AND catalog = "28765 22392 8"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Date with the Region of Europe and has a Catalog of 28765 22392 8?It is not neccessary to use all the tables.
SELECT MAX Lost FROM table WHERE Position > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest value for lost with a position greater than 10?.It is not neccessary to use all the tables.
SELECT location___state FROM table_name_36 WHERE date = "29–31 may"
CREATE TABLE INST, Here is a database schema( table schema);
Which Location/ State has a Date of 29–31 may?It is not neccessary to use all the tables.
SELECT location FROM table_name_22 WHERE time = "11:55"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location when the time was 11:55?It is not neccessary to use all the tables.
SELECT supporting_actress FROM table_24225238_1 WHERE leading_actress = "Diane Keaton"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the supporting actress in a film with Diane Keaton as the leading actress?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Current Status = demolished AND Line = shepparton line AND Location = tabilk
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the station that is currently demolished with the Shepparton line in Tabilk?.It is not neccessary to use all the tables.
SELECT 2013 FROM table_name_77 WHERE 2008 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2013 when the 2008 is 1r?It is not neccessary to use all the tables.
SELECT Style FROM table WHERE Results = safe AND Choreographer = nacho pop
CREATE TABLE INST, Here is a database schema( table schema);
What is the Style of the dance Choreographed by Nacho Pop with result of safe?.It is not neccessary to use all the tables.
SELECT county FROM table_1447085_1 WHERE number_of_households = 2053
CREATE TABLE INST, Here is a database schema( table schema);
What county has 2053 households?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Decision = parent AND Record = 42–18–10
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game with parent recording the decision and a Record of 42–18–10?.It is not neccessary to use all the tables.
SELECT * FROM Posts WHERE OwnerDisplayName LIKE 'a%'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the most active on StackExchange?.It is not neccessary to use all the tables.
SELECT Order # FROM table WHERE Theme = Mariah Carey
CREATE TABLE INST, Here is a database schema( table schema);
What is the order number for the theme of Mariah Carey?.It is not neccessary to use all the tables.
SELECT Vehicle Flight # FROM table WHERE Pilot = peterson AND Velocity (km/h) = 649
CREATE TABLE INST, Here is a database schema( table schema);
What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?.It is not neccessary to use all the tables.
SELECT score FROM table_name_73 WHERE away_team = "melbourne tigers"
CREATE TABLE INST, Here is a database schema( table schema);
What did the Melbourne Tigers score when they were the away team?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_55 WHERE date = "december 14"
CREATE TABLE INST, Here is a database schema( table schema);
What visitor has December 14 as the date?It is not neccessary to use all the tables.
SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director of Battalion Wars 2 which was released on GCN after 2004?It is not neccessary to use all the tables.
SELECT date FROM table_name_32 WHERE surface = "clay" AND score_in_the_final = "6–2, 7–5"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date is the match played on Clay Surface with a Score in the final of 6–2 7–5?It is not neccessary to use all the tables.
SELECT Adults FROM Reservations WHERE CheckIn = "2010-10-23" AND FirstName = "CONRAD" AND LastName = "SELBIG"
CREATE TABLE INST, Here is a database schema( table schema);
How many adults stay in the room CONRAD SELBIG checked in on Oct 23 2010?It is not neccessary to use all the tables.
SELECT Date of Issue FROM table WHERE Theme = bobsleigh
CREATE TABLE INST, Here is a database schema( table schema);
When did the Theme of bobsleigh release?.It is not neccessary to use all the tables.
SELECT jury_votes FROM table_19763199_4 WHERE televotes = 7
CREATE TABLE INST, Here is a database schema( table schema);
How many jury votes for the televote of 7?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Week = march 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Surface has a Week of march 1?.It is not neccessary to use all the tables.
SELECT county FROM table_name_80 WHERE name = "himco dump"
CREATE TABLE INST, Here is a database schema( table schema);
Which county includes Himco Dump?It is not neccessary to use all the tables.
SELECT trial_start_date FROM table_name_36 WHERE candidate_name = "notes"
CREATE TABLE INST, Here is a database schema( table schema);
What is Trial Start Date when Candidate Name is Notes?It is not neccessary to use all the tables.