sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT SUM Comp. FROM table WHERE Comp% = 65.4 AND Att. < 451 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Away team = richmond | CREATE TABLE INST, Here is a database schema( table schema); | What venue did Richmond play as the away team?.It is not neccessary to use all the tables. |
SELECT Manufacturer FROM table WHERE Type = 4-6-4t | CREATE TABLE INST, Here is a database schema( table schema); | Which manufacturer made a locomotive with a type of 4-6-4t?.It is not neccessary to use all the tables. |
SELECT COUNT candidates FROM table WHERE % of vote = 0 AND Election = 1999 AND seats won > 0 | CREATE TABLE INST, Here is a database schema( table schema); | How many candidates had 0 percent of the vote in 1999?.It is not neccessary to use all the tables. |
SELECT "opponent" FROM table_204_520 WHERE id = (SELECT id FROM table_204_520 WHERE "opponent" = 'jurgen fassbender') - 1 | CREATE TABLE INST, Here is a database schema( table schema); | which opponent is listed previous to j rgen fassbender ?It is not neccessary to use all the tables. |
SELECT AVG(goals_for) FROM table_name_99 WHERE losses > 12 AND wins > 10 AND points < 29 AND draws > 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of goals for entries with more than 12 losses more than 10 wins more than 3 draws and fewer than 29 points?It is not neccessary to use all the tables. |
SELECT transfer_fee FROM table_name_10 WHERE moving_from = "youth system" AND nat = "mar" | CREATE TABLE INST, Here is a database schema( table schema); | Which Transfer fee has a Moving from of youth system and a Nat of mar?It is not neccessary to use all the tables. |
SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17462) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'white blood cells') AND DATETIME(labevents.charttime, 'start of month') = D... | CREATE TABLE INST, Here is a database schema( table schema); | what is the daily average white blood cells level of patient 17462 in this month?It is not neccessary to use all the tables. |
SELECT school_club_team FROM table_name_22 WHERE years_for_grizzlies = "2006-2009" | CREATE TABLE INST, Here is a database schema( table schema); | Which School/Club Team holds the 2006-2009 Years of Grizzlies ?It is not neccessary to use all the tables. |
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "578.28" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the place where area is 578.28 square km?It is not neccessary to use all the tables. |
SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = "tba" AND car__number > 1 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012 TBA CURRENT CAR AND MORE THAN 1 CAR?It is not neccessary to use all the tables. |
SELECT length_weight_of_missile FROM table_21012786_2 WHERE diameter_of_torsion_spring = "38.4cm" | CREATE TABLE INST, Here is a database schema( table schema); | When the torsion spring diameter is 38.4cm what would be the length or weight of the missileIt is not neccessary to use all the tables. |
SELECT COUNT(*) FROM farm | CREATE TABLE INST, Here is a database schema( table schema); | How many farms are there?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Dates = Jul 8-11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the location for tournament on Jul 8-11?.It is not neccessary to use all the tables. |
SELECT Winning Pct. FROM table WHERE Jersey No. = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the winning pct for jersey 15?.It is not neccessary to use all the tables. |
SELECT operating_profit__s$m_ FROM table_161591_2 WHERE expenditure__s$m_ = "12,127.8" | CREATE TABLE INST, Here is a database schema( table schema); | What was the opearint profit (s$m) associated with an expenditure (s$m) of 12127.8?It is not neccessary to use all the tables. |
SELECT winning_score FROM table_name_62 WHERE year > 2000 AND champion = "allison fouch" | CREATE TABLE INST, Here is a database schema( table schema); | What was Allison Fouch score in the year larger than 2000?It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Date = april 13, 2008 AND Away team = itabuna | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team on April 13, 2008 when Itabuna was the away team?.It is not neccessary to use all the tables. |
SELECT MAX("Round") FROM table_77984 WHERE "Pick" > '50' AND "Player" = 'derek pagel' | CREATE TABLE INST, Here is a database schema( table schema); | What was the latest round that Derek Pagel was selected with a pick higher than 50?It is not neccessary to use all the tables. |
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French" AND T2.IsOfficial = "T" | CREATE TABLE INST, Here is a database schema( table schema); | What are the names of nations where both English and French are official languages?It is not neccessary to use all the tables. |
SELECT MIN Win % FROM table WHERE Away = 3-2 AND Season = 2011 | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest win% with an away score of 3-2 in 2011 season?.It is not neccessary to use all the tables. |
SELECT COUNT Teams With Division Titles FROM table WHERE Division Championships = 9 | CREATE TABLE INST, Here is a database schema( table schema); | How many division title teams were in the division championships 9 times?.It is not neccessary to use all the tables. |
SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" | CREATE TABLE INST, Here is a database schema( table schema); | How many caps did the player Mile Sterjovski have?It is not neccessary to use all the tables. |
SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "g10" | CREATE TABLE INST, Here is a database schema( table schema); | What is the bts retail price (regulated) for tariff code g10?It is not neccessary to use all the tables. |
SELECT MIN(europe) FROM table_1914090_2 WHERE africa = 7375139 | CREATE TABLE INST, Here is a database schema( table schema); | What is the minimum number of members Europe had at the time Africa had 7375139?It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Attendance > 18,680 | CREATE TABLE INST, Here is a database schema( table schema); | What Visiting Team(s) had an Attendance of over 18,680.It is not neccessary to use all the tables. |
SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant" | CREATE TABLE INST, Here is a database schema( table schema); | How many specimens does the SANT institution have?It is not neccessary to use all the tables. |
SELECT Segment D FROM table WHERE Episode = 60 | CREATE TABLE INST, Here is a database schema( table schema); | What was the D segment for episode 60?.It is not neccessary to use all the tables. |
SELECT MAX(total_region) FROM table_12570207_1 WHERE fitzroy = 8047 | CREATE TABLE INST, Here is a database schema( table schema); | what is the maximum total region with fitzroy being 8047It is not neccessary to use all the tables. |
SELECT Losing Team FROM table WHERE Date = june 16 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the losing team on June 16?.It is not neccessary to use all the tables. |
SELECT 2004 FROM table_name_24 WHERE 2000 = "2r" | CREATE TABLE INST, Here is a database schema( table schema); | What's the 2004 tournament that has a 2R in 2000?It is not neccessary to use all the tables. |
SELECT MAX(week) FROM table_12305325_4 WHERE eliminated = "Kate and Anton" | CREATE TABLE INST, Here is a database schema( table schema); | What is the max week where kate and anton are eliminated?It is not neccessary to use all the tables. |
SELECT icao FROM table_name_79 WHERE iata = "tgg" | CREATE TABLE INST, Here is a database schema( table schema); | What is the ICAO when the IATA is tgg?It is not neccessary to use all the tables. |
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "south melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance of the South Melbourne away game?It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Player = ben crenshaw | CREATE TABLE INST, Here is a database schema( table schema); | What is Place, when Player is "Ben Crenshaw"?.It is not neccessary to use all the tables. |
SELECT Division FROM table WHERE Year = 1993 | CREATE TABLE INST, Here is a database schema( table schema); | What divisions was in the year 1993?.It is not neccessary to use all the tables. |
SELECT AVG Lost FROM table WHERE Points > 108 | CREATE TABLE INST, Here is a database schema( table schema); | What average lost has points greater than 108?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Tournament when the 2013 is 2r and a 2006 is 1r?It is not neccessary to use all the tables. |
SELECT species FROM table_name_43 WHERE voges_proskauer = "negative" AND indole = "negative" | CREATE TABLE INST, Here is a database schema( table schema); | Which species has a Voges-Proskauer reading of negative and an indole reading of negative?It is not neccessary to use all the tables. |
SELECT COUNT("Attendance") FROM table_10796 WHERE "Score" = '4-6' | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the game that ended 4-6?It is not neccessary to use all the tables. |
SELECT COUNT(episodes) FROM table_name_90 WHERE romaji_title = "dragon zakura" | CREATE TABLE INST, Here is a database schema( table schema); | How many Episodes have a Romaji Title of dragon zakura?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Founded > 1890 AND Institution = university of montana | CREATE TABLE INST, Here is a database schema( table schema); | What is the location of the University of Montana, which was founded after 1890?.It is not neccessary to use all the tables. |
SELECT round FROM table_name_23 WHERE venue = "ullevaal" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Round din Ullevaal?It is not neccessary to use all the tables. |
SELECT service_name FROM services ORDER BY service_name | CREATE TABLE INST, Here is a database schema( table schema); | Give me a list of all the service names sorted alphabetically.It is not neccessary to use all the tables. |
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average number of attendance for the game on November 29 1981 played after week 13?It is not neccessary to use all the tables. |
SELECT SUM Position FROM table WHERE Against = 5 AND Drawn > 0 | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has an Against of 5, and a Drawn larger than 0?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Venue = lake oval | CREATE TABLE INST, Here is a database schema( table schema); | When the venue was lake oval what did the home team score?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Goals = 6 AND Nationality = morocco | CREATE TABLE INST, Here is a database schema( table schema); | Who was from Morocco and scored 6 goals?.It is not neccessary to use all the tables. |
SELECT week FROM table_name_33 WHERE date = "december 19, 2004" | CREATE TABLE INST, Here is a database schema( table schema); | What week has December 19 2004 as the date?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Attendance > 20,837 AND Date = august 25 | CREATE TABLE INST, Here is a database schema( table schema); | For the game played on August 25, with attendance at more than 20,837 people, what was the final score?.It is not neccessary to use all the tables. |
SELECT Ground FROM table WHERE Match < 6 AND Opponent = chelsea reserves | CREATE TABLE INST, Here is a database schema( table schema); | What ground had a match smaller than 6 and Chelsea Reserves as the opponent?.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Award = american music awards | CREATE TABLE INST, Here is a database schema( table schema); | What year has american music awards?.It is not neccessary to use all the tables. |
SELECT area__km²_ FROM table_255602_1 WHERE population__2010_ = 38062 | CREATE TABLE INST, Here is a database schema( table schema); | What is the area where population in 2010 is 38062?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_57 WHERE away_team = "richmond" | CREATE TABLE INST, Here is a database schema( table schema); | Where did Richmond play as the away team?It is not neccessary to use all the tables. |
SELECT school FROM table_name_68 WHERE round = 8 | CREATE TABLE INST, Here is a database schema( table schema); | what is the school for round 8?It is not neccessary to use all the tables. |
SELECT 2007 AS _08_season FROM table_name_15 WHERE club = "a.s. gubbio 1910" | CREATE TABLE INST, Here is a database schema( table schema); | What 2007-08 had A.S. Gubbio 1910 Club?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE U.S. viewers (millions) = 1.57 | CREATE TABLE INST, Here is a database schema( table schema); | When was originally aired the episode with an audience of 1.57 million us viewers?.It is not neccessary to use all the tables. |
SELECT city FROM table_name_86 WHERE stadium = "estádio dr. magalhães pessoa" | CREATE TABLE INST, Here is a database schema( table schema); | What city is the Stadium estádio dr. magalhães pessoa in?It is not neccessary to use all the tables. |
SELECT first_elected FROM table_1341453_44 WHERE district = "Tennessee 4" | CREATE TABLE INST, Here is a database schema( table schema); | When was the incumbent in the Tennessee 4 district first elected?It is not neccessary to use all the tables. |
SELECT host_team FROM table_name_39 WHERE date = "december 16" | CREATE TABLE INST, Here is a database schema( table schema); | What was the name of the host team dated December 16?It is not neccessary to use all the tables. |
SELECT 2 AS nd_throw FROM table_17265535_7 WHERE equation = "1 × 9² + 4 × 9 + 0" | CREATE TABLE INST, Here is a database schema( table schema); | If the equation is 1 × 9² + 4 × 9 + 0 what is the 2nd throw?It is not neccessary to use all the tables. |
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which problem log was created most recently? Give me the log id.It is not neccessary to use all the tables. |
SELECT AVG(overall) FROM table_name_69 WHERE college = "miami (fl)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average oveall pick for players from the college of Miami (FL)?It is not neccessary to use all the tables. |
SELECT AVG(total) FROM table_name_73 WHERE country = "united states" AND year_s__won = "1978" | CREATE TABLE INST, Here is a database schema( table schema); | What was the average total for the player from the United States who won in 1978?It is not neccessary to use all the tables. |
SELECT Launched FROM table WHERE Kanji = 栗 | CREATE TABLE INST, Here is a database schema( table schema); | What is the launch date of 栗?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_19 WHERE event = "k-1 world grand prix 2004 in saitama" | CREATE TABLE INST, Here is a database schema( table schema); | what is the location when the event is k-1 world grand prix 2004 in saitama?It is not neccessary to use all the tables. |
SELECT Pada 1 FROM table WHERE Pada 2 = सा sa | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Pada 1 has a Pada 2 of सा sa?.It is not neccessary to use all the tables. |
SELECT Copa CONMEBOL 1996 FROM table WHERE Recopa Sudamericana 1996 = champions | CREATE TABLE INST, Here is a database schema( table schema); | What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?.It is not neccessary to use all the tables. |
SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many bronze had a total less than 4 and gold bigger than 1?It is not neccessary to use all the tables. |
SELECT team_2 FROM table_name_2 WHERE team_1 = "cobreloa" | CREATE TABLE INST, Here is a database schema( table schema); | What is the team 2 with cobreloa as team 1?It is not neccessary to use all the tables. |
SELECT class FROM table_1745843_9 WHERE part_3 = "schliefen" | CREATE TABLE INST, Here is a database schema( table schema); | Name the class for schliefenIt is not neccessary to use all the tables. |
SELECT Constructor FROM table WHERE Year < 1937 AND Driver = achille varzi | CREATE TABLE INST, Here is a database schema( table schema); | What was the constructor of the car that Achille Varzi drove before 1937?.It is not neccessary to use all the tables. |
SELECT Crowd FROM table WHERE Date = 19 july 1980 AND Away team = footscray | CREATE TABLE INST, Here is a database schema( table schema); | When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?.It is not neccessary to use all the tables. |
SELECT AVG Draws FROM table WHERE Losses > 3 AND Club = cobden | CREATE TABLE INST, Here is a database schema( table schema); | What are the draws of Cobden when there are more than 3 losses?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Venue = kardinia park | CREATE TABLE INST, Here is a database schema( table schema); | Who was the away team at the game at Kardinia Park?.It is not neccessary to use all the tables. |
SELECT COUNT(attendance) FROM table_name_10 WHERE date = "10/05/1974" | CREATE TABLE INST, Here is a database schema( table schema); | What was the total attendance on 10/05/1974?It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Film title used in nomination = Coup de Torchon | CREATE TABLE INST, Here is a database schema( table schema); | Name the director for coup de torchon.It is not neccessary to use all the tables. |
SELECT fleet FROM table_name_61 WHERE number = "l4" | CREATE TABLE INST, Here is a database schema( table schema); | what fleet is associated with the number L4?It is not neccessary to use all the tables. |
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 | CREATE TABLE INST, Here is a database schema( table schema); | What was the earliest week the team played the chicago cardinals in front of less than 25312?It is not neccessary to use all the tables. |
SELECT SUM(date) FROM table_name_8 WHERE venue = "away" AND opponent = "wightlink raiders" AND attendance > 375 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the away venue with an opponent of wightlink raiders with an attendance larger than 375?It is not neccessary to use all the tables. |
SELECT "2nd (m)" FROM table_1062 WHERE "Name" = 'Gregor Schlierenzauer' | CREATE TABLE INST, Here is a database schema( table schema); | Name the 2nd m for gregor schlierenzauerIt is not neccessary to use all the tables. |
SELECT date FROM table_name_22 WHERE result = "w 35-7" | CREATE TABLE INST, Here is a database schema( table schema); | Name the date with resultof w 35-7It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Player = tayshaun prince | CREATE TABLE INST, Here is a database schema( table schema); | What is the position of Tayshaun Prince?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_49 WHERE opposition = "sussex" AND year > 1890 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score when the opposition was sussex after 1890?It is not neccessary to use all the tables. |
SELECT AVG("To par") FROM table_64859 WHERE "Player" = 'davis love iii' AND "Total" > '149' | CREATE TABLE INST, Here is a database schema( table schema); | With a Total of more than 149, what is Davis Love III's To par?It is not neccessary to use all the tables. |
SELECT Away FROM table WHERE Season = 2007–08 | CREATE TABLE INST, Here is a database schema( table schema); | Which Away has a Season of 2007–08?.It is not neccessary to use all the tables. |
SELECT COUNT Metres FROM table WHERE Feet < 196 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Metres wiht a Feet that's smaller than 196?.It is not neccessary to use all the tables. |
SELECT tatsuhito_takaiwa FROM table_name_38 WHERE koji_kanemoto = "liger (20:29)" | CREATE TABLE INST, Here is a database schema( table schema); | Which Tatsuhito Takaiwa has a Koji Kanemoto of liger (20:29)?It is not neccessary to use all the tables. |
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5 | CREATE TABLE INST, Here is a database schema( table schema); | How many TTkl have 2004 as the year and a pass def greater than 5?It is not neccessary to use all the tables. |
SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = "Beata Syta" | CREATE TABLE INST, Here is a database schema( table schema); | Beata syta is the minimum year for womens singles.It is not neccessary to use all the tables. |
SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid | CREATE TABLE INST, Here is a database schema( table schema); | For students who have pets how many pets does each student have ? list their ids instead of names .It is not neccessary to use all the tables. |
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval" | CREATE TABLE INST, Here is a database schema( table schema); | In the games at corio oval what was the highest crowd?It is not neccessary to use all the tables. |
SELECT MIN Year FROM table WHERE Manager = art griggs | CREATE TABLE INST, Here is a database schema( table schema); | Manager of art griggs had what lowest year?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_52 WHERE result = "w 31-21" | CREATE TABLE INST, Here is a database schema( table schema); | Tell mem the opponent for result of w 31-21It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_1 WHERE rank > 1 AND time = "59.75" | CREATE TABLE INST, Here is a database schema( table schema); | Which nationaly is ranked greater than 1 with a time of 59.75?It is not neccessary to use all the tables. |
SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 4 | CREATE TABLE INST, Here is a database schema( table schema); | How much Draw has a Televote larger than 18 and an Artist of elizabeth anastasiou and a Jury larger than 4?It is not neccessary to use all the tables. |
SELECT resultado FROM table_27501971_2 WHERE country = "E.E.U.U" | CREATE TABLE INST, Here is a database schema( table schema); | What was the resultado when E.E.U.U was the country?It is not neccessary to use all the tables. |
SELECT party FROM table_1341865_37 WHERE incumbent = "Frank T. Bow" | CREATE TABLE INST, Here is a database schema( table schema); | To which party does Frank T. Bow belong?It is not neccessary to use all the tables. |
SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest year that has hypo-meeting as the tournament with 8002 as the points?It is not neccessary to use all the tables. |
SELECT Week FROM table WHERE Attendance = 90,138 | CREATE TABLE INST, Here is a database schema( table schema); | Which week's game had an attendance of 90,138?.It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.